| | |
| | | const list = this.filteredResults |
| | | return list.some(r => r._selected) && !this.allSelected |
| | | }, |
| | | isReminderRow(r) { |
| | | return !!(r && r.ruleCode === 'RULE_004') |
| | | }, |
| | | filteredResults() { |
| | | const kw = (this.enterpriseFilter || '').trim() |
| | | const rule = this.ruleFilter |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | isReminderRow(r) { |
| | | return !!(r && r.ruleCode === 'RULE_004') |
| | | }, |
| | | dataType(t) { return DATA_TYPE_MAP[t] || '' }, |
| | | explainType(t) { return EXPLAIN_TYPES.indexOf(t) >= 0 }, |
| | | openMonthReport(row) { |
| | |
| | | }, |
| | | exportExcel() { |
| | | if (!this.period) { this.$message.warning('请选择报表期'); return } |
| | | const q = 'period=' + this.period + '&reportType=' + this.reportType + '&onlyVerify=' + (this.issueScope !== 'all') + '&status=' + (this.statusScope || 'all') |
| | | window.open('/api/audit/export?' + q) |
| | | const params = { |
| | | period: this.period, |
| | | reportType: this.reportType, |
| | | onlyVerify: this.issueScope !== 'all', |
| | | status: this.statusScope || 'all' |
| | | } |
| | | api.get('/audit/export', { params, responseType: 'blob' }) |
| | | .then(res => this.downloadBlob(res, '审核结果_' + this.period + '.xlsx')) |
| | | .catch(() => this.$message.error('导出失败:请确认该报表期已有审核结果')) |
| | | }, |
| | | downloadBlob(res, fileName) { |
| | | const blob = res instanceof Blob ? res : new Blob([res], { type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' }) |
| | | const url = window.URL.createObjectURL(blob) |
| | | const a = document.createElement('a') |
| | | a.href = url |
| | | a.download = fileName |
| | | document.body.appendChild(a) |
| | | a.click() |
| | | window.URL.revokeObjectURL(url) |
| | | document.body.removeChild(a) |
| | | }, |
| | | review(row, status) { |
| | | if (status === 'IGNORED') { |