数字督察一体化平台-前端
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.
 
 
 
 

104 lines
2.0 KiB

import request from "@/api/request";
export function listNegative(query) {
return request.get({
url: `/negative`,
query
});
}
export function getNegativeDetails(id, workId) {
const query = workId ? {workId} : null;
return request.get({
url: `/negative/${id}`,
query
});
}
export function getNegativeDetailsByOuter(id) {
return request.get({
url: `/negative/outer/${id}`
});
}
export function addNegative(body) {
return request.post({
url: `/negative`,
body
});
}
export function updateNegative(body) {
return request.put({
url: `/negative`,
body
});
}
export function negativeExecute(id, body) {
return request.post({
url: `/negative/${id}/execute`,
body
});
}
export function generateOriginId(problemSourcesCode, businessTypeCode) {
return request.post({
url: `/negative/${problemSourcesCode}/${businessTypeCode}/generateOriginId`
});
}
export function negativeExport(query) {
return request.post({
url: `/negative/export/excel`,
query
});
}
export function delNegative(id) {
return request.del({
url: `/negative/${id}`
});
}
export function getCompletionInfo(id) {
return request.get({
url: `/negative/completion/${id}`
});
}
export function calculateScore() {
return request.post({
url: `/negative/score/calculate`
});
}
export function transferTodo(id) {
return request.post({
url: `/negative/${id}/transferTodo`
});
}
// 抽检
export function spotCheckNegative(id, body) {
return request.post({
url: `/negative/${id}/spotCheck`,
body
});
}
// 提交办结
export function verifySubmitNegative(id, body) {
return request.post({
url: `/negative/${id}/verifySubmit`,
body
});
}
// 通过来源ID获取ID
export function getIdByOriginId(originId) {
return request.get({
url: `/negative/getIdByOriginId/${originId}`
});
}