import request from ‘@/router/axios‘;
import { oaUrl, fileUrl, consoleUrl } from ‘@/config/env‘;
//
export const projectPage = param =>
request({
url: oaUrl + ‘/api/Project/Page‘,
method: ‘get‘,
params: param,
});
//
export const deleteProject = param =>
request({
url: oaUrl + ‘/api/Project/ProjectDelete‘,
method: ‘delete‘,
params: param,
});
//
export const delloadFile = param =>
request({
url: fileUrl + ‘/api/FilePath‘,
method: ‘delete‘,
params: param,
});
//
export const projectFind = param =>
request({
url: oaUrl + ‘/api/Project/Find‘,
method: ‘get‘,
params: param,
});
//
export const projectFindWhenChange = param =>
request({
url: oaUrl + ‘/api/Project/ProjectEditView‘,
method: ‘get‘,
params: param,
});
//
export const createProject = params =>
request({
url: oaUrl + ‘/api/Project‘,
method: ‘post‘,
data: params,
});
//
export const editProject = params =>
request({
url: oaUrl + ‘/api/Project/Project‘,
method: ‘put‘,
data: params,
});
//
export const customerPage = () =>
request({
url: oaUrl + ‘/api/Customer/Page‘,
method: ‘get‘,
});
//
export const addCustomer = params =>
request({
url: oaUrl + ‘/api/Customer‘,
method: ‘post‘,
data: params,
});
//
export const amendCustomer = params =>
request({
url: oaUrl + ‘/api/Customer‘,
method: ‘put‘,
data: params,
});
//
export const delCustomer = () =>
request({
url: oaUrl + ‘/api/Customer‘,
method: ‘delete‘,
});
//
export const updateMakeMoney = params =>
request({
url: oaUrl + ‘/api/Project/UpdateMakeMoney‘,
method: ‘put‘,
data: params,
});
//
export const customerList = () =>
request({
url: oaUrl + ‘/api/Customer/CustomerList‘,
method: ‘get‘,
});
//
export const SignList = (para) =>
request({
url: oaUrl + ‘/api/SealAppServeice/SignList‘,
method: ‘get‘,
params: para
});
//
export const SealAppServeice = () =>
request({
url: oaUrl + ‘/api/SealAppServeice/RenzhengURL‘,
method: ‘post‘,
});
//
export const customerCombat = par =>
request({
url: oaUrl + ‘/api/Project/CustomerCombat‘,
method: ‘get‘,
params: par,
});
//
export const FileType = param =>
request({
url: fileUrl + ‘/api/FileType‘,
method: ‘get‘,
params: param,
});
//
export const AccountArray = () =>
request({
url: oaUrl + ‘/api/Account/AccountArray‘,
method: ‘get‘,
meta: {
isToken: true,
},
});
//
export const getTreeProject = param => {
return request({
url: fileUrl + ‘/api/TreeProject‘,
method: ‘get‘,
params: param,
})
};
//
export const memberNames = () =>
request({
url: consoleUrl + ‘/api/Organizetion/Tree‘,
method: ‘get‘,
meta: {
isToken: true,
},
});
//
export const projectSelect = () =>
request({
url: oaUrl + ‘/api/Project/ProjectSelect‘,
method: ‘get‘,
meta: {
isToken: true,
},
});
//
export const queryFindbyUid = (para) =>
request({
url: oaUrl + ‘/api/Project/QueryFindbyUid‘,
method: ‘get‘,
meta: {
isToken: true,
},
params: para,
});
//
export const processData = (para) =>
request({
url: oaUrl + ‘/api/FlowWorks/FlowByRelationId‘,
method: ‘get‘,
meta: {
isToken: true,
},
params: para,
});
//
export const againFiling = (params) =>
request({
url: oaUrl + ‘?/api/FlowWorks/AgainCreate‘,
method: ‘post‘,
data: params,
});
export const getRelatedFlows = (params) =>
request({
url: oaUrl + ‘?/api/FlowWorks/ProjectFlow‘,
method: ‘GET‘,
// data: params,
params
});