Browse Source

三口径项目清单和汇总表导出

ljb 8 months ago
parent
commit
ad55917b31

+ 1 - 1
src/views/external-reports/components/ky-project-list.vue

@@ -132,7 +132,7 @@ export default window.$crudCommon({
       })
     },
     handleExport() {
-      exportBlob(`/api/kd-scientific/xm/finance/export?${this.website.tokenHeader}=${getToken()}`, this.params).then(res => {
+      exportBlob(`/api/kd-scientific/xm/finance/export?${this.website.tokenHeader}=${getToken()}`, this.getSearchParams()).then(res => {
         downloadXls(res.data, `${this.pageTitle}.xlsx`);
       });
     },

+ 3 - 0
src/views/external-reports/external-manage/torch-develop-annual-report.vue

@@ -45,6 +45,9 @@ export default window.$crudCommon({
       return this.tag.label;
     }
   },
+  mounted() {
+    this.loadData();
+  },
   methods: {
     getSearchParams() {
       return { yearMin: 2025, yearMax: 2035 }

+ 12 - 12
src/views/external-reports/high-tech/gx-auxiliary-sum-list.vue

@@ -40,7 +40,7 @@
 
 <script>
 import YearMonthSelect from "@/components/year-month-select";
-import {exportBlob} from "@/api/common";
+import {exportBloByPost} from "@/api/common";
 import {getToken} from "@/util/auth";
 import {downloadXls, summaryMethod} from "@/util/util";
 import moment from "moment";
@@ -82,7 +82,7 @@ export default window.$crudCommon({
       return summaryMethod(columns, data, this.option.sumColumnList, 'xmmc');
     },
     handleExport() {
-      exportBlob(`/api/kd-scientific/export?${this.website.tokenHeader}=${getToken()}`, this.params).then(res => {
+      exportBloByPost(`/api/kd-scientific/xm/cost/details/high-tech-summary/export?${this.website.tokenHeader}=${getToken()}`, this.params).then(res => {
         downloadXls(res.data, `${this.pageTitle}.xlsx`);
       });
     },
@@ -103,16 +103,16 @@ export default window.$crudCommon({
   name: 'externalReports/gxAuxiliarySumList',
   res: ({ data }) => {
     data.records = data.records.map(item => {
-      item.ryrgTotal = item.ryrgTotal.toFixed(2);
-      item.zjtrTotal = item.zjtrTotal.toFixed(2);
-      item.zjfyycqdtfyTotal = item.zjfyycqdtfyTotal.toFixed(2);
-      item.sjfTotal = item.sjfTotal.toFixed(2);
-      item.wxzctxTotal = item.wxzctxTotal.toFixed(2);
-      item.zbtsfyysyfyTotal = item.zbtsfyysyfyTotal.toFixed(2);
-      item.qtfyTotal = item.qtfyTotal.toFixed(2);
-      item.qtfyLimit = item.qtfyLimit.toFixed(2);
-      item.qtfyAdjust = item.qtfyAdjust.toFixed(2);
-      item.wwyfTotal = item.wwyfTotal.toFixed(2);
+      item.ryrgTotal = Number(item.ryrgTotal || 0).toFixed(2);
+      item.zjtrTotal = Number(item.zjtrTotal || 0).toFixed(2);
+      item.zjfyycqdtfyTotal = Number(item.zjfyycqdtfyTotal || 0).toFixed(2);
+      item.sjfTotal = Number(item.sjfTotal || 0).toFixed(2);
+      item.wxzctxTotal = Number(item.wxzctxTotal || 0).toFixed(2);
+      item.zbtsfyysyfyTotal = Number(item.zbtsfyysyfyTotal || 0).toFixed(2);
+      item.qtfyTotal = Number(item.qtfyTotal || 0).toFixed(2);
+      item.qtfyLimit = Number(item.qtfyLimit || 0).toFixed(2);
+      item.qtfyAdjust = Number(item.qtfyAdjust || 0).toFixed(2);
+      item.wwyfTotal = Number(item.wwyfTotal || 0).toFixed(2);
 
       // 合计
       let amount = 0;

+ 2 - 2
src/views/external-reports/jjkc-standards/jjkc-auxiliary-sum-list.vue

@@ -53,7 +53,7 @@
 
 <script>
 import YearMonthSelect from "@/components/year-month-select";
-import {exportBlob} from "@/api/common";
+import {exportBloByPost} from "@/api/common";
 import {getToken} from "@/util/auth";
 import {downloadXls} from "@/util/util";
 import moment from "moment";
@@ -183,7 +183,7 @@ export default window.$crudCommon({
       });
     },
     handleExport() {
-      exportBlob(`/api/kd-scientific/attendance/export?${this.website.tokenHeader}=${getToken()}`, this.params).then(res => {
+      exportBloByPost(`/api/kd-scientific/xm/cost/details/deduction-summary/export?${this.website.tokenHeader}=${getToken()}`, this.params).then(res => {
         downloadXls(res.data, `${this.pageTitle}.xlsx`);
       });
     },

+ 2 - 2
src/views/external-reports/kj-standards/kj-auxiliary-sum-list.vue

@@ -43,7 +43,7 @@
 
 <script>
 import YearMonthSelect from "@/components/year-month-select";
-import {exportBlob} from "@/api/common";
+import {exportBloByPost} from "@/api/common";
 import {getToken} from "@/util/auth";
 import {downloadXls, summaryMethod} from "@/util/util";
 import moment from "moment";
@@ -84,7 +84,7 @@ export default window.$crudCommon({
       return summaryMethod(columns, data, this.option.sumColumnList, 'xmmc');
     },
     handleExport() {
-      exportBlob(`/api/kd-scientific//export?${this.website.tokenHeader}=${getToken()}`, this.params).then(res => {
+      exportBloByPost(`/api/kd-scientific/xm/cost/details/finance-summary/export?${this.website.tokenHeader}=${getToken()}`, this.params).then(res => {
         downloadXls(res.data, `${this.pageTitle}.xlsx`);
       });
     },