mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-10 19:46:43 +08:00
入司优化:去除内勤审批流程 --提交人:阳华祥
This commit is contained in:
@@ -1,12 +1,12 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="sale-list-container pb50">
|
<div class="sale-list-container pb50">
|
||||||
<van-sticky>
|
<!--<van-sticky>
|
||||||
<van-tabs v-model="appntNode" v-if="branchType === '1'" @change="change">
|
<van-tabs v-model="appntNode" v-if="branchType === '1'" @change="change">
|
||||||
<van-tab title="营业区经理" name="1"> </van-tab>
|
<van-tab title="营业区经理" name="1"> </van-tab>
|
||||||
<van-tab title="三级机构负责人" name="3"> </van-tab>
|
<van-tab title="三级机构负责人" name="3"> </van-tab>
|
||||||
<van-tab title="人员管理岗" name="5"> </van-tab>
|
<van-tab title="人员管理岗" name="5"> </van-tab>
|
||||||
</van-tabs>
|
</van-tabs>
|
||||||
</van-sticky>
|
</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">
|
||||||
@@ -86,12 +86,14 @@ export default {
|
|||||||
if (res.result == 0) {
|
if (res.result == 0) {
|
||||||
this.branchType = /^N{1}/.test(res.branchType) ? '1' : '0' //res.branchType 以N打头的是内勤 其他是外勤
|
this.branchType = /^N{1}/.test(res.branchType) ? '1' : '0' //res.branchType 以N打头的是内勤 其他是外勤
|
||||||
this.approveName = encodeURI(res.name)
|
this.approveName = encodeURI(res.name)
|
||||||
} else {
|
if(this.branchType == '0'){
|
||||||
return this.$toast(res.resultMessage)
|
|
||||||
}
|
|
||||||
this.getOrderList({
|
this.getOrderList({
|
||||||
pageNum: this.currentPage
|
pageNum: this.currentPage
|
||||||
})
|
})
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
return this.$toast(res.resultMessage)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
change(tab) {
|
change(tab) {
|
||||||
|
|||||||
@@ -49,6 +49,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import { List, Tag, Sticky, Toast, Dialog } from 'vant'
|
import { List, Tag, Sticky, Toast, Dialog } 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',
|
||||||
@@ -66,12 +67,21 @@ export default {
|
|||||||
currentPage: 1, //当前页数
|
currentPage: 1, //当前页数
|
||||||
finishedText: '',
|
finishedText: '',
|
||||||
// pageSize: 15, //每页数据条数
|
// pageSize: 15, //每页数据条数
|
||||||
isSuccess: false
|
isSuccess: false,
|
||||||
|
branchType: '1'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
async mounted() {
|
||||||
document.getElementsByTagName('body')[0].classList.add('bg-white')
|
document.getElementsByTagName('body')[0].classList.add('bg-white')
|
||||||
|
const res = await getAgentInfo({})
|
||||||
|
if (res.result == 0) {
|
||||||
|
this.branchType = /^N{1}/.test(res.branchType) ? '1' : '0' //res.branchType 以N打头的是内勤 其他是外勤
|
||||||
|
if(this.branchType == '0'){
|
||||||
this.loadMore()
|
this.loadMore()
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
return this.$toast(res.resultMessage)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
destroyed() {
|
destroyed() {
|
||||||
document.getElementsByTagName('body')[0].classList.remove('bg-white')
|
document.getElementsByTagName('body')[0].classList.remove('bg-white')
|
||||||
|
|||||||
Reference in New Issue
Block a user