Răsfoiți Sursa

feat(入库审批): 添加物品颜色和机型字典请求并优化详情列表处理

liujt 6 luni în urmă
părinte
comite
dea10f4d2a

+ 1 - 1
src/views/bpm/stockManagement/details.vue

@@ -873,7 +873,7 @@
         }
         console.log('===', res);
 
-        this.productList = res.outInDetailList.map(
+        this.productList = res?.outInDetailList?.map(
           (productItem, productIndex) => {
             // if (this.isIds) {
             //   productItem['bizNo'] = res.bizNo[productIndex];

+ 2 - 0
src/views/bpm/stockManagement/storage.vue

@@ -1392,6 +1392,8 @@
     async created() {
       await this.requestDict('产地');
       await this.requestDict('不拆物料层规格');
+      await this.requestDict('物品颜色');
+      await this.requestDict('物品机型');
       await this.getFieldModel();
       await this.getListItems();
       await this.initFormData();