From 09da100729793848bc01b51f7b05ca3f1e7ec64f Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期四, 20 六月 2024 14:05:35 +0800
Subject: [PATCH] 提交一把

---
 company/src/components/business/OperaApplyChangeDetailWindow.vue |   67 ++++++++++++++++++++++-----------
 1 files changed, 45 insertions(+), 22 deletions(-)

diff --git a/company/src/components/business/OperaApplyChangeDetailWindow.vue b/company/src/components/business/OperaApplyChangeDetailWindow.vue
index 337371a..0597f7d 100644
--- a/company/src/components/business/OperaApplyChangeDetailWindow.vue
+++ b/company/src/components/business/OperaApplyChangeDetailWindow.vue
@@ -15,17 +15,17 @@
                         <span v-if="model.status === 1">淇濆崟鐘舵�侊細<span  :class="'change-status'+model.status" >寰呭鏍�</span></span>
                         <span v-if="model.status === 2">淇濆崟鐘舵�侊細<span  :class="'change-status'+model.status" >宸茬敓鏁�</span></span>
                         <span v-if="model.status === 7">淇濆崟鐘舵�侊細<span  :class="'change-status'+model.status" >寰呭嚭鍗�</span></span>
-                        <span v-if="model.status === 9">淇濆崟鐘舵�侊細<span  :class="'change-status'+model.status" >鎶曚繚涓�</span></span>
+                        <span v-if="model.status === 9">淇濆崟鐘舵�侊細<span  :class="'change-status'+model.status" >鎵规敼鐢宠涓�</span></span>
                         <span v-if="model.status === 3 || model.status === 4">淇濆崟鐘舵�侊細<span  :class="'change-status'+model.status" >閫�鍥炵敵璇�</span></span>
                         <span v-if="model.status === 5 || model.status === 8">淇濆崟鐘舵�侊細<span  :class="'change-status'+model.status" >宸查��鍥�</span></span>
                         <span v-if=" model.status === 6">淇濆崟鐘舵�侊細<span  :class="'change-status'+model.status" >宸插叧闂�</span></span>
-                        <span>鎻愪氦鏃堕棿锛歿{ model.createDate }}</span>
+                        <span>鐢宠鏃ユ湡锛歿{ model.validTime }}</span>
                     </div>
                   <div class="desc_item_label_right">
                       <template v-if="userInfo.type === 1">
-                          <el-button type="primary"  v-if="[5,8,6].includes(model.status)"  @click="$refs.reinsurance.open('鍔犲噺淇濈敵璇�', {id: dataId, applyChangId: modelId})">鍐嶆鎶曚繚</el-button>
+                          <el-button type="primary"  v-if="[5,8].includes(model.status)"  @click="$refs.reinsurance.open('鍔犲噺淇濈敵璇�', {id: dataId, applyChangId: modelId})">鍐嶆鎶曚繚</el-button>
                         <el-button type="primary"  @click="$refs.ApplyChangeDetails.open('鍔犲噺淇濊鍗�',apply,model,0)">瀵煎嚭璇﹀崟</el-button>
-                        <el-button type="primary" v-if="model.status == 0" @click="getSignLink(0)">绛剧讲鐢宠鍗�</el-button>
+                        <el-button type="primary" v-if="model.status == 0" :disabled="loading" :loading="loading" @click="getSignLink(0)">绛剧讲鐢宠鍗�</el-button>
                         <el-button v-if="[0, 1, 3, 7].includes(model.status) && model.solutionType == 0" type="danger" @click="$refs.add_subtract_return.open('鐢宠閫�鍥�', { id: modelId })">鐢宠閫�鍥�</el-button>
                         <el-button v-if="[1,2,4,7,9].includes(model.status)" type="primary" @click="viewApplyFile">鏌ョ湅鐢宠鍗�</el-button>
                           <el-button v-if="model.status == 2" type="primary" @click="viewPidan">鏌ョ湅鎵瑰崟</el-button>
