Prechádzať zdrojové kódy

fix: 质检计划受托收货单订单总数量字段显示错误, 质检计划选择受托收货单全检未更新样品清单

liujt 9 mesiacov pred
rodič
commit
c1e5137541

+ 1 - 1
src/views/inspectionPlan/components/entrustedDialog.vue

@@ -137,7 +137,7 @@
             minWidth: 140
             minWidth: 140
           },
           },
           {
           {
-            prop: 'orderTotalCount',
+            prop: 'totalCount',
             label: '订单总数量',
             label: '订单总数量',
             align: 'center',
             align: 'center',
             showOverflowTooltip: true,
             showOverflowTooltip: true,

+ 8 - 0
src/views/inspectionPlan/components/new-edit.vue

@@ -912,6 +912,14 @@
         const res = await outInRecordsPage(params);
         const res = await outInRecordsPage(params);
         this.sourceList = res.list || [];
         this.sourceList = res.list || [];
         console.log(res, 'list333');
         console.log(res, 'list333');
+        
+        // 在获取数据后执行后续操作:处理来源清单并设置样品清单
+        if (this.sourceList && this.sourceList.length > 0) {
+          // 处理来源清单数据
+          const processedData = this.proceSources([...this.sourceList]);
+          // 更新样品清单
+          await this.updatePackingList(processedData);
+        }
       },
       },
 
 
       //成品类型检验类型,计划来源库存台账, 生成来源清单
       //成品类型检验类型,计划来源库存台账, 生成来源清单