Преглед на файлове

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;
           });