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.
50 lines
998 B
50 lines
998 B
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 addNegative(body) { |
|
return request.post({ |
|
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}` |
|
}); |
|
}
|
|
|