| | |
| | | } |
| | | }); |
| | | |
| | | // 员工报销单列表 |
| | | let getworkerplanelist = (params, config = {}) => http.post(`/api/CyOSStaff/getplanelist`, params, { |
| | | custom: { |
| | | methodName: 'getworkerplanelist', |
| | | needToken: true |
| | | } |
| | | }); |
| | | |
| | | // 获取部门列表 |
| | | let GetDepartLstt = (params, config = {}) => http.get(`/api/CYOSSetting/GetDepartLstt`, { |
| | | custom: { |
| | | methodName: 'GetDepartLstt', |
| | | needToken: true |
| | | } |
| | | }); |
| | | |
| | | // 获取科目列表 |
| | | let getKeMuList = (params, config = {}) => http.get(`/api/CYOSSetting/getKeMuList`, { |
| | | custom: { |
| | | methodName: 'getKeMuList', |
| | | needToken: true |
| | | } |
| | | }); |
| | | |
| | | |
| | | // 创建报销单 |
| | | let CreatOder = (params, config = {}) => http.post(`/api/CyOSStaff/CreatOder`, params, { |
| | | custom: { |
| | | methodName: 'CreatOder', |
| | | needToken: true |
| | | } |
| | | }); |
| | | |
| | | // 编辑报销单 |
| | | let EditOder = (params, config = {}) => http.post(`/api/CyOSStaff/EditOder`, params, { |
| | | custom: { |
| | | methodName: 'EditOder', |
| | | needToken: true |
| | | } |
| | | }); |
| | | |
| | | |
| | | //员工查看详情 |
| | | let workerGetPlanInfo = (params, config = {}) => http.get(`/api/CyOSStaff/GetPlanInfo/${params}`, { |
| | | custom: { |
| | | methodName: 'workerGetPlanInfo', |
| | | needToken: true |
| | | } |
| | | }); |
| | | |
| | | |
| | | // 财务报销单列表 |
| | | let getcaiwuplanelist = (params, config = {}) => http.post(`/api/CyOSBaoXiaoCaiWu/getplanelist`, params, { |
| | | custom: { |
| | | methodName: 'getcaiwuplanelist', |
| | | needToken: true |
| | | } |
| | | }); |
| | | |
| | | |
| | | // 主管列表 |
| | | let getzhuguanplanelist = (params, config = {}) => http.post(`/api/CyOSBaoXiaoZHuGuan/getplanelist`, params, { |
| | | custom: { |
| | | methodName: 'getzhuguanplanelist', |
| | | needToken: true |
| | | } |
| | | }); |
| | | |
| | | // 总经理列表 |
| | | let getjingliplanelist = (params, config = {}) => http.post(`/api/CyOSBaoXiaoJingLi/getplanelist`, params, { |
| | | custom: { |
| | | methodName: 'getjingliplanelist', |
| | | needToken: true |
| | | } |
| | | }); |
| | | |
| | | //经理查看详情 |
| | | let jingLiGetPlanInfo = (params, config = {}) => http.get(`/api/CyOSBaoXiaoJingLi/GetPlanInfo/${params}`, { |
| | | custom: { |
| | | methodName: 'jingLiGetPlanInfo', |
| | | needToken: true |
| | | } |
| | | }); |
| | | |
| | | //主管查看详情 |
| | | let zhuGuanGetPlanInfo = (params, config = {}) => http.get(`/api/CyOSBaoXiaoZHuGuan/GetPlanInfo/${params}`, { |
| | | custom: { |
| | | methodName: 'zhuGuanGetPlanInfo', |
| | | needToken: true |
| | | } |
| | | }); |
| | | |
| | | // 主管审批 |
| | | let ApprovalPlan = (params, config = {}) => http.post(`/api/CyOSBaoXiaoZHuGuan/ApprovalPlan`, params, { |
| | | custom: { |
| | | methodName: 'ApprovalPlan', |
| | | needToken: true |
| | | } |
| | | }); |
| | | |
| | | // 经理审批 |
| | | let BaoxiaoPlan = (params, config = {}) => http.post(`/api/CyOSBaoXiaoJingLi/BaoxiaoPlan`, params, { |
| | | custom: { |
| | | methodName: 'BaoxiaoPlan', |
| | | needToken: true |
| | | } |
| | | }); |
| | | |
| | | |
| | | // 将各个定义的接口名称,统一放进对象挂载到vm.$u.api(因为vm就是this,也即this.$u.api)下 |
| | | export { |
| | | temLogin, //登录 |
| | |
| | | GetTransferMoney, //提现 |
| | | deleteOrder, //职位下架 |
| | | PostMyComGongZiListPage, //查询公司下工人的工资额度 |
| | | saveWorkPrice // 公司修改工人工价 |
| | | saveWorkPrice, // 公司修改工人工价 |
| | | getworkerplanelist, //员工报销列表 |
| | | getcaiwuplanelist,//财务报销单列表 |
| | | GetDepartLstt, //获取部门列表 |
| | | getKeMuList,//科目 |
| | | CreatOder,//创建报销单 |
| | | EditOder, |
| | | workerGetPlanInfo,//员工获取详情 |
| | | getzhuguanplanelist, |
| | | getjingliplanelist, |
| | | jingLiGetPlanInfo, |
| | | zhuGuanGetPlanInfo, |
| | | BaoxiaoPlan, |
| | | ApprovalPlan |
| | | }; |
| | | // } |
| | | |