| | |
| | | } |
| | | }); |
| | | |
| | | // 删除项目工人 |
| | | 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 GetFirmAccountList = (params, config = {}) => http.get(`/api/CyOSBaoXiaoCaiWu/GetFirmAccountList`, { |
| | | custom: { |
| | | methodName: 'GetFirmAccountList', |
| | | needToken: true |
| | | } |
| | | }); |
| | | |
| | | // 创建报销单 |
| | | let CreatOder = (params, config = {}) => http.post(`/api/CyOSStaff/CreatOder`, params, { |
| | |
| | | } |
| | | }); |
| | | |
| | | //财务查看详情 |
| | | let caiWuGetPlanInfo = (params, config = {}) => http.get(`/api/CyOSBaoXiaoCaiWu/GetPlanInfo/${params}`, { |
| | | custom: { |
| | | methodName: 'caiWuGetPlanInfo', |
| | | needToken: true |
| | | } |
| | | }); |
| | | |
| | | //主管查看详情 |
| | | let zhuGuanGetPlanInfo = (params, config = {}) => http.get(`/api/CyOSBaoXiaoZHuGuan/GetPlanInfo/${params}`, { |
| | | custom: { |
| | |
| | | needToken: true |
| | | } |
| | | }); |
| | | |
| | | // 经理批量审批 |
| | | 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: { |
| | | methodName: 'caiWuApprovalPlan', |
| | | needToken: true |
| | | } |
| | | }); |
| | | |
| | | // 获取上传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 |
| | | } |
| | | }); |
| | | |
| | | // 创建配送单 |
| | | let CreatDeliverPlan = (params, config = {}) => http.post(`/api/CyOsDeliverManage/CreatDeliverPlan`, params, { |
| | | custom: { |
| | | methodName: 'CreatDeliverPlan', |
| | | needToken: true |
| | | } |
| | | }); |
| | | |
| | | // 获取送货单 |
| | | let GetDeliverPlans = (params, config = {}) => http.post(`/api/CyOsDeliverManage/GetDeliverPlans`, params, { |
| | | custom: { |
| | | methodName: 'GetDeliverPlans', |
| | | needToken: true |
| | | } |
| | | }); |
| | | |
| | | //修改送货单 |
| | | let UpDataDeliverPlans = (params, config = {}) => http.post(`/api/CyOsDeliverManage/UpDataDeliverPlans`, params, { |
| | | custom: { |
| | | methodName: 'UpDataDeliverPlans', |
| | | needToken: true |
| | | } |
| | | }); |
| | | |
| | | // 获取司机列表 |
| | | let Getdrivers = (params, config = {}) => http.get(`/api/CYOSSetting/Getdrivers`, { |
| | | custom: { |
| | | methodName: 'Getdrivers', |
| | | needToken: true |
| | | } |
| | | }); |
| | | |
| | | // 获取&天司机列表 |
| | | let GetDriversOfWithin7days = (params, config = {}) => http.get(`/api/CYOSSetting/GetDriversOfWithin7days`, { |
| | | custom: { |
| | | methodName: 'GetDriversOfWithin7days', |
| | | needToken: true |
| | | } |
| | | }); |
| | | |
| | | // 获取单位列表 |
| | | let GeCorporateClients = (params, config = {}) => http.get(`/api/CYOSSetting/GeCorporateClients`, { |
| | | custom: { |
| | | methodName: 'GeCorporateClients', |
| | | needToken: true |
| | | } |
| | | }); |
| | | |
| | | //司机获取送货单 |
| | | let driverGetDeliverPlans = (params, config = {}) => http.post(`/api/CyOSSDriver/GetDeliverPlans`, params,{ |
| | | custom: { |
| | | methodName: 'driverGetDeliverPlans', |
| | | needToken: true |
| | | } |
| | | }); |
| | | |
| | | //司机获取送货单详情 |
| | | let GetDeliverPlanInfo = (KeyId, config = {}) => http.get(`/api/CyOSSDriver/GetDeliverPlanInfo/${KeyId}`,{ |
| | | custom: { |
| | | methodName: 'GetDeliverPlanInfo', |
| | | needToken: true |
| | | } |
| | | }); |
| | | |
| | | //司机开始配送 |
| | | let StartDeliverPlan = (params, config = {}) => http.post(`/api/CyOSSDriver/StartDeliverPlan/${params}`,{},{ |
| | | custom: { |
| | | methodName: 'StartDeliverPlan', |
| | | needToken: true |
| | | } |
| | | }); |
| | | |
| | | // 司机完成配送 |
| | | let FinishDeliverPlan = (KeyId, config = {}) => http.post(`/api/CyOSSDriver/FinishDeliverPlan`, params,{ |
| | | custom: { |
| | | methodName: 'FinishDeliverPlan', |
| | | needToken: true |
| | | } |
| | | }); |
| | | |
| | | |
| | | |
| | | // 将各个定义的接口名称,统一放进对象挂载到vm.$u.api(因为vm就是this,也即this.$u.api)下 |
| | |
| | | PostMyComGongZiListPage, //查询公司下工人的工资额度 |
| | | saveWorkPrice, // 公司修改工人工价 |
| | | getworkerplanelist, //员工报销列表 |
| | | getcaiwuplanelist,//财务报销单列表 |
| | | getcaiwuplanelist, //财务报销单列表 |
| | | GetDepartLstt, //获取部门列表 |
| | | getKeMuList,//科目 |
| | | CreatOder,//创建报销单 |
| | | getKeMuList, //科目 |
| | | CreatOder, //创建报销单 |
| | | EditOder, |
| | | workerGetPlanInfo,//员工获取详情 |
| | | workerGetPlanInfo, //员工获取详情 |
| | | getzhuguanplanelist, |
| | | getjingliplanelist, |
| | | jingLiGetPlanInfo, |
| | | zhuGuanGetPlanInfo, |
| | | BaoxiaoPlan, |
| | | ApprovalPlan |
| | | BatchShenPi, |
| | | ApprovalPlan, |
| | | caiWuGetPlanInfo, |
| | | GetFirmAccountList, //获取账户列表 |
| | | caiWuApprovalPlan, |
| | | GetToken, |
| | | saveDeltoudi, |
| | | CreatAppointmentDeliver,//创建预约送货 |
| | | GetListAppointmentDeliverList, |
| | | driverGetListAppointmentDeliverList, |
| | | AcceptAppointmentDeliver, |
| | | UpDataAppointmentDeliver, |
| | | DelAppointmentDeliver, |
| | | CreatDeliverPlan, |
| | | GetDeliverPlans, |
| | | UpDataDeliverPlans, |
| | | Getdrivers, |
| | | GeCorporateClients, |
| | | GetDriversOfWithin7days, |
| | | driverGetDeliverPlans, |
| | | StartDeliverPlan, |
| | | FinishDeliverPlan, |
| | | GetDeliverPlanInfo |
| | | }; |
| | | // } |
| | | |