@@ -35,7 +35,7 @@
                             <el-button type="primary"  @click="$refs.ApplyChangeDetails.open('鍔犲噺淇濊鍗�',apply,model,0)">瀵煎嚭璇﹀崟</el-button>
                             <el-button v-if="[1,2,4,7,9].includes(model.status)" type="primary" @click="viewApplyFile">鏌ョ湅鐢宠鍗�</el-button>
                             <el-button v-if="[2].includes(model.status)" type="primary" @click="viewPidan">鏌ョ湅鎵瑰崟</el-button>
-                            <el-button v-if=" model.solutionType == 1 && [1].includes(model.status)" type="primary" @click="$refs.ApplyChangeDetails.open('鎶曚繚瀹℃牳',apply,model,1)">鎶曚繚瀹℃牳</el-button>
+                            <el-button v-if=" model.solutionType == 1 && [1].includes(model.status)" type="primary" @click="$refs.ApplyChangeDetails.open('鎶曚繚瀹℃牳',apply,model,1)">鎵规敼瀹℃牳</el-button>
                             <el-button v-if=" model.solutionType == 1 && [0,1].includes(model.status)" type="danger" @click="$refs.OperaApplyChangeCheckWindow.open('閫�鍥炵敵璇�',model,1)">閫�鍥炵敵璇�</el-button>
                             <el-button v-if=" model.solutionType == 1 && [7].includes(model.status)" type="danger" @click="closeOrder">鍏抽棴璁㈠崟</el-button>
                             <el-button v-if=" model.solutionType == 0 && [1].includes(model.status)" type="primary" @click="$refs.OperaApplyChangeCheckWindow.open('涓婁紶鎵瑰崟',model,3)">涓婁紶鎵瑰崟</el-button>
@@ -90,7 +90,12 @@
                       <el-table-column
                           prop="applyStartTime"
                           align="center"
-                          label="鎵瑰崟鐢熸晥璧锋湡">
+                          label="鎵瑰鐢熸晥鏃ユ湡">
+                      </el-table-column>
+                      <el-table-column
+                          prop="delValidTime"
+                          align="center"
+                          label="鎵瑰噺鐢熸晥鏃ユ湡">
                       </el-table-column>
                         <el-table-column
                             prop="addNum"
@@ -133,7 +138,7 @@
                             label="鎬у埆">
                             <template slot-scope="{row}">
                                 <span v-if="row.sex === 0">鐢�</span>
-                                <span v-else>濂�</span>
+                                <span  v-if="row.sex === 1">濂�</span>
                             </template>
                         </el-table-column>
                         <el-table-column
@@ -156,10 +161,14 @@
                             prop="endTime"
                             label="淇濋櫓鐢熸晥姝㈡湡">
                         </el-table-column>
-                        <el-table-column
-                            prop="fee"
-                            label="宸蹭骇鐢熻垂鐢紙鍏冿級">
-                        </el-table-column>
+                      <el-table-column
+                          prop="fee"
+                          label="璐圭敤鍙樻洿锛堝厓锛�">
+                      </el-table-column>
+                      <el-table-column
+                          prop="remark"
+                          label="澶囨敞">
+                      </el-table-column>
                     </el-table>
                     <div class="desc_item_from_page">
                         <el-pagination
@@ -172,7 +181,7 @@
                     </div>
                 </div>
                 <div class="desc_item_review">
-                    <div class="desc_item_review_label">瀹℃牳娴佺▼</div>
+                    <div class="desc_item_review_label">鎿嶄綔璁板綍</div>
                   <el-timeline :reverse="reverse">
                     <el-timeline-item
                         v-for="(activity, index) in activities"
@@ -185,7 +194,7 @@
                                     </span>
                                 </span>
                         <span style="margin-top: 5px; font-size: 12px; font-weight: 400; color: #999999;">
