diff --git a/src/api/ebiz/eqiVisit/eqiVisit.js b/src/api/ebiz/eqiVisit/eqiVisit.js new file mode 100644 index 000000000..f5f453666 --- /dev/null +++ b/src/api/ebiz/eqiVisit/eqiVisit.js @@ -0,0 +1,65 @@ +import request from '@/assets/js/utils/request' +import getUrl from '@/assets/js/utils/get-url' + +// 陪访机构信息查询 +export function getAccompanyComCode(data) { + return request({ + url: getUrl('/agent/accompany/getAccompanyComCode', 1), + method: 'post', + data + }) +} + +// 陪访代理人查询 +export function getAccompanyPerson(data) { + return request({ + url: getUrl('/agent/accompany/getAccompanyPerson', 1), + method: 'post', + data + }) +} + +// 陪访记录查询 +export function getAgentAccompanyRecordPage(data) { + return request({ + url: getUrl('/agent/accompany/getAgentAccompanyRecordPage', 1), + method: 'post', + data + }) +} + +// 陪访信息登记 +export function saveAccompanyRecord(data) { + return request({ + url: getUrl('/agent/accompany/saveAccompanyRecord', 1), + method: 'post', + data + }) +} + +// 陪访记录详情查询 +export function getAccompanyDetail(data) { + return request({ + url: getUrl('/agent/accompany/getAccompanyDetail', 1), + method: 'post', + data + }) +} + +// 积分记录查询 +export function getRewardRecord(data) { + return request({ + url: getUrl('/agent/reward/getRewardRecord', 1), + method: 'post', + data + }) +} + +// 积分榜单查询 +export function getAccompanyRank(data) { + return request({ + url: getUrl('/agent/reward/getAccompanyRank', 1), + method: 'post', + data + }) +} diff --git a/src/assets/images/empty.png b/src/assets/images/empty.png new file mode 100644 index 000000000..eb30b65b4 Binary files /dev/null and b/src/assets/images/empty.png differ diff --git a/src/assets/images/success.png b/src/assets/images/success.png new file mode 100644 index 000000000..41d33c6d7 Binary files /dev/null and b/src/assets/images/success.png differ diff --git a/src/assets/js/utils/data-dictionary.js b/src/assets/js/utils/data-dictionary.js index 79ce71dc0..a94a5e91f 100644 --- a/src/assets/js/utils/data-dictionary.js +++ b/src/assets/js/utils/data-dictionary.js @@ -1831,6 +1831,13 @@ export default { { id: 'A302', text: '高级营业部经理' }, { id: 'A401', text: '业务总监' } ], + // e起陪访: 陪访类型枚举 + visitTypes: [ + { code: '01', text: '入职前陪访' }, + { code: '02', text: '新人首单' }, + { code: '03', text: '冲刺挑战' }, + { code: '04', text: '参与衔训' } + ], salarySource: [ { id: 1, diff --git a/src/assets/js/utils/request.js b/src/assets/js/utils/request.js index e4d61fa5a..30489d57f 100644 --- a/src/assets/js/utils/request.js +++ b/src/assets/js/utils/request.js @@ -101,6 +101,15 @@ let whitelist = ['/agent/white/getWhiteInfo'] // 开门红 let goodStart = ['/data/performance/getComPerformance'] +let eqiVisit = [ + '/agent/accompany/getAccompanyComCode', + '/agent/accompany/getAccompanyPerson', + '/agent/accompany/getAgentAccompanyRecordPage', + '/agent/accompany/saveAccompanyRecord', + '/agent/accompany/getAccompanyDetail', + '/agent/reward/getRewardRecord', + '/agent/reward/getAccompanyRank' +] let whiteList = [ '/customer/agent/getCustomersList', @@ -116,7 +125,8 @@ let whiteList = [ ...performanceRanking, ...hgb, ...whitelist, - ...goodStart + ...goodStart, + ...eqiVisit ] // 创建axios实例 diff --git a/src/assets/sass/common.scss b/src/assets/sass/common.scss index d284ccea7..56597ed96 100644 --- a/src/assets/sass/common.scss +++ b/src/assets/sass/common.scss @@ -10,7 +10,7 @@ } body { - height:auto; + height: auto; max-height: 100%; -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; @@ -20,7 +20,7 @@ body { } html { - height:auto; + height: auto; max-height: 100%; } @@ -33,6 +33,37 @@ a:hover { text-decoration: none; } +.thin-right, +.thin-bottom { + position: relative; +} + +.thin-right::after { + content: ' '; + position: absolute; + width: 200%; + height: 200%; + border-right: 1px solid #edeff2; + transform-origin: top left; + transform: scale(0.5); + left: 0; + top: 0; + pointer-events: none; +} + +.thin-bottom::after { + content: ' '; + position: absolute; + width: 200%; + height: 200%; + border-bottom: 1px solid #edeff2; + transform-origin: top left; + transform: scale(0.5); + left: 0; + top: 0; + pointer-events: none; +} + // 宽度设置 @include set-width($width-list); // 宽度设置 diff --git a/src/components/common/PopupSelector.vue b/src/components/common/PopupSelector.vue new file mode 100644 index 000000000..c8aaa3401 --- /dev/null +++ b/src/components/common/PopupSelector.vue @@ -0,0 +1,65 @@ + + + + + diff --git a/src/main.js b/src/main.js index c2a7c24e8..7e01c0eca 100644 --- a/src/main.js +++ b/src/main.js @@ -15,7 +15,30 @@ import md5 from 'js-md5' import cryptoJs from 'crypto-js' import cacheUtils from '@/assets/js/utils/cacheUtils' -import { Cell, CellGroup, DatetimePicker, Popup, Picker, Col, Row, Tab, Tabs, NavBar, Toast, Button, Dialog, Icon, Lazyload } from 'vant' +import { + Cell, + CellGroup, + DatetimePicker, + Popup, + Picker, + Col, + Row, + Tab, + Tabs, + NavBar, + Toast, + Button, + Dialog, + Icon, + Lazyload, + Field, + Area, + Uploader, + PullRefresh, + List, + Image as VanImage, + Sticky +} from 'vant' Vue.use(Cell) Vue.use(CellGroup) Vue.use(DatetimePicker) @@ -34,6 +57,13 @@ Vue.use(Dialog) Vue.use(Lazyload, { lazyComponent: true }) +Vue.use(Field) +Vue.use(Area) +Vue.use(Uploader) +Vue.use(PullRefresh) +Vue.use(List) +Vue.use(VanImage) +Vue.use(Sticky) Vue.prototype.$assetsUrl = config.assetsUrl Vue.prototype.$assetsUpUrl = config.assetsUpUrl diff --git a/src/router/ebiz/eqiVisit.js b/src/router/ebiz/eqiVisit.js new file mode 100644 index 000000000..c45f02022 --- /dev/null +++ b/src/router/ebiz/eqiVisit.js @@ -0,0 +1,68 @@ +// e起陪访 +const VisitInfoRegister = () => import('@/views/ebiz/eqiVisit/VisitInfoRegister') +const RegisterResult = () => import('@/views/ebiz/eqiVisit/RegisterResult') +const NewcomerList = () => import('@/views/ebiz/eqiVisit/NewcomerList') +const ScoreRanking = () => import('@/views/ebiz/eqiVisit/ScoreRanking') +const VisitHistory = () => import('@/views/ebiz/eqiVisit/VisitHistory') +const HistoryDetail = () => import('@/views/ebiz/eqiVisit/HistoryDetail') +const ScoreHistory = () => import('@/views/ebiz/eqiVisit/ScoreHistory') + +export default [ + { + path: '/eqiVisit/visitInfoRegister', + name: 'VisitInfoRegister', + component: VisitInfoRegister, + meta: { + title: '陪访信息登记' + } + }, + { + path: '/eqiVisit/registerResult', + name: 'RegisterResult', + component: RegisterResult, + meta: { + title: '提交结果' + } + }, + { + path: '/eqiVisit/newcomerList', + name: 'NewcomerList', + component: NewcomerList, + meta: { + title: '选择陪访对象' + } + }, + { + path: '/eqiVisit/scoreRanking', + name: 'ScoreRanking', + component: ScoreRanking, + meta: { + title: '积分榜' + } + }, + { + path: '/eqiVisit/visitHistory', + name: 'VisitHistory', + component: VisitHistory, + meta: { + title: '陪访记录' + } + }, + { + path: '/eqiVisit/historyDetail/:id', + name: 'VisitHistory', + component: HistoryDetail, + props: true, + meta: { + title: '陪访记录详情' + } + }, + { + path: '/eqiVisit/scoreHistory', + name: 'ScoreHistory', + component: ScoreHistory, + meta: { + title: '查询积分' + } + } +] diff --git a/src/router/ebiz/index.js b/src/router/ebiz/index.js index 067f946ce..ff834ae68 100644 --- a/src/router/ebiz/index.js +++ b/src/router/ebiz/index.js @@ -29,6 +29,7 @@ import attendance from './attendance' import goodStart from './goodStart' import hgb from './hgb' import train from './train' +import eqiVisit from './eqiVisit' export default [ ...proposal, @@ -57,5 +58,6 @@ export default [ ...question, ...hgb, ...goodStart, - ...train + ...train, + ...eqiVisit ] //根据需要进行删减 diff --git a/src/views/ebiz/eqiVisit/HistoryDetail.vue b/src/views/ebiz/eqiVisit/HistoryDetail.vue new file mode 100644 index 000000000..3c506b7a0 --- /dev/null +++ b/src/views/ebiz/eqiVisit/HistoryDetail.vue @@ -0,0 +1,110 @@ + + + + + diff --git a/src/views/ebiz/eqiVisit/NewcomerList.vue b/src/views/ebiz/eqiVisit/NewcomerList.vue new file mode 100644 index 000000000..a979f2d11 --- /dev/null +++ b/src/views/ebiz/eqiVisit/NewcomerList.vue @@ -0,0 +1,174 @@ + + + + + diff --git a/src/views/ebiz/eqiVisit/RegisterResult.vue b/src/views/ebiz/eqiVisit/RegisterResult.vue new file mode 100644 index 000000000..6d83de5d8 --- /dev/null +++ b/src/views/ebiz/eqiVisit/RegisterResult.vue @@ -0,0 +1,116 @@ + + + + + diff --git a/src/views/ebiz/eqiVisit/ScoreHistory.vue b/src/views/ebiz/eqiVisit/ScoreHistory.vue new file mode 100644 index 000000000..16ac7c1b3 --- /dev/null +++ b/src/views/ebiz/eqiVisit/ScoreHistory.vue @@ -0,0 +1,126 @@ + + + + + diff --git a/src/views/ebiz/eqiVisit/ScoreRanking.vue b/src/views/ebiz/eqiVisit/ScoreRanking.vue new file mode 100644 index 000000000..0443caa94 --- /dev/null +++ b/src/views/ebiz/eqiVisit/ScoreRanking.vue @@ -0,0 +1,147 @@ + + + + + diff --git a/src/views/ebiz/eqiVisit/VisitHistory.vue b/src/views/ebiz/eqiVisit/VisitHistory.vue new file mode 100644 index 000000000..09f807110 --- /dev/null +++ b/src/views/ebiz/eqiVisit/VisitHistory.vue @@ -0,0 +1,109 @@ + + + + + diff --git a/src/views/ebiz/eqiVisit/VisitInfoRegister.vue b/src/views/ebiz/eqiVisit/VisitInfoRegister.vue new file mode 100644 index 000000000..61e8bd94f --- /dev/null +++ b/src/views/ebiz/eqiVisit/VisitInfoRegister.vue @@ -0,0 +1,320 @@ + + + + +