From 529d0b8982cf30f57ba7e366c0f822c1d82c0b69 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期二, 07 五月 2024 13:37:27 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/1.0.1' into 1.0.1

---
 company/src/components/business/OperaUnionChangeDetailWindow.vue |   32 +++++++++++++++++++++++---------
 1 files changed, 23 insertions(+), 9 deletions(-)

diff --git a/company/src/components/business/OperaUnionChangeDetailWindow.vue b/company/src/components/business/OperaUnionChangeDetailWindow.vue
index ac79789..d46604b 100644
--- a/company/src/components/business/OperaUnionChangeDetailWindow.vue
+++ b/company/src/components/business/OperaUnionChangeDetailWindow.vue
@@ -21,7 +21,7 @@
                         <template v-if="2">
                             <el-button type="primary"  @click="$refs.ApplyChangeDetails.open('鍔犲噺淇濊鍗�',model,0)">瀵煎嚭璇﹀崟</el-button>
                             <el-button v-if="[1,2].includes(model.status)" type="primary" @click="viewApplyFile">鏌ョ湅鐢宠鍗�</el-button>
-                            <el-button v-if="[0].includes(model.status)" type="primary" @click="getSignLink(0)">绛剧讲鐢宠鍗�</el-button>
+                            <el-button v-if="[0].includes(model.status)" type="primary" :disabled="loading" :loading="loading" @click="getSignLink(0)">绛剧讲鐢宠鍗�</el-button>
                             <el-button v-if="[2].includes(model.status)" type="primary" @click="viewPidan">鏌ョ湅鎵瑰崟</el-button>
                             <el-button v-if=" [1].includes(model.status)" type="primary" @click="$refs.OperaUnionChangeCheckWindow.open('涓婁紶鎵瑰崟',model,3)">涓婁紶鎵瑰崟</el-button>
                             <el-button  v-if="[0,1].includes(model.status)" type="danger" @click="$refs.OperaUnionChangeCheckWindow.open('閫�鍥炴姇淇�',model,1)">閫�鍥炴姇淇�</el-button>
@@ -30,7 +30,7 @@
                           <template  v-if="0">
                             <el-button type="primary"  @click="$refs.ApplyChangeDetails.open('鏇存崲娲鹃仯鍗曚綅璇﹀崟',model,0)">瀵煎嚭璇﹀崟</el-button>
                             <el-button v-if="[1,2].includes(model.status)" type="primary" @click="viewApplyFile">鏌ョ湅鐢宠鍗�</el-button>
-                            <el-button v-if="[0].includes(model.status)" type="primary" @click="getSignLink(0)">绛剧讲鐢宠鍗�</el-button>
+                            <el-button v-if="[0].includes(model.status)" type="primary" :disabled="loading" :loading="loading" @click="getSignLink(0)">绛剧讲鐢宠鍗�</el-button>
                             <el-button v-if="[2].includes(model.status)" type="primary" @click="viewPidan">鏌ョ湅鎵瑰崟</el-button>
                           </template>
                         </template>
@@ -50,7 +50,7 @@
                             align="center"
                             label="淇濆崟鍙�">
                             <template slot-scope="{row}">
-                                <el-button type="text" @click="$refs.insuranceApplyDetails.open('鎶曚繚璇︽儏', { id: row.applyId })">{{row.applyCode}}</el-button>
+                                <el-button type="text" @click="$refs.detailsEntrustedInsurance.open('鎶曚繚璇︽儏', { id: row.unionApplyId })">{{row.applyCode}}</el-button>
                             </template>
                         </el-table-column>
                         <el-table-column
@@ -192,6 +192,8 @@
         <factoryChange ref="factoryChange" @success="successEvent" />
         <!--    鎶曚繚璇︽儏    -->
         <insuranceApplyDetails ref="insuranceApplyDetails" @success="successEvent" />
+        <!-- 璇︽儏 -->
+        <detailsEntrustedInsurance ref="detailsEntrustedInsurance" />
       <!-- 淇敼鎵嬫満鍙� -->
       <el-dialog
           :title="signTitle"
@@ -259,6 +261,7 @@
     getSignLink
 } from '@/api/business/unionChange'
 import {applyChangeOpt, listAll as applyList} from '@/api/business/applyChange'
+import detailsEntrustedInsurance from '@/components/business/detailsEntrustedInsurance'
 
 import {sendSms} from "@/api/business/smsEmail";
 import OperaInsuranceApply from '@/components/enterprise/OperaInsuranceApplyWindow'
@@ -275,6 +278,7 @@
       OperaInsuranceApply,
       reinsurance,
       factoryChange,
+      detailsEntrustedInsurance,
       insuranceApplyDetails: () => import ('@/components/business/OperaInsuranceApplyWindow')
   },
   data () {
@@ -313,7 +317,8 @@
         list: [],
       activeName: '0',
         total: 0,
-      currentPage: 1
+      currentPage: 1,
+        loading: false
     }
   },
   created () {
@@ -366,11 +371,19 @@
     },
     getSignLink (flag) {
         this.signTitle = '绛剧讲鐢宠鍗�'
-      this.form.type = flag
-      this.visiblePhone = true
-      this.$nextTick(() => {
-        this.$refs.form.resetFields()
-      });
+        this.form.type = flag
+        this.loading = true
+        getSignLink(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) => {
@@ -459,6 +472,7 @@
         this.model = res
         this.tableData = new Array()
         this.tableData.push(res)
+          console.log(this.tableData)
         this.pidanFileData.push({ name: '鍟嗘埛淇濋櫓鍗�', file: this.model.pidanFile })
         this.getApplyList()
       }).catch(err => {

--
Gitblit v1.9.3