Prechádzať zdrojové kódy

fix: 修复委托企业ID的响应式设置问题

liujt 6 mesiacov pred
rodič
commit
cda59944d7
1 zmenil súbory, kde vykonal 2 pridanie a 1 odobranie
  1. 2 1
      src/BIZComponents/inventoryTable.vue

+ 2 - 1
src/BIZComponents/inventoryTable.vue

@@ -1971,7 +1971,8 @@
             // if (supplierObj[item.productId]?.length === 1) {
             //   item.entrustedEnterpriseId = supplierObj[item.productId][0].id;
             // }
-            item.entrustedEnterpriseId = item.entrustedEnterpriseId || undefined;
+            // item.entrustedEnterpriseId = item.entrustedEnterpriseId || undefined;
+            this.$set(item, 'entrustedEnterpriseId', item.entrustedEnterpriseId || '');
             item['customerMark'] = item.customerMark || this.customerMark;
             item['arrivalWay'] = item.arrivalWay || 1;
           });