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

@@ -22,8 +22,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">
@@ -146,7 +146,7 @@ export default {
});
},
getLabel(item) {
// 产品名称[规格](SKU),如果有则写,没有则省略
// 产品名称[规格](参数),如果有则写,没有则省略
if (!item.specification) {
return `${item.productName}(${this.getSku(item)})`
}
@@ -154,9 +154,9 @@ export default {
},
getSku(item) {
const boms = item.bomItems || [];
console.log(boms, '产品BOM');
console.log(boms, '产品参数');
if (!boms.length) {
return '暂无BOM信息';
return '暂无参数信息';
}
// 查找attrKey为'规格'的attrvalue
const specification = boms.find(p => p.attrKey === '规格');
@@ -179,7 +179,7 @@ export default {
if (material) {
sku += '材质:' + material.attrValue + '';
}
console.log(sku, item, boms, '产品SKU');
console.log(sku, item, boms, '产品参数');
return sku;
},
onChange(val) {