计划模块(工单修改BUG解决初版)

master
wws 1 year ago
parent 6c85307a16
commit cc26f66dd2

@ -1161,6 +1161,9 @@ export default {
type: 'warning'
})
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) {

@ -456,6 +456,9 @@ export default {
dicts: ['product_type','workorder_type','shift_type'],
data() {
return {
// 线code
proLineCode:null,
//
formRef: 'form',
validateRules: [],
printData: {
@ -677,6 +680,9 @@ export default {
type: 'warning'
})
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) {
@ -1007,6 +1013,10 @@ export default {
return
}
if (this.workForm.prodLineCode === undefined) {
this.workForm.prodLineCode = this.selectWork.prodLineName
}
//
const data = {
formFields: this.formFields,
@ -1024,6 +1034,7 @@ export default {
this.$modal.msgError(response.msg)
return
}
this.getList()
this.$modal.msgSuccess('提交成功')
})
@ -1041,9 +1052,6 @@ export default {
batchCode: '',
batchQuantity: ''
}]
this.getList()
// 1
this.open = false
},
/** 删除按钮操作 */

Loading…
Cancel
Save