mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-12 14:56:45 +08:00
[NEW]【自助入司改造】新增审批记录、审批详细信息页;原待审批信息接口调整;影像上传页增加身份证正反面图片上传张数校验
This commit is contained in:
BIN
src/assets/images/u73803.png
Normal file
BIN
src/assets/images/u73803.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.5 KiB |
@@ -1454,8 +1454,7 @@ export default {
|
|||||||
{ id: 'EAM', text: '资深部经理' },
|
{ id: 'EAM', text: '资深部经理' },
|
||||||
{ id: 'AD', text: '营业总监' }
|
{ id: 'AD', text: '营业总监' }
|
||||||
],
|
],
|
||||||
relationType: [{ id: '0', text: '配偶' }, { id: '1', text: '子女' }, { id: '2', text: '父母' }],
|
relationType: [{ id: '0', text: '配偶' }, { id: '1', text: '子女' }, { id: '2', text: '父母' }, { id: '3', text: '无' }],
|
||||||
// relationType: [{ id: '0', text: '配偶' }, { id: '1', text: '子女' }, { id: '2', text: '父母' }, { id: '3', text: '无' }],
|
|
||||||
guarantRelationType: [{ id: '0', text: '亲属' }, { id: '1', text: '朋友' }, { id: '2', text: '同事' }, { id: '3', text: '其他' }],
|
guarantRelationType: [{ id: '0', text: '亲属' }, { id: '1', text: '朋友' }, { id: '2', text: '同事' }, { id: '3', text: '其他' }],
|
||||||
classification: [{ id: '0', text: '司内' }, { id: '1', text: '司外' }],
|
classification: [{ id: '0', text: '司内' }, { id: '1', text: '司外' }],
|
||||||
//入司国籍/地区
|
//入司国籍/地区
|
||||||
|
|||||||
@@ -42,7 +42,8 @@ let agentEnter = [
|
|||||||
'/agent/enter/getImpart',
|
'/agent/enter/getImpart',
|
||||||
'/agent/agreement/query',
|
'/agent/agreement/query',
|
||||||
'/agent/agreement/signAgreement',
|
'/agent/agreement/signAgreement',
|
||||||
'/agent/enter/query'
|
'/agent/enter/query',
|
||||||
|
'/agent/examineApprove/dispose' //入司增员审批
|
||||||
] //入司
|
] //入司
|
||||||
let claims = [
|
let claims = [
|
||||||
`/claim/claimApply/progress`,
|
`/claim/claimApply/progress`,
|
||||||
|
|||||||
@@ -24,6 +24,8 @@ const ApproveList = () => import('@/views/ebiz/agentEenter/approve/ApproveList')
|
|||||||
const BasicInfo = () => import('@/views/ebiz/agentEenter/approve/BasicInfo')
|
const BasicInfo = () => import('@/views/ebiz/agentEenter/approve/BasicInfo')
|
||||||
const ApproveInfo = () => import('@/views/ebiz/agentEenter/approve/ApproveInfo')
|
const ApproveInfo = () => import('@/views/ebiz/agentEenter/approve/ApproveInfo')
|
||||||
const SubmitSuccess = () => import('@/views/ebiz/agentEenter/approve/SubmitSuccess')
|
const SubmitSuccess = () => import('@/views/ebiz/agentEenter/approve/SubmitSuccess')
|
||||||
|
const recordList = () => import('@/views/ebiz/agentEenter/approve/RecordList')
|
||||||
|
const recordDetail = () => import('@/views/ebiz/agentEenter/approve/RecordDetail')
|
||||||
|
|
||||||
export default [
|
export default [
|
||||||
{
|
{
|
||||||
@@ -250,5 +252,23 @@ export default [
|
|||||||
title: '提交成功',
|
title: '提交成功',
|
||||||
index: 1
|
index: 1
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/agentEenter/approve/recordList',
|
||||||
|
name: 'recordList',
|
||||||
|
component: recordList,
|
||||||
|
meta: {
|
||||||
|
title: '审批记录',
|
||||||
|
index: 1
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/agentEenter/approve/recordDetail/:baseId',
|
||||||
|
name: 'recordDetail',
|
||||||
|
component: recordDetail,
|
||||||
|
meta: {
|
||||||
|
title: '审批详细信息',
|
||||||
|
index: 1
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -395,6 +395,14 @@ export default {
|
|||||||
},
|
},
|
||||||
// 下一步
|
// 下一步
|
||||||
nextStep() {
|
nextStep() {
|
||||||
|
if (this.fileListBank01.length < 2) {
|
||||||
|
this.$toast('您需要同时上传本人身份证正面及反面图像,请上传')
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if (this.fileListBank06.length < 2) {
|
||||||
|
this.$toast('您需要同时上传担保人身份证正面及反面图像,请上传')
|
||||||
|
return
|
||||||
|
}
|
||||||
let that = this
|
let that = this
|
||||||
this.$toast.loading({
|
this.$toast.loading({
|
||||||
duration: 0, // 持续展示 toast
|
duration: 0, // 持续展示 toast
|
||||||
|
|||||||
@@ -141,6 +141,15 @@
|
|||||||
<van-button slot="button" size="small" type="danger" round @click="cardScanning('0')">银行卡扫描</van-button>
|
<van-button slot="button" size="small" type="danger" round @click="cardScanning('0')">银行卡扫描</van-button>
|
||||||
</van-field>
|
</van-field>
|
||||||
<van-field
|
<van-field
|
||||||
|
v-model="userInfo.perationPeriod"
|
||||||
|
type="digit"
|
||||||
|
label="从业年限"
|
||||||
|
name="从业年限"
|
||||||
|
placeholder="请输入整数"
|
||||||
|
v-validate="'onlyInteger'"
|
||||||
|
clearable
|
||||||
|
/>
|
||||||
|
<!-- <van-field
|
||||||
v-model="userInfo.perationPeriod"
|
v-model="userInfo.perationPeriod"
|
||||||
type="digit"
|
type="digit"
|
||||||
label="从业年限"
|
label="从业年限"
|
||||||
@@ -149,7 +158,7 @@
|
|||||||
v-validate="'required|onlyInteger'"
|
v-validate="'required|onlyInteger'"
|
||||||
required
|
required
|
||||||
clearable
|
clearable
|
||||||
/>
|
/> -->
|
||||||
<van-field v-model="userInfo.oldCompany" label="原工作单位" name="原工作单位" placeholder="请输入" required v-validate="'required'" clearable />
|
<van-field v-model="userInfo.oldCompany" label="原工作单位" name="原工作单位" placeholder="请输入" required v-validate="'required'" clearable />
|
||||||
<van-field
|
<van-field
|
||||||
:value="userInfo.oldOccupation | idToText('oldOccupation')"
|
:value="userInfo.oldOccupation | idToText('oldOccupation')"
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
@click="toSelect('1')"
|
@click="toSelect('1')"
|
||||||
required
|
required
|
||||||
/>
|
/>
|
||||||
<van-field
|
<!-- <van-field
|
||||||
:value="userInfo.type | idToText('classification')"
|
:value="userInfo.type | idToText('classification')"
|
||||||
v-validate="'required'"
|
v-validate="'required'"
|
||||||
readonly
|
readonly
|
||||||
@@ -26,7 +26,8 @@
|
|||||||
placeholder="请选择"
|
placeholder="请选择"
|
||||||
@click="toSelect('2')"
|
@click="toSelect('2')"
|
||||||
required
|
required
|
||||||
/>
|
/> -->
|
||||||
|
<van-field :value="userInfo.type | idToText('classification')" v-validate="'required'" readonly label="类别" name="类别" disabled />
|
||||||
<van-field label="姓名" type="text" name="姓名" placeholder="请输入" v-validate="'required|name'" clearable v-model="userInfo.name" required />
|
<van-field label="姓名" type="text" name="姓名" placeholder="请输入" v-validate="'required|name'" clearable v-model="userInfo.name" required />
|
||||||
<select-radio :radios="sexRadio" label="性别" name="性别" v-validate="'required'" required :value.sync="userInfo.sex"></select-radio>
|
<select-radio :radios="sexRadio" label="性别" name="性别" v-validate="'required'" required :value.sync="userInfo.sex"></select-radio>
|
||||||
<van-field
|
<van-field
|
||||||
@@ -65,7 +66,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { Field, CellGroup, Button, col, popup, picker, Dialog } from 'vant'
|
import { Field, CellGroup, Button, col, popup, picker, Dialog, Cell } from 'vant'
|
||||||
import FieldDatePicter from '@/components/ebiz/FieldDatePicter'
|
import FieldDatePicter from '@/components/ebiz/FieldDatePicter'
|
||||||
import SelectRadio from '@/components/ebiz/SelectRadio'
|
import SelectRadio from '@/components/ebiz/SelectRadio'
|
||||||
import DataDictionary from '@/assets/js/utils/data-dictionary'
|
import DataDictionary from '@/assets/js/utils/data-dictionary'
|
||||||
@@ -79,6 +80,7 @@ export default {
|
|||||||
[FieldDatePicter.name]: FieldDatePicter,
|
[FieldDatePicter.name]: FieldDatePicter,
|
||||||
[Field.name]: Field,
|
[Field.name]: Field,
|
||||||
[CellGroup.name]: CellGroup,
|
[CellGroup.name]: CellGroup,
|
||||||
|
[Cell.name]: Cell,
|
||||||
[Button.name]: Button,
|
[Button.name]: Button,
|
||||||
[col.name]: col,
|
[col.name]: col,
|
||||||
[popup.name]: popup,
|
[popup.name]: popup,
|
||||||
@@ -93,7 +95,7 @@ export default {
|
|||||||
columns: [],
|
columns: [],
|
||||||
userInfo: {
|
userInfo: {
|
||||||
relation: '',
|
relation: '',
|
||||||
type: '',
|
type: '0',
|
||||||
name: '',
|
name: '',
|
||||||
sex: '0',
|
sex: '0',
|
||||||
idNo: '',
|
idNo: '',
|
||||||
@@ -162,6 +164,12 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.userInfo.sex = String(res.content.ebizGuarantorDto.sex) //性别
|
this.userInfo.sex = String(res.content.ebizGuarantorDto.sex) //性别
|
||||||
}
|
}
|
||||||
|
//担保人类别
|
||||||
|
if (res.content.ebizGuarantorDto.type == null) {
|
||||||
|
this.userInfo.type = '1'
|
||||||
|
} else {
|
||||||
|
this.userInfo.type = String(res.content.ebizGuarantorDto.type) //性别
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -246,10 +254,11 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.guarant-info-container {
|
.guarant-info-container {
|
||||||
.referrerW {
|
/deep/ .van-cell__value {
|
||||||
/deep/.van-cell__title {
|
text-align: left;
|
||||||
width: 110px;
|
}
|
||||||
}
|
/deep/ .van-cell__title {
|
||||||
|
width: 20%;
|
||||||
}
|
}
|
||||||
.add-btn {
|
.add-btn {
|
||||||
width: 80%;
|
width: 80%;
|
||||||
|
|||||||
@@ -69,6 +69,14 @@
|
|||||||
type="primary"
|
type="primary"
|
||||||
>查看原因</van-button
|
>查看原因</van-button
|
||||||
>
|
>
|
||||||
|
<van-button
|
||||||
|
@click="revoke()"
|
||||||
|
v-if="ebizExamineApproveDtoList[index].examineApproveResult == '0'"
|
||||||
|
class="absolute approval-button ph10"
|
||||||
|
plain
|
||||||
|
type="primary"
|
||||||
|
>撤销申请</van-button
|
||||||
|
>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
@@ -253,6 +261,12 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
//撤销申请
|
||||||
|
revoke() {
|
||||||
|
//调后端撤销申请接口
|
||||||
|
// eslint-disable-next-line no-undef
|
||||||
|
EWebBridge.webCallAppInJs('logout')
|
||||||
|
},
|
||||||
seeShowPDF() {
|
seeShowPDF() {
|
||||||
this.$jump({
|
this.$jump({
|
||||||
flag: 'h5',
|
flag: 'h5',
|
||||||
|
|||||||
@@ -1,47 +1,48 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="sale-list-container pb50">
|
<div class="sale-list-container pb50">
|
||||||
<div v-if="isSuccess">
|
<van-list v-model="loading" :immediate-check="false" :finished="finished" :finished-text="finishedText" @load="loadMore">
|
||||||
<div v-if="approveList.length > 0">
|
<div v-if="isSuccess">
|
||||||
<div v-for="(item, index) in approveList" :key="index">
|
<div v-if="approveList.length > 0">
|
||||||
<div class="bg-white pv15 pr15 pl10 m15">
|
<div v-for="(item, index) in approveList" :key="index">
|
||||||
<div class="flex justify-content-s align-items-c">
|
<div class="bg-white pv15 pr15 pl10 m15">
|
||||||
|
<div class="flex justify-content-s align-items-c">
|
||||||
|
<div class="mb10">
|
||||||
|
<div class="inline-b" style="margin-right:13px">
|
||||||
|
<van-tag plain color="#5CA7DE">申请人</van-tag>
|
||||||
|
</div>
|
||||||
|
<span class="fs14 c-gray-dark ml20">{{ item.name }}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="mb10">
|
<div class="mb10">
|
||||||
<div class="inline-b" style="margin-right:13px">
|
<div class="inline-b" style="margin-right:13px">
|
||||||
<van-tag plain color="#5CA7DE">申请人</van-tag>
|
<van-tag plain color="#5CA7DE">推荐人</van-tag>
|
||||||
</div>
|
</div>
|
||||||
<span class="fs14 c-gray-dark ml20">{{ item.name }}</span>
|
<span class="fs14 c-gray-dark ml20">{{ item.referName }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="mb10">
|
||||||
<div class="mb10">
|
<div class="inline-b">
|
||||||
<div class="inline-b" style="margin-right:13px">
|
<van-tag plain color="#5CA7DE">所属团队</van-tag>
|
||||||
<van-tag plain color="#5CA7DE">推荐人</van-tag>
|
</div>
|
||||||
|
<span class="fs14 c-gray-dark ml20">{{ item.team }}</span>
|
||||||
</div>
|
</div>
|
||||||
<span class="fs14 c-gray-dark ml20">{{ item.referName }}</span>
|
<div class="mb10">
|
||||||
</div>
|
<div class="inline-b">
|
||||||
<div class="mb10">
|
<van-tag plain color="#5CA7DE">申请时间</van-tag>
|
||||||
<div class="inline-b">
|
</div>
|
||||||
<van-tag plain color="#5CA7DE">所属团队</van-tag>
|
<span class="fs14 c-gray-dark ml20">{{ item.createdDate }}</span>
|
||||||
</div>
|
</div>
|
||||||
<span class="fs14 c-gray-dark ml20">{{ item.team }}</span>
|
<div class="mt10 flex justify-content-fe">
|
||||||
</div>
|
<van-button round size="small" class="mr5" type="danger" @click="goApprove(item.baseId)">审批</van-button>
|
||||||
<div class="mb10">
|
|
||||||
<div class="inline-b">
|
|
||||||
<van-tag plain color="#5CA7DE">申请时间</van-tag>
|
|
||||||
</div>
|
</div>
|
||||||
<span class="fs14 c-gray-dark ml20">{{ item.createdDate }}</span>
|
|
||||||
</div>
|
|
||||||
<div class="mt10 flex justify-content-fe">
|
|
||||||
<van-button round size="small" class="mr5" type="danger" @click="goApprove(item.baseId)">审批</van-button>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div v-else class="text-center">
|
||||||
|
<img class="mt40" src="@/assets/images/pic_page-non.png" />
|
||||||
<div v-else class="text-center">
|
<div class="fs17 mt40">暂无审批信息!</div>
|
||||||
<img class="mt40" src="@/assets/images/pic_page-non.png" />
|
</div>
|
||||||
<div class="fs17 mt40">暂无审批信息!</div>
|
</van-list>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -60,6 +61,10 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
approveList: [], //审批列表信息
|
approveList: [], //审批列表信息
|
||||||
|
loading: false,
|
||||||
|
finished: false,
|
||||||
|
currentPage: 1, //当前页数
|
||||||
|
finishedText: '',
|
||||||
isSuccess: false
|
isSuccess: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -67,34 +72,38 @@ export default {
|
|||||||
this.getOrderList()
|
this.getOrderList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
loadMore() {
|
||||||
|
let pageInfo = {
|
||||||
|
pageNum: this.currentPage
|
||||||
|
// pageSize: this.pageSize
|
||||||
|
}
|
||||||
|
this.getOrderList(pageInfo)
|
||||||
|
},
|
||||||
//初始化审批列表
|
//初始化审批列表
|
||||||
getOrderList() {
|
getOrderList(pageInfo) {
|
||||||
this.$toast.loading({
|
|
||||||
duration: 0, // 持续展示 toast
|
|
||||||
forbidClick: true, // 禁用背景点击
|
|
||||||
loadingType: 'spinner',
|
|
||||||
message: '加载中……'
|
|
||||||
})
|
|
||||||
let data = {
|
let data = {
|
||||||
|
...pageInfo,
|
||||||
types: ['01']
|
types: ['01']
|
||||||
}
|
}
|
||||||
agentAddApproval(data).then(res => {
|
agentAddApproval(data).then(res => {
|
||||||
this.$toast.clear()
|
this.$toast.clear()
|
||||||
if (res.result == '0') {
|
if (res.result == '0') {
|
||||||
let resData = res.content.ebizExamineApproveDtoList
|
let resData = res.content.approveWaitPageInfo
|
||||||
let obj = {}
|
if (resData.list.length > 0) {
|
||||||
if (resData.length > 0) {
|
|
||||||
this.isSuccess = true
|
this.isSuccess = true
|
||||||
resData.forEach(ele => {
|
resData.list.map(ele => {
|
||||||
obj = {}
|
this.approveList.push(ele)
|
||||||
obj.name = ele.name //申请人姓名
|
|
||||||
obj.referName = ele.referName //推荐人姓名
|
|
||||||
obj.team = ele.team //所属团队
|
|
||||||
obj.createdDate = ele.createdDate //申请时间
|
|
||||||
obj.baseId = ele.baseId //代理人id
|
|
||||||
this.approveList.push(obj)
|
|
||||||
})
|
})
|
||||||
|
if (resData.pageNum == resData.pages) {
|
||||||
|
this.finished = true
|
||||||
|
this.finishedText = '没有更多了'
|
||||||
|
}
|
||||||
|
this.loading = false
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
this.finished = true
|
||||||
|
this.loading = false
|
||||||
|
this.finishedText = res.resultMessage
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
135
src/views/ebiz/agentEenter/approve/RecordDetail.vue
Normal file
135
src/views/ebiz/agentEenter/approve/RecordDetail.vue
Normal file
@@ -0,0 +1,135 @@
|
|||||||
|
<template>
|
||||||
|
<div class="record-detail-container">
|
||||||
|
<p style="border-bottom: 1px solid #ebedf0" class="fs15 fwb pl10 pv12">基本信息</p>
|
||||||
|
<div class="pb80">
|
||||||
|
<van-cell-group>
|
||||||
|
<van-cell title="姓名" :value="basicInfoDTO.name" />
|
||||||
|
<van-cell title="性别" :value="basicInfoDTO.sex == 0 ? '男' : '女'" />
|
||||||
|
<van-cell title="出生日期" :value="basicInfoDTO.birthday" />
|
||||||
|
<van-cell title="籍贯" :value="basicInfoDTO.nativePlace | idToText('rsnativePlace')" />
|
||||||
|
<van-cell title="民族" :value="basicInfoDTO.ethnic | idToText('nationType')" />
|
||||||
|
<van-cell title="户口所在地" :value="basicInfoDTO.rgtAddress | idToText('rsnativePlace')" />
|
||||||
|
<van-cell title="职称" :value="basicInfoDTO.title" />
|
||||||
|
<van-cell title="婚姻状况" :value="basicInfoDTO.marriage | idToText('rsmarriage')" />
|
||||||
|
<van-cell title="政治面貌" :value="basicInfoDTO.political | idToText('rspoliticsStatus')" />
|
||||||
|
<van-cell title="学历" :value="basicInfoDTO.degree | idToText('rsdegree')" />
|
||||||
|
<van-cell title="毕业院校" :value="basicInfoDTO.school" />
|
||||||
|
<van-cell title="所学专业" :value="basicInfoDTO.discipline" />
|
||||||
|
<van-cell title="手机" :value="basicInfoDTO.mobile" />
|
||||||
|
<van-cell title="证件类型" :value="basicInfoDTO.idType | idToText('idType')" />
|
||||||
|
<van-cell title="证件号码" :value="basicInfoDTO.idNo" />
|
||||||
|
<van-cell title="联系地址" :value="basicInfoDTO.address" />
|
||||||
|
<van-cell title="邮政编码" :value="basicInfoDTO.zip" />
|
||||||
|
<van-cell title="开户银行" :value="basicInfoDTO.bankName" />
|
||||||
|
<van-cell title="开户地" :value="basicInfoDTO.bankAddress" />
|
||||||
|
<van-cell title="开户姓名" :value="basicInfoDTO.accountName" />
|
||||||
|
<van-cell title="银行卡号" :value="basicInfoDTO.bankCode" />
|
||||||
|
<van-cell title="从业年限" :value="basicInfoDTO.perationPeriod" />
|
||||||
|
<van-cell title="原工作单位" :value="basicInfoDTO.oldCompany" />
|
||||||
|
<van-cell title="原职业" :value="basicInfoDTO.oldOccupation | idToText('oldOccupation')" />
|
||||||
|
<van-cell title="是否同业" :value="basicInfoDTO.sameTrade | idToText('rshealthCondition')" />
|
||||||
|
<van-cell title="国籍/地区" :value="basicInfoDTO.nationality | idToText('rsnativeplace')" />
|
||||||
|
<van-cell title="是否境外人员" :value="basicInfoDTO.foreigners | idToText('rshealthCondition')" />
|
||||||
|
<van-cell title="职级" :value="basicInfoDTO.applGrade" />
|
||||||
|
</van-cell-group>
|
||||||
|
<p style="border-bottom: 1px solid #ebedf0" class="fs15 fwb pl10 pv12">推荐人信息</p>
|
||||||
|
<van-cell-group>
|
||||||
|
<van-cell title=" 推荐人代码" :value="referrerInfoDTO.referCode" />
|
||||||
|
<van-cell title="推荐人姓名" :value="referrerInfoDTO.referName" />
|
||||||
|
<van-cell title="营业组主管代码" :value="referrerInfoDTO.teamManger" />
|
||||||
|
<van-cell title="营业组主管姓名" :value="referrerInfoDTO.teamMangerName" />
|
||||||
|
<van-cell title="营业部经理代码" :value="referrerInfoDTO.officeManger" />
|
||||||
|
<van-cell title="营业部经理姓名" :value="referrerInfoDTO.officeMangerName" />
|
||||||
|
<van-cell title="业务总监经理代码" :value="referrerInfoDTO.areaManger" />
|
||||||
|
<van-cell title="业务总监经理姓名" :value="referrerInfoDTO.areaMangerName" />
|
||||||
|
</van-cell-group>
|
||||||
|
<p style="border-bottom: 1px solid #ebedf0" class="fs15 fwb pl10 pv12">审批信息</p>
|
||||||
|
<van-cell-group v-for="item in approvalInfo" :key="item.examineApproveName" class="fs15">
|
||||||
|
<van-cell title="审批时间" :value="item.modifiedDate" />
|
||||||
|
<van-cell title="审批结论" :value="item.examineApproveResult == '0' ? '拒绝审批' : '审批通过'" />
|
||||||
|
<van-cell v-if="item.examineApproveResult == '0'" title="退回原因" :value="item.examineApproveMsg" />
|
||||||
|
</van-cell-group>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
import { agentAddApproval } from '@/api/ebiz/agentEenter/agentEenter.js'
|
||||||
|
import { Cell, CellGroup, Button } from 'vant'
|
||||||
|
// import DataDictionary from '@/assets/js/utils/data-dictionary'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: 'recordDetail',
|
||||||
|
components: {
|
||||||
|
[Cell.name]: Cell,
|
||||||
|
[CellGroup.name]: CellGroup,
|
||||||
|
[Button.name]: Button
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
basicInfoDTO: {}, //基本信息
|
||||||
|
referrerInfoDTO: {}, //推荐人信息
|
||||||
|
approvalInfo: [] //审批信息
|
||||||
|
}
|
||||||
|
},
|
||||||
|
async mounted() {
|
||||||
|
let basicParams = {
|
||||||
|
types: ['02', '03'],
|
||||||
|
ebizEnterCustomerDto: {
|
||||||
|
id: this.$route.params.baseId
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//获取列表信息
|
||||||
|
await this.getOrderList(basicParams, '1')
|
||||||
|
let { idNo, idType, name } = this.basicInfoDTO
|
||||||
|
let param = {
|
||||||
|
types: ['04'],
|
||||||
|
ebizEnterCustomerDto: {
|
||||||
|
id: this.$route.params.baseId,
|
||||||
|
idNo,
|
||||||
|
idType,
|
||||||
|
name
|
||||||
|
}
|
||||||
|
}
|
||||||
|
await this.getOrderList(param, '2')
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
//获取列表信息
|
||||||
|
getOrderList(params, code) {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
//获取代理人信息、推荐人信息
|
||||||
|
agentAddApproval(params).then(res => {
|
||||||
|
if (res.result == '0') {
|
||||||
|
if (res.content) {
|
||||||
|
if (code == '1') {
|
||||||
|
this.basicInfoDTO = res.content.ebizEnterCustomerDto
|
||||||
|
this.referrerInfoDTO = res.content.ebizReferrerDto
|
||||||
|
}
|
||||||
|
// 需要新的接口文档
|
||||||
|
if (code == '2') {
|
||||||
|
this.approvalInfo = res.content.ebizHisExamineApproveDtoList
|
||||||
|
}
|
||||||
|
}
|
||||||
|
resolve()
|
||||||
|
} else {
|
||||||
|
this.$toast.resultMessage
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.detail-container {
|
||||||
|
.van-hairline--top-bottom::after {
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
/deep/ .van-cell__title {
|
||||||
|
min-width: 40%;
|
||||||
|
}
|
||||||
|
/deep/ .van-cell__value {
|
||||||
|
text-align: left !important;
|
||||||
|
min-width: 60%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
139
src/views/ebiz/agentEenter/approve/RecordList.vue
Normal file
139
src/views/ebiz/agentEenter/approve/RecordList.vue
Normal file
@@ -0,0 +1,139 @@
|
|||||||
|
<template>
|
||||||
|
<div class="record-list-container pb50">
|
||||||
|
<van-list v-model="loading" :immediate-check="false" :finished="finished" :finished-text="finishedText" @load="loadMore">
|
||||||
|
<div v-if="isSuccess">
|
||||||
|
<div v-if="approveList.length > 0">
|
||||||
|
<div v-for="(item, index) in approveList" :key="index">
|
||||||
|
<div class="bg-white pv15 pr15 pl10 record-list">
|
||||||
|
<div class="flex justify-content-s align-items-c">
|
||||||
|
<div class="mb10">
|
||||||
|
<div class="inline-b" style="margin-right:13px">
|
||||||
|
<van-tag plain color="#5CA7DE">申请人</van-tag>
|
||||||
|
</div>
|
||||||
|
<span class="fs14 c-gray-dark ml20">{{ item.name }}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="mb10">
|
||||||
|
<div class="inline-b" style="margin-right:13px">
|
||||||
|
<van-tag plain color="#5CA7DE">推荐人</van-tag>
|
||||||
|
</div>
|
||||||
|
<span class="fs14 c-gray-dark ml20">{{ item.referName }}</span>
|
||||||
|
</div>
|
||||||
|
<div class="mb10">
|
||||||
|
<div class="inline-b">
|
||||||
|
<van-tag plain color="#5CA7DE">所属团队</van-tag>
|
||||||
|
</div>
|
||||||
|
<span class="fs14 c-gray-dark ml20">{{ item.team }}</span>
|
||||||
|
</div>
|
||||||
|
<div class="mb10">
|
||||||
|
<div class="inline-b">
|
||||||
|
<van-tag plain color="#5CA7DE">审批时间</van-tag>
|
||||||
|
</div>
|
||||||
|
<span class="fs14 c-gray-dark ml20">{{ item.createdDate }}</span>
|
||||||
|
</div>
|
||||||
|
<div class="mt10 pt10 flex justify-content-fe">
|
||||||
|
<van-button round size="small" class="mr10" type="danger" @click="goDetail(item.baseId)">查看</van-button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div v-else class="text-center">
|
||||||
|
<img class="mt40" src="@/assets/images/pic_page-non.png" />
|
||||||
|
<div class="fs17 mt40">暂无审批记录!</div>
|
||||||
|
</div>
|
||||||
|
</van-list>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { List, Tag, Sticky, Toast, Dialog } from 'vant'
|
||||||
|
import { agentAddApproval } from '@/api/ebiz/agentEenter/agentEenter.js'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: 'approveList',
|
||||||
|
components: {
|
||||||
|
[List.name]: List,
|
||||||
|
[Tag.name]: Tag,
|
||||||
|
[Sticky.name]: Sticky,
|
||||||
|
[Dialog.name]: Dialog
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
approveList: [], //审批列表信息
|
||||||
|
loading: false,
|
||||||
|
finished: false,
|
||||||
|
currentPage: 1, //当前页数
|
||||||
|
finishedText: '',
|
||||||
|
// pageSize: 15, //每页数据条数
|
||||||
|
isSuccess: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
document.getElementsByTagName('body')[0].classList.add('bg-white')
|
||||||
|
// this.getOrderList()
|
||||||
|
this.loadMore()
|
||||||
|
},
|
||||||
|
destroyed() {
|
||||||
|
document.getElementsByTagName('body')[0].classList.remove('bg-white')
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
loadMore() {
|
||||||
|
let pageInfo = {
|
||||||
|
pageNum: this.currentPage
|
||||||
|
// pageSize: this.pageSize
|
||||||
|
}
|
||||||
|
this.getOrderList(pageInfo)
|
||||||
|
},
|
||||||
|
//初始化审批记录列表
|
||||||
|
getOrderList(pageInfo) {
|
||||||
|
let data = {
|
||||||
|
...pageInfo,
|
||||||
|
types: ['05']
|
||||||
|
}
|
||||||
|
agentAddApproval(data).then(res => {
|
||||||
|
this.$toast.clear()
|
||||||
|
if (res.result == '0') {
|
||||||
|
let resData = res.content.approveDonePageInfo
|
||||||
|
if (resData.list.length > 0) {
|
||||||
|
this.isSuccess = true
|
||||||
|
resData.list.map(ele => {
|
||||||
|
this.approveList.push(ele)
|
||||||
|
})
|
||||||
|
if (resData.pageNum == resData.pages) {
|
||||||
|
this.finished = true
|
||||||
|
this.finishedText = '没有更多了'
|
||||||
|
}
|
||||||
|
this.loading = false
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
this.finished = true
|
||||||
|
this.loading = false
|
||||||
|
this.finishedText = res.resultMessage
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
//查看详情
|
||||||
|
goDetail(baseId) {
|
||||||
|
this.$jump({
|
||||||
|
flag: 'h5',
|
||||||
|
extra: {
|
||||||
|
url: location.origin + `/#/agentEenter/approve/recordDetail/${baseId}`
|
||||||
|
},
|
||||||
|
routerInfo: { path: `/agentEenter/approve/recordDetail/${baseId}` }
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.record-list {
|
||||||
|
border-bottom: 1px solid #ebedf0;
|
||||||
|
border-top: 1px solid #ebedf0;
|
||||||
|
margin: 15px 0;
|
||||||
|
.justify-content-fe {
|
||||||
|
border-top: 1px solid #ebedf0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -144,17 +144,6 @@ export default {
|
|||||||
this.getData()
|
this.getData()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// yuansheng() {
|
|
||||||
// EWebBridge.webCallAppInJs('bridge', {
|
|
||||||
// flag: 'share',
|
|
||||||
// extra: {
|
|
||||||
// title: '鼎诚人寿欢迎你!',
|
|
||||||
// content: '正在招聘代理人,工作地点北京市朝阳区,有意向请戳我…',
|
|
||||||
// url: location.origin + '/#/agentEenter/ShareInfo?token=' + this.token,
|
|
||||||
// img: this.$assetsUrl + 'images/logo.png'
|
|
||||||
// }
|
|
||||||
// })
|
|
||||||
// },
|
|
||||||
getData: function() {
|
getData: function() {
|
||||||
let self = this
|
let self = this
|
||||||
self.$toast.loading({
|
self.$toast.loading({
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import UserInfoHeader from '@/components/ebiz/manpower/UserInfoHeader'
|
import UserInfoHeader from '@/components/ebiz/manpower/UserInfoHeader'
|
||||||
import NavItem from '@/components/ebiz/manpower/NavItem'
|
import NavItem from '@/components/ebiz/manpower/NavItem'
|
||||||
|
import record from '@/assets/images/u73803.png'
|
||||||
import { CellGroup } from 'vant'
|
import { CellGroup } from 'vant'
|
||||||
|
|
||||||
import { getTokenForUserModel } from '@/api/ebiz/manpower/manpower'
|
import { getTokenForUserModel } from '@/api/ebiz/manpower/manpower'
|
||||||
@@ -37,6 +37,11 @@ export default {
|
|||||||
title: '增员审批',
|
title: '增员审批',
|
||||||
icon: 'comment-o',
|
icon: 'comment-o',
|
||||||
path: '/agentEenter/approve/ApproveList'
|
path: '/agentEenter/approve/ApproveList'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '审批记录',
|
||||||
|
src: record,
|
||||||
|
path: '/agentEenter/approve/recordList'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user