Răsfoiți Sursa

bom Id错误

yusheng 11 ore în urmă
părinte
comite
c3dc112242

+ 1 - 1
src/views/purchasingManage/purchaseNeedManage/components/inventoryTable.vue

@@ -891,7 +891,7 @@
           let row = JSON.parse(JSON.stringify(this.defaultForm));
           row.key = this.form.datasource.length + 1;
           let parasm = idx == -1 ? row : this.form.datasource[i];
-          this.$set(parasm, 'productId', item.id);
+          this.$set(parasm, 'productId', item.categoryId);
           // this.$set(parasm, 'id', item.id);
           this.$set(parasm, 'categoryName', item.name);
           this.$set(parasm, 'productCategoryId', item.categoryLevelId);

+ 3 - 3
src/views/purchasingManage/purchasePlanManage/components/inventoryTable.vue

@@ -1102,7 +1102,7 @@
           let row = JSON.parse(JSON.stringify(this.defaultForm));
           row.key = this.form.datasource.length + 1;
           let parasm = idx == -1 ? row : this.form.datasource[i];
-          this.$set(parasm, 'productId', item.id);
+          this.$set(parasm, 'productId', item.categoryId);
           // this.$set(parasm, 'id', item.id);
           this.$set(parasm, 'categoryName', item.name);
           this.$set(parasm, 'productCategoryId', item.categoryLevelId);
@@ -1125,7 +1125,7 @@
           this.$set(parasm, 'produceType', item.componentAttribute);
           this.$set(parasm, 'singleWeight', item.roughWeight);
           this.$set(parasm, 'goodsLevel', item.goodsLevel);
-          this.$set(parasm, 'approvalNumber', item.extField.approvalNumber);
+          this.$set(parasm, 'approvalNumber', item.extField?.approvalNumber);
           this.$set(parasm, 'supplierList', item.supplierList);
           this.$set(parasm, 'supplierCode', item.supplierCode);
           this.$set(parasm, 'supplierId', item.supplierId);
@@ -1139,7 +1139,7 @@
           this.$set(
             parasm,
             'packingSpecification',
-            item.extField.packingSpecification
+            item.extField?.packingSpecification
           );
           this.$set(
             parasm,