import request from '@/utils/request'
|
|
export function listProject(data) {
|
return request({
|
url: '/projectManagement/info/listPage',
|
method: 'post',
|
data: data
|
})
|
}
|
|
export function getProject(id) {
|
return request({
|
url: `/projectManagement/info/${id}`,
|
method: 'post'
|
})
|
}
|
|
export function addProject(data) {
|
return request({
|
url: '/projectManagement/info/save',
|
method: 'post',
|
data: data
|
})
|
}
|
|
export function updateProject(data) {
|
return request({
|
url: '/projectManagement/info/save',
|
method: 'post',
|
data: data
|
})
|
}
|
|
export function delProject(ids) {
|
return request({
|
url: '/projectManagement/info/remove',
|
method: 'delete',
|
data: ids
|
})
|
}
|
|
export function updateStatus(data) {
|
return request({
|
url: '/projectManagement/info/updateStatus',
|
method: 'post',
|
data: data
|
})
|
}
|
|
export function submitProject(data) {
|
return request({
|
url: '/projectManagement/info/updateStatus',
|
method: 'post',
|
data: { ...data, reviewStatus: 0 }
|
})
|
}
|
|
export function auditProject(data) {
|
return request({
|
url: '/projectManagement/info/updateStatus',
|
method: 'post',
|
data: { ...data, reviewStatus: 1 }
|
})
|
}
|
|
export function reverseAuditProject(data) {
|
return request({
|
url: '/projectManagement/info/updateStatus',
|
method: 'post',
|
data: { ...data, reviewStatus: 0 }
|
})
|
}
|
|
// 阶段
|
export function saveStage(data) {
|
return request({
|
url: '/projectManagement/info/saveStage',
|
method: 'post',
|
data: data
|
})
|
}
|
|
export function listStage(projectId) {
|
return request({
|
url: `/projectManagement/info/listStage/${projectId}`,
|
method: 'post'
|
})
|
}
|
|
export function deleteStage(stageId) {
|
return request({
|
url: `/projectManagement/info/deleteStage/${stageId}`,
|
method: 'post'
|
})
|
}
|
|
export function listPlan(data) {
|
return request({
|
url: '/projectManagement/plan/listPage',
|
method: 'post',
|
data: data
|
})
|
}
|
|
export function addPlan(data) {
|
return request({
|
url: '/projectManagement/plan/save',
|
method: 'post',
|
data: data
|
})
|
}
|
|
export function delPlan(id) {
|
return request({
|
url: `/projectManagement/plan/delete/${id}`,
|
method: 'post'
|
})
|
}
|