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