瀏覽代碼

feat(生产退料入库): 添加对多产品类型的支持并完善详情数据映射

liujt 5 月之前
父節點
當前提交
792ccd90ea
共有 1 個文件被更改,包括 10 次插入1 次删除
  1. 10 1
      src/views/bpm/handleTask/components/productionWarehousing/detailDialog.vue

+ 10 - 1
src/views/bpm/handleTask/components/productionWarehousing/detailDialog.vue

@@ -72,6 +72,7 @@
         v-if="form.code && !isDetail"
         :sourceBizNo="form.code"
         :detailList="form.detailList"
+        :isMoreProduct="form.type == 3 ? true : false"
       ></add>
       <add
         ref="add"
@@ -121,7 +122,8 @@
         detailData: {},
         totalPackage: '',
         totalCount: '',
-        isDetail: false
+        isDetail: false,
+        dataSource: []
       };
     },
     async created() {
@@ -192,6 +194,13 @@
           this.totalCount =
             this.form.totalCount + this.form?.detailList[0]?.measuringUnit;
           this.detailData = data;
+          this.form.detailList = data.detailList.map(item => {
+            return {
+              ...item,
+              productName: item.categoryName,
+              productCode: item.categoryCode,
+            }
+          });
         }
       }
     }