fix(wms): 修复多个模块中的逻辑问题和数据格式
修复delivery.vue导出时缺少状态参数的问题 修正product/index.vue和rawMaterial/index.vue中productCode生成逻辑 放宽ship.vue中钢卷质量状态的校验范围 为ActualWarehouseSelect组件添加空库位筛选功能
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user