refactor(wms): 移除materialType限制并统一使用selectType

- 在ship.vue中移除coilFilters的materialType默认值
- 在base.vue和CoilSelector中将itemType改为selectType
- 在ActualWarehouseSelect组件中添加cascader的filterable属性
This commit is contained in:
砂糖
2025-12-10 15:11:28 +08:00
parent 6c46c6cfe6
commit 5c5beb01c0
4 changed files with 4 additions and 6 deletions

View File

@@ -124,7 +124,7 @@ export default {
pageSize: 10,
currentCoilNo: null,
grade: null,
itemType: 'raw_material',
selectType: 'raw_material',
dataType: 1 // 只查询当前数据,不查询历史数据
}
};
@@ -252,7 +252,7 @@ export default {
currentCoilNo: null,
grade: null,
dataType: 1,
itemType: 'raw_material',
selectType: 'raw_material',
};
this.getList();
},

View File

@@ -4,6 +4,7 @@
:style="wrapperStyle"
>
<el-cascader
filterable
ref="cascader"
v-model="innerPath"
:props="cascaderProps"

View File

@@ -213,7 +213,6 @@ export default {
// 钢卷选择器筛选参数
coilFilters: {
dataType: 1,
materialType: '成品'
},
coilSelectorVisible: false,
loading: false,

View File

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