refactor(wms/report): 移除warehouseOptions的watch监听

立即执行watch可能导致不必要的初始查询,改为手动触发查询更合理
This commit is contained in:
2026-05-05 15:19:34 +08:00
parent fa198181ee
commit 8c1ba2bf07

View File

@@ -165,17 +165,16 @@ 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() {
// 总钢卷数量、总重、均重 // 总钢卷数量、总重、均重