ソースを参照

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

liujt 6 ヶ月 前
コミット
cda59944d7
1 ファイル変更2 行追加1 行削除
  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;
           });