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

yangwl
wws 1 year ago
parent 6c85307a16
commit cc26f66dd2

@ -1161,6 +1161,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) {

@ -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
}, },
/** 删除按钮操作 */ /** 删除按钮操作 */

Loading…
Cancel
Save