Browse Source

年报全宗年份

master
xuhuajiao 3 weeks ago
parent
commit
1d772c6de9
  1. 11
      src/api/statistics/statistics.js
  2. 9
      src/views/archivesStatistics/Da3Report.vue
  3. 4
      src/views/archivesStatistics/annualReport‌/index.vue

11
src/api/statistics/statistics.js

@ -137,6 +137,14 @@ export function FetchDeleteArchivesReport(data) {
})
}
// 获取报表年度
export function FetchReportYear(params) {
return request({
url: 'api/archives-report/getReportYear' + '?' + qs.stringify(params, { indices: false }),
method: 'get'
})
}
export default {
FetchTotalStatistics,
FetchArchivedAllYear,
@ -152,5 +160,6 @@ export default {
FetchRecalculateArchivesDoReport,
FetchInitStatisticsTemplate,
FetchAnnualStatisticalTemplateAll,
FetchDeleteArchivesReport
FetchDeleteArchivesReport,
FetchReportYear
}

9
src/views/archivesStatistics/Da3Report.vue

@ -39,7 +39,8 @@
</div>
</td></template>
<template v-else-if="i === 1">
<td class="meta" colspan="4">
<td class="meta-year-cell">{{ data.template.cur_year }}年</td>
<td class="meta" colspan="3">
<div class="meta-flex">
<span class="meta-label">有效期至</span>
<i class="colon">:</i>
@ -218,6 +219,11 @@ export default {
this.initForm(d)
// 接口模型自带填报值时回显
if (d.formData) this.fillFormData(d.formData)
// 单位名称(02)无值时,用全宗名填充
if (!this.form.u_02) {
const fondsName = sessionStorage.getItem('da3_fondsName') || ''
if (fondsName) this.$set(this.form, 'u_02', fondsName)
}
// 回显页脚签章
if (d.footerForm) {
Object.keys(this.footerForm).forEach(k => {
@ -896,6 +902,7 @@ table.form td, table.form th { padding: 2px 6px; vertical-align: middle; font-si
.attach { font-size: 12px; text-align: left; }
table.form td.title { font-size: 30px !important; font-weight: bold; text-align: center; letter-spacing: 6px; padding: 12px 0; font-family: "SimHei", "黑体", sans-serif; }
.meta { font-size: 12px; white-space: nowrap; }
.meta-year-cell { text-align: center; font-size: 12px; white-space: nowrap; }
.meta-flex { display: flex; justify-content: flex-end; align-items: baseline; width: 210px; margin-left: auto; }
.meta-label { display: block; width: 60px; text-align: justify; text-align-last: justify; }
.meta-flex .colon { font-style: normal; }

4
src/views/archivesStatistics/annualReport‌/index.vue

@ -140,7 +140,7 @@
<script>
import { FetchFondsAll } from '@/api/system/fonds'
import { FetchPageReports, FetchArchivedAllYear, FetchInitStatisticsTemplate, FetchSaveArchivesReport, FetchFindArchivesReportById, FetchAnnualStatisticalTemplateAll, FetchDeleteArchivesReport } from '@/api/statistics/statistics'
import { FetchPageReports, FetchReportYear, FetchInitStatisticsTemplate, FetchSaveArchivesReport, FetchFindArchivesReportById, FetchAnnualStatisticalTemplateAll, FetchDeleteArchivesReport } from '@/api/statistics/statistics'
import { mapGetters } from 'vuex'
export default {
@ -424,7 +424,7 @@ export default {
})
},
getArchivedAllYearDatas() {
FetchArchivedAllYear().then(res => {
FetchReportYear().then(res => {
this.yearsOptions = res.map(item => ({
id: item,
name: item

Loading…
Cancel
Save