|
@@ -971,8 +971,23 @@
|
|
|
row.tableData = uniqueItems;
|
|
row.tableData = uniqueItems;
|
|
|
console.log(row);
|
|
console.log(row);
|
|
|
this.onSelectTableData(row.tableData, 1);
|
|
this.onSelectTableData(row.tableData, 1);
|
|
|
|
|
+
|
|
|
|
|
+ this.selectTop(row);
|
|
|
this.$forceUpdate();
|
|
this.$forceUpdate();
|
|
|
},
|
|
},
|
|
|
|
|
+ async selectTop(row) {
|
|
|
|
|
+ let list = row.tableData;
|
|
|
|
|
+ let arr = [];
|
|
|
|
|
+ for (const it of list) {
|
|
|
|
|
+ arr.push({
|
|
|
|
|
+ categoryLevelId: it.rootCategoryLevelId,
|
|
|
|
|
+ code: it.code,
|
|
|
|
|
+ count: it.demandQuantity
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ const data = await getDetailByCode(arr);
|
|
|
|
|
+ console.log('===', data);
|
|
|
|
|
+ },
|
|
|
handleEom() {
|
|
handleEom() {
|
|
|
this.$refs.eomRef.open();
|
|
this.$refs.eomRef.open();
|
|
|
},
|
|
},
|