feat(wms盘库): 完成多项功能升级与体验优化

1. 新增仓库选择组件多选支持,适配批量库区操作
2. 售后单新增自动生成编号与当前日期填充
3. 盘点计划新增流程审批操作按钮,支持驳回与审批通过
4. 优化库区绑定页面,支持编辑删除已绑定库区
5. 替换人员选择为可搜索下拉框,支持多选参与人
6. 新增驳回审批弹窗,提供快捷驳回理由
7. 优化表单提交逻辑,适配多库区数据格式
This commit is contained in:
2026-06-27 14:38:33 +08:00
parent 88d2d864b2
commit 3d5c0a7281
7 changed files with 217 additions and 73 deletions

View File

@@ -5,6 +5,7 @@
:clearable="clearable"
:disabled="disabled"
:size="size"
:multiple="multiple"
filterable
@change="onChange"
style="width: 100%"
@@ -30,9 +31,13 @@ export default {
name: 'WarehouseSelect',
props: {
value: {
type: [Number, String, null],
type: [Number, String, Array, null],
default: null
},
multiple: {
type: Boolean,
default: false
},
placeholder: {
type: String,
default: '请选择仓库'
@@ -62,10 +67,12 @@ export default {
},
watch: {
value(val) {
console.log('[WarehouseSelect] value changed:', val, 'type:', typeof val, 'isArray:', Array.isArray(val));
this.selected = val;
}
},
mounted() {
console.log('[WarehouseSelect] mounted, initial value:', this.value, 'multiple:', this.multiple);
this.loadOptions();
},
methods: {
@@ -136,7 +143,11 @@ export default {
},
onChange(val) {
if (val) {
this.updateWarehouseUsage(val);
if (this.multiple && Array.isArray(val)) {
val.forEach(function(id) { this.updateWarehouseUsage(id); }, this);
} else {
this.updateWarehouseUsage(val);
}
}
this.$emit('input', val);
this.$emit('change', val);