refactor(wms/report): 移除warehouseOptions的watch监听
立即执行watch可能导致不必要的初始查询,改为手动触发查询更合理
This commit is contained in:
@@ -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() {
|
||||
// 总钢卷数量、总重、均重
|
||||
|
||||
Reference in New Issue
Block a user