From 6843b10472482b305b5580cc2f5cdbb97fb9a203 Mon Sep 17 00:00:00 2001
From: haoyahui <2032914783@qq.com>
Date: 星期一, 13 十一月 2023 17:31:43 +0800
Subject: [PATCH] 调拨,库存盘点,报废管理,台账管理

---
 admin-web/src/views/stock/procure/purchaseOrder/edit.vue |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/admin-web/src/views/stock/procure/purchaseOrder/edit.vue b/admin-web/src/views/stock/procure/purchaseOrder/edit.vue
index 259b8c8..121b417 100644
--- a/admin-web/src/views/stock/procure/purchaseOrder/edit.vue
+++ b/admin-web/src/views/stock/procure/purchaseOrder/edit.vue
@@ -224,7 +224,6 @@
         procureGoods: [],
       },
       goodsItem: {
-        whFormProcureId: '', // 閲囪喘鍗旾D
         baseCategoryIds: '', // 鍒嗙被缂栧彿鏁扮粍
         baseCategoryId: '', // 鍒嗙被缂栧彿
         baseGoodsTemplateId: '', // 鐗╁搧妯$増缂栧彿
@@ -288,13 +287,13 @@
         this.formData.procureTime = this.formData.procureTime.toString();
         this.formData.procureGoods.map((item, index) => {
           // 鏍规嵁瀛愰泦ID鎷兼帴鐗╁搧鍒嗙被鍒楄〃
-          let pIds = this.findParentIds(this.categoryOptions, item.baseCategoryId);
-          item.baseCategoryIds = [...pIds, item.baseCategoryId];
+          item.baseCategoryIds = this.findParentIds(this.categoryOptions, item.baseCategoryId);
           this.$set(this.formData.procureGoods[index],'modelsIds',item.models.map((v) => v.baseGoodsModelsId))
           this.getgoodsTemplate(item.baseCategoryId, index);
           this.getgoodsModel(item.baseGoodsTemplateId, index);
           return item
         });
+        console.log('this.formData.procureGoods',this.formData.procureGoods)
       } else {
         this.formData.procureGoods.push(JSON.parse(JSON.stringify(this.goodsItem)));
       }

--
Gitblit v1.9.1