产品,原料和bom更新后重新加载store

This commit is contained in:
砂糖
2025-08-04 09:19:01 +08:00
parent cb0c37f041
commit 8ba27c402f
6 changed files with 17 additions and 6 deletions

View File

@@ -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',
})