|
|
@ -456,6 +456,9 @@ export default {
|
|
|
|
dicts: ['product_type','workorder_type','shift_type'],
|
|
|
|
dicts: ['product_type','workorder_type','shift_type'],
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
|
|
|
|
// 暂存线体code
|
|
|
|
|
|
|
|
proLineCode:null,
|
|
|
|
|
|
|
|
// 打印
|
|
|
|
formRef: 'form',
|
|
|
|
formRef: 'form',
|
|
|
|
validateRules: [],
|
|
|
|
validateRules: [],
|
|
|
|
printData: {
|
|
|
|
printData: {
|
|
|
@ -677,6 +680,9 @@ export default {
|
|
|
|
type: 'warning'
|
|
|
|
type: 'warning'
|
|
|
|
})
|
|
|
|
})
|
|
|
|
this.formFields[this.formFields.length - 1].batchQuantity = Number(this.productData[0].atrr1) - Number(Number(sum) - Number(e))
|
|
|
|
this.formFields[this.formFields.length - 1].batchQuantity = Number(this.productData[0].atrr1) - Number(Number(sum) - Number(e))
|
|
|
|
|
|
|
|
if (this.formFields[this.formFields.length - 1].batchQuantity <= 0) {
|
|
|
|
|
|
|
|
this.formFields[this.formFields.length - 1].batchQuantity = 1
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//如果拆分数量为空
|
|
|
|
//如果拆分数量为空
|
|
|
|
if (this.productData[0].atrr1 == '' || this.productData[0].atrr1 == null) {
|
|
|
|
if (this.productData[0].atrr1 == '' || this.productData[0].atrr1 == null) {
|
|
|
@ -1007,6 +1013,10 @@ export default {
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (this.workForm.prodLineCode === undefined) {
|
|
|
|
|
|
|
|
this.workForm.prodLineCode = this.selectWork.prodLineName
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//下面是请求处理
|
|
|
|
//下面是请求处理
|
|
|
|
const data = {
|
|
|
|
const data = {
|
|
|
|
formFields: this.formFields,
|
|
|
|
formFields: this.formFields,
|
|
|
@ -1024,6 +1034,7 @@ export default {
|
|
|
|
this.$modal.msgError(response.msg)
|
|
|
|
this.$modal.msgError(response.msg)
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
this.getList()
|
|
|
|
this.$modal.msgSuccess('提交成功')
|
|
|
|
this.$modal.msgSuccess('提交成功')
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
@ -1041,9 +1052,6 @@ export default {
|
|
|
|
batchCode: '',
|
|
|
|
batchCode: '',
|
|
|
|
batchQuantity: ''
|
|
|
|
batchQuantity: ''
|
|
|
|
}]
|
|
|
|
}]
|
|
|
|
|
|
|
|
|
|
|
|
this.getList()
|
|
|
|
|
|
|
|
// 等待1秒后执行的代码
|
|
|
|
|
|
|
|
this.open = false
|
|
|
|
this.open = false
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/** 删除按钮操作 */
|
|
|
|
/** 删除按钮操作 */
|
|
|
|