|
|
@ -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)
|
|
|
|
setAtrr1(this.productData[0], this.splitForm.splitNum)
|
|
|
|
|
|
|
|
|
|
|
|
this.refreshProTable = false // 先将refreshProTable设置为false,隐藏表格
|
|
|
|
this.refreshProTable = false // 先将refreshProTable设置为false,隐藏表格
|
|
|
@ -1112,6 +1112,25 @@ export default {
|
|
|
|
//整理订单传入到后端
|
|
|
|
//整理订单传入到后端
|
|
|
|
this.splitForm.formFields = this.formFields
|
|
|
|
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 = {
|
|
|
|
const data = {
|
|
|
|
formFields: this.formFields,
|
|
|
|
formFields: this.formFields,
|
|
|
|