refactor(ui): 将BOM相关术语统一修改为参数
修改所有界面中的BOM、SKU等术语为"参数",包括标签、提示信息、表格列名等。涉及多个组件和视图文件,确保术语一致性。
This commit is contained in:
@@ -448,7 +448,7 @@ export default {
|
||||
return warehouse ? warehouse.warehouseName : '';
|
||||
},
|
||||
|
||||
// 格式化物品名称(添加规格和BOM信息)
|
||||
// 格式化物品名称(添加规格和参数信息)
|
||||
formatItemName(item) {
|
||||
if (!item) return '';
|
||||
|
||||
@@ -464,11 +464,11 @@ export default {
|
||||
specs.push(item.specification);
|
||||
}
|
||||
|
||||
// 2. 添加BOM参数(最多2个)
|
||||
// 2. 添加参数参数(最多2个)
|
||||
if (item.bomItems && item.bomItems.length > 0) {
|
||||
const bomParams = item.bomItems
|
||||
.filter(bomItem => bomItem.attrKey && bomItem.attrValue)
|
||||
.slice(0, 2); // 最多2个BOM参数
|
||||
.slice(0, 2); // 最多2个参数参数
|
||||
|
||||
bomParams.forEach(param => {
|
||||
specs.push(`${param.attrKey}:${param.attrValue}`);
|
||||
@@ -527,21 +527,21 @@ export default {
|
||||
try {
|
||||
this.itemSearchLoading = true;
|
||||
if (itemType === 'raw_material') {
|
||||
// 使用带BOM的接口
|
||||
// 使用带参数的接口
|
||||
const response = await listRawMaterial({
|
||||
pageNum: 1,
|
||||
pageSize: 100,
|
||||
withBom: true // 请求包含BOM信息
|
||||
withBom: true // 请求包含参数信息
|
||||
});
|
||||
if (response.code === 200) {
|
||||
this.rawMaterialList = response.rows || [];
|
||||
}
|
||||
} else if (itemType === 'product') {
|
||||
// 使用带BOM的接口
|
||||
// 使用带参数的接口
|
||||
const response = await listProduct({
|
||||
pageNum: 1,
|
||||
pageSize: 100,
|
||||
withBom: true // 请求包含BOM信息
|
||||
withBom: true // 请求包含参数信息
|
||||
});
|
||||
if (response.code === 200) {
|
||||
this.productList = response.rows || [];
|
||||
@@ -581,7 +581,7 @@ export default {
|
||||
const nameMatch = item.rawMaterialName && item.rawMaterialName.toLowerCase().includes(searchQuery);
|
||||
// 搜索规格
|
||||
const specMatch = item.specification && item.specification.toLowerCase().includes(searchQuery);
|
||||
// 搜索 BOM 参数
|
||||
// 搜索 参数 参数
|
||||
const bomMatch = item.bomItems && item.bomItems.some(bom =>
|
||||
(bom.attrKey && bom.attrKey.toLowerCase().includes(searchQuery)) ||
|
||||
(bom.attrValue && bom.attrValue.toLowerCase().includes(searchQuery))
|
||||
@@ -596,7 +596,7 @@ export default {
|
||||
const nameMatch = item.productName && item.productName.toLowerCase().includes(searchQuery);
|
||||
// 搜索规格
|
||||
const specMatch = item.specification && item.specification.toLowerCase().includes(searchQuery);
|
||||
// 搜索 BOM 参数
|
||||
// 搜索 参数 参数
|
||||
const bomMatch = item.bomItems && item.bomItems.some(bom =>
|
||||
(bom.attrKey && bom.attrKey.toLowerCase().includes(searchQuery)) ||
|
||||
(bom.attrValue && bom.attrValue.toLowerCase().includes(searchQuery))
|
||||
|
||||
Reference in New Issue
Block a user