mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-10 10: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 recordDetail = () => import('@/views/ebiz/agentEenter/approve/RecordDetail')
|
||||||
const ResultEnd = () => import('@/views/ebiz/agentEenter/ResultEnd')
|
const ResultEnd = () => import('@/views/ebiz/agentEenter/ResultEnd')
|
||||||
|
|
||||||
|
|
||||||
export default [
|
export default [
|
||||||
{
|
{
|
||||||
path: '/agentEenter/entryProcess',
|
path: '/agentEenter/entryProcess',
|
||||||
@@ -229,7 +228,7 @@ export default [
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/agentEenter/approve/BasicInfo/:baseId',
|
path: '/agentEenter/approve/BasicInfo/:baseId/:branchType/:appntNode',
|
||||||
name: 'BasicInfo',
|
name: 'BasicInfo',
|
||||||
component: BasicInfo,
|
component: BasicInfo,
|
||||||
meta: {
|
meta: {
|
||||||
@@ -238,7 +237,7 @@ export default [
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/agentEenter/approve/ApproveInfo/:baseId',
|
path: '/agentEenter/approve/ApproveInfo/:baseId/:branchType/:appntNode',
|
||||||
name: 'ApproveInfo',
|
name: 'ApproveInfo',
|
||||||
component: ApproveInfo,
|
component: ApproveInfo,
|
||||||
meta: {
|
meta: {
|
||||||
|
|||||||
@@ -1,5 +1,12 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="sale-list-container pb50">
|
<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">
|
<van-list v-model="loading" :immediate-check="false" :finished="finished" :finished-text="finishedText" @load="loadMore">
|
||||||
<div v-if="isSuccess">
|
<div v-if="isSuccess">
|
||||||
<div v-if="approveList.length > 0">
|
<div v-if="approveList.length > 0">
|
||||||
@@ -47,8 +54,9 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<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 { agentAddApproval } from '@/api/ebiz/agentEenter/agentEenter.js'
|
||||||
|
import { getAgentInfo } from '@/api/ebiz/my/my.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'approveList',
|
name: 'approveList',
|
||||||
@@ -56,11 +64,14 @@ export default {
|
|||||||
[List.name]: List,
|
[List.name]: List,
|
||||||
[Tag.name]: Tag,
|
[Tag.name]: Tag,
|
||||||
[Sticky.name]: Sticky,
|
[Sticky.name]: Sticky,
|
||||||
[Dialog.name]: Dialog
|
[Tab.name]: Tab,
|
||||||
|
[Tabs.name]: Tabs
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
approveList: [], //审批列表信息
|
approveList: [], //审批列表信息
|
||||||
|
branchType: '', //是否是内勤审批 0-不是内勤审批 1-是内勤审批
|
||||||
|
appntNode: '', //审批级别 1:区经理审批 3、三级机构审批 5、人员管理岗
|
||||||
loading: false,
|
loading: false,
|
||||||
finished: false,
|
finished: false,
|
||||||
currentPage: 1, //当前页数
|
currentPage: 1, //当前页数
|
||||||
@@ -68,7 +79,14 @@ export default {
|
|||||||
isSuccess: false
|
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()
|
this.loadMore()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -81,10 +99,11 @@ export default {
|
|||||||
this.getOrderList(pageInfo)
|
this.getOrderList(pageInfo)
|
||||||
},
|
},
|
||||||
//初始化审批列表
|
//初始化审批列表
|
||||||
getOrderList(pageInfo) {
|
getOrderList(pageInfo, appntNode = '1') {
|
||||||
let data = {
|
let data = {
|
||||||
...pageInfo,
|
...pageInfo,
|
||||||
types: ['01']
|
types: ['01'],
|
||||||
|
appntNode: this.branchType === '1' ? appntNode : null
|
||||||
}
|
}
|
||||||
agentAddApproval(data).then(res => {
|
agentAddApproval(data).then(res => {
|
||||||
this.$toast.clear()
|
this.$toast.clear()
|
||||||
@@ -108,17 +127,23 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
//切换审批级别
|
||||||
|
changeTab(e) {
|
||||||
|
let pageInfo = {
|
||||||
|
pageNum: this.currentPage
|
||||||
|
}
|
||||||
|
this.getOrderList(pageInfo, e)
|
||||||
|
},
|
||||||
//审批
|
//审批
|
||||||
goApprove(baseId) {
|
goApprove(baseId) {
|
||||||
console.log(baseId)
|
console.log(baseId)
|
||||||
this.$jump({
|
this.$jump({
|
||||||
flag: 'h5',
|
flag: 'h5',
|
||||||
extra: {
|
extra: {
|
||||||
url: location.origin + `/#/agentEenter/approve/BasicInfo/${baseId}`,
|
url: location.origin + `/#/agentEenter/approve/BasicInfo/${baseId}/${this.branchType}/${this.appntNode}`,
|
||||||
pullRefresh: '1' //1:需要开启下拉刷新
|
pullRefresh: '1' //1:需要开启下拉刷新
|
||||||
},
|
},
|
||||||
routerInfo: { path: `/agentEenter/approve/BasicInfo/${baseId}` }
|
routerInfo: { path: `/agentEenter/approve/BasicInfo/${baseId}/${this.branchType}/${this.appntNode}` }
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -52,7 +52,6 @@
|
|||||||
<script>
|
<script>
|
||||||
import { agentAddApproval } from '@/api/ebiz/agentEenter/agentEenter.js'
|
import { agentAddApproval } from '@/api/ebiz/agentEenter/agentEenter.js'
|
||||||
import { Cell, CellGroup, Button } from 'vant'
|
import { Cell, CellGroup, Button } from 'vant'
|
||||||
import DataDictionary from '@/assets/js/utils/data-dictionary'
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'approveInfo',
|
name: 'approveInfo',
|
||||||
@@ -76,6 +75,7 @@ export default {
|
|||||||
getOrderList() {
|
getOrderList() {
|
||||||
let BasicParams = {
|
let BasicParams = {
|
||||||
types: ['02', '03'],
|
types: ['02', '03'],
|
||||||
|
appntNode: this.$route.params.branchType == '1' ? this.$route.params.appntNode : null,
|
||||||
ebizEnterCustomerDto: {
|
ebizEnterCustomerDto: {
|
||||||
id: this.$route.params.baseId
|
id: this.$route.params.baseId
|
||||||
}
|
}
|
||||||
@@ -96,9 +96,9 @@ export default {
|
|||||||
this.$jump({
|
this.$jump({
|
||||||
flag: 'h5',
|
flag: 'h5',
|
||||||
extra: {
|
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>
|
<script>
|
||||||
import { agentAddApproval } from '@/api/ebiz/agentEenter/agentEenter.js'
|
import { agentAddApproval } from '@/api/ebiz/agentEenter/agentEenter.js'
|
||||||
import { Cell, CellGroup, Button } from 'vant'
|
import { Cell, CellGroup, Button } from 'vant'
|
||||||
// import DataDictionary from '@/assets/js/utils/data-dictionary'
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'recordDetail',
|
name: 'recordDetail',
|
||||||
|
|||||||
@@ -71,7 +71,6 @@ export default {
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
document.getElementsByTagName('body')[0].classList.add('bg-white')
|
document.getElementsByTagName('body')[0].classList.add('bg-white')
|
||||||
// this.getOrderList()
|
|
||||||
this.loadMore()
|
this.loadMore()
|
||||||
},
|
},
|
||||||
destroyed() {
|
destroyed() {
|
||||||
|
|||||||
Reference in New Issue
Block a user