247 lines
8.3 KiB
JavaScript
247 lines
8.3 KiB
JavaScript
import oahttp from "@/utils/oahttp.js";
|
|
|
|
//获取代办事项 已处理事项
|
|
export const getMatters = (data) => oahttp.get('/approve/list', data, { noAuth: true })
|
|
|
|
//获取任务列表
|
|
export const getTaskListApi = (data) => oahttp.get('/task/list', data)
|
|
//获取 我发起的审批
|
|
export const getExamineListApi = () => oahttp.get('/approve/my_list')
|
|
//获取工资详情信息
|
|
export const getSalaryDeatilsApi = () => oahttp.get('/user/info')
|
|
//获取部门
|
|
export const getDepartmentApi = () => oahttp.get('/index/get_department_tree')
|
|
//获取部门人员
|
|
export const getDepartmentPersonApi = (data) => oahttp.get('/index/get_employee', data)
|
|
//新建任务
|
|
export const addNewTaskApi = (data) => oahttp.post('/task/add', data)
|
|
//获取文档列表
|
|
export const getDocumentListApi = (data) => oahttp.get('/note_index/index', data)
|
|
//获取文档列表
|
|
export const getDocumentListnote = (data) => oahttp.get('/note_index/view', data)
|
|
//获取个人信息
|
|
export const getPersonInfoApi = () => oahttp.get('/home_index/userinfo')
|
|
//获取应用
|
|
export const oaapprove = () => oahttp.get('/oa_approve/app')
|
|
|
|
//获取部门
|
|
export const userdepartment = (data) => oahttp.get('/user_department/index',data)
|
|
//获取部门架构
|
|
export const userdepartmenttree = () => oahttp.get('/user_department/tree')
|
|
|
|
//用户信息统计
|
|
export const getdatatotal = (data) => oahttp.get('/home_index/data_total',data)
|
|
|
|
//新增部门
|
|
export const adddepartment = (data) => oahttp.post('/user_department/add',data)
|
|
//删除部门
|
|
export const deletedepartment = (data) => oahttp.post('/user_department/delete',data)
|
|
|
|
//获取岗位
|
|
export const userposition = (data) => oahttp.get('/user_position/index',data)
|
|
|
|
//获取岗位权限组
|
|
export const userpositiongroup = (data) => oahttp.get('/user_position/group',data)
|
|
|
|
|
|
//新增编辑岗位
|
|
export const adduserposition= (data) => oahttp.post('/user_position/add',data)
|
|
|
|
//删除岗位
|
|
export const deleteuserposition = (data) => oahttp.post('/user_position/delete',data)
|
|
|
|
//获取人事调动记录
|
|
export const userpersonal = (data) => oahttp.get('/user_personal/change',data)
|
|
|
|
|
|
//新增编辑人事调动记录
|
|
export const adduserpersonal= (data) => oahttp.post('/user_personal/change_add',data)
|
|
|
|
|
|
//获取部门树形架构
|
|
export const getdepartmenttree = (data) => oahttp.get('/common/get_department_tree',data)
|
|
//获取部门员工
|
|
export const getemployee = (data) => oahttp.get('/common/get_employee',data)
|
|
//获取离职信息
|
|
export const leaveuserpersonal = (data) => oahttp.get('/user_personal/leave',data)
|
|
//删除离职恢复职务
|
|
export const leavedelete = (data) => oahttp.get('/user_personal/leave_delete',data)
|
|
//新增编辑离职
|
|
export const leaveadd = (data) => oahttp.get('/user_personal/leave_add',data)
|
|
|
|
//获取企业员工列表
|
|
export const comanyerlist = (data) => oahttp.get('/user_user/index',data)
|
|
|
|
//获取企业员工详情
|
|
export const comanyerview= (data) => oahttp.get('/user_user/view',data)
|
|
|
|
|
|
//新增编辑员工
|
|
export const addcomanyer= (data) => oahttp.post('/user_user/add',data)
|
|
|
|
|
|
|
|
//设置员工状态
|
|
export const setcomanyer= (data) => oahttp.get('/user_user/set',data)
|
|
|
|
//获取文章列表
|
|
export const articleindex= (data) => oahttp.get('/article_index/index',data)
|
|
|
|
//获取文章详情
|
|
export const articleview= (data) => oahttp.get('/article_index/view',data)
|
|
//获取项目列表
|
|
export const projectlist = (data) => oahttp.get('/project_index/index',data)
|
|
|
|
//新增项目
|
|
export const addproject= (data) => oahttp.post('/project_index/add',data)
|
|
|
|
//获取项目列表详情
|
|
export const projectview= (data) => oahttp.get('/project_index/view',data)
|
|
//删除附件
|
|
export const deleteprojectview= (data) => oahttp.post('/project_index/delete',data)
|
|
|
|
|
|
|
|
|
|
//上传项目附件
|
|
export const addfile= (data) => oahttp.post('/project_index/add_file',data)
|
|
//删除附件
|
|
export const deletefile= (data) => oahttp.post('/project_index/delete_file',data)
|
|
|
|
//上传项目附件
|
|
export const addlink= (data) => oahttp.post('/project_index/add_link',data)
|
|
|
|
//删除附件
|
|
export const deletelink= (data) => oahttp.post('/project_index/delete_link',data)
|
|
|
|
|
|
|
|
//获取项目任务列表
|
|
export const projecttasklist = (data) => oahttp.get('/project_task/index',data)
|
|
//新增项目任务
|
|
export const addprojecttask= (data) => oahttp.post('/project_task/add',data)
|
|
|
|
//获取项目任务列表详情
|
|
export const projecttaskview= (data) => oahttp.get('/project_task/view',data)
|
|
|
|
//删除项目任务列表
|
|
export const deleteproject_task= (data) => oahttp.post('/project_task/delete',data)
|
|
|
|
|
|
//获取项目工时列表
|
|
export const schedulelist = (data) => oahttp.get('/project_task/task_time',data)
|
|
|
|
//新增项目工时
|
|
export const addschedule= (data) => oahttp.post('/oa_schedule/add',data)
|
|
|
|
//删除项目工时列表
|
|
export const deleteschedule= (data) => oahttp.post('/oa_schedule/delete',data)
|
|
|
|
//获取获取审批应用字段
|
|
|
|
export const appfield = (data) => oahttp.get('/oa_approve/app_field',data)
|
|
|
|
|
|
//发起审批
|
|
export const appapprove = (data) => oahttp.post('/oa_approve/add',data)
|
|
//获取发起审批记录
|
|
export const approveindex = (data) => oahttp.get('/oa_approve/index',data)
|
|
//获取我处理的审批记录
|
|
export const approvelist = (data) => oahttp.get('/oa_approve/list',data)
|
|
//获取抄送的审批记录
|
|
export const approvecopy = (data) => oahttp.get('/oa_approve/copy',data)
|
|
//获取审批消息
|
|
export const appmessageinbox = (data) => oahttp.get('/message_index/inbox',data)
|
|
|
|
//获取审批消息
|
|
export const appmessageread = (data) => oahttp.get('/message_index/read',data)
|
|
//流程审批
|
|
export const appflow_check = (data) => oahttp.post('/oa_approve/flow_check',data)
|
|
//获取审批消息
|
|
export const appapproveview= (data) => oahttp.get('/oa_approve/view',data)
|
|
|
|
//撤回审批
|
|
export const appapflow_check= (data) => oahttp.post('/index/flow_check',data)
|
|
|
|
|
|
|
|
|
|
//获取发起报销记录
|
|
export const appexpenseindex = (data) => oahttp.get('/finance_expense/index',data)
|
|
//获取我处理的报销记录
|
|
export const apexpenselist = (data) => oahttp.get('/finance_expense/list',data)
|
|
//获取抄送的报销记录
|
|
export const appexpensecopy = (data) => oahttp.get('/oa_approve/copy',data)
|
|
|
|
//报销类型
|
|
export const appexpensecate = (data) => oahttp.get('/common/get_expense_cate',data)
|
|
|
|
//报销审批流程id
|
|
export const appexpenseflow = (data) => oahttp.get('/finance_expense/get_expense_flow',data)
|
|
|
|
//发起报销
|
|
export const appexpense = (data) => oahttp.post('/finance_expense/add',data)
|
|
|
|
//删除报销报销流程详情
|
|
export const deleteexpenseflow = (data) => oahttp.get('/finance_expense/delete',data)
|
|
|
|
//获取报销流程详情
|
|
export const appexpenseview = (data) => oahttp.get('/finance_expense/view',data)
|
|
|
|
//报销打款
|
|
export const topayview = (data) => oahttp.get('/finance_expense/topay',data)
|
|
|
|
//获取报销打款
|
|
export const checkedlist = (data) => oahttp.get('/finance_expense/checkedlist',data)
|
|
|
|
|
|
//发票
|
|
//我申请的发票
|
|
|
|
export const invoiceindex = (data) => oahttp.get('/finance_invoice/index',data)
|
|
|
|
//我处理的发票
|
|
export const invoicelist = (data) => oahttp.get('/finance_invoice/list',data)
|
|
|
|
//抄送给我的发票
|
|
export const invoicecopy = (data) => oahttp.get('/finance_invoice/copy',data)
|
|
|
|
//获取发票类型
|
|
export const invoicecate = (data) => oahttp.get('/common/get_invoice_subject',data)
|
|
|
|
//发起发票
|
|
export const addinvoice = (data) => oahttp.post('/finance_invoice/add',data)
|
|
|
|
//获取发票流程详情
|
|
export const invoiceview = (data) => oahttp.get('/finance_invoice/view',data)
|
|
//获取发票流程
|
|
export const invoiceflow = (data) => oahttp.get('/finance_invoice/get_invoice_flow',data)
|
|
|
|
|
|
|
|
//获取待办事项
|
|
|
|
export const todosubjec = (data) => oahttp.get('/common/get_todo_subject',data)
|
|
//获取待办事任务
|
|
export const tasksubjec = (data) => oahttp.get('/common/get_task_list',data)
|
|
|
|
|
|
|
|
//获取发票开票
|
|
export const invoicecheckedlist = (data) => oahttp.get('/finance_invoice/checkedlist',data)
|
|
//发票开票/修改
|
|
export const financeopen = (data) => oahttp.get('/finance_invoice/open',data)
|
|
|
|
|
|
|
|
//发票作废
|
|
export const tovoid = (data) => oahttp.post('/finance_invoice/tovoid',data)
|
|
|
|
//发票反作废
|
|
export const novoid = (data) => oahttp.get('/finance_invoice/novoid',data)
|
|
|
|
//获取发票到账信息
|
|
export const incomeflow = (data) => oahttp.get('/finance_income/index',data)
|
|
|
|
//获取发票到账详情
|
|
export const incomeview = (data) => oahttp.get('/finance_income/view',data) |