产品,原料和bom更新后重新加载store
This commit is contained in:
@@ -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',
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user