产品,原料和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',
})

View File

@@ -16,12 +16,11 @@
<!-- 提取质保单信息,选择使用ocr还是使用大模型 -->
<el-row :gutter="20">
<!-- <el-col :span="12">
<el-col :span="12">
<div style="height: 300px; border: 1px solid #ccc; border-radius: 10px; padding: 20px; cursor: pointer;" @click="handleOcr">
OCR识别
<img :src="ocrImage" alt="ocr" style="width: 100%; height: 100%;" />
<img :src="ocrImage" alt="ocr" style="height: 100%;" />
</div>
</el-col> -->
</el-col>
<el-col :span="24">
<div style="height: 300px; border: 1px solid #ccc; border-radius: 10px; padding: 20px; cursor: pointer; display: flex; justify-content: center; align-items: center;" @click="handleModel">
<img :src="modelImage" alt="model" style="height: 100%;" />