From 6548996bfac9dd02e21e1fd9519109fc8b5dfeb2 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期六, 11 五月 2024 18:48:47 +0800
Subject: [PATCH] 提交一把
---
company/src/components/business/OperaUnionChangeUnitDetailWindow.vue | 33 +++++++++++++++++++++------------
1 files changed, 21 insertions(+), 12 deletions(-)
diff --git a/company/src/components/business/OperaUnionChangeUnitDetailWindow.vue b/company/src/components/business/OperaUnionChangeUnitDetailWindow.vue
index ff3da3d..58017bc 100644
--- a/company/src/components/business/OperaUnionChangeUnitDetailWindow.vue
+++ b/company/src/components/business/OperaUnionChangeUnitDetailWindow.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>
@@ -29,7 +29,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>
</div>
@@ -40,7 +40,7 @@
border
style="width: 100%">
<el-table-column
- prop="validCode"
+ prop="code"
align="center"
label="鎵瑰崟鍙�">
</el-table-column>
@@ -150,7 +150,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>
@@ -240,7 +240,7 @@
import {applyChangeOpt, listAll as applyList} 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'
export default {
@@ -270,7 +270,7 @@
visibleFile:false,
form: {
businessId: null,
- phone: this.$store.state.userInfo.company.phone,
+ phone: this.$store.state.userInfo.company? this.$store.state.userInfo.company.phone:null,
id: null,
editDate: '',
code:null
@@ -292,7 +292,8 @@
list: [],
activeName: '0',
total: 0,
- currentPage: 1
+ currentPage: 1,
+ loading: false
}
},
created () {
@@ -344,12 +345,20 @@
}, 1000)
},
getSignLink (flag) {
- this.signTitle = '绛剧讲鏂规纭涔�'
+ this.signTitle = '绛剧讲鐢宠鍗�'
this.form.type = flag
- this.visiblePhone = true
- this.$nextTick(() => {
- this.$refs.form.resetFields()
- });
+ 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) => {
--
Gitblit v1.9.3