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: [],
}
},
watch: {
warehouseOptions: {
handler(newVal, oldVal) {
if (newVal !== oldVal) {
this.warehouseIds = newVal.map(item => item.value)
this.handleQuery()
}
},
immediate: true,
}
},
// watch: {
// warehouseOptions: {
// handler(newVal, oldVal) {
// if (newVal !== oldVal) {
// this.warehouseIds = newVal.map(item => item.value)
// this.handleQuery()
// }
// },
// }
// },
computed: {
summary() {
// 总钢卷数量、总重、均重