| | |
| | | > |
| | | <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">累计扣减金额<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> |
| | |
| | | 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 |
| | |
| | | <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> |
| | |
| | | // }) |
| | | }, |
| | | 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 |
| | |
| | | |
| | | }, |
| | | /** 导出按钮操作 */ |
| | | 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}`) |
| | | }, |
| | | /** 合计行 */ |