From 02bc3bfe47e3d5311a0bb041c94e70a34b1ca73c Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期二, 09 四月 2024 09:03:01 +0800
Subject: [PATCH] git ch

---
 company/src/components/enterprise/renewalInsurance.vue |   66 ++++++++++++++++++++++++++++----
 1 files changed, 57 insertions(+), 9 deletions(-)

diff --git a/company/src/components/enterprise/renewalInsurance.vue b/company/src/components/enterprise/renewalInsurance.vue
index 7021e02..6d7f44d 100644
--- a/company/src/components/enterprise/renewalInsurance.vue
+++ b/company/src/components/enterprise/renewalInsurance.vue
@@ -27,33 +27,57 @@
                 </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 label="鎶曚繚鏃堕暱锛堝ぉ锛�">
+                <template slot-scope="{row}">
+                    <span>{{row.serviceDays < 0 ? `-` : row.serviceDays}}</span>
+                </template>
+            </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>
-            <el-table-column prop="endTime" label="鎶曚繚澶辨晥鏃ユ湡"></el-table-column>
+            <el-table-column prop="endTime" label="淇濋櫓鐢熸晥姝㈡湡"></el-table-column>
+            <el-table-column label="澶辨晥鍓╀綑锛堝ぉ锛�">
+                <template slot-scope="{row}">
+                    <span style="color: #F95601;">{{row.loseEfficacyDays}}</span>
+                </template>
+            </el-table-column>
             <el-table-column
-                prop="address"
+                min-width="100"
                 label="鎿嶄綔">
+                <template slot-scope="{row}">
+                    <el-button type="text" @click="$refs.OperaInsuranceApply.open('缁繚', { id: row.id, type: 1 })">涓�浠剁画淇�</el-button>
+<!--                    <el-button type="text" @click="dele(row)">鍒犻櫎鎻愰啋</el-button>-->
+                </template>
             </el-table-column>
         </el-table>
+        <div style="width: 100%; height: 10px;"></div>
+        <el-pagination
+            @current-change="handleCurrentChange"
+            :current-page="currentPage"
+            layout="total, prev, pager, next, jumper"
+            :total="total">
+        </el-pagination>
+        <!--    缁繚    -->
+        <OperaInsuranceApply ref="OperaInsuranceApply" @success="successEvent" />
     </GlobalWindow>
 </template>
 
 <script>
     import BaseOpera from '@/components/base/BaseOpera'
     import GlobalWindow from '@/components/common/GlobalWindow'
+    import OperaInsuranceApply from '@/components/enterprise/OperaInsuranceApplyWindow'
+    import { fetchList } from '@/api/business/insuranceApply'
     export default {
         name: 'renewalInsurance',
         extends: BaseOpera,
-        components: { GlobalWindow },
+        components: { GlobalWindow, OperaInsuranceApply },
         data () {
             return {
                 form: {
                     id: null
                 },
-                tableData: []
+                tableData: [],
+                total: 0,
+                currentPage: 1
             }
         },
         created () {
@@ -63,7 +87,31 @@
             })
         },
         methods: {
-
+            open (title, target) {
+                this.title = title
+                this.visible = true
+                this.getList()
+            },
+            handleCurrentChange(page) {
+                this.currentPage = page
+                this.getList()
+            },
+            getList() {
+                fetchList({
+                    capacity: 10,
+                    page: this.currentPage,
+                    model: {
+                        loseEfficacy: 1,
+                        status: 5
+                    }
+                }).then(res => {
+                    this.tableData = res.records
+                    this.total = res.total
+                })
+            },
+            successEvent(){
+                this.$emit('success')
+            }
         }
     }
 </script>

--
Gitblit v1.9.3