101 lines
2.0 KiB
JavaScript
101 lines
2.0 KiB
JavaScript
/*
|
|
* @Author: zhp
|
|
* @Date: 2023-11-07 15:02:37
|
|
* @LastEditTime: 2023-11-07 18:32:07
|
|
* @LastEditors: zhp
|
|
* @Description:
|
|
*/
|
|
import request from '@/utils/request'
|
|
|
|
// 创建质量检测类型基础
|
|
export function createQualityScrapLog(data) {
|
|
return request({
|
|
url: '/base/quality-scrap-log/create',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 更新质量检测类型基础
|
|
export function updateQualityScrapLog(data) {
|
|
return request({
|
|
url: '/base/quality-scrap-log/update',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 删除质量检测类型基础
|
|
export function deleteQualityScrapLog(id) {
|
|
return request({
|
|
url: '/base/quality-scrap-log/delete?id=' + id,
|
|
method: 'delete'
|
|
})
|
|
}
|
|
|
|
// 获得质量检测类型基础
|
|
export function getQualityScrapLog(id) {
|
|
return request({
|
|
url: '/base/quality-scrap-log/get?id=' + id,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 获得质量检测类型基础分页
|
|
export function getQualityScrapLogPage(query) {
|
|
return request({
|
|
url: '/base/quality-scrap-log/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-scrap-log/getCode',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
export function getWorkOrderList(query) {
|
|
return request({
|
|
url: '/base/core-work-order/listbyfilter',
|
|
method: 'get',
|
|
params: query,
|
|
})
|
|
}
|
|
|
|
export function getTeamList(query) {
|
|
return request({
|
|
url: '/base/group-team/listAll',
|
|
method: 'get',
|
|
params: query,
|
|
})
|
|
}
|
|
|
|
export function getLineList(query) {
|
|
return request({
|
|
url: '/base/core-production-line/listAll',
|
|
method: 'get',
|
|
params: query,
|
|
})
|
|
}
|
|
|
|
export function getDetList(query) {
|
|
return request({
|
|
url: '/base/quality-scrap-det/listAll',
|
|
method: 'get',
|
|
params: query,
|
|
})
|
|
}
|