Parcourir la source

fix: 更新报工详情逻辑,确保直接使用后台接口返回的数据

xieyong il y a 1 semaine
Parent
commit
bcb83024d1

+ 2 - 1
src/views/produce/components/jobBooking/components/jobBom.vue

@@ -261,7 +261,8 @@
           if (newVal.product && newVal.product.length !== 0) {
             const product = newVal.product;
             // 报工详情不与报工信息联动,直接使用后台接口返回的数据
-            if(newVal.workReportInfo && Object.keys(newVal.workReportInfo).length) return;
+            console.log('更新product', newVal.workReportInfo);
+            if(newVal.workReportInfo && newVal.workReportInfo.id) return;
             const finalList = product.some((it) => it.confirm == 1)
               ? product.filter((it) => it.confirm == 1)
               : product;