mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-09 06:26:44 +08:00
[FIX]【自助入司优化二期】增加内勤审批相关
This commit is contained in:
@@ -28,7 +28,6 @@ const recordList = () => import('@/views/ebiz/agentEenter/approve/RecordList')
|
||||
const recordDetail = () => import('@/views/ebiz/agentEenter/approve/RecordDetail')
|
||||
const ResultEnd = () => import('@/views/ebiz/agentEenter/ResultEnd')
|
||||
|
||||
|
||||
export default [
|
||||
{
|
||||
path: '/agentEenter/entryProcess',
|
||||
@@ -229,7 +228,7 @@ export default [
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/agentEenter/approve/BasicInfo/:baseId',
|
||||
path: '/agentEenter/approve/BasicInfo/:baseId/:branchType/:appntNode',
|
||||
name: 'BasicInfo',
|
||||
component: BasicInfo,
|
||||
meta: {
|
||||
@@ -238,7 +237,7 @@ export default [
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/agentEenter/approve/ApproveInfo/:baseId',
|
||||
path: '/agentEenter/approve/ApproveInfo/:baseId/:branchType/:appntNode',
|
||||
name: 'ApproveInfo',
|
||||
component: ApproveInfo,
|
||||
meta: {
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
<template>
|
||||
<div class="sale-list-container pb50">
|
||||
<van-sticky>
|
||||
<van-tabs v-model="appntNode" @click="changeTab" v-if="branchType === '1'">
|
||||
<van-tab title="营业区经理" name="1"> </van-tab>
|
||||
<van-tab title="三级机构负责人" name="3"> </van-tab>
|
||||
<van-tab title="人员管理岗" name="5"> </van-tab>
|
||||
</van-tabs>
|
||||
</van-sticky>
|
||||
<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">
|
||||
@@ -47,8 +54,9 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { List, Tag, Sticky, Toast, Dialog } from 'vant'
|
||||
import { List, Tag, Tab, Sticky, Tabs } from 'vant'
|
||||
import { agentAddApproval } from '@/api/ebiz/agentEenter/agentEenter.js'
|
||||
import { getAgentInfo } from '@/api/ebiz/my/my.js'
|
||||
|
||||
export default {
|
||||
name: 'approveList',
|
||||
@@ -56,11 +64,14 @@ export default {
|
||||
[List.name]: List,
|
||||
[Tag.name]: Tag,
|
||||
[Sticky.name]: Sticky,
|
||||
[Dialog.name]: Dialog
|
||||
[Tab.name]: Tab,
|
||||
[Tabs.name]: Tabs
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
approveList: [], //审批列表信息
|
||||
branchType: '', //是否是内勤审批 0-不是内勤审批 1-是内勤审批
|
||||
appntNode: '', //审批级别 1:区经理审批 3、三级机构审批 5、人员管理岗
|
||||
loading: false,
|
||||
finished: false,
|
||||
currentPage: 1, //当前页数
|
||||
@@ -68,7 +79,14 @@ export default {
|
||||
isSuccess: false
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
async mounted() {
|
||||
// 获取代理人信息
|
||||
const res = await getAgentInfo({})
|
||||
if (res.result == 0) {
|
||||
this.branchType = /^N{1}/.test(res.branchType) ? '1' : '0' //res.branchType 以N打头的是内勤 其他是外勤
|
||||
} else {
|
||||
return this.$toast(res.resultMessage)
|
||||
}
|
||||
this.loadMore()
|
||||
},
|
||||
methods: {
|
||||
@@ -81,10 +99,11 @@ export default {
|
||||
this.getOrderList(pageInfo)
|
||||
},
|
||||
//初始化审批列表
|
||||
getOrderList(pageInfo) {
|
||||
getOrderList(pageInfo, appntNode = '1') {
|
||||
let data = {
|
||||
...pageInfo,
|
||||
types: ['01']
|
||||
types: ['01'],
|
||||
appntNode: this.branchType === '1' ? appntNode : null
|
||||
}
|
||||
agentAddApproval(data).then(res => {
|
||||
this.$toast.clear()
|
||||
@@ -108,17 +127,23 @@ export default {
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
//切换审批级别
|
||||
changeTab(e) {
|
||||
let pageInfo = {
|
||||
pageNum: this.currentPage
|
||||
}
|
||||
this.getOrderList(pageInfo, e)
|
||||
},
|
||||
//审批
|
||||
goApprove(baseId) {
|
||||
console.log(baseId)
|
||||
this.$jump({
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
url: location.origin + `/#/agentEenter/approve/BasicInfo/${baseId}`,
|
||||
url: location.origin + `/#/agentEenter/approve/BasicInfo/${baseId}/${this.branchType}/${this.appntNode}`,
|
||||
pullRefresh: '1' //1:需要开启下拉刷新
|
||||
},
|
||||
routerInfo: { path: `/agentEenter/approve/BasicInfo/${baseId}` }
|
||||
routerInfo: { path: `/agentEenter/approve/BasicInfo/${baseId}/${this.branchType}/${this.appntNode}` }
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -52,7 +52,6 @@
|
||||
<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: 'approveInfo',
|
||||
@@ -76,6 +75,7 @@ export default {
|
||||
getOrderList() {
|
||||
let BasicParams = {
|
||||
types: ['02', '03'],
|
||||
appntNode: this.$route.params.branchType == '1' ? this.$route.params.appntNode : null,
|
||||
ebizEnterCustomerDto: {
|
||||
id: this.$route.params.baseId
|
||||
}
|
||||
@@ -96,9 +96,9 @@ export default {
|
||||
this.$jump({
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
url: location.origin + `/#/agentEenter/approve/ApproveInfo/${baseId}`
|
||||
url: location.origin + `/#/agentEenter/approve/ApproveInfo/${baseId}/${this.$route.params.branchType}/${this.$route.params.appntNode}`
|
||||
},
|
||||
routerInfo: { path: `/agentEenter/approve/ApproveInfo/${baseId}` }
|
||||
routerInfo: { path: `/agentEenter/approve/ApproveInfo/${baseId}/${this.$route.params.branchType}/${this.$route.params.appntNode}` }
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -55,7 +55,6 @@
|
||||
<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',
|
||||
|
||||
@@ -71,7 +71,6 @@ export default {
|
||||
},
|
||||
mounted() {
|
||||
document.getElementsByTagName('body')[0].classList.add('bg-white')
|
||||
// this.getOrderList()
|
||||
this.loadMore()
|
||||
},
|
||||
destroyed() {
|
||||
|
||||
Reference in New Issue
Block a user