jhprjv2/ruoyi-ui/src/api/project/checkDetection.js

61 lines
1.2 KiB
JavaScript
Raw Normal View History

2023-08-26 00:36:09 +08:00
import request from '@/utils/request'
2023-09-01 17:31:12 +08:00
// 查询材料取样复试列表
2023-08-26 00:36:09 +08:00
export function listCheckDetection(query) {
return request({
url: '/project/checkDetection/list',
method: 'get',
params: query
})
}
2023-09-01 17:31:12 +08:00
// 查询材料取样复试详细
2023-08-26 00:36:09 +08:00
export function getCheckDetection(id) {
return request({
url: '/project/checkDetection/' + id,
method: 'get'
})
}
2023-09-01 17:31:12 +08:00
// 新增材料取样复试
2023-08-26 00:36:09 +08:00
export function addCheckDetection(data) {
return request({
url: '/project/checkDetection',
method: 'post',
data: data
})
}
2023-09-01 17:31:12 +08:00
// 修改材料取样复试
2023-08-26 00:36:09 +08:00
export function updateCheckDetection(data) {
return request({
url: '/project/checkDetection',
method: 'put',
data: data
})
}
2023-09-01 17:31:12 +08:00
// 取样复试登记结果
export function updateCheckDetectionResult(data) {
return request({
url: '/project/checkDetection/editResult',
method: 'post',
data: data
})
}
2023-08-26 00:36:09 +08:00
2023-09-01 17:31:12 +08:00
// 删除材料取样复试
2023-08-26 00:36:09 +08:00
export function delCheckDetection(id) {
return request({
url: '/project/checkDetection/' + id,
method: 'delete'
})
}
2023-09-01 17:31:12 +08:00
//材料取样复试统计
export function findCheckDetectionCount(query) {
return request({
url: '/project/checkDetection/findCheckDetectionCount',
method: 'get',
params: query
})
}