From a4945c89ee72aa8b6f2c0a75653a3256a2b30b4f Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期四, 16 五月 2024 19:02:57 +0800
Subject: [PATCH] 提交一把
---
company/src/components/business/OperaWtbApplyShopWindow.vue | 113 ++++++++++++++++++++++++++++++++++++--------------------
1 files changed, 72 insertions(+), 41 deletions(-)
diff --git a/company/src/components/business/OperaWtbApplyShopWindow.vue b/company/src/components/business/OperaWtbApplyShopWindow.vue
index 104cf7f..297eb8a 100644
--- a/company/src/components/business/OperaWtbApplyShopWindow.vue
+++ b/company/src/components/business/OperaWtbApplyShopWindow.vue
@@ -11,9 +11,9 @@
<div class="desc_item_label" v-if="userInfo.type === 1 && model.status ===27 ">
<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" @click="$refs.OperaInsuranceApplyAddWindow.open('缁繚', {id: dataId,type: 1 })">涓�閿画淇�</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">
@@ -28,18 +28,18 @@
<template v-if="userInfo.type === 1">
<el-button v-if="model.status == 24" type="primary" @click="$refs.OperaInsuranceApply.open('鎶曚繚鐢宠', {id: dataId})">鍐嶆鎶曚繚</el-button>
<el-button v-if="[21,22,23,24,25,26,27].includes(model.status)" type="primary" @click="viewFanganshu">鏌ョ湅纭涔�</el-button>
- <el-button v-if="[22,23,24,25,26,27].includes(model.status)" type="primary" @click="viewShenqingdan">鏌ョ湅鐢宠鍗�</el-button>
+ <el-button v-if="[22,23,24,25,26,27].includes(model.status) && model.shenqingdanFile" type="primary" @click="viewShenqingdan">鏌ョ湅鐢宠鍗�</el-button>
<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 == 24" type="primary" @click="closeOrder">鍏抽棴璁㈠崟</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">
<el-button v-if="[21,22,23,24,25,26,27].includes(model.status)" type="primary" @click="viewFanganshu">鏌ョ湅纭涔�</el-button>
- <el-button v-if="[22,23,24,25,26,27].includes(model.status)" type="primary" @click="viewShenqingdan">鏌ョ湅鐢宠鍗�</el-button>
+ <el-button v-if="[22,23,24,25,26,27].includes(model.status) && model.shenqingdanFile" type="primary" @click="viewShenqingdan">鏌ョ湅鐢宠鍗�</el-button>
<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>
<el-button v-if="model.status == 22" type="primary" @click="$refs.InsuranceDetails.open('鎶曚繚瀹℃牳',model,1)">鎶曚繚瀹℃牳</el-button>
@@ -48,7 +48,7 @@
</template>
<template v-if="userInfo.type === 0">
<el-button v-if="[21,22,23,24,25,26,27].includes(model.status)" type="primary" @click="viewFanganshu">鏌ョ湅纭涔�</el-button>
- <el-button v-if="[22,23,24,25,26,27].includes(model.status)" type="primary" @click="viewShenqingdan">鏌ョ湅鐢宠鍗�</el-button>
+ <el-button v-if="[22,23,24,25,26,27].includes(model.status) && model.shenqingdanFile" type="primary" @click="viewShenqingdan">鏌ョ湅鐢宠鍗�</el-button>
<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>
</template>
@@ -180,6 +180,8 @@
<el-option label="鐢宠閫�鍥�" value="3"></el-option>
<el-option label="宸查��鍥�" value="5"></el-option>
<el-option label="宸插叧闂�" value="6"></el-option>
+ <el-option label="寰呭嚭鍗�" value="7"></el-option>
+ <el-option label="鎶曚繚涓�" value="9"></el-option>
</el-select>
</el-form-item>
<el-form-item label="鎵瑰崟鐢熸晥璧锋湡" prop="end">
@@ -269,6 +271,11 @@
<span>{{row.fee!=null?row.fee: '-'}}</span>
</template>
</el-table-column>
+ <el-table-column
+ prop="remark"
+ align="center"
+ label="澶囨敞">
+ </el-table-column>
</el-table>
<el-table
:data="list1"
@@ -298,7 +305,7 @@
</el-table-column>
<el-table-column
:key="Math.random()"
- prop="applyCode"
+ prop="validCode"
align="center"
label="鎵瑰崟鍙�">
</el-table-column>
@@ -324,8 +331,20 @@
:key="Math.random()"
prop="applyStartTime"
align="center"
- label="鎵瑰崟鐢熸晥璧锋湡">
+ label="鎵瑰鐢熸晥鏃ユ湡">
</el-table-column>
+ <el-table-column
+ :key="Math.random()"
+ prop="delValidTime"
+ align="center"
+ label="鎵瑰噺鐢熸晥鏃ユ湡">
+ </el-table-column>
+ <el-table-column
+ :key="Math.random()"
+ prop="remark"
+ align="center"
+ label="澶囨敞">
+ </el-table-column>
<el-table-column
align="center"
:key="Math.random()"
@@ -363,7 +382,7 @@
<el-table-column
:key="Math.random()"
align="center"
- prop="applyCode"
+ prop="validCode"
label="鎵瑰崟鍙�">
</el-table-column>
<el-table-column
@@ -385,6 +404,11 @@
label="鎵瑰崟鐢熸晥璧锋湡">
</el-table-column>
<el-table-column
+ prop="remark"
+ align="center"
+ label="澶囨敞">
+ </el-table-column>
+ <el-table-column
:key="Math.random()"
align="center"
label="鎿嶄綔">
@@ -404,7 +428,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"
@@ -430,7 +454,7 @@
<!-- 浼佷笟鐢宠閫�鍥� -->
<applyReturn ref="applyReturn" @success="successEvent" />
<!-- 鏂板鎶曚繚 -->
- <OperaInsuranceApply ref="OperaInsuranceApply" @success="successEvent" />
+ <OperaInsuranceApplyAddWindow ref="OperaInsuranceApplyAddWindow" @success="successEvent" />
<!-- 鍔犲噺淇濈敵璇� -->
<additionSubtractionApplication ref="additionSubtractionApplication" @success="successEvent" />
<!-- 鏇存崲娲鹃仯鍗曚綅鐢宠 -->
@@ -476,6 +500,7 @@
<script>
import BaseOpera from '@/components/base/BaseOpera'
+import OperaInsuranceApplyAddWindow from '@/components/enterprise/OperaInsuranceApplyAddWindow'
import GlobalWindow from '@/components/common/GlobalWindow'
import InsuranceDetails from '@/components/business/InsuranceDetails'
import OperaWtbApplyCheckWindow from '@/components/business/OperaWtbApplyCheckWindow'
@@ -484,7 +509,6 @@
import operaverifyPhoneNumberWindew from '@/components/business/operaverifyPhoneNumberWindew'
import OperaApplyChangeDetailWindow from '@/components/business/OperaApplyChangeDetailWindow'
import OperaApplyChangeUnitDetailWindow from '@/components/business/OperaApplyChangeUnitDetailWindow'
-
import applyReturn from '@/components/enterprise/applyReturn'
import {
getDetail,
@@ -498,7 +522,6 @@
import { findListByDTO } from '@/api/business/dispatchUnit'
import { fetchList } from '@/api/business/applyChange'
import { findListByDTO as worktypeFindListByDTO } from '@/api/business/worktype'
-import OperaInsuranceApply from '@/components/enterprise/OperaInsuranceApplyWindow'
import { mapState } from 'vuex'
import {sendSms} from "@/api/business/smsEmail";
@@ -510,7 +533,7 @@
InsuranceDetails,
OperaWtbApplyCheckWindow,
applyReturn,
- OperaInsuranceApply,
+ OperaInsuranceApplyAddWindow,
additionSubtractionApplication,
factoryChange,
OperaApplyChangeDetailWindow,
@@ -566,7 +589,9 @@
gzList: [],
activeName: '0',
total: 0,
- currentPage: 1
+ currentPage: 1,
+
+ loading: false
}
},
created () {
@@ -580,11 +605,10 @@
},
methods: {
open (title, target) {
- this.visible = true
this.title = title
this.model = {}
- this.num=0
- this.timer=null
+ this.num= 0
+ this.timer= null
this.dataId = null
this.dataId = target.id
this.form.businessId = target.id
@@ -600,6 +624,8 @@
this.formInline.startTimeS = ''
this.formInline.type = ''
this.activeName = '0'
+
+ this.visible = true
this.getDetail()
this.getList()
this.getDW()
@@ -614,46 +640,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