From 4c236ba83da7c69ac838b004d0a4b83c25fc9bea Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期五, 23 二月 2024 16:41:02 +0800
Subject: [PATCH] mrshi

---
 company/src/views/enterprise/myPolicy.vue |   71 ++++++++++++++++++++++++++++++++++-
 1 files changed, 68 insertions(+), 3 deletions(-)

diff --git a/company/src/views/enterprise/myPolicy.vue b/company/src/views/enterprise/myPolicy.vue
index 1d9e001..87c499e 100644
--- a/company/src/views/enterprise/myPolicy.vue
+++ b/company/src/views/enterprise/myPolicy.vue
@@ -56,6 +56,18 @@
         </el-form>
         <!-- 琛ㄦ牸鍜屽垎椤� -->
         <template v-slot:table-wrap>
+            <div style="margin-bottom: 30px;" v-if="obj.waitSignNum > 0 && obj.renewalNum > 0">
+                <el-alert type="warning" show-icon :closable="false" style="margin-bottom: 15px;" v-if="obj.renewalNum > 0">
+                    <span style="margin-right: 15px;">缁繚鎻愰啋: 鎮ㄦ湁鍗冲皢鍒版湡淇濋櫓</span>
+                    <el-button type="text" @click="$refs.renewalInsurance.open('缁繚鎻愰啋')">鏌ョ湅璇︽儏</el-button>
+                    <el-button type="text" @click="closeRemind(1)">鍏抽棴鎻愰啋</el-button>
+                </el-alert>
+                <el-alert type="warning" :closable="false" show-icon v-if="obj.waitSignNum > 0">
+                    <span style="margin-right: 15px;">鎶曚繚鎻愰啋: 鎮ㄦ湁鎶曚繚鐢宠寰呯缃�</span>
+                    <el-button type="text" @click="see">鏌ョ湅璇︽儏</el-button>
+                    <el-button type="text" @click="closeRemind(2)">鍏抽棴鎻愰啋</el-button>
+                </el-alert>
+            </div>
             <ul class="toolbar" v-permissions="['business:dispatchunit:create']">
                 <li><el-button type="primary" @click="$refs.OperaInsuranceApplyWindow.open('鎶曚繚鐢宠')">鎶曚繚鐢宠</el-button></li>
             </ul>
@@ -69,10 +81,20 @@
                         <span>{{scope.$index + 1}}</span>
                     </template>
                 </el-table-column>
-                <el-table-column prop="statusInfo" label="鐘舵��"></el-table-column>
+                <el-table-column prop="statusInfo" label="鐘舵��">
+                  <template slot-scope="{row}">
+                    <span :class="'apply-status'+row.status" >{{row.statusInfo}}</span>
+                  </template>
+                </el-table-column>
                 <el-table-column prop="solutionsName" label="淇濋櫓鏂规"></el-table-column>
+                <el-table-column label="淇濆崟鍙�">
+                    <template slot-scope="{row}">
+                        <span>{{row.code ? row.code : '-'}}</span>
+                    </template>
+                </el-table-column>
                 <el-table-column prop="insureNum" label="鎶曚繚浜烘暟"></el-table-column>
                 <el-table-column prop="serviceDays" label="鎶曚繚鏃堕暱锛堝ぉ锛�"></el-table-column>
+                <el-table-column prop="currentFee" label="浜х敓璐圭敤"></el-table-column>
                 <el-table-column prop="fee" label="鎬昏垂鐢紙鍏冿級"></el-table-column>
                 <el-table-column prop="checkDate" label="鎻愪氦鏃ユ湡"></el-table-column>
                 <el-table-column prop="startTime" label="鎶曚繚鐢熸晥鏃ユ湡"></el-table-column>
@@ -85,7 +107,9 @@
                 >
                     <template slot-scope="{row}">
                         <el-button type="text" @click="$refs.OperaInsuranceApplyDetails.open('鎶曚繚璇︽儏', { id: row.id })" v-permissions="['business:insuranceapply:update']">鏌ョ湅璇︽儏</el-button>
-                        <el-button type="text" @click="$refs.additionSubtractionApplication.open('鍔犲噺淇濈敵璇�', { id: row.id })">鍔犲噺淇濈敵璇�</el-button>
+                        <template v-if="row.statusCollect === 2">
+                            <el-button type="text" @click="$refs.additionSubtractionApplication.open('鍔犲噺淇濈敵璇�', { id: row.id })">鍔犲噺淇濈敵璇�</el-button>
+                        </template>
                     </template>
                 </el-table-column>
             </el-table>
@@ -102,6 +126,8 @@
         <OperaInsuranceApplyDetails ref="OperaInsuranceApplyDetails" @success="handlePageChange" />
         <!--    鍔犲噺淇濈敵璇�    -->
         <additionSubtractionApplication ref="additionSubtractionApplication" @success="handlePageChange" />
+        <!--    缁繚寮圭獥    -->
+        <renewalInsurance ref="renewalInsurance" @success="handlePageChange" />
     </TableLayout>
 </template>
 
@@ -112,12 +138,21 @@
     import OperaInsuranceApplyWindow from '@/components/enterprise/OperaInsuranceApplyWindow'
     import OperaInsuranceApplyDetails from '@/components/business/OperaInsuranceApplyWindow'
     import additionSubtractionApplication from '@/components/enterprise/additionSubtractionApplication'
+    import renewalInsurance from '@/components/enterprise/renewalInsurance'
 
     import { all as solutionAll} from '@/api/business/solutions'
+    import { getCaptcha, closeApplyNotice } from '@/api/business/notices'
     export default {
         name: 'myPolicy',
         extends: BaseTable,
-        components: { TableLayout, Pagination, OperaInsuranceApplyWindow, OperaInsuranceApplyDetails, additionSubtractionApplication },
+        components: {
+            TableLayout,
+            Pagination,
+            OperaInsuranceApplyWindow,
+            OperaInsuranceApplyDetails,
+            renewalInsurance,
+            additionSubtractionApplication
+        },
         data () {
             return {
                 // 鎼滅储
@@ -129,6 +164,10 @@
                     startTimeS: '',
                     baseSolutionId: '',
                     statusCollect: '2'
+                },
+                obj: {
+                    renewalNum: 0,
+                    waitSignNum: 0
                 },
                 time1: [],
                 time2: [],
@@ -144,8 +183,34 @@
             })
             this.search()
             this.loadSelectList()
+            this.getNum()
         },
         methods:{
+            see() {
+                this.searchForm.statusCollect = '7'
+                this.search()
+            },
+            closeRemind(type) {
+                this.$confirm('纭畾鍏抽棴姝ゆ彁绀哄悧?', '鎻愮ず', {
+                    confirmButtonText: '纭畾',
+                    cancelButtonText: '鍙栨秷',
+                    type: 'warning'
+                }).then(() => {
+                    closeApplyNotice(type)
+                        .then(res => {
+                            this.getNum()
+                        })
+                }).catch(() => {
+
+                });
+            },
+            getNum() {
+                getCaptcha()
+                    .then(res => {
+                        this.obj.renewalNum = res.renewalNum
+                        this.obj.waitSignNum = res.waitSignNum
+                    })
+            },
             reset() {
                 this.time1 = []
                 this.time2 = []

--
Gitblit v1.9.3