|
|
@@ -1127,41 +1127,6 @@
|
|
|
this.$refs.pickingListRef.open(id, type);
|
|
|
},
|
|
|
|
|
|
- outsourceMaterialFn(res) {
|
|
|
- let _arr = [];
|
|
|
- _arr = [...res.pickOutInList, ...res.materialList];
|
|
|
-
|
|
|
- this.pickOutInList = _arr.reduce((acc, item) => {
|
|
|
- const existingItem = acc.find((existing) => existing.id === item.id);
|
|
|
- if (!existingItem) {
|
|
|
- item.isSelection = '2';
|
|
|
- acc.push(item);
|
|
|
- }
|
|
|
- return acc;
|
|
|
- }, []);
|
|
|
-
|
|
|
- this.bomMaterialList = res.bomMaterialList.map((m) => {
|
|
|
- return {
|
|
|
- ...m,
|
|
|
- isDemandQuantity: true
|
|
|
- };
|
|
|
- });
|
|
|
-
|
|
|
- this.pickOutInList.map((v) => {
|
|
|
- v.checked = true;
|
|
|
- });
|
|
|
-
|
|
|
- this.checkListLen = this.pickOutInList.length;
|
|
|
-
|
|
|
- this.standardOutputList = res.standardOutputList;
|
|
|
-
|
|
|
- this.changNumber(this.pickOutInList);
|
|
|
-
|
|
|
- this.$nextTick(() => {
|
|
|
- this.$refs.pickOutRef.toggleAllSelection();
|
|
|
- });
|
|
|
- },
|
|
|
-
|
|
|
changNumber(list) {
|
|
|
let total = 0;
|
|
|
let batchTotal = 0;
|
|
|
@@ -1441,7 +1406,12 @@
|
|
|
|
|
|
this.checkListLen = this.pickOutInList.length;
|
|
|
|
|
|
- this.standardOutputList = res.standardOutputList;
|
|
|
+ this.standardOutputList = res.standardOutputList.map((item) => {
|
|
|
+ item.demandQuantity = item.demandQuantity
|
|
|
+ ? item.demandQuantity
|
|
|
+ : this.attributeData.formedNumLast;
|
|
|
+ return item;
|
|
|
+ });
|
|
|
|
|
|
this.changNumber(this.pickOutInList);
|
|
|
|