Commit a40d3a16 authored by chenzj's avatar chenzj

领料申请bug修复

parent 6e7b09cb
...@@ -1092,6 +1092,7 @@ export default { ...@@ -1092,6 +1092,7 @@ export default {
recoilMaterialList: [], recoilMaterialList: [],
materialRequestList: [], materialRequestList: [],
materialRequestArrays: [], materialRequestArrays: [],
materialRequests: [],
materialReturnList: [], materialReturnList: [],
materialRequestFormData: { materialRequestFormData: {
itemName: null, itemName: null,
...@@ -2146,6 +2147,7 @@ export default { ...@@ -2146,6 +2147,7 @@ export default {
}) })
this.materialRequestArrays = this.materialRequestList.concat([]); this.materialRequestArrays = this.materialRequestList.concat([]);
} }
}); });
}, },
materialRequestFormShow(line) { materialRequestFormShow(line) {
...@@ -2238,7 +2240,11 @@ export default { ...@@ -2238,7 +2240,11 @@ export default {
workorderCode: items.text workorderCode: items.text
} }
}) })
this.materialRequestArrays = this.materialRequestList.concat(list); this.materialRequests = this.materialRequestList.concat(list);
this.materialRequestArrays = this.materialRequests.filter((item, index, self) => {
                            return self.findIndex(t => t.itemCode === item.itemCode) === index;
                        });
console.log(materialRequestArrays, 'materialRequestArrays')
} }
}); });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment