| | |
| | | <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> |
| | |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="status" |
| | | label="发布状态" |
| | | label="操作" |
| | | width="150" |
| | | v-if="checkRole(['admin'])" |
| | | > |
| | |
| | | @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> |
| | |
| | | |
| | | }, |
| | | /** 导出按钮操作 */ |
| | | 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) { |