Commit d3bf1864 authored by jingnan's avatar jingnan 👀

Merge branch 'dev' of http://94.191.100.41/tfmom/tf-mom-web into dev

parents 8b5582ff 8fb82402
......@@ -285,7 +285,6 @@ export default {
})
},
update(data, deleteRows = []) {
console.log(11111, data)
// data
const tableData = this.value || []
tableData.forEach(row => {
......@@ -299,7 +298,6 @@ export default {
}
}
})
console.log(222, data)
this.$emit('input', data)
}
}
......
<template>
<div class="AssignCardProcess">
<dee-as-com
v-show="baseData"
ref="detailCom"
dis-business
:lay-config="cmpOptions"
:basic-data="baseData"
/>
</div>
</template>
<script>
import { post } from '@/utils/http'
export default {
name: 'AssignCardProcess',
componentName: '调配卡流程中表单',
components: {},
props: {
basicData: {
type: Object,
default: () => null
}
},
data() {
return {
cmpOptions: {
typeName: 'AssignCardPaint',
layKey: 'paintProcessFrom'
},
baseData: null
}
},
watch: {
basicData: {
immediate: true,
deep: true,
handler: function(val) {
this.getFormData(val.id)
}
}
},
mounted() {
},
// 组件方法
methods: {
getFormData(id) {
const params = {
'searchItems': {
'items': [
{
'fieldName': 'id',
'operator': 'EQ',
'value': id
}
]
},
'openProps': [{
'name': 'assignCardDetails',
'openProps': [{
'name': 'target',
'openProps': [{
'name': 'extSupporting',
'openProps': [{
'name': 'extProcessPlan'
}]
}]
}]
},
{
'name': 'material'
}],
'toValidateKeys': ''
}
post('/AssignCard/search', params).then((res) => {
this.baseData = res.items.content[0]
})
}
}
}
</script>
<style lang='scss'>
</style>
......@@ -399,7 +399,7 @@
<label>合计:</label><el-input
v-model="form.accounts"
clearable
:disabled="costKeeper || (disabled && !costKeeper)"
:disabled="true"
placeholder="请输入"
/>
<!-- <label :class="{ costKeeper: !costKeeper }">合计:</label><el-input
......@@ -429,6 +429,12 @@
</template>
<script>
export default {
props: {
basicData: {
type: Object,
default: () => null
}
},
data() {
return {
item: {},
......@@ -477,7 +483,9 @@ export default {
// 成本核算员
costEstimator: true,
// 成本管理员
costKeeper: true
costKeeper: true,
// 废品通知单编制禁用
Activity_1dnbmb6: false
}
},
watch: {
......@@ -539,6 +547,7 @@ export default {
that.workHourMLossCost = 0
}
if (that.curTotalLossCost) {
console.log(this)
that.accounts = parseFloat(that.curTotalLossCost)
} else if (!that.curTotalLossCost) {
that.accounts = 0
......@@ -576,36 +585,52 @@ export default {
},
deep: true
}
// 'form.accounts': {
// handler(v) {
// this.$emit('accounts', v)
// },
// deep: true
// }
},
created() {
this.open(this.$attrs['basic-data'])
this.open(this.basicData)
},
methods: {
// 打开弹出框
open(val) {
this.$nextTick(() => {
// 成本核算员节点Activity_1lgytbi和财务部会计Activity_07owud7
// if (['Activity_1lgytbi', 'Activity_07owud7'].includes(val.taskkey)) {
// this.disabled = false
// if (val.taskkey === 'Activity_1lgytbi') {
// this.costEstimator = false
// } else if (val.taskkey === 'Activity_07owud7') {
// this.costKeeper = false
// }
// } else {
// this.disabled = true
// }
this.disabled = false
this.costEstimator = false
this.costKeeper = false
this.item = val
if (val && val.taskkey) {
// 废品通知单编制
if (val.taskkey === 'Activity_1dnbmb6') {
this.Activity_1dnbmb6 = true
}
// 成本核算员节点Activity_1lgytbi和财务部会计Activity_07owud7
// if (['Activity_1lgytbi', 'Activity_07owud7'].includes(val.taskkey)) {
// this.disabled = false
// if (val.taskkey === 'Activity_1lgytbi') {
// this.costEstimator = false
// } else if (val.taskkey === 'Activity_07owud7') {
// this.costKeeper = false
// }
// } else {
// this.disabled = true
// }
this.disabled = false
this.costEstimator = false
this.costKeeper = false
this.searchItem()
}
})
},
searchItem() {
const params = {
searchItems: {
items: [{ 'fieldName': 'id', operator: 'EQ', value: this.basicData.id }],
operator: 'AND'
}
}
this.$api.searchApi('ScrapNoticeDoc', params).then(res => {
if (res.items.content) {
this.$nextTick(() => {
res.items.content[0].taskkey = this.basicData.taskkey
this.item = res.items.content[0]
})
}
})
},
save() {
......
<template>
<div v-if="value" class="online-session-com page-wrap">
<dee-up-table
ref="multipleTable"
:columns="tableColums"
:data="value"
tooltip-effect="light"
/>
</div>
</template>
<script>
export default {
name: 'SupportingCardDetails',
componentName: '调配卡中配套明细列表',
props: {
value: {
type: Array,
default: () => null
}
},
data() {
const that = this
return {
tableColums: [
{ title: 'AO号', key: 'target.extSupporting.extProcessPlan.serialNumber', align: 'center', minWidth: 180 },
{ title: '架次', key: 'target.sorties', align: 'center', hideTip: true, minWidth: 110 },
{ title: '申领人', key: 'target.applyerName', align: 'center' },
{ title: '申领时间', key: 'target.applyTime', align: 'center', minWidth: 180, formatter(row, column) {
return that.$moment(row.target.applyTime).format('YYYY-MM-DD HH:mm:ss')
} },
{ title: '数量', key: 'target.reqAmount', align: 'center' },
{ title: '单位', key: 'target.applyerDepartment', align: 'center' }
],
tableData: []
}
},
mounted() {
},
methods: {
}
}
</script>
<style lang="scss">
.online-session-com {
.mb10{
margin-bottom:10px;
}
.dee-table {
height: calc( 100% - 30px);
.dee-table-body{
height: calc( 100% - 30px);
overflow-y: scroll;
}
}
}
</style>
<template>
<div>
<el-input
v-model="cup"
class="input-with-select el-input--small"
placeholder=""
clearable
style="width: 40%"
@change="change"
/>
<span style="color: #606266"></span>
<el-input
v-model="second"
class="input-with-select el-input--small"
placeholder=""
clearable
style="width: 40%"
@change="change"
/>
<span style="color: #606266"></span>
</div>
</template>
<script>
export default {
name: 'ViscosityBox',
componentName: '黏度框',
props: {
form: {
type: Object,
default: () => null
}
},
data() {
return {
cup: '',
second: ''
}
},
watch: {
'form.id': {
immediate: true,
deep: true,
handler: function(val) {
this.cup = this.form.viscosity && this.form.viscosity.split(' ').length > 1 ? this.form.viscosity.split(' ')[0] : this.form.viscosity
this.second = this.form.viscosity && this.form.viscosity.split(' ').length > 1 ? this.form.viscosity.split(' ')[1] : this.form.viscosity
}
}
},
methods: {
change() {
this.$emit('input', this.cup + ' ' + this.second)
}
}
}
</script>
......@@ -62,8 +62,8 @@ export default {
)
.then((res) => {
if (res && res.message.includes('成功')) {
this.imgLeft = res.items['左']
this.imgRight = res.items['右']
this.imgLeft = res.items.left
this.imgRight = res.items.right
} else {
this.$message({
showClose: true,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment