From 88ad0c93b99ee8a8bf84be87c2cd8c06d2591640 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期四, 16 一月 2025 17:05:47 +0800
Subject: [PATCH] 核算导出调整
---
src/views/system/contract/report/index.vue | 18 +++++++++++++-----
1 files changed, 13 insertions(+), 5 deletions(-)
diff --git a/src/views/system/contract/report/index.vue b/src/views/system/contract/report/index.vue
index 0d0286b..3f081b4 100644
--- a/src/views/system/contract/report/index.vue
+++ b/src/views/system/contract/report/index.vue
@@ -35,7 +35,7 @@
<span v-if="item.latestMonth" class="time">{{ item.whichYear }}骞磠{ item.latestMonth }}鏈�</span>
<span v-else class="time">鏆傛棤</span>
</div>
- <el-button size="small" type="primary" round style="float: right;margin-left: 18px;" @click="handleExport(item)" v-hasPermi="['system:calculate:report:export']">瀵煎嚭</el-button>
+ <el-button size="small" type="primary" round style="float: right;margin-left: 18px;" @click="handleExport(item.whichYear,null,item.contractId,item.contractName)" v-hasPermi="['system:calculate:report:export']">瀵煎嚭</el-button>
<el-button size="small" round style="float: right;margin-bottom: 18px;" @click="handlePublish(item)" v-hasPermi="['system:calculate:report:status']">纭鍙戝竷</el-button>
</el-card>
</el-col>
@@ -117,7 +117,7 @@
</el-table-column>
<el-table-column
prop="status"
- label="鍙戝竷鐘舵��"
+ label="鎿嶄綔"
width="150"
v-if="checkRole(['admin'])"
>
@@ -137,6 +137,13 @@
@click="handleDetailPublish(scope.row)"
>
鍙戝竷
+ </el-button>
+ <el-button
+ size="small"
+ type="text"
+ @click="handleExport(scope.row.whichYear,scope.row.whichMonth,detail.contractId,detail.contractName)"
+ >
+ 瀵煎嚭
</el-button>
</template>
</el-table-column>
@@ -336,10 +343,11 @@
},
/** 瀵煎嚭鎸夐挳鎿嶄綔 */
- handleExport(item) {
+ handleExport(whichYear,whichMonth,contractId,contractName) {
+ const name = contractName+whichYear+'骞�'+(whichMonth==null? '': whichMonth+'鏈�')+'杩愮淮鏍哥畻.xlsx'
this.download('calculate-report/export', {
- ...{ 'calculateId': item.id, 'contractId': item.contractId},
- }, `${item.contractName}杩愮淮鏍哥畻.xlsx`)
+ ...{ 'whichYear': whichYear,'whichMonth': whichMonth, 'contractId': contractId},
+ }, `${name}`)
},
/** 鍚堣琛� */
getSummaries(param) {
--
Gitblit v1.8.0