diff --git a/api/apiRoute.js b/api/apiRoute.js index 081d694..ef4992d 100644 --- a/api/apiRoute.js +++ b/api/apiRoute.js @@ -66,6 +66,20 @@ export default { return res; }) }, + //公共端-获取全部课程列表 + common_getCourseAll(data = {}) { + let url = '/common/getCourseAll' + return http.get(url, data).then(res => { + return res; + }) + }, + //公共端-获取全部班级列表 + common_getClassAll(data = {}) { + let url = '/common/getClassAll' + return http.get(url, data).then(res => { + return res; + }) + }, //公共端-教师/销售端验证旧密码是否正确 common_personnelCheckOldPwd(data = {}) { let url = '/personnel/checkOldPwd' diff --git a/pages/market/clue/clue_info.vue b/pages/market/clue/clue_info.vue index f91da5e..bec3426 100644 --- a/pages/market/clue/clue_info.vue +++ b/pages/market/clue/clue_info.vue @@ -290,6 +290,9 @@ followList:[], //通话记录列表 listCallUp:[], + + //当前登录的员工信息 + userInfo:{}, } }, onLoad(options) { @@ -301,10 +304,25 @@ methods: { async init(){ await this.getInfo()//客户详情 - // this.getFollowList()//获取跟进记录 + this.getUserInfo()//获取当前登录的员工信息 // this.getListCallUp()//获取通话记录 }, + //获取当前登录的员工信息 + async getUserInfo(){ + let res = await apiRoute.getPersonnelInfo({}) + if (res.code != 1) { + uni.showToast({ + title: res.msg, + icon: 'none' + }) + return + } + + this.userInfo = res.data + // console.log('员工',this.userInfo) + }, + //获取客户详情 async getInfo(){ let data = { @@ -379,8 +397,13 @@ //跳转页面-订单列表 openViewOrder() { let resource_id = this.clientInfo.resource_id//客户资源id + let resource_name = this.clientInfo.customerResource.name || ''//客户资源id姓名 + + let staff_id = this.userInfo.id//员工id + let staff_id_name = this.userInfo.name || ''//员工姓名 + this.$navigateTo({ - url: `/pages/market/clue/order_list?resource_id=${resource_id}` + url: `/pages/market/clue/order_list?resource_id=${resource_id}&resource_name=${resource_name}&staff_id=${staff_id}&staff_id_name=${staff_id_name}` }) }, diff --git a/pages/market/clue/order_list.vue b/pages/market/clue/order_list.vue index 0ef299a..8566f5f 100644 --- a/pages/market/clue/order_list.vue +++ b/pages/market/clue/order_list.vue @@ -8,7 +8,7 @@ scroll-y="true" :lower-threshold="lowerThreshold" @scrolltolower="loadMoreData" - style="height: 90vh;" + style="height: 83vh;" > - 订单状态 + 订单状态:{{v.order_status == 'pending' ? '待支付':'已支付' }} 客户姓名: - {{ v.resource_id_name }} + {{ v.resource_id_name || ''}} @@ -34,12 +34,12 @@ 订单金额: - ¥{{ v.order_amount }} + ¥{{ v.order_amount || ''}} 课程: - {{ v.course_id_name }} + {{ v.course_id_name || ''}} @@ -49,25 +49,177 @@ 人员: - {{ v.staff_id_name }} + {{ v.staff_id_name || ''}} 支付时间: - {{ v.payment_time }} + {{ v.payment_time || '' }} + + 创建订单 + + + + + 创建订单 + + + + + + + + + + + + + + + {{ (formData.payment_type) ? formData.payment_type_name : '点击选择' }} + + + + + + + + + + + {{ (formData.course_id) ? formData.course_id_name : '点击选择' }} + + + + + + + + + + + {{ (formData.class_id) ? formData.class_id_name : '点击选择' }} + + + + + + + + + + + + + + + 取消 + 确定 + + + + + + +