| | |
| | | <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-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: [ |
| | |
| | | } |
| | | }, |
| | | 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' ? '输入市州名称关键字' : '输入企业名称关键字' } |