diff --git a/klp-ui/src/views/wms/report/template/out.vue b/klp-ui/src/views/wms/report/template/out.vue index a90f18c0..ba029829 100644 --- a/klp-ui/src/views/wms/report/template/out.vue +++ b/klp-ui/src/views/wms/report/template/out.vue @@ -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() { // 总钢卷数量、总重、均重