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.
62 lines
1.9 KiB
62 lines
1.9 KiB
import { PageQuery, commonExport } from '@/api/base';
|
|
import { defHttp } from '@/utils/http/axios';
|
|
|
|
enum Api {
|
|
root = '/platform/workOrder',
|
|
list = '/platform/workOrder/reviewList',
|
|
export = '/workflow/leave/export',
|
|
getSubcategoryType = '/platform/subcategoryType/list',
|
|
workOrderAdd = '/platform/workOrder/add',
|
|
getProjectInfo = '/platform/projectInfo/getNames',
|
|
getOrganizationType = '/platform/organizationType/list',
|
|
getContractNamesByProjectName = '/platform/contractInfo/getContractNamesByProjectName',
|
|
queryProcess = '/platform/orderProcess/queryProcess',
|
|
dealInfo = '/platform/dealInfo',
|
|
}
|
|
|
|
export function list(params?: PageQuery) {
|
|
return defHttp.get({ url: Api.list, params });
|
|
}
|
|
|
|
export function exportExcel(data: any) {
|
|
return commonExport(Api.export, data);
|
|
}
|
|
|
|
export function getInfo(id: any) {
|
|
return defHttp.get({ url: `${Api.root}/${id}` });
|
|
}
|
|
|
|
export function add(data: any) {
|
|
return defHttp.post({ url: Api.root, data });
|
|
}
|
|
|
|
export function update(data: any) {
|
|
return defHttp.put({ url: Api.root, data });
|
|
}
|
|
|
|
export function removeByIds(ids: any) {
|
|
return defHttp.deleteWithMsg({ url: `${Api.root}/${ids.join(',')}` });
|
|
}
|
|
|
|
export function getSubcategoryType() {
|
|
return defHttp.get({ url: Api.getSubcategoryType });
|
|
}
|
|
export function workOrderAdd(data: any) {
|
|
return defHttp.post({ url: Api.workOrderAdd, data });
|
|
}
|
|
export function getProjectInfo() {
|
|
return defHttp.get({ url: Api.getProjectInfo });
|
|
}
|
|
export function getOrganizationType() {
|
|
return defHttp.get({ url: Api.getOrganizationType });
|
|
}
|
|
export function getContractNamesByProjectName(data:any) {
|
|
return defHttp.post({ url: Api.getContractNamesByProjectName,data });
|
|
}
|
|
export function queryProcess(id: any) {
|
|
return defHttp.get({ url: `${Api.queryProcess}?workOrderId=${id}` });
|
|
}
|
|
|
|
export function dealInfo(id: any) {
|
|
return defHttp.get({ url: `${Api.dealInfo}/${id}` });
|
|
}
|