|
@@ -903,6 +903,7 @@
|
|
return newData
|
|
return newData
|
|
})
|
|
})
|
|
let billConfig = (this as any).$lodash.cloneDeep(this.config.bill);
|
|
let billConfig = (this as any).$lodash.cloneDeep(this.config.bill);
|
|
|
|
+
|
|
if (billConfig.tableConfig[0].table.columns.at(-1).title != '操作') {
|
|
if (billConfig.tableConfig[0].table.columns.at(-1).title != '操作') {
|
|
billConfig.tableConfig[0].table.columns.push({
|
|
billConfig.tableConfig[0].table.columns.push({
|
|
width: 90,
|
|
width: 90,
|
|
@@ -920,6 +921,31 @@
|
|
}]
|
|
}]
|
|
})
|
|
})
|
|
};
|
|
};
|
|
|
|
+ billConfig.tableConfig[0].table.columns[8] = {
|
|
|
|
+ width: 120,
|
|
|
|
+ title: '数量',
|
|
|
|
+ field: 'number',
|
|
|
|
+ component: 'by-input',
|
|
|
|
+ compConfig: {
|
|
|
|
+ attr: {
|
|
|
|
+ size: 'mini',
|
|
|
|
+ type: 'number',
|
|
|
|
+ defaultValue: 1,
|
|
|
|
+ },
|
|
|
|
+ }
|
|
|
|
+ };
|
|
|
|
+ billConfig.tableConfig[0].table.columns[11] = {
|
|
|
|
+ width: 90,
|
|
|
|
+ title: '单价',
|
|
|
|
+ field: 'unitPrice',
|
|
|
|
+ component: 'by-input',
|
|
|
|
+ compConfig: {
|
|
|
|
+ attr: {
|
|
|
|
+ size: 'mini',
|
|
|
|
+ type: 'number',
|
|
|
|
+ },
|
|
|
|
+ }
|
|
|
|
+ };
|
|
parentData[0].suborderList = parentData[0].suborderList.filter((v : any) => (v.number - v.outNumber) > 0);
|
|
parentData[0].suborderList = parentData[0].suborderList.filter((v : any) => (v.number - v.outNumber) > 0);
|
|
parentData[0].suborderList.map((v : any) => {
|
|
parentData[0].suborderList.map((v : any) => {
|
|
v.deliveryNumber = v.number - v.outNumber;
|
|
v.deliveryNumber = v.number - v.outNumber;
|
|
@@ -933,6 +959,7 @@
|
|
(this.$refs.bill as any).showTab = 'bill';
|
|
(this.$refs.bill as any).showTab = 'bill';
|
|
loading.close();
|
|
loading.close();
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
|
|
+ billConfig.form.attr.readonly = false;
|
|
(this.$refs.bill as any).setBillConfig(billConfig);
|
|
(this.$refs.bill as any).setBillConfig(billConfig);
|
|
(this.$refs.bill as any).setBillFormValue(parentData[0]); // 设置单据表单数据
|
|
(this.$refs.bill as any).setBillFormValue(parentData[0]); // 设置单据表单数据
|
|
(this.$refs.bill as any).setBillTableValue(parentData[0].suborderList, 0);// 设置第1张单据表格数据
|
|
(this.$refs.bill as any).setBillTableValue(parentData[0].suborderList, 0);// 设置第1张单据表格数据
|
|
@@ -1107,7 +1134,7 @@
|
|
}]
|
|
}]
|
|
})
|
|
})
|
|
};
|
|
};
|
|
- billConfig.tableConfig[0].table.columns[7] = {
|
|
|
|
|
|
+ billConfig.tableConfig[0].table.columns[8] = {
|
|
width: 120,
|
|
width: 120,
|
|
title: '数量',
|
|
title: '数量',
|
|
field: 'number',
|
|
field: 'number',
|
|
@@ -1120,7 +1147,7 @@
|
|
},
|
|
},
|
|
}
|
|
}
|
|
};
|
|
};
|
|
- billConfig.tableConfig[0].table.columns[10] = {
|
|
|
|
|
|
+ billConfig.tableConfig[0].table.columns[11] = {
|
|
width: 90,
|
|
width: 90,
|
|
title: '单价',
|
|
title: '单价',
|
|
field: 'unitPrice',
|
|
field: 'unitPrice',
|
|
@@ -1218,12 +1245,12 @@
|
|
if (parentData.submitState === 1) readonly.tool.tools = { return: true, returnSmt: true, print: true };
|
|
if (parentData.submitState === 1) readonly.tool.tools = { return: true, returnSmt: true, print: true };
|
|
}
|
|
}
|
|
readonly.tableConfig[0].table.columns = readonly.tableConfig[0].table.columns.filter((v : any) => v.title != '操作');
|
|
readonly.tableConfig[0].table.columns = readonly.tableConfig[0].table.columns.filter((v : any) => v.title != '操作');
|
|
- readonly.tableConfig[0].table.columns[7] = {
|
|
|
|
|
|
+ readonly.tableConfig[0].table.columns[8] = {
|
|
width: 120,
|
|
width: 120,
|
|
title: '数量',
|
|
title: '数量',
|
|
field: 'number',
|
|
field: 'number',
|
|
};
|
|
};
|
|
- readonly.tableConfig[0].table.columns[10] = {
|
|
|
|
|
|
+ readonly.tableConfig[0].table.columns[11] = {
|
|
width: 90,
|
|
width: 90,
|
|
title: '单价',
|
|
title: '单价',
|
|
field: 'unitPrice',
|
|
field: 'unitPrice',
|