| | |
| | | <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> |
| | |
| | | }, |
| | | { |
| | | key: 'energy', title: '能耗报表', items: [ |
| | | { key: 'energySummary', label: '能运汇总表', fileName: '生成_能运汇总表.xlsx', status: null, statusNote: '' } |
| | | { key: 'energyQuarterSummary', label: '能运汇总表(季度汇总)', fileName: '生成_{periodCN}能运汇总表.xlsx', status: null, statusNote: '' }, |
| | | { key: 'energyLeader', label: '能耗汇总表(领导版)', fileName: '生成_{periodCN}能耗汇总表(领导版).xlsx', status: null, statusNote: '' } |
| | | ], checked: [] |
| | | } |
| | | ] |
| | |
| | | // 文件名占位符 X月 -> 当前报表期月份(如「生成_X月客运站投资明细表.xlsx」->「生成_8月客运站投资明细表.xlsx」) |
| | | fileNameOf(item) { |
| | | const name = (item && item.fileName) || '' |
| | | const mm = parseInt((this.period || '').split('-')[1], 10) |
| | | const parts = (this.period || '').split('-') |
| | | const yyyy = parts[0] |
| | | const mm = parseInt(parts[1], 10) |
| | | if (!mm) return name |
| | | return name.replace(/X月/g, mm + '月') |
| | | const periodCN = yyyy ? yyyy + '年' + mm + '月' : '' |
| | | return name.replace(/\{periodCN\}/g, periodCN).replace(/X月/g, mm + '月') |
| | | }, |
| | | downloadBlob(res, fileName) { |
| | | const isZip = /\.zip$/.test(fileName) |