refactor(ui): 将BOM相关术语统一修改为参数

修改所有界面中的BOM、SKU等术语为"参数",包括标签、提示信息、表格列名等。涉及多个组件和视图文件,确保术语一致性。
This commit is contained in:
砂糖
2025-11-13 13:29:19 +08:00
parent 6bde071842
commit 754d6d762a
37 changed files with 812 additions and 124 deletions

View File

@@ -10,7 +10,7 @@
class="create-button"
>
<template v-if="!createLoading">
<i class="el-icon-plus"></i> 创建BOM
<i class="el-icon-plus"></i> 创建参数
</template>
<template v-else>
创建中...
@@ -32,10 +32,10 @@
<div v-if="data && !loading">
<el-form label-width="100px">
<el-form-item label="BOM名称">
<el-form-item label="参数名称">
<el-input v-model="info.bomName" @blur="handleUpdateBom"/>
</el-form-item>
<el-form-item label="BOM编码">
<el-form-item label="参数编码">
<el-input v-model="info.bomCode" @blur="handleUpdateBom"/>
</el-form-item>
</el-form>
@@ -102,7 +102,7 @@ export default {
this.info = response2.data;
} catch (err) {
this.error = err.message || '请求失败,请重试';
console.error('获取BOM详情失败:', err);
console.error('获取参数详情失败:', err);
} finally {
this.loading = false;
}
@@ -115,11 +115,11 @@ export default {
try {
this.createLoading = true;
const bomResponse = await addBom({
bomName: (this.type == 'product' ? '产品BOM' : '原材料BOM') + new Date().getTime(),
bomName: (this.type == 'product' ? '产品参数' : '原材料参数') + new Date().getTime(),
bomCode: (this.type == 'product' ? 'P' : 'R') + new Date().getTime()
});
this.$message.success('创建BOM成功');
this.$message.success('创建参数成功');
const bomData = bomResponse.data;
// 根据类型更新产品/原材料
@@ -147,13 +147,13 @@ export default {
},
handleUpdateBom() {
this.$message.warning('正在更新BOM...');
this.$message.warning('正在更新参数...');
updateBom({
bomId: this.id,
bomName: this.info.bomName,
bomCode: this.info.bomCode
}).then(_ => {
this.$message.success('更新BOM成功');
this.$message.success('更新参数成功');
this.$store.dispatch('category/getBomMap');
})
},