2026-02-12 09:58:15 +08:00
|
|
|
<template>
|
2026-05-25 16:19:00 +08:00
|
|
|
<div>
|
|
|
|
|
<MonthTemplate v-if="!loading" :actionTypes="actionTypes" :actionQueryParams="actionQueryParams"
|
|
|
|
|
:baseQueryParams="baseQueryParams" :warehouseOptions="warehouseOptions" :productionLine="productionLine" />
|
|
|
|
|
<el-empty v-else description="正在加载报表配置..." />
|
|
|
|
|
</div>
|
2026-02-12 09:58:15 +08:00
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
2026-03-18 15:41:09 +08:00
|
|
|
import MonthTemplate from '@/views/wms/report/template/month.vue'
|
2026-05-25 16:19:00 +08:00
|
|
|
import { listReportConfig } from '@/api/wms/reportConfig.js'
|
2026-02-12 09:58:15 +08:00
|
|
|
|
|
|
|
|
export default {
|
2026-03-18 15:41:09 +08:00
|
|
|
name: 'MonthReport',
|
2026-02-12 09:58:15 +08:00
|
|
|
components: {
|
2026-03-18 15:41:09 +08:00
|
|
|
MonthTemplate,
|
2026-02-12 09:58:15 +08:00
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
2026-05-25 16:19:00 +08:00
|
|
|
loading: true,
|
|
|
|
|
actionTypes: [],
|
|
|
|
|
actionQueryParams: {},
|
|
|
|
|
baseQueryParams: {},
|
|
|
|
|
warehouseOptions: [],
|
|
|
|
|
productionLine: '',
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
mounted() {
|
|
|
|
|
this.getReportConfig()
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
getReportConfig() {
|
|
|
|
|
this.loading = true
|
|
|
|
|
listReportConfig({
|
|
|
|
|
reportCode: 'acid'
|
|
|
|
|
}).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
|
|
|
|
|
this.loading = false
|
|
|
|
|
}
|
|
|
|
|
})
|
2026-02-12 09:58:15 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-03-18 15:41:09 +08:00
|
|
|
</script>
|