计划成品拆分BUG修复

master
wws 1 year ago
parent ce90b1c92c
commit 4099231d7b

@ -932,7 +932,7 @@ export default {
}
}
this.productData[0].atrr1 = this.splitForm.splitNum
this.productData[0].atrr1 = this.splitForm.splitNum;
setAtrr1(this.productData[0], this.splitForm.splitNum)
this.refreshProTable = false // refreshProTablefalse
@ -1112,6 +1112,25 @@ export default {
//
this.splitForm.formFields = this.formFields
//
//
function setQuantitySplit(data) {
if (data.children !== undefined) {
for (let i = 0; i < data.children.length; i++) {
if (data.children[i].quantitySplit == null) {
data.children[i].quantitySplit = 0;
}
data.children[i].quantitySplit = Number(data.children[i].quantitySplit) + Number(data.children[i].atrr1)
setQuantitySplit(data.children[i]);
}
}
}
if (this.productData[0].quantitySplit == null) {
this.productData[0].quantitySplit = 0;
}
this.productData[0].quantitySplit = Number(this.splitForm.splitNum) + Number(this.productData[0].quantitySplit);
setQuantitySplit(this.productData[0])
//
const data = {
formFields: this.formFields,

Loading…
Cancel
Save