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 { export default {
FetchTotalStatistics, FetchTotalStatistics,
FetchArchivedAllYear, FetchArchivedAllYear,
@ -152,5 +160,6 @@ export default {
FetchRecalculateArchivesDoReport, FetchRecalculateArchivesDoReport,
FetchInitStatisticsTemplate, FetchInitStatisticsTemplate,
FetchAnnualStatisticalTemplateAll, FetchAnnualStatisticalTemplateAll,
FetchDeleteArchivesReport
FetchDeleteArchivesReport,
FetchReportYear
} }

9
src/views/archivesStatistics/Da3Report.vue

@ -39,7 +39,8 @@
</div> </div>
</td></template> </td></template>
<template v-else-if="i === 1"> <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"> <div class="meta-flex">
<span class="meta-label">有效期至</span> <span class="meta-label">有效期至</span>
<i class="colon">:</i> <i class="colon">:</i>
@ -218,6 +219,11 @@ export default {
this.initForm(d) this.initForm(d)
// 接口模型自带填报值时回显 // 接口模型自带填报值时回显
if (d.formData) this.fillFormData(d.formData) 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) { if (d.footerForm) {
Object.keys(this.footerForm).forEach(k => { 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; } .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; } 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 { 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-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-label { display: block; width: 60px; text-align: justify; text-align-last: justify; }
.meta-flex .colon { font-style: normal; } .meta-flex .colon { font-style: normal; }

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

@ -140,7 +140,7 @@
<script> <script>
import { FetchFondsAll } from '@/api/system/fonds' 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' import { mapGetters } from 'vuex'
export default { export default {
@ -424,7 +424,7 @@ export default {
}) })
}, },
getArchivedAllYearDatas() { getArchivedAllYearDatas() {
FetchArchivedAllYear().then(res => {
FetchReportYear().then(res => {
this.yearsOptions = res.map(item => ({ this.yearsOptions = res.map(item => ({
id: item, id: item,
name: item name: item

Loading…
Cancel
Save