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

@@ -21,8 +21,8 @@
<el-steps align-center :active="activeStep" finish-status="success">
<!-- 新增原材料的步骤 -->
<el-step title="创建原材料"></el-step>
<!-- 创建BOM的步骤 -->
<el-step title="填写BOM信息"></el-step>
<!-- 创建参数的步骤 -->
<el-step title="填写参数信息"></el-step>
</el-steps>
<el-form ref="form" v-if="activeStep === 0" :model="addForm" :rules="rules" label-width="120px">
@@ -150,7 +150,7 @@ export default {
this.$emit('change', rawMaterial);
},
getLabel(item) {
// 原材料名称[规格](SKU),如果有则写,没有则省略
// 原材料名称[规格](参数),如果有则写,没有则省略
if (!item.specification) {
return `${item.rawMaterialName}(${this.getSku(item)})`
}
@@ -159,7 +159,7 @@ export default {
getSku(item) {
const boms = item.bomItems;
if (!boms || boms.length === 0) {
return '暂无BOM信息';
return '暂无参数信息';
}
// 查找attrKey为'规格'的attrvalue
const specification = boms.find(p => p.attrKey === '规格');