|
|
@@ -522,6 +522,7 @@
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ llList: [],
|
|
|
codeList: [],
|
|
|
materialType,
|
|
|
warehousingType,
|
|
|
@@ -609,13 +610,26 @@
|
|
|
this.formData.documentSource = row.code;
|
|
|
for (const key in row.orderInfoList) {
|
|
|
for (const i in row.orderInfoList[key].bomDetailDTOS) {
|
|
|
- row.tableData.push({ ...row.orderInfoList[key].bomDetailDTOS[i] });
|
|
|
+ row.tableData.push({
|
|
|
+ ...row.orderInfoList[key].bomDetailDTOS[i],
|
|
|
+ code: row.orderInfoList[key].bomDetailDTOS[i].categoryCode,
|
|
|
+ name: row.orderInfoList[key].bomDetailDTOS[i].categoryName,
|
|
|
+ modelTyp: row.orderInfoList[key].bomDetailDTOS[i].model,
|
|
|
+ id: row.orderInfoList[key].bomDetailDTOS[i].categoryId
|
|
|
+ });
|
|
|
}
|
|
|
for (const j in row.orderInfoList[key].instanceList) {
|
|
|
- row.tableData.push({ ...row.orderInfoList[key].instanceList[j] });
|
|
|
+ row.tableData.push({
|
|
|
+ ...row.orderInfoList[key].instanceList[j],
|
|
|
+ code: row.orderInfoList[key].instanceList[j].categoryCode,
|
|
|
+ name: row.orderInfoList[key].instanceList[j].categoryName,
|
|
|
+ modelTyp: row.orderInfoList[key].bomDetailDTOS[j].model,
|
|
|
+ id: row.orderInfoList[key].bomDetailDTOS[j].categoryId
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
console.log(row);
|
|
|
+ this.onSelectTableData(row.tableData, 1);
|
|
|
this.$forceUpdate();
|
|
|
},
|
|
|
handlePickorder() {
|
|
|
@@ -923,7 +937,15 @@
|
|
|
// return newArr;
|
|
|
},
|
|
|
//添加明细
|
|
|
- onSelectTableData(val) {
|
|
|
+ onSelectTableData(val, e) {
|
|
|
+ if (e == 1) {
|
|
|
+ this.llList = val;
|
|
|
+ } else {
|
|
|
+ this.llList = [];
|
|
|
+ }
|
|
|
+ if (this.warehousingMaterialList.length != 0) {
|
|
|
+ val = this.warehousingMaterialList.concat(val).concat(this.llList);
|
|
|
+ }
|
|
|
this.onSelectTableDataVal = val;
|
|
|
this.warehousingMaterialList = val.map((next) => {
|
|
|
delete next.updateTime;
|