feat: 添加产品与原材料BOM信息展示功能

- 新增listProductWithBom和listRawMaterialWithBom接口
- 在ProductSelect和RawMaterialSelect组件中展示BOM属性信息
- 优化物料状态显示条件及仓库过滤逻辑
- 更新统计组件查询参数
This commit is contained in:
砂糖
2025-10-31 16:20:03 +08:00
parent 5bd8769a7b
commit d5aaf4e84d
8 changed files with 99 additions and 14 deletions

View File

@@ -86,7 +86,7 @@
<QRCode :content="scope.row.qrcodeRecordId" :size="50" />
</template>
</el-table-column>
<el-table-column label="状态" align="center" prop="status">
<el-table-column label="状态" v-if="showStatus" align="center" prop="status">
<template slot-scope="scope">
<el-select v-model="scope.row.status" placeholder="请选择状态" @change="handleStatusChange(scope.row)">
<el-option v-for="item in dict.type.product_coil_status" :key="item.value" :value="parseInt(item.value)" :label="item.label" />
@@ -307,7 +307,12 @@ export default {
endTime: this.queryParams.updateTime?.[1],
}
listMaterialCoil(query).then(response => {
this.materialCoilList = response.rows;
if (this.querys.warehouseId != 111) {
// 排除掉111仓库的
this.materialCoilList = response.rows.filter(item => item.warehouseId != 111)
} else {
this.materialCoilList = response.rows;
}
this.total = response.total;
this.loading = false;
});