From d441a339549da0e1280879333f0b22823a603443 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期一, 02 十二月 2024 16:59:11 +0800
Subject: [PATCH] 合同积分的提示、地图样式调整
---
src/views/system/contract/report/index.vue | 51 +++++++++++++++++++++++++++------------------------
1 files changed, 27 insertions(+), 24 deletions(-)
diff --git a/src/views/system/contract/report/index.vue b/src/views/system/contract/report/index.vue
index cb8e56e..f7d3304 100644
--- a/src/views/system/contract/report/index.vue
+++ b/src/views/system/contract/report/index.vue
@@ -1,7 +1,7 @@
<template>
<div class="app-container">
- <el-row style="margin-left: 10px" :gutter="10" class="mb8">
+ <!-- <el-row style="margin-left: 10px" :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="warning"
@@ -12,23 +12,26 @@
>瀵煎嚭鎵�鏈夋暟鎹�</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
- </el-row>
-
- <el-card class="box-card" v-for="(item) in checkResultList">
- <div slot="header" class="clearfix">
- <span>{{ item.unitName }}</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 }}</span></div>
- <div class="text item">绱鎵e噺閲戦<span class="time">{{ item.deductMoney }}</span></div>
- <div class="text item">鏈�杩戞牳绠楁湀浠�
- <span v-if="item.latestTime" class="time">{{ new Date(item.latestTime).getFullYear() }}骞磠{ new Date(item.latestTime).getMonth() }}鏈�</span>
- <span v-else class="time">鏆傛棤</span>
- </div>
- <el-button size="small" round style="float: right;margin-bottom: 18px;" @click="handlePublish(item)" v-if="item.status === 'not_publish'" :disabled="!item.canPublish" v-hasPermi="['system:calculate:report:status']">纭鍙戝竷</el-button>
- <el-button size="small" round style="float: right;margin-bottom: 18px;" @click="handlePublish(item)" v-if="item.status === 'published'" v-hasPermi="['system:calculate:report:status']">鍙栨秷鍙戝竷</el-button>
- </el-card>
+ </el-row> -->
+ <div v-if="checkResultList && checkResultList.length > 0">
+ <el-card class="box-card" v-for="item in checkResultList" :key="item.id">
+ <div slot="header" class="clearfix">
+ <span>{{ item.unitName }}</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 }}</span></div>
+ <div class="text item">绱鎵e噺閲戦<span class="time">{{ item.deductMoney }}</span></div>
+ <div class="text item">鏈�杩戞牳绠楁湀浠�
+ <span v-if="item.latestTime" class="time">{{ new Date(item.latestTime).getFullYear() }}骞磠{ new Date(item.latestTime).getMonth() }}鏈�</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" round style="float: right;margin-bottom: 18px;" @click="handlePublish(item)" v-if="item.status === 'not_publish'" :disabled="!item.canPublish" v-hasPermi="['system:calculate:report:status']">纭鍙戝竷</el-button>
+ <el-button size="small" round style="float: right;margin-bottom: 18px;" @click="handlePublish(item)" v-if="item.status === 'published'" v-hasPermi="['system:calculate:report:status']">鍙栨秷鍙戝竷</el-button>
+ </el-card>
+ </div>
+ <el-empty v-else description="鏆傛棤鏁版嵁"></el-empty>
<pagination
v-show="total>0"
@@ -41,7 +44,7 @@
<el-dialog :title="detailTitle" :visible.sync="detailOpen" width="760px" append-to-body>
<div style="display: flex; flex-direction: row; width: 100%;margin-bottom: 10px; justify-content: center; align-items: center">
<div style="line-height: 16px">搴旂敤瑙勫垯锛�</div>
- <div v-for="ruleItem in detail.ruleList" style="display: flex; margin-right: 50px;">
+ <div v-for="ruleItem in detail.ruleList" :key="ruleItem.id" style="display: flex; margin-right: 50px;">
<div style="line-height: 16px;margin-right: 10px;display: flex; align-items: center">{{ ruleItem.scoreCondition }}鍒�</div>
<div style="line-height: 16px;max-width: 300px;word-wrap:break-word;word-break:normal;color: #2273b9">{{ ruleItem.description }}</div>
</div>
@@ -103,7 +106,7 @@
</el-table>
<div slot="footer" class="dialog-footer">
<el-button @click="cancel">鍙� 娑�</el-button>
- <el-button type="primary" @click="submitForm">鏍哥畻</el-button>
+ <el-button type="primary" @click="submitForm" v-hasPermi="['system:calculate:report:backfill']">鏍哥畻</el-button>
</div>
</el-dialog>
@@ -287,10 +290,10 @@
},
/** 瀵煎嚭鎸夐挳鎿嶄綔 */
- handleExport() {
- this.download('system/checkResult/export', {
- ...this.queryParams
- }, `checkResult_${new Date().getTime()}.xlsx`)
+ handleExport(item) {
+ this.download('calculate-report/export', {
+ ...{ 'contractId': item.contractId }
+ }, `${item.contractName}杩愮淮鏍哥畻.xlsx`)
},
/** 鍚堣琛� */
getSummaries(param) {
--
Gitblit v1.8.0