102 lines
2.1 KiB
JavaScript
102 lines
2.1 KiB
JavaScript
|
|
||
|
/*
|
||
|
* @Author: zhp
|
||
|
* @Date: 2023-11-06 15:38:12
|
||
|
* @LastEditTime: 2023-12-08 16:08:35
|
||
|
* @LastEditors: zhp
|
||
|
* @Description:
|
||
|
*/
|
||
|
import request from '@/utils/request'
|
||
|
|
||
|
// 创建质量检测类型基础
|
||
|
export function createQualityHotMaterial(data) {
|
||
|
return request({
|
||
|
url: '/base/quality-hot-material/create',
|
||
|
method: 'post',
|
||
|
data: data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 更新质量检测类型基础
|
||
|
export function updateQualityHotMaterial(data) {
|
||
|
return request({
|
||
|
url: '/base/quality-hot-material/update',
|
||
|
method: 'put',
|
||
|
data: data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 删除质量检测类型基础
|
||
|
export function deleteQualityHotMaterial(id) {
|
||
|
return request({
|
||
|
url: '/base/quality-hot-material/delete?id=' + id,
|
||
|
method: 'delete'
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 获得质量检测类型基础
|
||
|
export function getQualityHotMaterial(id) {
|
||
|
return request({
|
||
|
url: '/base/quality-hot-material/get?id=' + id,
|
||
|
method: 'get'
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 获得质量检测类型基础分页
|
||
|
export function getQualityHotMaterialPage(query) {
|
||
|
return request({
|
||
|
url: 'base/quality-hot-material/page',
|
||
|
method: 'get',
|
||
|
params: query
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 导出质量检测类型基础 Excel
|
||
|
// export function exportQualityScrapTypeExcel(query) {
|
||
|
// return request({
|
||
|
// url: '/base/quality-scrap-type/export-excel',
|
||
|
// method: 'get',
|
||
|
// params: query,
|
||
|
// responseType: 'blob'
|
||
|
// })
|
||
|
// }
|
||
|
|
||
|
export function getCode(query) {
|
||
|
return request({
|
||
|
url: '/base/quality-hot-material/getCode',
|
||
|
method: 'get',
|
||
|
params: query
|
||
|
})
|
||
|
}
|
||
|
export function getHotMaterialAllList(query) {
|
||
|
return request({
|
||
|
url: '/base/core-hot-material/listAll',
|
||
|
method: 'get',
|
||
|
params: query
|
||
|
})
|
||
|
}
|
||
|
|
||
|
export function getSupplierList(query) {
|
||
|
return request({
|
||
|
url: '/base/core-supplier/listAll',
|
||
|
method: 'get',
|
||
|
params: query
|
||
|
})
|
||
|
}
|
||
|
|
||
|
export function getWorkerList(query) {
|
||
|
return request({
|
||
|
url: '/base/core-worker/listAll',
|
||
|
method: 'get',
|
||
|
params: query
|
||
|
})
|
||
|
}
|
||
|
|
||
|
export function getMaterialCheckList(query) {
|
||
|
return request({
|
||
|
url: '/base/core-hot-material-check/listByMaterial',
|
||
|
method: 'get',
|
||
|
params: query
|
||
|
})
|
||
|
}
|