You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
254 lines
4.8 KiB
254 lines
4.8 KiB
import request from '@/utils/request';
|
|
import { AxiosPromise } from 'axios';
|
|
import { searchFormTitle,orgClassListCont,addOrgTypesCont,orgClassCont,editOrgTypeEditOrDel,searchOrgCont,orgInfo,addOrgInfo,editOrgDel,searchTeamList,orgTeamListCont,orgFormTree,archivesList,getContId } from './type';
|
|
/**
|
|
* 获取组织类别
|
|
*/
|
|
export function getRolePage(data?: searchFormTitle): AxiosPromise<orgClassListCont> {
|
|
return request({
|
|
url: '/hrapi/org/govclasslist',
|
|
method: 'post',
|
|
data: data
|
|
});
|
|
}
|
|
/**
|
|
* 获取所有组织类别
|
|
*/
|
|
export function getOrgClassAllPage(data?: addOrgTypesCont) {
|
|
return request({
|
|
url: '/hrapi/org/govclassalllist',
|
|
method: 'post',
|
|
data: data
|
|
});
|
|
}
|
|
/**
|
|
* 添加组织分类
|
|
*/
|
|
export function addOrgClassInfo(data: addOrgTypesCont){
|
|
return request({
|
|
url: '/hrapi/org/addgovclass',
|
|
method: 'post',
|
|
data: data
|
|
});
|
|
}
|
|
/**
|
|
* 获取行政组织内容
|
|
*/
|
|
export function getgovcont(data: getContId){
|
|
return request({
|
|
url: '/hrapi/org/getgovcont',
|
|
method: 'post',
|
|
data: data
|
|
});
|
|
}
|
|
/**
|
|
* 编辑组织分类
|
|
*/
|
|
export function editOrgClassInfo(data: orgClassCont){
|
|
return request({
|
|
url: '/hrapi/org/eitegovclasscont',
|
|
method: 'post',
|
|
data: data
|
|
});
|
|
}
|
|
/**
|
|
* 编辑组织类别状态
|
|
*/
|
|
export function editOrgClassStatus(data: editOrgTypeEditOrDel){
|
|
return request({
|
|
url: '/hrapi/org/base_edit_orgclass_status',
|
|
method: 'post',
|
|
data: data
|
|
});
|
|
}
|
|
/**
|
|
* 获取行政组织树
|
|
*/
|
|
export function getOrgTreeList(data: searchOrgCont): AxiosPromise<orgInfo[]>{
|
|
return request({
|
|
url: '/hrapi/org/govnewthreeing',
|
|
method: 'post',
|
|
data: data
|
|
});
|
|
}
|
|
/**
|
|
* 新增行政组织内容
|
|
*/
|
|
export function addOrgInfoApi(data: addOrgInfo){
|
|
return request({
|
|
url: '/hrapi/org/newaddgovcont',
|
|
method: 'post',
|
|
data: data
|
|
});
|
|
}
|
|
/**
|
|
* 编辑行政组织内容
|
|
*/
|
|
export function editOrgInfoApi(data: addOrgInfo){
|
|
return request({
|
|
url: '/hrapi/org/neweitegovcont',
|
|
method: 'post',
|
|
data: data
|
|
});
|
|
}
|
|
/**
|
|
* 编辑行政组织内容
|
|
*/
|
|
export function editOrgStatusApi(data: editOrgDel){
|
|
return request({
|
|
url: '/hrapi/org/neweitegovstateordel',
|
|
method: 'post',
|
|
data: data
|
|
});
|
|
}
|
|
/**
|
|
* 获取班组列表
|
|
*/
|
|
export function getTeamListCont(data: searchTeamList): AxiosPromise<orgTeamListCont>{
|
|
return request({
|
|
url: '/hrapi/org/teamcontlist',
|
|
method: 'post',
|
|
data: data
|
|
});
|
|
}
|
|
|
|
/**
|
|
* 获取自定义表单行政组织树
|
|
*/
|
|
export function getOrgFormTree(data?: editOrgDel): AxiosPromise<orgFormTree>{
|
|
return request({
|
|
url: '/hrapi/org/orgtreelist',
|
|
method: 'post',
|
|
data: data
|
|
});
|
|
}
|
|
/**
|
|
* 获取人员列表
|
|
*/
|
|
export function getOrgFormUserList(data:any): AxiosPromise<archivesList>{
|
|
return request({
|
|
url: '/hrapi/org/search_user_list',
|
|
method: 'post',
|
|
data: data
|
|
});
|
|
}
|
|
/**
|
|
* 获取人员列表
|
|
*/
|
|
export function searchUserCustomerFormList(data:any): AxiosPromise<archivesList[]>{
|
|
return request({
|
|
url: '/hrapi/org/search_userlist_customerform',
|
|
method: 'post',
|
|
data: data
|
|
});
|
|
}
|
|
/**
|
|
* 获取人员列表UploadUserTemplate
|
|
*/
|
|
export function gainUserInfoDownTemplateList(data:any){
|
|
return request({
|
|
url: '/systemapi/user/gainUserInfoDownTemplateList',
|
|
method: 'post',
|
|
data: data
|
|
});
|
|
}
|
|
/**
|
|
* 获取人员列表
|
|
*/
|
|
export function uploadUserTemplate(data:any){
|
|
return request({
|
|
url: '/systemapi/user/uploadUserTemplate',
|
|
method: 'post',
|
|
data: data
|
|
});
|
|
}
|
|
/**
|
|
* 编辑人员模版列表状态
|
|
*/
|
|
export function editUserTempr(data:any){
|
|
return request({
|
|
url: '/systemapi/user/editUserTempr',
|
|
method: 'post',
|
|
data: data
|
|
});
|
|
}
|
|
/**
|
|
* 获取员工模版信息
|
|
*/
|
|
export function gainUserTemplateInfo(data:any){
|
|
return request({
|
|
url: '/systemapi/user/gainUserTemplateInfo',
|
|
method: 'post',
|
|
data: data
|
|
});
|
|
}
|
|
/**
|
|
* 编辑模版内容
|
|
*/
|
|
export function editUserTemplateInfo(data:any){
|
|
return request({
|
|
url: '/systemapi/user/editUserTemplateInfo',
|
|
method: 'post',
|
|
data: data
|
|
});
|
|
}
|
|
/**
|
|
* 获取现有模版归属那个组织
|
|
*/
|
|
export function gainTempleateOrgList(data:any){
|
|
return request({
|
|
url: '/systemapi/user/gainTempleateOrgList',
|
|
method: 'post',
|
|
data: data
|
|
});
|
|
}
|
|
/**
|
|
* 班组列表
|
|
*/
|
|
export function teamcontlist(data:any){
|
|
return request({
|
|
url: '/hrapi/org/teamcontlist',
|
|
method: 'post',
|
|
data: data
|
|
});
|
|
}
|
|
/**
|
|
* 获取班组
|
|
*/
|
|
export function getteamcont(data:any){
|
|
return request({
|
|
url: '/hrapi/org/getteamcont',
|
|
method: 'post',
|
|
data: data
|
|
});
|
|
}
|
|
/**
|
|
* 添加班组
|
|
*/
|
|
export function addteamcont(data:any){
|
|
return request({
|
|
url: '/hrapi/org/addteamcont',
|
|
method: 'post',
|
|
data: data
|
|
});
|
|
}
|
|
/**
|
|
* 编辑班组
|
|
*/
|
|
export function eiteteamcont(data:any){
|
|
return request({
|
|
url: '/hrapi/org/eiteteamcont',
|
|
method: 'post',
|
|
data: data
|
|
});
|
|
}
|
|
/**
|
|
* 编辑班组状态或删除
|
|
*/
|
|
export function eidtdelteamcont(data:any){
|
|
return request({
|
|
url: '/hrapi/org/eidtdelteamcont',
|
|
method: 'post',
|
|
data: data
|
|
});
|
|
}
|
|
|