yusheng пре 10 месеци
родитељ
комит
47849412a6

+ 8 - 0
src/views/purchasingManage/purchaseOrder/invoice/components/inventoryTable.vue

@@ -1016,6 +1016,11 @@
           this.$set(parasm, 'sendTotalWeight', 0);
           this.$set(parasm, 'increaseTotalWeight', 0);
           this.$set(parasm, 'goodsLevel', item.level);
+          this.$set(
+            parasm,
+            'categoryRootLevelId',
+            item.categoryLevelPathIdParent
+          );
 
           this.$set(
             parasm,
@@ -1054,6 +1059,7 @@
           }
           this.$set(parasm, 'provenance', item.purchaseOrigins || []);
           this.form.datasource.push(row);
+          this.warehouseChange(index, parasm);
         });
       },
       getTotalCount(row) {
@@ -1192,6 +1198,8 @@
       },
       // 添加
       handlAdd() {
+        this.$refs.productListMainRef.open('', -1);
+
         if (!this.orderId) return this.$message.error('请先选择订单');
         if (orderSourceType.includes(this.sourceType)) {
           this.$refs.productListMainRef.open('', -1);