mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-11 19:06:43 +08:00
津贴申请-列表接口联调
This commit is contained in:
@@ -29,7 +29,7 @@ export function getApproveList(data) {
|
|||||||
// 津贴申请-列表
|
// 津贴申请-列表
|
||||||
export function getAllowanceLst(data) {
|
export function getAllowanceLst(data) {
|
||||||
return request({
|
return request({
|
||||||
url: getUrl('agent/allowance/getAllowanceLst', 1),
|
url: getUrl('/agent/allowance/getAllowanceLst', 1),
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
@@ -82,6 +82,14 @@ export function myDataremind(data) {
|
|||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
// 津贴-津贴申请人撤销接口
|
||||||
|
export function revokerApprove(data) {
|
||||||
|
return request({
|
||||||
|
url: getUrl('/agent/allowance/approve/revokerApprove', 1),
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="orderDetail-container bg-white pb100">
|
<div :class="['orderDetail-container', 'bg-white', type == '1' ? 'pb50' : 'pb10']">
|
||||||
<van-collapse v-model="activeNames">
|
<van-collapse v-model="activeNames">
|
||||||
<!-- 基本信息 开始 -->
|
<!-- 基本信息 开始 -->
|
||||||
<van-collapse-item class="main-title" name="baseInfo">
|
<van-collapse-item class="main-title" name="baseInfo">
|
||||||
@@ -256,8 +256,8 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
#app .van-radio__icon--checked .van-icon {
|
#app .van-radio__icon--checked .van-icon {
|
||||||
border-color: #2e4591 !important;
|
border-color: #2e4591 !important;
|
||||||
background-color: #2e4591 !important;
|
background-color: #2e4591 !important;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
@@ -286,7 +286,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/deep/.sex-radio .radio-area {
|
/deep/.sex-radio .radio-area {
|
||||||
margin-left: 55px;
|
margin-left: 15px;
|
||||||
}
|
}
|
||||||
/deep/.van-cell.m-textarea .van-field__label {
|
/deep/.van-cell.m-textarea .van-field__label {
|
||||||
width: 0;
|
width: 0;
|
||||||
@@ -295,5 +295,12 @@ export default {
|
|||||||
border: 1px solid #eee;
|
border: 1px solid #eee;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/deep/.van-cell .van-cell__value {
|
||||||
|
-webkit-box-flex: 2;
|
||||||
|
-webkit-flex: 2;
|
||||||
|
flex: 2;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -4,129 +4,68 @@
|
|||||||
<van-tabs :line-width="45" v-model="active" @change="tabChange" sticky>
|
<van-tabs :line-width="45" v-model="active" @change="tabChange" sticky>
|
||||||
<van-tab name="uncommit" title="未提交"></van-tab>
|
<van-tab name="uncommit" title="未提交"></van-tab>
|
||||||
<van-tab name="commit" title="审批中"></van-tab>
|
<van-tab name="commit" title="审批中"></van-tab>
|
||||||
<van-tab name="waitUnderwritten" title="审批通过"></van-tab>
|
<van-tab name="pass" title="审批通过"></van-tab>
|
||||||
</van-tabs>
|
</van-tabs>
|
||||||
</van-sticky>
|
</van-sticky>
|
||||||
|
<div v-if="isSuccess">
|
||||||
<van-list
|
<div v-if="saleList.length > 0">
|
||||||
v-model="loading"
|
<div v-for="(order, index) in saleList" :key="index">
|
||||||
:immediate-check="false"
|
<div class="bg-white m15 pv15 pr15 pl10">
|
||||||
:finished="finished"
|
<div class="flex justify-content-s align-items-c">
|
||||||
:finished-text="finishedText"
|
<div>
|
||||||
error-text="请求失败,点击重新加载"
|
<div class="w70 inline-b">
|
||||||
:error.sync="error"
|
<van-tag plain color="#5CA7DE">申请人</van-tag>
|
||||||
@load="loadMore"
|
|
||||||
class="pb45"
|
|
||||||
>
|
|
||||||
<div v-if="isSuccess">
|
|
||||||
<div v-if="saleList.length > 0">
|
|
||||||
<div v-for="(order, index) in saleList" :key="index">
|
|
||||||
<!-- <div class="fs12 mt20 mb5 text-center">{{ order.orderInfoDTO.createDate }}</div> -->
|
|
||||||
<div class="bg-white m15 pv15 pr15 pl10">
|
|
||||||
<div class="flex justify-content-s align-items-c">
|
|
||||||
<div>
|
|
||||||
<div class="w70 inline-b">
|
|
||||||
<van-tag plain color="#5CA7DE">申请人</van-tag>
|
|
||||||
</div>
|
|
||||||
<span class="fs15 c-gray-dark">{{ order.appntDTO.name }}</span>
|
|
||||||
</div>
|
</div>
|
||||||
|
<span class="fs15 c-gray-dark">{{ order.name }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="mv15">
|
<div class="mv15">
|
||||||
<div class="w70 inline-b">
|
<div class="w70 inline-b">
|
||||||
<van-tag plain color="#5CA7DE
|
<van-tag
|
||||||
">申请时间</van-tag>
|
|
||||||
</div>
|
|
||||||
<span class="fs15 c-gray-dark">{{ order.orderInfoDTO.createDate }}</span>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="text-right mt15 ">
|
|
||||||
<van-button v-if="active == 'uncommit'" round @click="goEdit(order)" size="small" class="mr5" type="danger" v-no-more-click="1000"
|
|
||||||
>编辑</van-button
|
|
||||||
>
|
|
||||||
<van-button
|
|
||||||
v-if="active == 'uncommit'"
|
|
||||||
plain
|
plain
|
||||||
round
|
color="#5CA7DE
|
||||||
@click.stop="del(order, index)"
|
"
|
||||||
size="small"
|
>申请时间</van-tag
|
||||||
class="mr5"
|
|
||||||
type="danger"
|
|
||||||
v-no-more-click="1000"
|
|
||||||
>删除</van-button
|
|
||||||
>
|
>
|
||||||
<van-button
|
|
||||||
@click="revokeOrder(order)"
|
|
||||||
v-if="active == 'commit'"
|
|
||||||
plain
|
|
||||||
size="small"
|
|
||||||
class="mr5"
|
|
||||||
type="danger"
|
|
||||||
round
|
|
||||||
>撤销</van-button
|
|
||||||
>
|
|
||||||
<van-button @click="seeDetail(order)" v-if="active == 'commit'" size="small" type="danger" round class="mr5" >查看详情</van-button>
|
|
||||||
<van-button @click="seeProcess(order)" v-if="active == 'commit'" size="small" type="danger" round>查看审批流程</van-button>
|
|
||||||
<van-button
|
|
||||||
@click="applicationAgainFunc(order)"
|
|
||||||
v-if="active == 'waitUnderwritten'"
|
|
||||||
size="small"
|
|
||||||
class="mr5"
|
|
||||||
type="danger"
|
|
||||||
round
|
|
||||||
>再次申请</van-button
|
|
||||||
>
|
|
||||||
<van-button plain @click="seeProcess(order)" v-if="active == 'waitUnderwritten'" size="small" type="danger" round>查看审批流程</van-button>
|
|
||||||
</div>
|
</div>
|
||||||
|
<span class="fs15 c-gray-dark">{{ order.applyMonth }}</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="text-right mt15">
|
||||||
|
<van-button v-if="active == 'uncommit'" round @click="goEdit(order)" size="small" class="mr5" type="danger" v-no-more-click="1000"
|
||||||
|
>编辑</van-button
|
||||||
|
>
|
||||||
|
<van-button v-if="active == 'uncommit'" plain round @click.stop="del(order, index)" size="small" class="mr5" type="danger" v-no-more-click="1000"
|
||||||
|
>删除</van-button
|
||||||
|
>
|
||||||
|
<van-button @click="revokeOrder(order)" v-if="active == 'commit'" plain size="small" class="mr5" type="danger" round>撤销</van-button>
|
||||||
|
<van-button @click="seeDetail(order)" v-if="active == 'commit'" size="small" type="danger" round class="mr5">查看详情</van-button>
|
||||||
|
<van-button @click="seeProcess(order)" v-if="active == 'commit'" size="small" type="danger" round>查看审批流程</van-button>
|
||||||
|
<van-button @click="applicationAgainFunc(order)" v-if="active == 'waitUnderwritten'" size="small" class="mr5" type="danger" round
|
||||||
|
>再次申请</van-button
|
||||||
|
>
|
||||||
|
<van-button plain @click="seeProcess(order)" v-if="active == 'waitUnderwritten'" size="small" type="danger" round>查看审批流程</van-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-else class="text-center">
|
|
||||||
<img class="mt40 w100 h100" src="@/assets/images/allowance/no_data.png" />
|
|
||||||
<div class="fs17 mt40 gray">暂无申请记录</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</van-list>
|
<div v-else class="text-center">
|
||||||
|
<img class="mt40 w100 h100" src="@/assets/images/allowance/no_data.png" />
|
||||||
|
<div class="fs17 mt40 gray">暂无申请记录</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<van-button type="danger" class="bottom-btn" @click="applicationFunc" v-no-more-click="1000">点击申请</van-button>
|
<van-button type="danger" class="bottom-btn" @click="applicationFunc" v-no-more-click="1000">点击申请</van-button>
|
||||||
<!-- <van-dialog
|
|
||||||
class="dialog-delete"
|
|
||||||
@confirm="checkCaptchaCode"
|
|
||||||
@cancel="cancelCaptchaCode"
|
|
||||||
:before-close="beforeClose"
|
|
||||||
confirm-button-color="#fff"
|
|
||||||
v-model="revokePanelShow"
|
|
||||||
title="短信验证"
|
|
||||||
show-cancel-button
|
|
||||||
>
|
|
||||||
<p class="captchaReceiver">投保人手机号: {{ captchaReceiver | phoneNumFilter }}</p>
|
|
||||||
<van-field v-model="sms" center clearable placeholder="请输入短信验证码">
|
|
||||||
<template #button>
|
|
||||||
<van-button :disabled="sendTime !== 0" v-no-more-click="1000" @click="getCaptchaCode" size="small" type="danger">{{
|
|
||||||
sendTime ? `${sendTime}s后获取` : '获取验证码'
|
|
||||||
}}</van-button>
|
|
||||||
</template>
|
|
||||||
</van-field>
|
|
||||||
</van-dialog> -->
|
|
||||||
|
|
||||||
<!-- 短信验证 -->
|
|
||||||
<!-- <check-agent @checModelSuccessMethod="initThisPage" /> -->
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { Search, Tabs, Tab, List, Tag, Sticky, Toast, Dialog, Field } from 'vant'
|
import { Search, Tabs, Tab, List, Tag, Sticky, Toast, Dialog, Field } from 'vant'
|
||||||
import { orderList, deleteOrderInfo, getAuthCode, revokeOrder } from '@/api/ebiz/sale/sale'
|
import { getAllowanceLst, revokerApprove, myDataremind, allowanceCheck } from '@/api/ebiz/allowance/allowance'
|
||||||
import { funcPermCheck } from '@/api/ebiz/common/common'
|
|
||||||
import { formatRiskList } from '@/assets/js/utils/formatRiskList.js'
|
|
||||||
import dataDictionary from '@/assets/js/utils/data-dictionary' //根据数据字典找到用户等级
|
|
||||||
import CheckAgent from '@/components/common/CheckAgent'
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'applicationList',
|
name: 'applicationList',
|
||||||
components: {
|
components: {
|
||||||
[CheckAgent.name]: CheckAgent,
|
|
||||||
[Field.name]: Field,
|
[Field.name]: Field,
|
||||||
[Search.name]: Search,
|
[Search.name]: Search,
|
||||||
[Tabs.name]: Tabs,
|
[Tabs.name]: Tabs,
|
||||||
@@ -140,36 +79,9 @@ export default {
|
|||||||
return {
|
return {
|
||||||
isCheck: 0, //查看是否有权限
|
isCheck: 0, //查看是否有权限
|
||||||
searchName: '',
|
searchName: '',
|
||||||
active: 'uncommit', //uncommit 表示未提交 commit表示已提交 waitUnderwritten审批通过
|
active: 'uncommit', //状态 uncommit - 未提交; commit - 审批中; pass - 已通过
|
||||||
saleList: [],
|
saleList: [],
|
||||||
loading: false,
|
isSuccess: false
|
||||||
finished: false,
|
|
||||||
total: '', //总页数
|
|
||||||
currentPage: 1, //当前页数
|
|
||||||
error: false,
|
|
||||||
finishedText: '没有更多了',
|
|
||||||
pageSize: 5, //每页数据条数
|
|
||||||
isSuccess: false,
|
|
||||||
canRevoke: {
|
|
||||||
'19': true,
|
|
||||||
'02': true,
|
|
||||||
'48': true,
|
|
||||||
'49': true,
|
|
||||||
'55': true,
|
|
||||||
'58': true,
|
|
||||||
'46': true,
|
|
||||||
'50': true,
|
|
||||||
'51': true
|
|
||||||
},
|
|
||||||
revokePanelShow: false,
|
|
||||||
sms: '',
|
|
||||||
smsId: '',
|
|
||||||
sendTime: 0,
|
|
||||||
getCaptcha: false,
|
|
||||||
captchaTimer: null,
|
|
||||||
captchaReceiver: '',
|
|
||||||
revokeOrderNo: '',
|
|
||||||
captchaMaped: false
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@@ -180,7 +92,8 @@ export default {
|
|||||||
})
|
})
|
||||||
}, 100)
|
}, 100)
|
||||||
window.appCallBack = this.appCallBack
|
window.appCallBack = this.appCallBack
|
||||||
this.loadMore()
|
this.getList()
|
||||||
|
this.remindFunc()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
appCallBack(data) {
|
appCallBack(data) {
|
||||||
@@ -190,56 +103,19 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//分页用
|
|
||||||
loadMore() {
|
|
||||||
let pageInfo = {
|
|
||||||
pageNum: this.currentPage,
|
|
||||||
pageSize: this.pageSize,
|
|
||||||
orderType: this.active,
|
|
||||||
name: this.searchName,
|
|
||||||
desensitizType: this.active === 'uncommit' ? 1 : 0
|
|
||||||
}
|
|
||||||
this.getOrderList(pageInfo)
|
|
||||||
},
|
|
||||||
//初始化保单列表
|
//初始化保单列表
|
||||||
getOrderList(pageInfo) {
|
getList() {
|
||||||
orderList(pageInfo).then(res => {
|
getAllowanceLst({
|
||||||
|
status: this.active
|
||||||
|
}).then((res) => {
|
||||||
if (res.result == '0') {
|
if (res.result == '0') {
|
||||||
|
this.checkboxResult = []
|
||||||
this.isSuccess = true
|
this.isSuccess = true
|
||||||
this.currentPage++
|
this.saleList = res.content
|
||||||
if (res.orderDTOPageInfo == null || res.orderDTOPageInfo == '' || res.orderDTOPageInfo == undefined) {
|
|
||||||
this.finished = true
|
|
||||||
this.loading = false
|
|
||||||
this.finishedText = ''
|
|
||||||
return
|
|
||||||
}
|
|
||||||
let list = res.orderDTOPageInfo.list
|
|
||||||
if (list.length == 0) {
|
|
||||||
this.finishedText = ''
|
|
||||||
} else {
|
|
||||||
this.finishedText = '已经全部加载'
|
|
||||||
}
|
|
||||||
list = formatRiskList(list, 'insuredDTOs', 'riskDTOLst') //根据后面两个参数 来格式化数据
|
|
||||||
dataDictionary.policyState.forEach(state => {
|
|
||||||
list.forEach(order => {
|
|
||||||
if (state.id == order.orderInfoDTO.orderStatus) {
|
|
||||||
order.stateName = state.text
|
|
||||||
}
|
|
||||||
})
|
|
||||||
})
|
|
||||||
this.saleList = this.saleList.concat(list)
|
|
||||||
if (this.saleList.length == 0) {
|
if (this.saleList.length == 0) {
|
||||||
this.isSuccess = false
|
this.isSuccess = false
|
||||||
}
|
}
|
||||||
this.loading = false
|
this.loading = false
|
||||||
if (res.orderDTOPageInfo.nextPage == 0) {
|
|
||||||
//当下一页为0时 表示全部数据加载完毕
|
|
||||||
this.finished = true
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
this.finished = true
|
|
||||||
this.loading = false
|
|
||||||
this.finishedText = res.resultMessage
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -247,60 +123,29 @@ export default {
|
|||||||
this.currentPage = 1
|
this.currentPage = 1
|
||||||
this.active = name
|
this.active = name
|
||||||
this.saleList = []
|
this.saleList = []
|
||||||
;[this.loading, this.finished] = [true, false]
|
this.getList()
|
||||||
this.finishedText = '正在加载...'
|
|
||||||
this.loadMore()
|
|
||||||
},
|
},
|
||||||
//编辑--详情
|
//编辑--详情
|
||||||
goEdit(order) {
|
goEdit(order) {
|
||||||
//判断是否符合条件
|
//判断是否符合条件
|
||||||
let isConditions = this.isConditionsFunc()
|
let isConditions = this.isConditionsFunc()
|
||||||
if(isConditions == false){
|
if (isConditions == false) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
window.localStorage.setItem('detailJump', '')
|
let orderStatus = order.orderStatus
|
||||||
if (order.insuredDTOs[0]) {
|
|
||||||
if (order.insuredDTOs[0].riskDTOLst[0]) {
|
|
||||||
localStorage.setItem('productCode', order.insuredDTOs[0].riskDTOLst[0].mainRiskCode)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
let orderStatus = order.orderInfoDTO.orderStatus
|
|
||||||
let orderNo = order.orderInfoDTO.orderNo
|
|
||||||
let url = ''
|
let url = ''
|
||||||
//保存对应的订单号
|
|
||||||
localStorage.orderNo = orderNo
|
|
||||||
localStorage.isFrom = 'sale'
|
|
||||||
localStorage.removeItem('changeCard')
|
|
||||||
switch (orderStatus) {
|
switch (orderStatus) {
|
||||||
case '01': //已签名待客户确认, 跳到签名确认页面
|
case '01': //基本信息
|
||||||
url = '/sale/SignatureConfirmation?edit=1'
|
url = '/allowance/application/BaseInfo?allowanceNo=' + order.allowanceNo + '&type=edit'
|
||||||
break
|
break
|
||||||
case '43': //未签名待客户确认, 跳到签名确认页面
|
case '43': //账户信息
|
||||||
url = '/sale/SignatureConfirmation?edit=1'
|
url = '/allowance/application/AccountInfo?allowanceNo=' + order.allowanceNo + '&type=edit'
|
||||||
break
|
break
|
||||||
case '35': //投保人保存成功, 跳到被保险人页面--
|
case '33': //影像附件
|
||||||
url = '/sale/insuredPerson?edit=1'
|
url = '/allowance/application/AttachmentManagement?allowanceNo=' + order.allowanceNo + '&type=edit'
|
||||||
break
|
break
|
||||||
case '36': //被保险人保存成功, 跳到已选产品列表
|
case '35': //签字页面
|
||||||
url = '/common/selectedProduct?edit=1'
|
url = '/allowance/application/SignatureConfirmation?allowanceNo=' + order.allowanceNo + '&type=edit'
|
||||||
break
|
|
||||||
case '37': //受益人保存成功, 跳到告知信息--
|
|
||||||
url = '/sale/NotifyingMessage?edit=1'
|
|
||||||
break
|
|
||||||
case '38': //账户信息保存成功, 跳到附件管理--
|
|
||||||
url = '/sale/AttachmentManagement?edit=1'
|
|
||||||
break
|
|
||||||
case '39': //险种信息保存成功, 跳到已选产品列表
|
|
||||||
url = '/common/selectedProduct?edit=1'
|
|
||||||
break
|
|
||||||
case '40': //告知信息保存成功, 跳到账户信息--
|
|
||||||
url = '/sale/AccountInformation?edit=1'
|
|
||||||
break
|
|
||||||
case '': //跳到投保人
|
|
||||||
url = '/sale/insuredInfo?edit=1'
|
|
||||||
break
|
|
||||||
case '44': //建议书转投保, 跳到投保人
|
|
||||||
url = '/sale/insuredInfo?edit=1'
|
|
||||||
break
|
break
|
||||||
default:
|
default:
|
||||||
break
|
break
|
||||||
@@ -311,7 +156,13 @@ export default {
|
|||||||
forbidSwipeBack: '1',
|
forbidSwipeBack: '1',
|
||||||
url: location.origin + `/#${url}`
|
url: location.origin + `/#${url}`
|
||||||
},
|
},
|
||||||
routerInfo: { path: url }
|
routerInfo: {
|
||||||
|
path: url,
|
||||||
|
query: {
|
||||||
|
allowanceNo: order.allowanceNo,
|
||||||
|
type: 'edit'
|
||||||
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
//删除投保单
|
//删除投保单
|
||||||
@@ -329,23 +180,16 @@ export default {
|
|||||||
.confirm({
|
.confirm({
|
||||||
className: 'dialog-blue',
|
className: 'dialog-blue',
|
||||||
title: '提示',
|
title: '提示',
|
||||||
message: '确认删除投保单吗?',
|
message: '确认删除投保单吗?'
|
||||||
// cancelButtonColor: '#2e4591',
|
// cancelButtonColor: '#2e4591',
|
||||||
// confirmButtonColor: '#FFFFFF'
|
// confirmButtonColor: '#FFFFFF'
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
deleteOrderInfo(params).then(res => {
|
deleteOrderInfo(params).then((res) => {
|
||||||
if (res.result == 0) {
|
if (res.result == 0) {
|
||||||
this.saleList = []
|
// this.saleList = []
|
||||||
this.isSuccess = false
|
// this.isSuccess = false
|
||||||
this.currentPage = 1
|
this.getList()
|
||||||
;[this.loading, this.finished] = [true, false]
|
|
||||||
let pageInfo = {
|
|
||||||
pageNum: this.currentPage,
|
|
||||||
pageSize: this.pageSize,
|
|
||||||
orderType: this.active
|
|
||||||
}
|
|
||||||
this.loadMore(pageInfo)
|
|
||||||
} else {
|
} else {
|
||||||
Toast.fail(res.resultMessage)
|
Toast.fail(res.resultMessage)
|
||||||
}
|
}
|
||||||
@@ -355,52 +199,51 @@ export default {
|
|||||||
},
|
},
|
||||||
//撤销
|
//撤销
|
||||||
revokeOrder(order) {
|
revokeOrder(order) {
|
||||||
console.dir(order)
|
|
||||||
this.$dialog
|
this.$dialog
|
||||||
.confirm({
|
.confirm({
|
||||||
className: 'dialog-delete',
|
className: 'dialog-blue',
|
||||||
title: '提示',
|
title: '提示',
|
||||||
message: '撤单后,数据将不可恢复,您确定要撤单吗?',
|
message: '当前申请正在审批中,是否撤销申请?'
|
||||||
cancelButtonColor: '#2e4591',
|
|
||||||
confirmButtonColor: '#FFFFFF'
|
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.revokePanelShow = true
|
revokerApprove({
|
||||||
this.captchaReceiver = order.appntDTO.mobile
|
allowanceNo: order.allowanceNo
|
||||||
this.revokeOrderNo = order.orderInfoDTO.orderNo
|
}).then((res) => {
|
||||||
|
if (res.result == '0') {
|
||||||
|
this.getList()
|
||||||
|
} else {
|
||||||
|
this.$toast(res.resultMessage)
|
||||||
|
}
|
||||||
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
//查看详情
|
//查看详情
|
||||||
seeDetail(order) {
|
seeDetail(order) {
|
||||||
localStorage.orderNo = order.orderInfoDTO.orderNo
|
|
||||||
localStorage.removeItem('changeCard')
|
|
||||||
this.$jump({
|
this.$jump({
|
||||||
flag: 'h5',
|
flag: 'h5',
|
||||||
extra: {
|
extra: {
|
||||||
url: location.origin + '/#/allowance/detail?type=1'
|
url: location.origin + '/#/allowance/detail?type=0&allowanceNo=' + order.allowanceNo
|
||||||
},
|
},
|
||||||
routerInfo: {
|
routerInfo: {
|
||||||
path: '/allowance/detail',
|
path: '/allowance/detail',
|
||||||
query: {
|
query: {
|
||||||
type: 1
|
type: 0,
|
||||||
|
allowanceNo: order.allowanceNo
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
//查看审批流程
|
//查看审批流程
|
||||||
seeProcess(order) {
|
seeProcess(order) {
|
||||||
localStorage.orderNo = order.orderInfoDTO.orderNo
|
|
||||||
localStorage.removeItem('changeCard')
|
|
||||||
this.$jump({
|
this.$jump({
|
||||||
flag: 'h5',
|
flag: 'h5',
|
||||||
extra: {
|
extra: {
|
||||||
url: location.origin + '/#/allowance/application/process?submitTime='+ order.orderInfoDTO.createDate+'&allowanceNo='+'1002'
|
url: location.origin + '/#/allowance/application/process?allowanceNo=' + order.allowanceNo
|
||||||
},
|
},
|
||||||
routerInfo: {
|
routerInfo: {
|
||||||
path: '/allowance/application/process',
|
path: '/allowance/application/process',
|
||||||
query: {
|
query: {
|
||||||
submitTime: order.orderInfoDTO.createDate,
|
allowanceNo: order.allowanceNo
|
||||||
allowanceNo:'1002'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -409,77 +252,108 @@ export default {
|
|||||||
applicationAgainFunc(order) {
|
applicationAgainFunc(order) {
|
||||||
//判断是否符合条件
|
//判断是否符合条件
|
||||||
let isConditions = this.isConditionsFunc()
|
let isConditions = this.isConditionsFunc()
|
||||||
if(isConditions == false){
|
if (isConditions == false) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
localStorage.orderNo = order.orderInfoDTO.orderNo
|
|
||||||
localStorage.removeItem('changeCard')
|
|
||||||
this.$jump({
|
this.$jump({
|
||||||
flag: 'h5',
|
flag: 'h5',
|
||||||
extra: {
|
extra: {
|
||||||
url: location.origin + '/#/allowance/application/BaseInfo'
|
url: location.origin + '/#/allowance/application/BaseInfo?allowanceNo=' + order.allowanceNo + '&type=reapply'
|
||||||
},
|
},
|
||||||
routerInfo: {
|
routerInfo: {
|
||||||
path: '/allowance/application/BaseInfo',
|
path: '/allowance/application/BaseInfo',
|
||||||
query: {
|
query: {
|
||||||
type: 1
|
allowanceNo: order.allowanceNo,
|
||||||
|
type: 'reapply'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
// 1、3个月定期提醒申请人,更新资料,第四个月的21日提醒;
|
||||||
|
// 2、点击【暂不更新】关闭弹窗,点击【去更新】,跳转至“填写津贴申请信息”页面,反显,不清空历史数据。
|
||||||
|
remindFunc() {
|
||||||
|
myDataremind({}).then((res) => {
|
||||||
|
if (res.result == '1') {
|
||||||
|
this.$dialog
|
||||||
|
.confirm({
|
||||||
|
className: 'dialog-blue',
|
||||||
|
title: '提示',
|
||||||
|
message: res.resultMessage,
|
||||||
|
confirmButtonText: '去更新',
|
||||||
|
cancelButtonText: '暂不需要'
|
||||||
|
})
|
||||||
|
.then(() => {
|
||||||
|
//todo
|
||||||
|
// this.$jump({
|
||||||
|
// flag: 'h5',
|
||||||
|
// extra: {
|
||||||
|
// url: location.origin + '/#/allowance/application/BaseInfo?type=add'
|
||||||
|
// },
|
||||||
|
// routerInfo: {
|
||||||
|
// path: '/allowance/application/BaseInfo',
|
||||||
|
// query: {
|
||||||
|
// type: 'add'
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// })
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.$toast(res.resultMessage)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
//不符合条件时,阻断toast提示,触发按钮包括“津贴申请列表-未审批”【编辑】、“津贴申请列表-审批通过”【再次申请】、【点击申请】
|
//不符合条件时,阻断toast提示,触发按钮包括“津贴申请列表-未审批”【编辑】、“津贴申请列表-审批通过”【再次申请】、【点击申请】
|
||||||
isConditionsFunc() {
|
isConditionsFunc() {
|
||||||
Toast({
|
allowanceCheck({}).then((res) => {
|
||||||
className:'textLeft',
|
if (res.result == '1') {
|
||||||
duration: 3000, // 持续展示 toast
|
Toast({
|
||||||
forbidClick: true,
|
className: 'textLeft',
|
||||||
message: '您当前暂不具备申请条件。\n需符合以下标准,方可申请津贴:\n1.连续达成36个月桂冠人力或连续达成\n24个月双冠人力;\n2.达成当月个人综合继续率:80%及以\n上;\n3.最近1年内没有被确认属实的品质投\n诉;\n4.父母其中一方年满60周岁,且在世,\n仅发放父母其中一人。',
|
duration: 3000, // 持续展示 toast
|
||||||
});
|
forbidClick: true,
|
||||||
// Toast('每月只能申请一次津贴,您当月已申请津贴,请下月再次申请。')
|
message: res.resultMessage
|
||||||
return false
|
})
|
||||||
|
return false
|
||||||
|
} else {
|
||||||
|
this.$toast(res.resultMessage)
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
//点击申请,跳转到津贴申请信息页面
|
//点击申请,跳转到津贴申请信息页面
|
||||||
applicationFunc() {
|
applicationFunc() {
|
||||||
//判断是否符合条件
|
//判断是否符合条件
|
||||||
let isConditions = this.isConditionsFunc()
|
let isConditions = this.isConditionsFunc()
|
||||||
if(isConditions == false){
|
if (isConditions == false) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
localStorage.orderNo = ''
|
|
||||||
localStorage.chooseProductCodes = '' //置空所选险种
|
|
||||||
this.$jump({
|
this.$jump({
|
||||||
flag: 'h5',
|
flag: 'h5',
|
||||||
extra: {
|
extra: {
|
||||||
url: location.origin + '/#/allowance/application/BaseInfo'
|
url: location.origin + '/#/allowance/application/BaseInfo?type=add'
|
||||||
},
|
},
|
||||||
routerInfo: { path: '/allowance/application/BaseInfo' }
|
routerInfo: {
|
||||||
|
path: '/allowance/application/BaseInfo',
|
||||||
|
query: {
|
||||||
|
type: 'add'
|
||||||
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
},
|
|
||||||
},
|
|
||||||
filters: {
|
|
||||||
encryCheckModelMobile(code) {
|
|
||||||
return code.replace(/^(\d{3})\d{4}(\d{4})$/, '$1****$2')
|
|
||||||
},
|
|
||||||
phoneNumFilter(phoneNum) {
|
|
||||||
let num = phoneNum.split('')
|
|
||||||
num.splice(3, 4, '****')
|
|
||||||
return num.join('')
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
#app .van-button--danger {
|
#app .van-button--danger {
|
||||||
background: #2e4591;
|
background: #2e4591;
|
||||||
border: 1px solid #2e4591;
|
border: 1px solid #2e4591;
|
||||||
}
|
}
|
||||||
#app .van-button--plain.van-button--danger, #app .van-tag--plain.van-tag--danger {
|
#app .van-button--plain.van-button--danger,
|
||||||
color: #2e4591;
|
#app .van-tag--plain.van-tag--danger {
|
||||||
background: transparent;
|
color: #2e4591;
|
||||||
|
background: transparent;
|
||||||
}
|
}
|
||||||
/deep/ .van-tabs__line, #app .van-tag--danger {
|
/deep/ .van-tabs__line,
|
||||||
background-color: #2e4591 !important;
|
#app .van-tag--danger {
|
||||||
|
background-color: #2e4591 !important;
|
||||||
}
|
}
|
||||||
/deep/ .dialog-delete .van-dialog__header {
|
/deep/ .dialog-delete .van-dialog__header {
|
||||||
padding: 0.5em;
|
padding: 0.5em;
|
||||||
@@ -497,13 +371,6 @@ export default {
|
|||||||
padding: 1em;
|
padding: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.captchaReceiver {
|
|
||||||
margin-bottom: 1em;
|
|
||||||
padding-bottom: 1em;
|
|
||||||
border-bottom: 1px solid #eaeaea;
|
|
||||||
font-size: 14px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.van-search__content {
|
.van-search__content {
|
||||||
background: #fff !important;
|
background: #fff !important;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="entry-container pt60 pb30 bg-white">
|
<div class="entry-container pt60 pb30 bg-white">
|
||||||
<div class="ml130 w200 nowrap flex align-items-c text-center">
|
<div class="ml130 w200 nowrap flex align-items-c text-center">
|
||||||
<div class="w110 inline-b text-center">提交申请<br /><span class="grey">{{submitTime}}</span></div>
|
<div class="w110 inline-b text-center">
|
||||||
|
提交申请<br /><span class="grey">{{ approveMapping[0].createdDate }}</span>
|
||||||
|
</div>
|
||||||
<van-tag class="w45" color="green" plain style="margin-top: -14px">已完成</van-tag>
|
<van-tag class="w45" color="green" plain style="margin-top: -14px">已完成</van-tag>
|
||||||
</div>
|
</div>
|
||||||
<div class="ml80 w100 flex path relative" style="flex-wrap: wrap">
|
<div class="ml80 w100 flex path relative" style="flex-wrap: wrap">
|
||||||
@@ -17,7 +19,9 @@
|
|||||||
<div class="flex nowrap align-items-c text-center relative pv5" style="left: -10%">
|
<div class="flex nowrap align-items-c text-center relative pv5" style="left: -10%">
|
||||||
<div class="relative">
|
<div class="relative">
|
||||||
<div>
|
<div>
|
||||||
<div class="w110 inline-b text-center">{{ item.approveLevel | filterName }}<br /><span class="grey">{{item.modifiedDate}}</span></div>
|
<div class="w110 inline-b text-center">
|
||||||
|
{{ item.approveLevel | filterName }}<br /><span class="grey">{{ item.modifiedDate }}</span>
|
||||||
|
</div>
|
||||||
<van-tag
|
<van-tag
|
||||||
class="w45 v-top"
|
class="w45 v-top"
|
||||||
v-if="item.approveStatus == '1' || item.approveStatus == '2'"
|
v-if="item.approveStatus == '1' || item.approveStatus == '2'"
|
||||||
@@ -25,7 +29,13 @@
|
|||||||
plain
|
plain
|
||||||
>{{ item.approveStatus | statusFormat(approveStatus, approveResult) }}</van-tag
|
>{{ item.approveStatus | statusFormat(approveStatus, approveResult) }}</van-tag
|
||||||
>
|
>
|
||||||
<span v-if="item.approveStatus == '1'" class="ml15 buttonYellow v-top" @click="urgeFunc">催办</span>
|
<!-- "urgeStatus": "1" 0--催办 1--已催办 -->
|
||||||
|
<span
|
||||||
|
v-if="item.approveStatus == '1'"
|
||||||
|
:class="['ml15', 'v-top', item.urgeStatus == '0' ? 'buttonYellow' : 'buttonHasUrge']"
|
||||||
|
@click="urgeFunc(item.approveLevel)"
|
||||||
|
>{{ item.urgeStatus | filterUrgeStatus }}</span
|
||||||
|
>
|
||||||
<van-button
|
<van-button
|
||||||
v-if="item.approveStatus == '2' && item.approveResult == '0'"
|
v-if="item.approveStatus == '2' && item.approveResult == '0'"
|
||||||
@click="goSeeCause(item.approveMsg)"
|
@click="goSeeCause(item.approveMsg)"
|
||||||
@@ -34,7 +44,6 @@
|
|||||||
type="danger"
|
type="danger"
|
||||||
>点击查看原因</van-button
|
>点击查看原因</van-button
|
||||||
>
|
>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -71,15 +80,14 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { Tag, Dialog } from 'vant'
|
import { Tag, Dialog } from 'vant'
|
||||||
import { approveList } from '@/api/ebiz/allowance/allowance'
|
import { approveList, approveUrge } from '@/api/ebiz/allowance/allowance'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
submitTime: this.$route.query.submitTime,
|
|
||||||
allowanceNo: this.$route.query.allowanceNo,
|
allowanceNo: this.$route.query.allowanceNo,
|
||||||
approveMapping: [], //审批流程链
|
approveMapping: [], //审批流程链
|
||||||
ebizExamineApproveDtoList: [], //历史审批信息链
|
ebizExamineApproveDtoList: [] //历史审批信息链
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
@@ -121,18 +129,6 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
goBaseInfo() {
|
|
||||||
console.log('click上传')
|
|
||||||
this.$jump({
|
|
||||||
flag: 'h5',
|
|
||||||
extra: {
|
|
||||||
url: location.origin + `/#/agentEenter/AgentEenterBasicInfor`
|
|
||||||
},
|
|
||||||
routerInfo: {
|
|
||||||
path: `/agentEenter/AgentEenterBasicInfor`
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
goSeeCause(approveMsg) {
|
goSeeCause(approveMsg) {
|
||||||
Dialog.confirm({
|
Dialog.confirm({
|
||||||
className: 'dialog-check',
|
className: 'dialog-check',
|
||||||
@@ -154,8 +150,19 @@ export default {
|
|||||||
})
|
})
|
||||||
.catch(() => {})
|
.catch(() => {})
|
||||||
},
|
},
|
||||||
urgeFunc() {
|
urgeFunc(approveLevel) {
|
||||||
this.$toast('每天只可催办一次')
|
approveUrge({
|
||||||
|
allowanceNo: this.allowanceNo,
|
||||||
|
approveLevel: approveLevel
|
||||||
|
}).then((res) => {
|
||||||
|
if (res.result == '0') {
|
||||||
|
if (res.resultMessage) {
|
||||||
|
this.$toast(res.resultMessage)
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
this.$toast(res.resultMessage)
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
filters: {
|
filters: {
|
||||||
@@ -186,6 +193,19 @@ export default {
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
return text
|
return text
|
||||||
|
},
|
||||||
|
filterUrgeStatus: function (value) {
|
||||||
|
// 0--催办 1--已催办
|
||||||
|
let text
|
||||||
|
switch (value) {
|
||||||
|
case '0':
|
||||||
|
text = '催办'
|
||||||
|
break
|
||||||
|
case '1':
|
||||||
|
text = '已催办'
|
||||||
|
break
|
||||||
|
}
|
||||||
|
return text
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user