|
@@ -40,7 +40,7 @@
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
import YearMonthSelect from "@/components/year-month-select";
|
|
import YearMonthSelect from "@/components/year-month-select";
|
|
|
-import {exportBlob} from "@/api/common";
|
|
|
|
|
|
|
+import {exportBloByPost} from "@/api/common";
|
|
|
import {getToken} from "@/util/auth";
|
|
import {getToken} from "@/util/auth";
|
|
|
import {downloadXls, summaryMethod} from "@/util/util";
|
|
import {downloadXls, summaryMethod} from "@/util/util";
|
|
|
import moment from "moment";
|
|
import moment from "moment";
|
|
@@ -82,7 +82,7 @@ export default window.$crudCommon({
|
|
|
return summaryMethod(columns, data, this.option.sumColumnList, 'xmmc');
|
|
return summaryMethod(columns, data, this.option.sumColumnList, 'xmmc');
|
|
|
},
|
|
},
|
|
|
handleExport() {
|
|
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`);
|
|
downloadXls(res.data, `${this.pageTitle}.xlsx`);
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
@@ -103,16 +103,16 @@ export default window.$crudCommon({
|
|
|
name: 'externalReports/gxAuxiliarySumList',
|
|
name: 'externalReports/gxAuxiliarySumList',
|
|
|
res: ({ data }) => {
|
|
res: ({ data }) => {
|
|
|
data.records = data.records.map(item => {
|
|
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;
|
|
let amount = 0;
|