| | |
| | | } |
| | | }); |
| | | |
| | | // 删除项目工人 |
| | | let saveDeltoudi = (params, config = {}) => http.post(`/api/OrderCompany/saveDeltoudi`, params, { |
| | | custom: { |
| | | methodName: 'saveDeltoudi', |
| | | needToken: true |
| | | } |
| | | }); |
| | | |
| | | // 保存公司员工为管理员 |
| | | let SaveStaffAdmin = (params, config = {}) => http.post(`/api/OrderCompany/SaveStaffAdmin`, params, { |
| | | custom: { |
| | |
| | | } |
| | | }); |
| | | |
| | | // 经理批量审批 |
| | | let BatchShenPi = (params, config = {}) => http.post(`/api/CyOSBaoXiaoJingLi/BatchShenPi`, params, { |
| | | custom: { |
| | | methodName: 'BatchShenPi', |
| | | needToken: true |
| | | } |
| | | }); |
| | | |
| | | // 报销或付款 |
| | | let caiWuApprovalPlan = (params, config = {}) => http.post(`/api/CyOSBaoXiaoCaiWu/ApprovalPlan`, params, { |
| | | custom: { |
| | |
| | | } |
| | | }); |
| | | |
| | | // 获取上传token |
| | | let GetToken = (params, config = {}) => http.get(`/api/UpFile/GetToken`, { |
| | | custom: { |
| | | methodName: 'GetToken', |
| | | needToken: true |
| | | } |
| | | }); |
| | | |
| | | // 创建预约送货 |
| | | let CreatAppointmentDeliver = (params, config = {}) => http.post(`/api/CyOSStaff/CreatAppointmentDeliver`, params, { |
| | | custom: { |
| | | methodName: 'CreatAppointmentDeliver', |
| | | needToken: true |
| | | } |
| | | }); |
| | | |
| | | // 获取预约配送信息 |
| | | let GetListAppointmentDeliverList = (params, config = {}) => http.post(`/api/CyOSStaff/GetListAppointmentDeliverList`, params, { |
| | | custom: { |
| | | methodName: 'GetListAppointmentDeliverList', |
| | | needToken: true |
| | | } |
| | | }); |
| | | |
| | | //修改预约配送信息 |
| | | let UpDataAppointmentDeliver = (params, config = {}) => http.post(`/api/CyOSStaff/UpDataAppointmentDeliver`, params, { |
| | | custom: { |
| | | methodName: 'UpDataAppointmentDeliver', |
| | | needToken: true |
| | | } |
| | | }); |
| | | |
| | | // 删除预约配送信息 |
| | | let DelAppointmentDeliver = (params, config = {}) => http.post(`/api/CyOSStaff/DelAppointmentDeliver`, params, { |
| | | custom: { |
| | | methodName: 'DelAppointmentDeliver', |
| | | needToken: true |
| | | } |
| | | }); |
| | | |
| | | //司机获取预约配送信息 |
| | | let driverGetListAppointmentDeliverList = (params, config = {}) => http.post(`/api/CyOsDeliverManage/GetListAppointmentDeliverList`, params, { |
| | | custom: { |
| | | methodName: 'driverGetListAppointmentDeliverList', |
| | | needToken: true |
| | | } |
| | | }); |
| | | |
| | | |
| | | // 司机受理 |
| | | let AcceptAppointmentDeliver = (params, config = {}) => http.post(`/api/CyOsDeliverManage/AcceptAppointmentDeliver/${params}`, params, { |
| | | custom: { |
| | | methodName: 'AcceptAppointmentDeliver', |
| | | needToken: true |
| | | } |
| | | }); |
| | | |
| | | |
| | | // 将各个定义的接口名称,统一放进对象挂载到vm.$u.api(因为vm就是this,也即this.$u.api)下 |
| | |
| | | jingLiGetPlanInfo, |
| | | zhuGuanGetPlanInfo, |
| | | BaoxiaoPlan, |
| | | BatchShenPi, |
| | | ApprovalPlan, |
| | | caiWuGetPlanInfo, |
| | | GetFirmAccountList, //获取账户列表 |
| | | caiWuApprovalPlan, |
| | | GetToken, |
| | | saveDeltoudi, |
| | | CreatAppointmentDeliver,//创建预约送货 |
| | | GetListAppointmentDeliverList, |
| | | driverGetListAppointmentDeliverList, |
| | | AcceptAppointmentDeliver, |
| | | UpDataAppointmentDeliver, |
| | | DelAppointmentDeliver |
| | | }; |
| | | // } |
| | | |