feat: 添加空置库选项和打印标签功能

- 在WarehouseTree组件中添加showEmpty属性以显示空置库选项
- 在DrillDownTable和search组件中传递showEmpty属性
- 在base面板中添加打印标签功能
- 在correct页面添加创建人选择功能
- 在receive报表页面添加收货计划筛选功能
This commit is contained in:
砂糖
2026-01-12 15:32:09 +08:00
parent c19fee0909
commit b35d739e08
7 changed files with 72 additions and 18 deletions

View File

@@ -17,6 +17,10 @@ export default {
type: String,
default: 'real'
},
showEmpty: {
type: Boolean,
default: false
}
},
data() {
return {
@@ -38,23 +42,19 @@ export default {
}
},
methods: {
loadChildren(node, resolve) {
if (this.warehouseType !== 'real') {
return;
}
if (node.level === 0) {
// resolve(this.handleTree(this.treeData, 'warehouseId', 'parentId'));
} else {
listActualWarehouse({ parentId: node.data.actualWarehouseId }).then(response => {
resolve(response.data);
});
}
},
getWarehouseTree() {
this.loading = true;
if (this.warehouseType === 'real') {
treeActualWarehouseTwoLevel().then(response => {
this.treeData = response.data
const data = response.data;
if (this.showEmpty) {
data.unshift({
actualWarehouseId: '-1',
actualWarehouseName: '空置库',
isLeaf: true
})
}
this.treeData = data;
this.loading = false;
});
} else {