From 8ba27c402f7e61e6615ea092c13132097e405b3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= Date: Mon, 4 Aug 2025 09:19:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=A7=E5=93=81=EF=BC=8C=E5=8E=9F=E6=96=99?= =?UTF-8?q?=E5=92=8Cbom=E6=9B=B4=E6=96=B0=E5=90=8E=E9=87=8D=E6=96=B0?= =?UTF-8?q?=E5=8A=A0=E8=BD=BDstore?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- klp-ui/src/views/wms/bom/components/BomItem.vue | 1 + klp-ui/src/views/wms/bom/components/BomPanel.vue | 2 ++ klp-ui/src/views/wms/product/index.vue | 3 +++ klp-ui/src/views/wms/purchasePlan/panels/merger.vue | 6 +++++- .../src/views/wms/purchasePlan/panels/qualityCerticate.vue | 7 +++---- klp-ui/src/views/wms/rawMaterial/index.vue | 4 +++- 6 files changed, 17 insertions(+), 6 deletions(-) diff --git a/klp-ui/src/views/wms/bom/components/BomItem.vue b/klp-ui/src/views/wms/bom/components/BomItem.vue index d6325751..7e1db32d 100644 --- a/klp-ui/src/views/wms/bom/components/BomItem.vue +++ b/klp-ui/src/views/wms/bom/components/BomItem.vue @@ -238,6 +238,7 @@ export default { this.loading = false; this.getList(); this.$modal.msgSuccess("删除成功"); + this.$store.dispatch('category/getBomMap'); }).catch(() => { }).finally(() => { this.loading = false; diff --git a/klp-ui/src/views/wms/bom/components/BomPanel.vue b/klp-ui/src/views/wms/bom/components/BomPanel.vue index f8f1e349..4e50a2c7 100644 --- a/klp-ui/src/views/wms/bom/components/BomPanel.vue +++ b/klp-ui/src/views/wms/bom/components/BomPanel.vue @@ -134,6 +134,7 @@ export default { bomId: bomData.bomId }); } + this.$store.dispatch('category/getBomMap'); // 触发事件 this.$emit('addBom', bomData); @@ -153,6 +154,7 @@ export default { bomCode: this.info.bomCode }).then(_ => { this.$message.success('更新BOM成功'); + this.$store.dispatch('category/getBomMap'); }) }, diff --git a/klp-ui/src/views/wms/product/index.vue b/klp-ui/src/views/wms/product/index.vue index c591639b..745da200 100644 --- a/klp-ui/src/views/wms/product/index.vue +++ b/klp-ui/src/views/wms/product/index.vue @@ -430,6 +430,7 @@ export default { this.$modal.msgSuccess("修改成功"); this.open = false; this.getList(); + this.$store.dispatch('category/getProductMap'); }).finally(() => { this.buttonLoading = false; }); @@ -438,6 +439,7 @@ export default { this.$modal.msgSuccess("新增成功"); this.open = false; this.getList(); + this.$store.dispatch('category/getProductMap'); }).finally(() => { this.buttonLoading = false; }); @@ -455,6 +457,7 @@ export default { this.loading = false; this.getList(); this.$modal.msgSuccess("删除成功"); + this.$store.dispatch('category/getProductMap'); }).catch(() => { }).finally(() => { this.loading = false; diff --git a/klp-ui/src/views/wms/purchasePlan/panels/merger.vue b/klp-ui/src/views/wms/purchasePlan/panels/merger.vue index 9a8ed2d8..e3e19474 100644 --- a/klp-ui/src/views/wms/purchasePlan/panels/merger.vue +++ b/klp-ui/src/views/wms/purchasePlan/panels/merger.vue @@ -104,7 +104,8 @@ export default { attrValue: this.newResult[i].attrValue, }) } - + this.$store.dispatch('category/getBomMap'); + this.$store.dispatch('category/getRawMaterialMap'); } else if (this.uploadQualityCertificateForm.qualityCertificateType === 3) { console.log('创建新物料'); // 创建一个新的BOM @@ -132,7 +133,10 @@ export default { detailId: this.info.detailId, rawMaterialId: newMaterial.data.rawMaterialId, }) + this.$store.dispatch('category/getBomMap'); + this.$store.dispatch('category/getRawMaterialMap'); } + this.$emit('confirm', { status: 'success', }) diff --git a/klp-ui/src/views/wms/purchasePlan/panels/qualityCerticate.vue b/klp-ui/src/views/wms/purchasePlan/panels/qualityCerticate.vue index 7ad62657..4223c70a 100644 --- a/klp-ui/src/views/wms/purchasePlan/panels/qualityCerticate.vue +++ b/klp-ui/src/views/wms/purchasePlan/panels/qualityCerticate.vue @@ -16,12 +16,11 @@ - +
model diff --git a/klp-ui/src/views/wms/rawMaterial/index.vue b/klp-ui/src/views/wms/rawMaterial/index.vue index a45c32a5..94372dfb 100644 --- a/klp-ui/src/views/wms/rawMaterial/index.vue +++ b/klp-ui/src/views/wms/rawMaterial/index.vue @@ -486,6 +486,7 @@ export default { this.$modal.msgSuccess("修改成功"); this.open = false; this.getList(); + this.$store.dispatch('category/getRawMaterialMap'); }).finally(() => { this.buttonLoading = false; }); @@ -494,6 +495,7 @@ export default { this.$modal.msgSuccess("新增成功"); this.open = false; this.getList(); + this.$store.dispatch('category/getRawMaterialMap'); }).finally(() => { this.buttonLoading = false; }); @@ -511,7 +513,7 @@ export default { this.loading = false; this.getList(); this.$modal.msgSuccess("删除成功"); - }).catch(() => { + this.$store.dispatch('category/getRawMaterialMap'); }).finally(() => { this.loading = false; });