ljb 8 months ago
parent
commit
68f731406e

+ 1 - 0
src/option/achiveManage/archiveList.js

@@ -1,6 +1,7 @@
 import { downloadFileByUrl } from "@/util/util";
 
 export default {
+  height: 'auto',
   calcHeight: 30,
   tip: false,
   searchShow: true,

+ 6 - 6
src/views/yf-cost-manage/yf-cost-statistics/zjfy-cost-statistics/depre-summary-list.vue

@@ -89,7 +89,7 @@ export default window.$crudCommon({
       return summaryMethod(columns, data, this.option.sumColumnList, 'xmmc');
     },
     handleExport() {
-      exportBlob(`/api/kd-scientific/lease/export?${this.website.tokenHeader}=${getToken()}`, this.params).then(res => {
+      exportBlob(`/api/kd-scientific/asset/zj-cqdt-wxzctx-fy-hzb/export?${this.website.tokenHeader}=${getToken()}`, this.params).then(res => {
         downloadXls(res.data, `${this.pageTitle}.xlsx`);
       });
     },
@@ -109,11 +109,11 @@ export default window.$crudCommon({
   name: 'yfCostManage/yfCostStatistics/depreSummaryList',
   res: ({ data }) => {
     data.records = data.records.map(item => {
-      item.yqsbzjfy = item.yqsbzjfy.toFixed(2);
-      item.fwzjfy = item.fwzjfy.toFixed(2);
-      item.cqdtfy = item.cqdtfy.toFixed(2);
-      item.wxzcdtfy = item.wxzcdtfy.toFixed(2);
-      item.total = item.total.toFixed(2);
+      item.yqsbzjfy = Number(item.yqsbzjfy || 0).toFixed(2);
+      item.fwzjfy = Number(item.fwzjfy || 0).toFixed(2);
+      item.cqdtfy = Number(item.cqdtfy || 0).toFixed(2);
+      item.wxzcdtfy = Number(item.wxzcdtfy || 0).toFixed(2);
+      item.total = Number(item.total || 0).toFixed(2);
       return item;
     });
     return data;