fix(wms): 修正钢卷选择器筛选条件及显示逻辑

- 统一钢卷选择器的selectType为'product'并添加status过滤
- 修复materialType与selectType的映射关系
- 移除分页组件的rangeMode条件限制
- 更新部分字段显示名称
This commit is contained in:
砂糖
2026-01-15 17:33:54 +08:00
parent 45d09812cf
commit 1b5efc00f6
5 changed files with 15 additions and 7 deletions

View File

@@ -220,7 +220,9 @@ export default {
// 钢卷选择器筛选参数
coilFilters: {
dataType: 1,
materialType: '成品'
materialType: '成品',
selectType: 'product',
status: 0,
},
coilSelectorVisible: false,
loading: false,

View File

@@ -633,7 +633,7 @@ export default {
endTime: this.queryParams.updateTime?.[1],
}
// 如果没有设置itemType则设置为raw_material
query.selectType = this.querys.materialType === '成品' ? 'product' : 'raw_material';
query.selectType = this.querys.materialType === '原料' ? 'raw_material' : 'product';
listMaterialCoil(query).then(response => {
if (this.querys.warehouseId != 111) {
// 排除掉111仓库的