fix(wms): 修复多个模块中的逻辑问题和数据格式

修复delivery.vue导出时缺少状态参数的问题
修正product/index.vue和rawMaterial/index.vue中productCode生成逻辑
放宽ship.vue中钢卷质量状态的校验范围
为ActualWarehouseSelect组件添加空库位筛选功能
This commit is contained in:
砂糖
2026-01-12 13:54:50 +08:00
parent aee5295ff1
commit c19fee0909
5 changed files with 28 additions and 6 deletions

View File

@@ -53,6 +53,11 @@ export default {
size: {
type: String,
default: 'small'
},
// 展示空库位筛选条件
showEmpty: {
type: Boolean,
default: false
}
},
data() {
@@ -129,6 +134,17 @@ export default {
return nodeData;
});
if (this.showEmpty && level === 0) {
list.unshift({
value: '-1',
label: '空库位',
leaf: true,
disabled: false,
raw: {},
level: 1
});
}
resolve(list);
}).catch(err => {
console.error('加载仓库树失败:', err);