From 9607e7e25475d7533944f2218eb0a40189c343f2 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期五, 03 五月 2024 22:07:01 +0800
Subject: [PATCH] mrshi

---
 company/src/components/business/OperaWtbApplyShopWindow.vue |   57 ++++++++++++++++++++++++++++++++-------------------------
 1 files changed, 32 insertions(+), 25 deletions(-)

diff --git a/company/src/components/business/OperaWtbApplyShopWindow.vue b/company/src/components/business/OperaWtbApplyShopWindow.vue
index 8d1aefa..d31b62f 100644
--- a/company/src/components/business/OperaWtbApplyShopWindow.vue
+++ b/company/src/components/business/OperaWtbApplyShopWindow.vue
@@ -12,8 +12,8 @@
                     <div class="desc_item_label_left">
                         <span>淇濋櫓鍒版湡杩樻湁 <b style="color: #F95601;">{{model.loseEfficacyDays ? model.loseEfficacyDays : '-'}}</b> 澶�</span>
                         <el-button type="primary" v-if="model.status === 27" @click="$refs.OperaInsuranceApply.open('缁繚', { id: dataId, type: 1 })">涓�閿画淇�</el-button>
-                        <el-button type="primary" v-if="model.status === 27" @click="$refs.additionSubtractionApplication.open('鍔犲噺淇濈敵璇�', { id: dataId })">鍔犲噺淇濈敵璇�</el-button>
-                        <el-button type="primary" v-if="model.status === 27" @click="$refs.factoryChange.open('鏇存崲娲鹃仯鍗曚綅鐢宠', { id: dataId })">鏇存崲娲鹃仯鍗曚綅鐢宠</el-button>
+                        <el-button type="primary" v-if="model.status === 27 && model.loseEfficacyDays" @click="$refs.additionSubtractionApplication.open('鍔犲噺淇濈敵璇�', { id: dataId })">鍔犲噺淇濈敵璇�</el-button>
+                        <el-button type="primary" v-if="model.status === 27 && model.loseEfficacyDays" @click="$refs.factoryChange.open('鏇存崲娲鹃仯鍗曚綅鐢宠', { id: dataId })">鏇存崲娲鹃仯鍗曚綅鐢宠</el-button>
                     </div>
                 </div>
                 <div class="desc_item_label">
@@ -32,9 +32,9 @@
                         <el-button v-if="[1,2,3].includes(model.unionApplyTbdStatus) &&(model.toubaodanFile || model.oubaodanSignedFile)" type="primary" @click="viewToubaodan">鏌ョ湅鎶曚繚鍗�</el-button>
                         <el-button v-if="[3].includes(model.unionApplyTbdStatus) &&(model.baoxiandanFile)" type="primary" @click="viewBaoxiandan">鏌ョ湅淇濋櫓鍗�</el-button>
                         <!--                          goSign-->
-                        <el-button v-if="model.status == 20" type="primary" @click="getSignLink(0)">绛剧讲鏂规纭涔�</el-button>
-                        <el-button v-if="model.status == 21" type="primary" @click="getSignLink(1)">绛剧讲鐢宠鍗�</el-button>
-                        <el-button v-if="model.unionApplyTbdStatus == 1" type="primary" @click="getSignLink(2)">绛剧讲鎶曚繚鍗�</el-button>
+                        <el-button v-if="model.status == 20" type="primary" :disabled="loading" :loading="loading" @click="getSignLink(0)">绛剧讲鏂规纭涔�</el-button>
+                        <el-button v-if="model.status == 21" type="primary" :disabled="loading" :loading="loading" @click="getSignLink(1)">绛剧讲鐢宠鍗�</el-button>
+                        <el-button v-if="model.unionApplyTbdStatus == 1" type="primary" :disabled="loading" :loading="loading" @click="getSignLink(2)">绛剧讲鎶曚繚鍗�</el-button>
                         <el-button v-if="model.status == 24" type="danger" @click="closeOrder">鍏抽棴璁㈠崟</el-button>
                       </template>
                     <template v-if="userInfo.type === 2">
@@ -568,7 +568,9 @@
       gzList: [],
       activeName: '0',
       total: 0,
-      currentPage: 1
+      currentPage: 1,
+
+        loading: false
     }
   },
   created () {
@@ -616,46 +618,51 @@
         this.signTitle = '绛剧讲鎶曚繚鍗�'
       }
       this.form.type = flag
-      this.visiblePhone = true
-      this.$nextTick(() => {
-        this.$refs.form.resetFields()
-      });
+        this.goSignDo()
+      // this.visiblePhone = true
+      // this.$nextTick(() => {
+      //   this.$refs.form.resetFields()
+      // });
     },
     goSignDo(){
-      this.$refs.form.validate((valid) => {
-        if (!valid) {
-          return
-        }
-        this.isWorking = true
+      // this.$refs.form.validate((valid) => {
+      //   if (!valid) {
+      //     return
+      //   }
+      //   this.isWorking = true
+        this.loading = true
         if(this.form.type===0){
           getSignTBQRSLink(this.form).then(res => {
-            setTimeout(() => {
-              this.visiblePhone=false
+              this.loading = false
+            // setTimeout(() => {
+            //   this.visiblePhone=false
               window.open(res)
-            }, 500)
+            // }, 500)
           }).catch(err => {
             this.$tip.apiFailed(err)
           })
         } else if (this.form.type === 1) {
           getMemberListOnlineSignLink(this.form).then(res => {
-            setTimeout(() => {
-              this.visiblePhone=false
+              this.loading = false
+            // setTimeout(() => {
+            //   this.visiblePhone=false
               window.open(res)
-            }, 500)
+            // }, 500)
           }).catch(err => {
             this.$tip.apiFailed(err)
           })
         } else if (this.form.type === 2) {
           getSignWTBTBDLink(this.form).then(res => {
-            setTimeout(() => {
-              this.visiblePhone=false
+              this.loading = false
+            // setTimeout(() => {
+            //   this.visiblePhone=false
               window.open(res)
-            }, 500)
+            // }, 500)
           }).catch(err => {
             this.$tip.apiFailed(err)
           })
         }
-      })
+      // })
     },
     send () {
       sendSms({

--
Gitblit v1.9.3