产品,原料和bom更新后重新加载store
This commit is contained in:
@@ -238,6 +238,7 @@ export default {
|
|||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.getList();
|
this.getList();
|
||||||
this.$modal.msgSuccess("删除成功");
|
this.$modal.msgSuccess("删除成功");
|
||||||
|
this.$store.dispatch('category/getBomMap');
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
|
|||||||
@@ -134,6 +134,7 @@ export default {
|
|||||||
bomId: bomData.bomId
|
bomId: bomData.bomId
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
this.$store.dispatch('category/getBomMap');
|
||||||
|
|
||||||
// 触发事件
|
// 触发事件
|
||||||
this.$emit('addBom', bomData);
|
this.$emit('addBom', bomData);
|
||||||
@@ -153,6 +154,7 @@ export default {
|
|||||||
bomCode: this.info.bomCode
|
bomCode: this.info.bomCode
|
||||||
}).then(_ => {
|
}).then(_ => {
|
||||||
this.$message.success('更新BOM成功');
|
this.$message.success('更新BOM成功');
|
||||||
|
this.$store.dispatch('category/getBomMap');
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -430,6 +430,7 @@ export default {
|
|||||||
this.$modal.msgSuccess("修改成功");
|
this.$modal.msgSuccess("修改成功");
|
||||||
this.open = false;
|
this.open = false;
|
||||||
this.getList();
|
this.getList();
|
||||||
|
this.$store.dispatch('category/getProductMap');
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
this.buttonLoading = false;
|
this.buttonLoading = false;
|
||||||
});
|
});
|
||||||
@@ -438,6 +439,7 @@ export default {
|
|||||||
this.$modal.msgSuccess("新增成功");
|
this.$modal.msgSuccess("新增成功");
|
||||||
this.open = false;
|
this.open = false;
|
||||||
this.getList();
|
this.getList();
|
||||||
|
this.$store.dispatch('category/getProductMap');
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
this.buttonLoading = false;
|
this.buttonLoading = false;
|
||||||
});
|
});
|
||||||
@@ -455,6 +457,7 @@ export default {
|
|||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.getList();
|
this.getList();
|
||||||
this.$modal.msgSuccess("删除成功");
|
this.$modal.msgSuccess("删除成功");
|
||||||
|
this.$store.dispatch('category/getProductMap');
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
|
|||||||
@@ -104,7 +104,8 @@ export default {
|
|||||||
attrValue: this.newResult[i].attrValue,
|
attrValue: this.newResult[i].attrValue,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
this.$store.dispatch('category/getBomMap');
|
||||||
|
this.$store.dispatch('category/getRawMaterialMap');
|
||||||
} else if (this.uploadQualityCertificateForm.qualityCertificateType === 3) {
|
} else if (this.uploadQualityCertificateForm.qualityCertificateType === 3) {
|
||||||
console.log('创建新物料');
|
console.log('创建新物料');
|
||||||
// 创建一个新的BOM
|
// 创建一个新的BOM
|
||||||
@@ -132,7 +133,10 @@ export default {
|
|||||||
detailId: this.info.detailId,
|
detailId: this.info.detailId,
|
||||||
rawMaterialId: newMaterial.data.rawMaterialId,
|
rawMaterialId: newMaterial.data.rawMaterialId,
|
||||||
})
|
})
|
||||||
|
this.$store.dispatch('category/getBomMap');
|
||||||
|
this.$store.dispatch('category/getRawMaterialMap');
|
||||||
}
|
}
|
||||||
|
|
||||||
this.$emit('confirm', {
|
this.$emit('confirm', {
|
||||||
status: 'success',
|
status: 'success',
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -16,12 +16,11 @@
|
|||||||
|
|
||||||
<!-- 提取质保单信息,选择使用ocr还是使用大模型 -->
|
<!-- 提取质保单信息,选择使用ocr还是使用大模型 -->
|
||||||
<el-row :gutter="20">
|
<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">
|
<div style="height: 300px; border: 1px solid #ccc; border-radius: 10px; padding: 20px; cursor: pointer;" @click="handleOcr">
|
||||||
OCR识别
|
<img :src="ocrImage" alt="ocr" style="height: 100%;" />
|
||||||
<img :src="ocrImage" alt="ocr" style="width: 100%; height: 100%;" />
|
|
||||||
</div>
|
</div>
|
||||||
</el-col> -->
|
</el-col>
|
||||||
<el-col :span="24">
|
<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">
|
<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%;" />
|
<img :src="modelImage" alt="model" style="height: 100%;" />
|
||||||
|
|||||||
@@ -486,6 +486,7 @@ export default {
|
|||||||
this.$modal.msgSuccess("修改成功");
|
this.$modal.msgSuccess("修改成功");
|
||||||
this.open = false;
|
this.open = false;
|
||||||
this.getList();
|
this.getList();
|
||||||
|
this.$store.dispatch('category/getRawMaterialMap');
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
this.buttonLoading = false;
|
this.buttonLoading = false;
|
||||||
});
|
});
|
||||||
@@ -494,6 +495,7 @@ export default {
|
|||||||
this.$modal.msgSuccess("新增成功");
|
this.$modal.msgSuccess("新增成功");
|
||||||
this.open = false;
|
this.open = false;
|
||||||
this.getList();
|
this.getList();
|
||||||
|
this.$store.dispatch('category/getRawMaterialMap');
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
this.buttonLoading = false;
|
this.buttonLoading = false;
|
||||||
});
|
});
|
||||||
@@ -511,7 +513,7 @@ export default {
|
|||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.getList();
|
this.getList();
|
||||||
this.$modal.msgSuccess("删除成功");
|
this.$modal.msgSuccess("删除成功");
|
||||||
}).catch(() => {
|
this.$store.dispatch('category/getRawMaterialMap');
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user