diff --git a/package-lock.json b/package-lock.json index e23995d9d..7a02b1f10 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14890,6 +14890,14 @@ } } }, + "vue-hash-calendar": { + "version": "1.2.12", + "resolved": "https://registry.npm.taobao.org/vue-hash-calendar/download/vue-hash-calendar-1.2.12.tgz", + "integrity": "sha1-3TyXG2GpV8ZwavJS9FGVmpsHsoY=", + "requires": { + "vue": "^2.5.17" + } + }, "vue-hot-reload-api": { "version": "2.3.3", "resolved": "https://registry.npmjs.org/vue-hot-reload-api/-/vue-hot-reload-api-2.3.3.tgz", diff --git a/package.json b/package.json index 25f358c16..11951032c 100644 --- a/package.json +++ b/package.json @@ -30,6 +30,7 @@ "vant": "2.2.0", "vee-validate": "^2.2.14", "vue": "^2.6.10", + "vue-hash-calendar": "^1.2.12", "vue-pdf": "^4.0.7", "vue-router": "^3.0.3", "vuex": "^3.0.1", diff --git a/src/api/ebiz/attendance/attendance.js b/src/api/ebiz/attendance/attendance.js new file mode 100644 index 000000000..542059c22 --- /dev/null +++ b/src/api/ebiz/attendance/attendance.js @@ -0,0 +1,27 @@ +import request from '@/assets/js/utils/request' +import getUrl from '@/assets/js/utils/get-url' + +//打卡情况续期列表查询 +export function attendance(data) { + return request({ + url: getUrl(`/agent/Performance/attendance`, 1), + method: 'post', + data + }) + } +//日期查询 + export function getDayDetail(data) { + return request({ + url: getUrl(`/agent/Performance/getDayDetail`, 1), + method: 'post', + data + }) + } + //月历查询 + export function getMonthDetail(data) { + return request({ + url: getUrl(`/agent/Performance/getMonthDetail`, 1), + method: 'post', + data + }) + } \ No newline at end of file diff --git a/src/api/ebiz/performance/performance.js b/src/api/ebiz/performance/performance.js new file mode 100644 index 000000000..3e3f02174 --- /dev/null +++ b/src/api/ebiz/performance/performance.js @@ -0,0 +1,36 @@ +import request from '@/assets/js/utils/request' +import getUrl from '@/assets/js/utils/get-url' + +//代理人功能获取 +export function getBaseAgentInfo(data) { + return request({ + url: getUrl(`/agent/agent/getBaseAgentInfo`, 1), + method: 'post', + data + }) + } + //代理人关系获取 + export function getBranchInfos(data) { + return request({ + url: getUrl(`/agent/branch/getBranchInfos`, 1), + method: 'post', + data + }) + } + //获取信息 + export function getPerformanceDetail(data) { + return request({ + url: getUrl(`/agent/Performance/getPerformanceDetail`, 1), + method: 'post', + data + }) + } + //获取代理人下级头像 + // http://139.199.50.151:7000/api/v1/agent/branch/getAllAgentByAgent + export function getPerformanceHeader(data) { + return request({ + url: getUrl(`/agent/branch/getAllAgentByAgent`, 1), + method: 'post', + data + }) + } \ No newline at end of file diff --git a/src/assets/images/u1188.png b/src/assets/images/u1188.png new file mode 100644 index 000000000..99f9ad404 Binary files /dev/null and b/src/assets/images/u1188.png differ diff --git a/src/assets/images/u1203.png b/src/assets/images/u1203.png new file mode 100644 index 000000000..b971b3706 Binary files /dev/null and b/src/assets/images/u1203.png differ diff --git a/src/assets/images/u1213.png b/src/assets/images/u1213.png new file mode 100644 index 000000000..b4b2c1056 Binary files /dev/null and b/src/assets/images/u1213.png differ diff --git a/src/assets/images/u188.png b/src/assets/images/u188.png new file mode 100644 index 000000000..a7c35fe43 Binary files /dev/null and b/src/assets/images/u188.png differ diff --git a/src/assets/images/u79.png b/src/assets/images/u79.png new file mode 100644 index 000000000..ab1d70d3c Binary files /dev/null and b/src/assets/images/u79.png differ diff --git a/src/main.js b/src/main.js index 9f9d84894..d09d92ac2 100644 --- a/src/main.js +++ b/src/main.js @@ -9,8 +9,9 @@ import Jump from '@/assets/js/utils/jump' import utils from '@/assets/js/business-common' import config from '@/config' import noMoreClick from '@/directive/noMoreClick' +import vueHashCalendar from 'vue-hash-calendar' +import 'vue-hash-calendar/lib/vue-hash-calendar.css' -//全局注册vant常用组件 import { Toast, Button, @@ -20,6 +21,7 @@ import { } from 'vant' Vue.use(Icon) +Vue.use(vueHashCalendar) Vue.use(Toast) Vue.use(Button) Vue.use(Dialog) diff --git a/src/router/ebiz/attendance.js b/src/router/ebiz/attendance.js new file mode 100644 index 000000000..cf67b15e1 --- /dev/null +++ b/src/router/ebiz/attendance.js @@ -0,0 +1,24 @@ +const attendance = () => import('@/views/ebiz/attendance/Attendance') +const monthly = () => import('@/views/ebiz/attendance/Monthly') + + +export default [ + { + path: '/attendance/Attendance', + name: 'Attendance', + component: attendance, + meta: { + title: '考勤统计', + index: 1 + } + }, + { + path: '/attendance/Monthly', + name: 'Monthly', + component: monthly, + meta: { + title: '考勤统计', + index: 2 + } + } + ] \ No newline at end of file diff --git a/src/router/ebiz/index.js b/src/router/ebiz/index.js index 29e811696..4e43d3a02 100644 --- a/src/router/ebiz/index.js +++ b/src/router/ebiz/index.js @@ -19,6 +19,8 @@ import renewalManage from './renewalManage' import preserve from './preserve' import exercising from './exercising' import productStore from './product-store' +import performance from './performance' +import attendance from './attendance' export default [ ...proposal, ...sale, @@ -39,5 +41,9 @@ export default [ ...renewalManage, ...preserve, ...exercising, - ...productStore + ...productStore, + ...claims, + ...productStore, + ...performance, + ...attendance ] //根据需要进行删减 diff --git a/src/router/ebiz/performance.js b/src/router/ebiz/performance.js new file mode 100644 index 000000000..a24b28409 --- /dev/null +++ b/src/router/ebiz/performance.js @@ -0,0 +1,42 @@ +const performance = () => import('@/views/ebiz/performance/Performance') +const attendanceInfo = () => import('@/views/ebiz/performance/AttendanceInfo') +const PerformanceList = () => import('@/views/ebiz/performance/PerformanceList') + +export default [ + { + path: '/performance/Performance', + name: 'Performance', + component: performance, + meta: { + title: '业绩查询', + index: 1 + } + }, + { + path: '/performance/Performance/:parmas', + name: 'Performance', + component: performance, + meta: { + title: '业绩查询', + index: 1 + } + }, + { + path: '/performance/AttendanceInfo', + name: 'AttendanceInfo', + component: attendanceInfo, + meta: { + title: '考勤统计', + index: 3 + } + }, + { + path: '/performance/PerformanceList/:obj', + name: 'PerformanceList', + component: PerformanceList, + meta: { + title: '考勤统计', + index: 3 + } + } + ] \ No newline at end of file diff --git a/src/views/ebiz/attendance/Attendance.vue b/src/views/ebiz/attendance/Attendance.vue new file mode 100644 index 000000000..b8cbe6031 --- /dev/null +++ b/src/views/ebiz/attendance/Attendance.vue @@ -0,0 +1,155 @@ + + + \ No newline at end of file diff --git a/src/views/ebiz/attendance/Monthly.vue b/src/views/ebiz/attendance/Monthly.vue new file mode 100644 index 000000000..30572a2da --- /dev/null +++ b/src/views/ebiz/attendance/Monthly.vue @@ -0,0 +1,158 @@ + + + \ No newline at end of file diff --git a/src/views/ebiz/performance/AttendanceInfo.vue b/src/views/ebiz/performance/AttendanceInfo.vue new file mode 100644 index 000000000..36814dfd3 --- /dev/null +++ b/src/views/ebiz/performance/AttendanceInfo.vue @@ -0,0 +1,192 @@ + + + \ No newline at end of file diff --git a/src/views/ebiz/performance/Performance.vue b/src/views/ebiz/performance/Performance.vue new file mode 100644 index 000000000..4e1930c14 --- /dev/null +++ b/src/views/ebiz/performance/Performance.vue @@ -0,0 +1,314 @@ + + + \ No newline at end of file diff --git a/src/views/ebiz/performance/PerformanceList.vue b/src/views/ebiz/performance/PerformanceList.vue new file mode 100644 index 000000000..670f2bb27 --- /dev/null +++ b/src/views/ebiz/performance/PerformanceList.vue @@ -0,0 +1,235 @@ + + + \ No newline at end of file