Selaa lähdekoodia

feat 周报期数

anxiaoxia 3 vuotta sitten
vanhempi
commit
94ae9635e2

+ 4 - 0
src/api/ReportForm/ReportForm.js

@@ -94,3 +94,7 @@ export function passEmail({postParams}) {
 export function queryPm2d5({getParams}) {
     return httputils.getJson(`/duoduo-service/review-service/week/pm2d5/query`, getParams)
 }
+// 周报---week/query 周报周期查询
+export function queryWeekNumberHttp({getParams}) {
+    return httputils.getJson(`/review-service/week/queryWeekPeriods`, getParams)
+}

+ 26 - 4
src/views/ReportForm/weekReport/reportDetail.vue

@@ -12,10 +12,12 @@
             <div class="page_header">
                 <p>{{projectName}}环境管理周报告</p>
                 <p>
-                    <span style="font-size:16px;display:inherit;text-align:right;padding-top:10px">总第23期,2021年第1期
+                    <span style="font-size:16px;display:inherit;text-align:right;padding-top:10px">
+                        总第{{totalReportCount}}期,{{moment(this.endDate).format("YYYY")}}年第{{yearReportNum}}期
                         <span style="margin:0 20px;font-size:16px"> {{this.startDate&&moment(this.startDate).format("YYYY.MM.DD")}}-{{this.endDate&&moment(this.endDate).format("YYYY.MM.DD")}}</span>
                     </span>
                 </p>
+
             </div>
             <!-- start 环境概况 -->
             <section class="env_module title_one_table mb16">
@@ -1015,8 +1017,13 @@
             id="exportPdf"
         >
             <div class="page_header">
-                环境管理周报<span>({{this.startDate&&moment(this.startDate).format("MM.DD")}}-{{this.endDate&&moment(this.endDate).format("MM.DD")}})</span>
-                <span class="pname">{{projectName}}</span>
+                <p>{{projectName}}环境管理周报告</p>
+                <p>
+                    <span style="font-size:16px;display:inherit;text-align:right;padding-top:10px">
+                        总第{{totalReportCount}}期,{{moment(this.endDate).format("YYYY")}}年第{{yearReportNum}}期
+                        <span style="margin:0 20px;font-size:16px"> {{this.startDate&&moment(this.startDate).format("YYYY.MM.DD")}}-{{this.endDate&&moment(this.endDate).format("YYYY.MM.DD")}}</span>
+                    </span>
+                </p>
             </div>
             <!-- start 环境概况 -->
             <section class="env_module title_one_table mb690">
@@ -1989,7 +1996,7 @@ import moment from "moment"
 
 import {    queryWeekday, querySubstandardList, queryDay, querysectionSpace, saveRemark, passEmail,
     querysectionFloor, queryStandardList, queryWeekSpace, queryUserActivity, queryTempRate, explainSave,
-    querySeason, queryCustormList, queryEmail, queryPm2d5} from "@/api/ReportForm/ReportForm.js";
+    querySeason, queryCustormList, queryEmail, queryPm2d5,queryWeekNumberHttp} from "@/api/ReportForm/ReportForm.js";
 export default {
     props: {
         // comstartDate:{
@@ -2005,6 +2012,8 @@ export default {
     },
     data() {
         return {
+            totalReportCount: '',
+            yearReportNum: '',
             pdfPmDateShow: false,
             mbList: [200, 200, 600, 520, 300, 900, 0],
             emailVisible: false,
@@ -2214,6 +2223,7 @@ export default {
         this.getCustormList();
         // this.getEmailDate();
         this.getPmdate();
+        this.getWeekNumber();
     },
     methods: {
         moment,
@@ -2317,6 +2327,18 @@ export default {
         changeInput(e, type) {
             this.tableSave(e, type)
         },
+        // 周报期数
+        getWeekNumber() {
+            let getParams = {
+                projectId: this.projectId,
+                startDate: this.startDate
+            }
+            queryWeekNumberHttp({ getParams }).then(res => {
+                //  总共的周报数量totalReportCount  年当前期数yearReportNum
+                this.totalReportCount = res.totalReportCount;
+                this.yearReportNum = res.yearReportNum;
+            })
+        },
         async getSeasontype(falg = true) {
             let getParams = {
                 projectId: this.projectId,