Prechádzať zdrojové kódy

fix:5403【发货审批】发货审批,删除去删除物品去手动添加,添加的物品不显示,01环境测试

mlchen 1 týždeň pred
rodič
commit
851b57ea9d

+ 2 - 1
src/views/bpm/outgoingManagement/outbound.vue

@@ -865,7 +865,7 @@
       detailData(data, dimension) {
         this.dimension = dimension;
         console.log(this.formData.outInDetailList, data, 'outInDetailList~~~~~');
-        const mergedData = [...(this.formData.outInDetailList || []), ...data];
+        const mergedData = [...this.productList, ...data];
         this.formData.outInDetailList = mergedData;
 
         this.productList = data.map((productItem) => {
@@ -1425,6 +1425,7 @@
         );
 
         this.productList.splice(index, 1);
+        this.formData.outInDetailList = this.productList;
 
         // this.$nextTick(() => {
         //   this.$refs.productListTable?.doLayout()