fix(wms报表): 修复仓库选项变化时未更新仓库ID的问题
取消watch中handleQuery的调用并添加immediate选项,确保仓库ID能正确同步
This commit is contained in:
@@ -165,16 +165,17 @@ export default {
|
||||
outputColumns: [],
|
||||
}
|
||||
},
|
||||
// watch: {
|
||||
// warehouseOptions: {
|
||||
// handler(newVal, oldVal) {
|
||||
// if (newVal !== oldVal) {
|
||||
// this.warehouseIds = newVal.map(item => item.value)
|
||||
// this.handleQuery()
|
||||
// }
|
||||
// },
|
||||
// }
|
||||
// },
|
||||
watch: {
|
||||
warehouseOptions: {
|
||||
handler(newVal, oldVal) {
|
||||
if (newVal !== oldVal) {
|
||||
this.warehouseIds = newVal.map(item => item.value)
|
||||
// this.handleQuery()
|
||||
}
|
||||
},
|
||||
immediate: true,
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
summary() {
|
||||
// 总钢卷数量、总重、均重
|
||||
|
||||
Reference in New Issue
Block a user