Jelajahi Sumber

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

mlchen 1 Minggu lalu
induk
melakukan
851b57ea9d
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 2 1
      src/views/bpm/outgoingManagement/outbound.vue

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

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