From 09da100729793848bc01b51f7b05ca3f1e7ec64f Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期四, 20 六月 2024 14:05:35 +0800
Subject: [PATCH] 提交一把
---
company/src/components/business/OperaApplyChangeDetailWindow.vue | 191 +++++++++++++++++++++++++++++++++++++----------
1 files changed, 149 insertions(+), 42 deletions(-)
diff --git a/company/src/components/business/OperaApplyChangeDetailWindow.vue b/company/src/components/business/OperaApplyChangeDetailWindow.vue
index 74f831a..0597f7d 100644
--- a/company/src/components/business/OperaApplyChangeDetailWindow.vue
+++ b/company/src/components/business/OperaApplyChangeDetailWindow.vue
@@ -14,29 +14,43 @@
<span v-if="model.status === 0">淇濆崟鐘舵�侊細<span :class="'change-status'+model.status" >寰呯缃�</span></span>
<span v-if="model.status === 1">淇濆崟鐘舵�侊細<span :class="'change-status'+model.status" >寰呭鏍�</span></span>
<span v-if="model.status === 2">淇濆崟鐘舵�侊細<span :class="'change-status'+model.status" >宸茬敓鏁�</span></span>
+ <span v-if="model.status === 7">淇濆崟鐘舵�侊細<span :class="'change-status'+model.status" >寰呭嚭鍗�</span></span>
+ <span v-if="model.status === 9">淇濆崟鐘舵�侊細<span :class="'change-status'+model.status" >鎵规敼鐢宠涓�</span></span>
<span v-if="model.status === 3 || model.status === 4">淇濆崟鐘舵�侊細<span :class="'change-status'+model.status" >閫�鍥炵敵璇�</span></span>
<span v-if="model.status === 5 || model.status === 8">淇濆崟鐘舵�侊細<span :class="'change-status'+model.status" >宸查��鍥�</span></span>
- <span v-if="model.status === 7 || model.status === 6">淇濆崟鐘舵�侊細<span :class="'change-status'+model.status" >宸插叧闂�</span></span>
- <span>鎻愪氦鏃堕棿锛歿{ model.createDate }}</span>
+ <span v-if=" model.status === 6">淇濆崟鐘舵�侊細<span :class="'change-status'+model.status" >宸插叧闂�</span></span>
+ <span>鐢宠鏃ユ湡锛歿{ model.validTime }}</span>
</div>
<div class="desc_item_label_right">
<template v-if="userInfo.type === 1">
- <el-button type="primary" @click="$refs.ApplyChangeDetails.open('鍔犲噺淇濊鍗�',apply,model)">瀵煎嚭璇﹀崟</el-button>
- <el-button v-if="[5, 8].includes(model.status)" type="primary" @click="$refs.reinsurance.open('鍔犲噺淇濈敵璇�', {id: dataId, applyChangId: modelId})">鍐嶆鎶曚繚</el-button>
- <el-button type="primary" v-if="model.status == 0" @click="$refs.operaverifyPhoneNumberWindew.open('楠岃瘉鎵嬫満鍙�')">绛剧讲鐢宠鍗�</el-button>
- <el-button v-if="[0, 1, 3, 7].includes(model.status)" type="danger" @click="$refs.add_subtract_return.open('鐢宠閫�鍥�', { id: modelId })">鐢宠閫�鍥�</el-button>
- <el-button v-if="model.status == 5" type="primary" @click="viewApplyFile">鏌ョ湅鐢宠鍗�</el-button>
+ <el-button type="primary" v-if="[5,8].includes(model.status)" @click="$refs.reinsurance.open('鍔犲噺淇濈敵璇�', {id: dataId, applyChangId: modelId})">鍐嶆鎶曚繚</el-button>
+ <el-button type="primary" @click="$refs.ApplyChangeDetails.open('鍔犲噺淇濊鍗�',apply,model,0)">瀵煎嚭璇﹀崟</el-button>
+ <el-button type="primary" v-if="model.status == 0" :disabled="loading" :loading="loading" @click="getSignLink(0)">绛剧讲鐢宠鍗�</el-button>
+ <el-button v-if="[0, 1, 3, 7].includes(model.status) && model.solutionType == 0" type="danger" @click="$refs.add_subtract_return.open('鐢宠閫�鍥�', { id: modelId })">鐢宠閫�鍥�</el-button>
+ <el-button v-if="[1,2,4,7,9].includes(model.status)" type="primary" @click="viewApplyFile">鏌ョ湅鐢宠鍗�</el-button>
<el-button v-if="model.status == 2" type="primary" @click="viewPidan">鏌ョ湅鎵瑰崟</el-button>
- <el-button v-if="[5, 8].includes(model.status)" type="primary" @click="closeOrder">鍏抽棴璁㈠崟</el-button>
+ <el-button v-if="[5,8].includes(model.status)" type="primary" @click="closeOrder">鍏抽棴璁㈠崟</el-button>
</template>
- <template v-else>
- <el-button type="primary" @click="$refs.ApplyChangeDetails.open('鍔犲噺淇濊鍗�',apply,model)">瀵煎嚭璇﹀崟</el-button>
- <el-button v-if="[1,2,4].includes(model.status)" type="primary" @click="viewApplyFile">鏌ョ湅鐢宠鍗�</el-button>
+ <template v-if="userInfo.type ===2">
+ <el-button type="primary" @click="$refs.ApplyChangeDetails.open('鍔犲噺淇濊鍗�',apply,model,0)">瀵煎嚭璇﹀崟</el-button>
+ <el-button v-if="[1,2,4,7,9].includes(model.status)" type="primary" @click="viewApplyFile">鏌ョ湅鐢宠鍗�</el-button>
<el-button v-if="[2].includes(model.status)" type="primary" @click="viewPidan">鏌ョ湅鎵瑰崟</el-button>
+ <el-button v-if=" model.solutionType == 1 && [1].includes(model.status)" type="primary" @click="$refs.ApplyChangeDetails.open('鎶曚繚瀹℃牳',apply,model,1)">鎵规敼瀹℃牳</el-button>
+ <el-button v-if=" model.solutionType == 1 && [0,1].includes(model.status)" type="danger" @click="$refs.OperaApplyChangeCheckWindow.open('閫�鍥炵敵璇�',model,1)">閫�鍥炵敵璇�</el-button>
+ <el-button v-if=" model.solutionType == 1 && [7].includes(model.status)" type="danger" @click="closeOrder">鍏抽棴璁㈠崟</el-button>
<el-button v-if=" model.solutionType == 0 && [1].includes(model.status)" type="primary" @click="$refs.OperaApplyChangeCheckWindow.open('涓婁紶鎵瑰崟',model,3)">涓婁紶鎵瑰崟</el-button>
<el-button v-if="model.solutionType == 0 &&[3,4].includes(model.status)" type="primary" @click="$refs.OperaApplyChangeCheckWindow.open('椹冲洖閫�鍥炵敵璇�',model,5)">椹冲洖閫�鍥炵敵璇�</el-button>
<el-button v-if="model.solutionType == 0 &&[0,1,3,4].includes(model.status)" type="danger" @click="$refs.OperaApplyChangeCheckWindow.open('閫�鍥炴姇淇�',model,1)">閫�鍥炴姇淇�</el-button>
<el-button v-if="model.solutionType == 0 &&[2].includes(model.status)" type="danger" @click="$refs.OperaApplyChangeCheckWindow.open('淇敼鎵瑰崟',model,4)">淇敼鎵瑰崟</el-button>
+ </template>
+ <template v-if="userInfo.type ===0">
+ <el-button type="primary" @click="$refs.ApplyChangeDetails.open('鍔犲噺淇濊鍗�',apply,model,0)">瀵煎嚭璇﹀崟</el-button>
+ <el-button v-if="[1,2,4,7,9].includes(model.status)" type="primary" @click="viewApplyFile">鏌ョ湅鐢宠鍗�</el-button>
+ <el-button v-if="[2].includes(model.status)" type="primary" @click="viewPidan">鏌ョ湅鎵瑰崟</el-button>
+ <el-button v-if=" model.solutionType == 0 && [1].includes(model.status)" type="primary" @click="$refs.OperaApplyChangeCheckWindow.open('涓婁紶鎵瑰崟',model,3)">涓婁紶鎵瑰崟</el-button>
+ <el-button v-if="model.solutionType == 0 &&[3,4].includes(model.status)" type="primary" @click="$refs.OperaApplyChangeCheckWindow.open('椹冲洖閫�鍥炵敵璇�',model,5)">椹冲洖閫�鍥炵敵璇�</el-button>
+ <el-button v-if="model.solutionType == 0 &&[0,1,3,4].includes(model.status)" type="danger" @click="$refs.OperaApplyChangeCheckWindow.open('閫�鍥炴姇淇�',model,1)">閫�鍥炴姇淇�</el-button>
+ <el-button v-if="model.solutionType == 0 &&[2].includes(model.status)" type="danger" @click="$refs.OperaApplyChangeCheckWindow.open('淇敼鎵瑰崟',model,4)">淇敼鎵瑰崟</el-button>
</template>
</div>
</div>
@@ -76,7 +90,12 @@
<el-table-column
prop="applyStartTime"
align="center"
- label="鎵瑰崟鐢熸晥璧锋湡">
+ label="鎵瑰鐢熸晥鏃ユ湡">
+ </el-table-column>
+ <el-table-column
+ prop="delValidTime"
+ align="center"
+ label="鎵瑰噺鐢熸晥鏃ユ湡">
</el-table-column>
<el-table-column
prop="addNum"
@@ -119,7 +138,7 @@
label="鎬у埆">
<template slot-scope="{row}">
<span v-if="row.sex === 0">鐢�</span>
- <span v-else>濂�</span>
+ <span v-if="row.sex === 1">濂�</span>
</template>
</el-table-column>
<el-table-column
@@ -142,10 +161,14 @@
prop="endTime"
label="淇濋櫓鐢熸晥姝㈡湡">
</el-table-column>
- <el-table-column
- prop="fee"
- label="宸蹭骇鐢熻垂鐢紙鍏冿級">
- </el-table-column>
+ <el-table-column
+ prop="fee"
+ label="璐圭敤鍙樻洿锛堝厓锛�">
+ </el-table-column>
+ <el-table-column
+ prop="remark"
+ label="澶囨敞">
+ </el-table-column>
</el-table>
<div class="desc_item_from_page">
<el-pagination
@@ -158,7 +181,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"
@@ -171,7 +194,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>
@@ -188,12 +211,37 @@
<OperaInsuranceApply ref="OperaInsuranceApply" @success="successEvent" />
<!-- 鍔犲噺淇濈敵璇� -->
<reinsurance ref="reinsurance" @success="successEvent" />
+ <OperaPdfViewerWindow ref="OperaPdfViewerWindow" />
<!-- 鏇存崲娲鹃仯鍗曚綅鐢宠 -->
<factoryChange ref="factoryChange" @success="successEvent" />
<!-- 鎶曚繚璇︽儏 -->
<insuranceApplyDetails ref="insuranceApplyDetails" @success="successEvent" />
- <!-- 楠岃瘉鎵嬫満鍙� -->
- <operaverifyPhoneNumberWindew ref="operaverifyPhoneNumberWindew" @success="goSign" />
+ <!-- 淇敼鎵嬫満鍙� -->
+ <el-dialog
+ :title="signTitle"
+ :visible.sync="visiblePhone"
+ width="500px"
+ :modal="false"
+ :show-close="false"
+ :close-on-click-modal="false"
+ center>
+ <el-form :model="form" ref="form" :rules="rules">
+ <el-form-item label="鎵嬫満鍙�" prop="phone">
+ <el-input v-model="form.phone" placeholder="璇疯緭鍏�" disabled v-trim/>
+ </el-form-item>
+ <el-form-item label="楠岃瘉鐮�" prop="code">
+ <div style="width: 100%; display: flex; align-items: center;">
+ <el-input v-model="form.code" placeholder="璇疯緭鍏�" v-trim/>
+ <el-button type="primary" style="margin-left: 15px;" @click="send" v-if="num === 0">鍙戦�侀獙璇佺爜</el-button>
+ <el-button type="primary" style="margin-left: 15px;" v-else>{{num}}s</el-button>
+ </div>
+ </el-form-item>
+ </el-form>
+ <span slot="footer" class="dialog-footer">
+ <el-button type="primary" @click="goSignDo()">纭� 瀹�</el-button>
+ <el-button @click="visiblePhone=false">鍙� 娑�</el-button>
+ </span>
+ </el-dialog>
<template v-slot:footer>
<el-button @click="visible=false">杩斿洖</el-button>
</template>
@@ -209,18 +257,19 @@
import reinsurance from '@/components/enterprise/reinsurance'
import factoryChange from '@/components/enterprise/factoryChange'
import add_subtract_return from '@/components/enterprise/add_subtract_return'
-// import insuranceApplyDetails from '@/components/business/OperaInsuranceApplyWindow'
import {
getDetail,
getChangeDetail,
- applyChagneDetailPage,
- getJiajianBaoSignLink
+ applyChagneDetailPage
} from '@/api/business/insuranceApply'
-import { applyChangeOpt } from '@/api/business/applyChange'
-import OperaInsuranceApply from '@/components/enterprise/OperaInsuranceApplyWindow'
-import operaverifyPhoneNumberWindew from '@/components/business/operaverifyPhoneNumberWindew'
+import { applyChangeOpt ,
+ getChangeMemberListOnlineSignLink} from '@/api/business/applyChange'
+
+import {sendSms} from "@/api/business/smsEmail";
+import OperaInsuranceApply from '@/components/enterprise/OperaInsuranceApplyAddWindow'
import { mapState } from 'vuex'
+import OperaPdfViewerWindow from '@/components/business/OperaPdfViewerWindow'
export default {
name: 'OperaApplyChangeDetailWindow1',
extends: BaseOpera,
@@ -231,8 +280,8 @@
add_subtract_return,
OperaInsuranceApply,
reinsurance,
+ OperaPdfViewerWindow,
factoryChange,
- operaverifyPhoneNumberWindew,
insuranceApplyDetails: () => import ('@/components/business/OperaInsuranceApplyWindow')
},
data () {
@@ -241,10 +290,17 @@
dataId:null,
modelId:null,
apply:{},
+ num: 0,
+ timer: null,
+ signTitle: '鎵嬫満鍙烽獙璇�',
model: {},
+ visiblePhone: false,
form: {
+ businessId: null,
+ phone: this.$store.state.userInfo.company? this.$store.state.userInfo.company.phone:null,
id: null,
- editDate: ''
+ editDate: '',
+ code:null
},
// 楠岃瘉瑙勫垯
rules: {
@@ -263,7 +319,8 @@
list: [],
activeName: '0',
total: 0,
- currentPage: 1
+ currentPage: 1,
+ loading: false
}
},
created () {
@@ -281,9 +338,66 @@
this.title = title
this.dataId = target.applyId
this.modelId = target.id
+ this.model={}
+ this.apply={}
+ this.form.businessId = target.id
+ this.num=0
+ this.timer=null
this.getDetail()
this.getList()
},
+ send () {
+ sendSms({
+ phone: this.form.phone
+ }).then(res => {
+ this.num = 60
+ this.setTime()
+ })
+ },
+ setTime () {
+ this.timer = setInterval(() => {
+ if (this.num === 0) {
+ clearInterval(this.timer)
+ this.timer = null
+ return
+ }
+ this.num = this.num - 1
+ }, 1000)
+ },
+ getSignLink (flag) {
+ this.signTitle = '绛剧讲鐢宠鍗�'
+ this.form.type = flag
+ this.loading = true
+ getChangeMemberListOnlineSignLink(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) => {
+ if (!valid) {
+ return
+ }
+ this.isWorking = true
+ if(this.form.type===0){
+ getChangeMemberListOnlineSignLink(this.form).then(res => {
+ setTimeout(() => {
+ this.visiblePhone=false
+ window.open(res)
+ }, 500)
+ }).catch(err => {
+ this.$tip.apiFailed(err)
+ })
+ }
+ })
+ },
resetting() {
this.search()
},
@@ -326,23 +440,16 @@
this.activeName = e.index
this.resetting()
},
- goSign(){
- getJiajianBaoSignLink({id:this.modelId}).then(res => {
- setTimeout(() => {
- window.open(res)
- }, 500);
- }).catch(err => {
- this.$tip.apiFailed(err)
- })
- },
viewApplyFile(){
if(this.model.applyFile && this.model.applyFile.fileurlFull){
- window.open(this.model.applyFile.fileurlFull)
+ this.$refs.OperaPdfViewerWindow.open('鏌ョ湅鐢宠鍗�',this.model.applyFile.fileurlFull)
+ // window.open(this.model.applyFile.fileurlFull)
}
},
viewPidan(){
if(this.model.pidanFile && this.model.pidanFile.fileurlFull){
- window.open(this.model.pidanFile.fileurlFull)
+ this.$refs.OperaPdfViewerWindow.open('鏌ョ湅鎵瑰崟',this.model.pidanFile.fileurlFull)
+ // window.open(this.model.pidanFile.fileurlFull)
}
},
handleSizeChange(val){
@@ -350,7 +457,7 @@
},
handleCurrentChange(val){
console.log(val)
- this.page = val
+ this.currentPage = val
this.getList()
},
onSubmit(){
--
Gitblit v1.9.3