fix(wms报表): 修复仓库选项变化时未更新仓库ID的问题

取消watch中handleQuery的调用并添加immediate选项,确保仓库ID能正确同步
This commit is contained in:
2026-05-07 11:35:38 +08:00
parent 34418f14ca
commit 3511a85416

View File

@@ -165,16 +165,17 @@ export default {
outputColumns: [], outputColumns: [],
} }
}, },
// watch: { watch: {
// warehouseOptions: { warehouseOptions: {
// handler(newVal, oldVal) { handler(newVal, oldVal) {
// if (newVal !== oldVal) { if (newVal !== oldVal) {
// this.warehouseIds = newVal.map(item => item.value) this.warehouseIds = newVal.map(item => item.value)
// this.handleQuery() // this.handleQuery()
// } }
// }, },
// } immediate: true,
// }, }
},
computed: { computed: {
summary() { summary() {
// 总钢卷数量、总重、均重 // 总钢卷数量、总重、均重