| | |
| | | <app-header title="交通统计报表审核系统 - 企业解释"></app-header> |
| | | <el-container> |
| | | <el-aside width="200px"> |
| | | <el-menu router default-active="/explain"> |
| | | <el-menu ref="sideMenu" router :default-active="$route.path" @select="onMenuSelect"> |
| | | <el-menu-item index="/dashboard">工作台</el-menu-item> |
| | | <el-menu-item index="/import">数据导入</el-menu-item> |
| | | <el-menu-item index="/data">数据查看</el-menu-item> |
| | | <el-menu-item index="/explain">企业解释</el-menu-item> |
| | | <el-menu-item index="/audit">审核结果</el-menu-item> |
| | | <el-menu-item index="/report">报表生成</el-menu-item> |
| | | <el-menu-item index="/ledger-audit">事后核查</el-menu-item> |
| | | <el-submenu index="/special-stats"> |
| | | <template slot="title">专项统计</template> |
| | | <el-menu-item index="/holiday-stat">节假日</el-menu-item> |
| | | </el-submenu> |
| | | <el-menu-item index="/rules">规则管理</el-menu-item> |
| | | <el-menu-item index="/users">用户管理</el-menu-item> |
| | | </el-menu> |
| | | <el-menu-item v-if="operatorIsAdmin" index="/system-config">系统配置</el-menu-item> |
| | | </el-menu> |
| | | </el-aside> |
| | | <el-main> |
| | | <h3>企业解释</h3> |
| | |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="报表期"> |
| | | <el-date-picker v-model="period" type="month" placeholder="全部" value-format="yyyy-MM" clearable style="width:140px" @change="loadData"></el-date-picker> |
| | | <el-date-picker v-model="period" type="month" placeholder="全部" value-format="yyyy-MM" clearable style="width:140px" |
| | | :picker-options="periodPickerOptions" @change="loadData"></el-date-picker> |
| | | <span v-if="periodHint" class="period-hint">{{ periodHint }}</span> |
| | | </el-form-item> |
| | | <el-form-item :label="keywordLabel"> |
| | | <el-input v-model="keyword" :placeholder="keywordPlaceholder" clearable style="width:220px" @keyup.enter.native="loadData"></el-input> |
| | |
| | | <script> |
| | | import AppHeader from '@/components/AppHeader.vue' |
| | | import api from '@/api' |
| | | import { granularityOfReportType, disabledDateFor, granularityHint } from '@/utils/periodGranularity' |
| | | import AiChatDialog from '@/components/AiChatDialog' |
| | | const COLS = { |
| | | H2032: [ |
| | |
| | | CITY_TAXI: 'city_taxi_monthly' |
| | | } |
| | | export default { |
| | | components: { AppHeader }, |
| | | components: { AppHeader, AiChatDialog }, |
| | | name: 'ExplainReview', |
| | | components: { AiChatDialog }, |
| | | data() { |
| | | return { |
| | | reportType: 'H2032', |
| | |
| | | } |
| | | }, |
| | | computed: { |
| | | periodGranularity() { return granularityOfReportType(this.reportType) }, |
| | | periodPickerOptions() { |
| | | const d = disabledDateFor(this.periodGranularity) |
| | | return d ? { disabledDate: d } : {} |
| | | }, |
| | | periodHint() { return granularityHint(this.periodGranularity) }, |
| | | columns() { return COLS[this.reportType] || COLS.H2032 }, |
| | | keywordLabel() { return this.reportType === 'CITY_TAXI' ? '市州名称' : '企业名称' }, |
| | | keywordPlaceholder() { return this.reportType === 'CITY_TAXI' ? '输入市州名称关键字' : '输入企业名称关键字' } |
| | |
| | | this.page = 1 |
| | | this.loadData() |
| | | } |
| | | }).catch(() => { |
| | | }).catch(e => { |
| | | if (e && e._toast) return |
| | | this.$message.error('解释查询失败') |
| | | }).finally(() => { |
| | | this.loading = false |