From 3c6bdb6f439ff7af04765259fd6a91b6d201d095 Mon Sep 17 00:00:00 2001 From: zxl <763096477@qq.com> Date: 星期四, 19 六月 2025 17:12:25 +0800 Subject: [PATCH] 工单,数据中心用户查看数据的权限,合同考核每日,以及导出每日和按月 --- src/views/system/contract/report/index.vue | 19 ++++++++++--------- 1 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/views/system/contract/report/index.vue b/src/views/system/contract/report/index.vue index 3f081b4..eea5e8e 100644 --- a/src/views/system/contract/report/index.vue +++ b/src/views/system/contract/report/index.vue @@ -25,17 +25,17 @@ > <el-card class="box-card" > <div slot="header" class="clearfix"> - <span>{{ item.unitName +item.whichYear+"骞存牳绠楁姤鍛�" }}</span> + <span>{{ item.unitName +item.whichYear+"骞�"+item.whichMonth+"鏈堟牳绠楁姤鍛�" }}</span> <el-button style="float: right; padding: 3px 0" type="text" @click="handleDetail(item)">鏍哥畻</el-button> </div> <div class="text item">鍚堝悓<span class="time">{{ item.contractName }}</span></div> <div class="text item">鏈�杩戞墸鍑忛噾棰�<span class="time">{{ item.latestDeductMoney ? item.latestDeductMoney:0 }}</span></div> <div class="text item">绱鎵e噺閲戦<span class="time">{{ item.deductMoney ? item.deductMoney:0}}</span></div> <div class="text item">鏈�杩戞牳绠楁湀浠� - <span v-if="item.latestMonth" class="time">{{ item.whichYear }}骞磠{ item.latestMonth }}鏈�</span> + <span v-if="item.latestMonth" class="time">{{ item.whichYear }}骞磠{ item.latestMonth }}鏈坽{item.latestDay}}鏃�</span> <span v-else class="time">鏆傛棤</span> </div> - <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" type="primary" round style="float: right;margin-left: 18px;" @click="handleExport(item.whichYear,item.whichMonth,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> @@ -89,7 +89,7 @@ label="鏍哥畻鏈堜唤" width="180"> <template slot-scope="scope"> - <span> {{ scope.row.whichYear +'骞�'+ scope.row.whichMonth+ '鏈�'}}</span> + <span> {{ scope.row.whichYear +'骞�'+ scope.row.whichMonth+ '鏈�' + scope.row.whichDay+ '鏃�'}}</span> </template> </el-table-column> <el-table-column @@ -141,7 +141,7 @@ <el-button size="small" type="text" - @click="handleExport(scope.row.whichYear,scope.row.whichMonth,detail.contractId,detail.contractName)" + @click="handleExport(scope.row.whichYear,scope.row.whichMonth,scope.row.whichDay,detail.contractId,detail.contractName)" > 瀵煎嚭 </el-button> @@ -287,7 +287,7 @@ // }) }, handleDetail(row) { - getCalculateReportById(row.contractId,row.whichYear).then(res => { + getCalculateReportById(row.contractId,row.whichYear,row.whichMonth).then(res => { this.detail = res.data this.detailTitle = row.unitName + '鑰冩牳缁撴灉' this.detailOpen = true @@ -343,10 +343,11 @@ }, /** 瀵煎嚭鎸夐挳鎿嶄綔 */ - handleExport(whichYear,whichMonth,contractId,contractName) { - const name = contractName+whichYear+'骞�'+(whichMonth==null? '': whichMonth+'鏈�')+'杩愮淮鏍哥畻.xlsx' + handleExport(whichYear,whichMonth,whichDay,contractId,contractName) { + + const name = contractName+whichYear+'骞�'+(whichMonth==null? '': whichMonth+'鏈�')+(whichDay==null? '': whichDay+'鏃�')+'杩愮淮鏍哥畻.xlsx' this.download('calculate-report/export', { - ...{ 'whichYear': whichYear,'whichMonth': whichMonth, 'contractId': contractId}, + ...{ 'whichYear': whichYear,'whichMonth': whichMonth,'whichDay':whichDay, 'contractId': contractId}, }, `${name}`) }, /** 鍚堣琛� */ -- Gitblit v1.8.0