From 6e8501e2ebc00deec415088a1cbd98db8a55a6b1 Mon Sep 17 00:00:00 2001 From: k94314517 <8417338+k94314517@user.noreply.gitee.com> Date: 星期一, 29 一月 2024 20:12:44 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- company/src/components/business/OperaInsuranceApplyWindow.vue | 55 ++++++++++++++++++++++++++++++++++++++++--------------- 1 files changed, 40 insertions(+), 15 deletions(-) diff --git a/company/src/components/business/OperaInsuranceApplyWindow.vue b/company/src/components/business/OperaInsuranceApplyWindow.vue index bff0dfe..37a6fca 100644 --- a/company/src/components/business/OperaInsuranceApplyWindow.vue +++ b/company/src/components/business/OperaInsuranceApplyWindow.vue @@ -15,16 +15,27 @@ <span>鎻愪氦鏃堕棿锛歿{ model.createDate }}</span> </div> <div class="desc_item_label_right"> - <el-button type="primary" @click="$refs.InsuranceDetails.open('鎶曚繚璇︽儏鍗�',model,0)">瀵煎嚭璇﹀崟</el-button> - <el-button v-if="model.status == 2 ||model.status == 3 ||model.status == 5 ||model.status == 7 ||model.status == 8 " type="primary" @click="viewToubaodan">鏌ョ湅鎶曚繚鍗�</el-button> - <el-button v-if="model.status == 5 " type="primary" @click="viewBaoxiandan">鏌ョ湅淇濋櫓鍗�</el-button> - <el-button v-if="model.status == 10 " type="primary" @click="$refs.OperaInsuranceApplyCheckWindow.open('涓婁紶鎶曚繚鍗�',model,2)">涓婁紶鎶曚繚鍗�</el-button> - <el-button v-if="model.status == 3 " type="primary" @click="$refs.OperaInsuranceApplyCheckWindow.open('涓婁紶淇濋櫓鍗�',model,3)">涓婁紶淇濋櫓鍗�</el-button> - <el-button v-if="model.status == 2 " type="primary" @click="goSign">浼佷笟绛剧珷</el-button> - <el-button v-if="model.status == 6 || model.status == 7|| model.status == 8" type="primary" @click="$refs.OperaInsuranceApplyCheckWindow.open('椹冲洖閫�鍥炵敵璇�',model,5)">椹冲洖閫�鍥炵敵璇�</el-button> - <el-button v-if="model.status == 0 " type="primary" @click="$refs.InsuranceDetails.open('鎶曚繚瀹℃牳',model,1)">鎶曚繚瀹℃牳</el-button> - <el-button v-if="model.status != 5 && model.status != 4 && model.status != 1" type="danger" @click="$refs.OperaInsuranceApplyCheckWindow.open('閫�鍥炴姇淇�',model,1)">閫�鍥炴姇淇�</el-button> - <el-button v-if="model.status == 5 " type="danger" @click="$refs.OperaInsuranceApplyCheckWindow.open('淇敼淇濋櫓鍗�',model,4)">淇敼淇濋櫓鍗�</el-button> + <template v-if="userInfo.type === 1"> + <el-button v-if="[0, 2, 3, 10].includes(model.status)" type="danger" @click="$refs.applyReturn.open('鐢宠閫�鍥�', {id: dataId})">鐢宠閫�鍥�</el-button> + <el-button v-if="model.status == 4" type="primary" @click="$refs.OperaInsuranceApply.open('鎶曚繚鐢宠', {id: dataId})">鍐嶆鎶曚繚</el-button> + <el-button type="primary" @click="$refs.InsuranceDetails.open('鎶曚繚璇︽儏鍗�',model,0)">瀵煎嚭璇﹀崟</el-button> + <el-button v-if="[2, 3, 5, 7, 8].includes(model.status)" type="primary" @click="viewToubaodan">鏌ョ湅鎶曚繚鍗�</el-button> + <el-button v-if="model.status == 5" type="primary" @click="viewBaoxiandan">鏌ョ湅淇濋櫓鍗�</el-button> + <el-button v-if="model.status == 2" type="primary" @click="goSign">绛剧讲鎶曚繚鍗�</el-button> + </template> + <template v-else> + <el-button type="primary" @click="$refs.InsuranceDetails.open('鎶曚繚璇︽儏鍗�',model,0)">瀵煎嚭璇﹀崟</el-button> + <el-button v-if="[2, 3, 5, 7, 8].includes(model.status)" type="primary" @click="viewToubaodan">鏌ョ湅鎶曚繚鍗�</el-button> + <el-button v-if="model.status == 5" type="primary" @click="viewBaoxiandan">鏌ョ湅淇濋櫓鍗�</el-button> + <el-button v-if="model.status == 10" type="primary" @click="$refs.OperaInsuranceApplyCheckWindow.open('涓婁紶鎶曚繚鍗�',model,2)">涓婁紶鎶曚繚鍗�</el-button> + <el-button v-if="model.status == 3" type="primary" @click="$refs.OperaInsuranceApplyCheckWindow.open('涓婁紶淇濋櫓鍗�',model,3)">涓婁紶淇濋櫓鍗�</el-button> + <el-button v-if="model.status == 6 || model.status == 7|| model.status == 8" type="primary" @click="$refs.OperaInsuranceApplyCheckWindow.open('椹冲洖閫�鍥炵敵璇�',model,5)">椹冲洖閫�鍥炵敵璇�</el-button> + <el-button v-if="model.status == 0" type="primary" @click="$refs.InsuranceDetails.open('鎶曚繚瀹℃牳',model,1)">鎶曚繚瀹℃牳</el-button> + <el-button v-if="model.status != 5 && model.status != 4 && model.status != 1" type="danger" @click="$refs.OperaInsuranceApplyCheckWindow.open('閫�鍥炴姇淇�',model,1)">閫�鍥炴姇淇�</el-button> + <el-button v-if="model.status == 5" type="danger" @click="$refs.OperaInsuranceApplyCheckWindow.open('淇敼淇濋櫓鍗�',model,4)">淇敼淇濋櫓鍗�</el-button> + </template> + + </div> </div> <div class="desc_item_from"> @@ -201,7 +212,10 @@ </div> <InsuranceDetails ref="InsuranceDetails" @success="successEvent" /> <OperaInsuranceApplyCheckWindow ref="OperaInsuranceApplyCheckWindow" @success="successEvent" /> - <!-- 閫�鍥炴姇淇� --> + <!-- 浼佷笟鐢宠閫�鍥� --> + <applyReturn ref="applyReturn" @success="successEvent" /> + <!-- 鏂板鎶曚繚 --> + <OperaInsuranceApply ref="OperaInsuranceApply" @success="successEvent" /> </GlobalWindow> </template> @@ -210,12 +224,16 @@ import GlobalWindow from '@/components/common/GlobalWindow' import InsuranceDetails from '@/components/business/InsuranceDetails' import OperaInsuranceApplyCheckWindow from '@/components/business/OperaInsuranceApplyCheckWindow' + +import applyReturn from '@/components/enterprise/applyReturn' import {getDetail, getSignLink} from "@/api/business/insuranceApply"; +import OperaInsuranceApply from '@/components/enterprise/OperaInsuranceApplyWindow' +import { mapState } from 'vuex' import {all as solutionAll} from "@/api/business/solutions"; export default { name: 'OperaInsuranceApplyWindow', extends: BaseOpera, - components: { GlobalWindow, InsuranceDetails ,OperaInsuranceApplyCheckWindow}, + components: { GlobalWindow, InsuranceDetails ,OperaInsuranceApplyCheckWindow, applyReturn, OperaInsuranceApply }, data () { return { // 琛ㄥ崟鏁版嵁 @@ -263,12 +281,19 @@ 'field.id': 'id' }) }, + computed: { + ...mapState(['userInfo']) + }, methods: { open(title,target){ - this.visible=true; - this.dataId=target.id - this.getDetail() + this.visible = true; + this.title = title + this.dataId = target.id + this.getDetail() }, + handleClick(e) { + console.log(e) + }, goSign(){ getSignLink(this.dataId).then(res => { window.open(res) -- Gitblit v1.9.3