-                                    鎿嶄綔鍛�-{{activity.creatorName}}锛坽{activity.creatorType==1? activity.companyName: (activity.creatorType==2? activity.companyName: "骞冲彴绔�") }}}锛墈{activity.createDate}}
+                                    鎿嶄綔鍛�-{{activity.creatorName}}锛坽{activity.creatorType==1? activity.companyName: (activity.creatorType==2? activity.companyName: "骞冲彴绔�") }}锛墈{activity.createDate}}
                                 </span>
                       </div>
                     </el-timeline-item>
@@ -202,6 +211,7 @@
         <OperaInsuranceApply ref="OperaInsuranceApply" @success="successEvent" />
         <!--    鍔犲噺淇濈敵璇�    -->
         <reinsurance ref="reinsurance" @success="successEvent" />
+      <OperaPdfViewerWindow ref="OperaPdfViewerWindow" />
         <!--    鏇存崲娲鹃仯鍗曚綅鐢宠    -->
         <factoryChange ref="factoryChange" @success="successEvent" />
         <!--    鎶曚繚璇︽儏    -->
@@ -256,9 +266,10 @@
   getChangeMemberListOnlineSignLink} from '@/api/business/applyChange'
 
 import {sendSms} from "@/api/business/smsEmail";
-import OperaInsuranceApply from '@/components/enterprise/OperaInsuranceApplyWindow'
+import OperaInsuranceApply from '@/components/enterprise/OperaInsuranceApplyAddWindow'
 import { mapState } from 'vuex'
 
+import OperaPdfViewerWindow from '@/components/business/OperaPdfViewerWindow'
 export default {
   name: 'OperaApplyChangeDetailWindow1',
   extends: BaseOpera,
@@ -269,6 +280,7 @@
       add_subtract_return,
       OperaInsuranceApply,
       reinsurance,
+      OperaPdfViewerWindow,
       factoryChange,
       insuranceApplyDetails: () => import ('@/components/business/OperaInsuranceApplyWindow')
   },
@@ -307,7 +319,8 @@
         list: [],
       activeName: '0',
         total: 0,
-      currentPage: 1
+      currentPage: 1,
+        loading: false
     }
   },
   created () {
@@ -354,10 +367,18 @@
     getSignLink (flag) {
         this.signTitle = '绛剧讲鐢宠鍗�'
       this.form.type = flag
-      this.visiblePhone = true
-      this.$nextTick(() => {
-        this.$refs.form.resetFields()
-      });
+        this.loading = true
+        getChangeMemberListOnlineSignLink(this.form).then(res => {
+            this.loading = false
+            window.open(res)
+        }).catch(err => {
+            this.loading = false
+            this.$tip.apiFailed(err)
+        })
+      // this.visiblePhone = true
+      // this.$nextTick(() => {
+      //   this.$refs.form.resetFields()
+      // });
     },
     goSignDo(){
       this.$refs.form.validate((valid) => {
@@ -421,12 +442,14 @@
       },
     viewApplyFile(){
        if(this.model.applyFile && this.model.applyFile.fileurlFull){
-        window.open(this.model.applyFile.fileurlFull)
+         this.$refs.OperaPdfViewerWindow.open('鏌ョ湅鐢宠鍗�',this.model.applyFile.fileurlFull)
+        // window.open(this.model.applyFile.fileurlFull)
        }
     },
     viewPidan(){
       if(this.model.pidanFile && this.model.pidanFile.fileurlFull){
-        window.open(this.model.pidanFile.fileurlFull)
+        this.$refs.OperaPdfViewerWindow.open('鏌ョ湅鎵瑰崟',this.model.pidanFile.fileurlFull)
+        // window.open(this.model.pidanFile.fileurlFull)
       }
     },
     handleSizeChange(val){
@@ -434,7 +457,7 @@
     },
     handleCurrentChange(val){
         console.log(val)
-        this.page = val
+        this.currentPage = val
         this.getList()
     },
     onSubmit(){

--
Gitblit v1.9.3