From 5506edbe54883b31db3cc8e4a1d9d0795a18a3c9 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期五, 27 十二月 2024 14:37:54 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/2.0.1' into 2.0.1

---
 company/src/views/enterprise/myPolicy.vue |   16 ++++++++++++----
 1 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/company/src/views/enterprise/myPolicy.vue b/company/src/views/enterprise/myPolicy.vue
index b711b90..2f1dd47 100644
--- a/company/src/views/enterprise/myPolicy.vue
+++ b/company/src/views/enterprise/myPolicy.vue
@@ -23,7 +23,7 @@
             </el-form-item>
             <el-form-item label="鐘舵��" prop="timeOut">
                 <el-select v-model="searchForm.timeOut" placeholder="璇烽�夋嫨" @change="search">
-                    <el-option label="鏈紑濮�" value="0"></el-option>
+                    <el-option label="寰呯敓鏁�" value="0"></el-option>
                     <el-option label="淇濋殰涓�" value="1"></el-option>
                     <el-option label="宸茶繃鏈�" value="2"></el-option>
                 </el-select>
@@ -97,7 +97,9 @@
                 </el-table-column>
                 <el-table-column prop="statusInfo" align="center" fixed label="鐘舵��">
                   <template slot-scope="{row}">
-                    <span :class="'apply-status'+row.status">{{row.statusInfo}}</span>
+                    <span style="color:#f95601;" v-if="row.status === 5 && row.statusInfo === '寰呯敓鏁�'">{{row.statusInfo}}</span>
+                    <span style="color:#999;" v-else-if="row.status === 5 && row.statusInfo === '宸茶繃鏈�'">{{row.statusInfo}}</span>
+                    <span :class="'apply-status'+row.status" v-else>{{row.statusInfo}}</span>
                   </template>
                 </el-table-column>
                 <el-table-column prop="solutionsName" align="center" fixed label="淇濋櫓鏂规" min-width="150"></el-table-column>
@@ -156,7 +158,7 @@
                         <el-button type="text" @click="godetail(row)" v-permissions="['business:insuranceapply:update']">鏌ョ湅璇︽儏</el-button>
                       <!--                        <el-button type="text" @click="$refs.OperaApplyChangeMonthWindow.open('鍔犲噺淇濇湀搴﹁垂鐢ㄧ粺璁�',row)" v-permissions="['business:applychange:query']">鍔犲噺淇濊垂鐢�</el-button>
                                           <template v-if="row.statusCollect === 2">-->
-                        <el-button type="text" @click="$refs.additionSubtractionApplication.open('鍔犲噺淇濈敵璇�', { id: row.id })">鍔犲噺淇濈敵璇�</el-button>
+                        <el-button type="text" @click="$refs.additionSubtractionApplication.open('鍔犲噺淇濈敵璇�', { id: row.id })" v-if="isShow(row.status, row.endTime)">鍔犲噺淇濈敵璇�</el-button>
 <!--                        </template>-->
                     </template>
                 </el-table-column>
@@ -216,7 +218,7 @@
         startTimeE: '',
         startTimeS: '',
         baseSolutionId: '',
-        status: '5',
+        status: '5,27',
         solutionType: '',
         timeOut: ''
       },
@@ -241,6 +243,12 @@
     this.getNum()
   },
   methods: {
+    // 鍒ゆ柇鏄惁鏄剧ず鍔犲噺淇�
+    isShow(status, endTime) {
+      const currentDate = new Date();
+      const specifiedDate = new Date(endTime);
+      return [5,27].includes(status) && (currentDate < specifiedDate);
+    },
     godetail (row) {
       if (row.solutionType == 1) {
         this.$refs.OperaWtbApplyShopWindow.open('濮旀墭鎶曚繚璇︽儏', { id: row.id })

--
Gitblit v1.9.3