diff --git a/klp-ui/src/views/wms/report/zha/comprehensive.vue b/klp-ui/src/views/wms/report/zha/comprehensive.vue index 5b96adb3..4c8d75e7 100644 --- a/klp-ui/src/views/wms/report/zha/comprehensive.vue +++ b/klp-ui/src/views/wms/report/zha/comprehensive.vue @@ -36,11 +36,12 @@ export default { }).then(res => { console.log(res) if (res.rows.length == 1) { - this.actionTypes = res.rows[0].actionTypes - this.actionQueryParams = res.rows[0].actionQueryParams - this.baseQueryParams = res.rows[0].baseQueryParams - this.warehouseOptions = res.rows[0].warehouseOptions - this.productionLine = res.rows[0].productionLine + const config = JSON.parse(res.rows[0].configJson) + this.actionTypes = config.actionTypes + this.actionQueryParams = config.actionQueryParams + this.baseQueryParams = config.baseQueryParams + this.warehouseOptions = config.warehouseOptions + this.productionLine = config.productionLine this.loading = false } }) diff --git a/klp-ui/src/views/wms/report/zha/day.vue b/klp-ui/src/views/wms/report/zha/day.vue index 621d0424..70bb1b93 100644 --- a/klp-ui/src/views/wms/report/zha/day.vue +++ b/klp-ui/src/views/wms/report/zha/day.vue @@ -36,11 +36,12 @@ export default { }).then(res => { console.log(res) if (res.rows.length == 1) { - this.actionTypes = res.rows[0].actionTypes - this.actionQueryParams = res.rows[0].actionQueryParams - this.baseQueryParams = res.rows[0].baseQueryParams - this.warehouseOptions = res.rows[0].warehouseOptions - this.productionLine = res.rows[0].productionLine + const config = JSON.parse(res.rows[0].configJson) + this.actionTypes = config.actionTypes + this.actionQueryParams = config.actionQueryParams + this.baseQueryParams = config.baseQueryParams + this.warehouseOptions = config.warehouseOptions + this.productionLine = config.productionLine this.loading = false } }) diff --git a/klp-ui/src/views/wms/report/zha/loss.vue b/klp-ui/src/views/wms/report/zha/loss.vue index d7354b7e..89bfb1c5 100644 --- a/klp-ui/src/views/wms/report/zha/loss.vue +++ b/klp-ui/src/views/wms/report/zha/loss.vue @@ -36,11 +36,12 @@ export default { }).then(res => { console.log(res) if (res.rows.length == 1) { - this.actionTypes = res.rows[0].actionTypes - this.actionQueryParams = res.rows[0].actionQueryParams - this.baseQueryParams = res.rows[0].baseQueryParams - this.warehouseOptions = res.rows[0].warehouseOptions - this.productionLine = res.rows[0].productionLine + const config = JSON.parse(res.rows[0].configJson) + this.actionTypes = config.actionTypes + this.actionQueryParams = config.actionQueryParams + this.baseQueryParams = config.baseQueryParams + this.warehouseOptions = config.warehouseOptions + this.productionLine = config.productionLine this.loading = false } }) diff --git a/klp-ui/src/views/wms/report/zha/month.vue b/klp-ui/src/views/wms/report/zha/month.vue index d4564019..287f89a5 100644 --- a/klp-ui/src/views/wms/report/zha/month.vue +++ b/klp-ui/src/views/wms/report/zha/month.vue @@ -36,11 +36,12 @@ export default { }).then(res => { console.log(res) if (res.rows.length == 1) { - this.actionTypes = res.rows[0].actionTypes - this.actionQueryParams = res.rows[0].actionQueryParams - this.baseQueryParams = res.rows[0].baseQueryParams - this.warehouseOptions = res.rows[0].warehouseOptions - this.productionLine = res.rows[0].productionLine + const config = JSON.parse(res.rows[0].configJson) + this.actionTypes = config.actionTypes + this.actionQueryParams = config.actionQueryParams + this.baseQueryParams = config.baseQueryParams + this.warehouseOptions = config.warehouseOptions + this.productionLine = config.productionLine this.loading = false } }) diff --git a/klp-ui/src/views/wms/report/zha/out.vue b/klp-ui/src/views/wms/report/zha/out.vue index 3fcb2491..22ef5593 100644 --- a/klp-ui/src/views/wms/report/zha/out.vue +++ b/klp-ui/src/views/wms/report/zha/out.vue @@ -34,9 +34,10 @@ export default { }).then(res => { console.log(res) if (res.rows.length == 1) { - this.baseQueryParams = res.rows[0].baseQueryParams - this.warehouseOptions = res.rows[0].warehouseOptions - this.productionLine = res.rows[0].productionLine + const config = JSON.parse(res.rows[0].configJson) + this.baseQueryParams = config.baseQueryParams + this.warehouseOptions = config.warehouseOptions + this.productionLine = config.productionLine this.loading = false } }) diff --git a/klp-ui/src/views/wms/report/zha/team.vue b/klp-ui/src/views/wms/report/zha/team.vue index 44a3e292..edf11dcf 100644 --- a/klp-ui/src/views/wms/report/zha/team.vue +++ b/klp-ui/src/views/wms/report/zha/team.vue @@ -36,11 +36,12 @@ export default { }).then(res => { console.log(res) if (res.rows.length == 1) { - this.actionTypes = res.rows[0].actionTypes - this.actionQueryParams = res.rows[0].actionQueryParams - this.baseQueryParams = res.rows[0].baseQueryParams - this.warehouseOptions = res.rows[0].warehouseOptions - this.productionLine = res.rows[0].productionLine + const config = JSON.parse(res.rows[0].configJson) + this.actionTypes = config.actionTypes + this.actionQueryParams = config.actionQueryParams + this.baseQueryParams = config.baseQueryParams + this.warehouseOptions = config.warehouseOptions + this.productionLine = config.productionLine this.loading = false } }) diff --git a/klp-ui/src/views/wms/report/zha/year.vue b/klp-ui/src/views/wms/report/zha/year.vue index b43bb6fb..5b76a205 100644 --- a/klp-ui/src/views/wms/report/zha/year.vue +++ b/klp-ui/src/views/wms/report/zha/year.vue @@ -36,11 +36,12 @@ export default { }).then(res => { console.log(res) if (res.rows.length == 1) { - this.actionTypes = res.rows[0].actionTypes - this.actionQueryParams = res.rows[0].actionQueryParams - this.baseQueryParams = res.rows[0].baseQueryParams - this.warehouseOptions = res.rows[0].warehouseOptions - this.productionLine = res.rows[0].productionLine + const config = JSON.parse(res.rows[0].configJson) + this.actionTypes = config.actionTypes + this.actionQueryParams = config.actionQueryParams + this.baseQueryParams = config.baseQueryParams + this.warehouseOptions = config.warehouseOptions + this.productionLine = config.productionLine this.loading = false } })