2024-01-29 15:55:16 +08:00
|
|
|
/*
|
|
|
|
* @Author: zhp
|
|
|
|
* @Date: 2023-12-04 14:10:37
|
2024-01-29 16:50:05 +08:00
|
|
|
* @LastEditTime: 2024-01-29 16:48:40
|
2024-01-29 15:55:16 +08:00
|
|
|
* @LastEditors: zhp
|
|
|
|
* @Description:
|
|
|
|
*/
|
|
|
|
import request from '@/utils/request'
|
|
|
|
|
|
|
|
// 创建安灯按钮16键对应
|
|
|
|
export function createQualityInspectionBoxBtn(data) {
|
|
|
|
return request({
|
|
|
|
url: '/base/quality-inspection-box-btn/updateBatch',
|
|
|
|
method: 'put',
|
|
|
|
data: data
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
// 更新安灯按钮16键对应
|
|
|
|
export function updateQualityInspectionBoxBtn(data) {
|
|
|
|
return request({
|
|
|
|
url: '/base/quality-inspection-box-btn/updateBatch',
|
|
|
|
method: 'put',
|
|
|
|
data: data
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
// 删除安灯按钮16键对应
|
|
|
|
export function deleteQualityInspectionBoxBtn(id) {
|
|
|
|
return request({
|
|
|
|
url: '/base/quality-inspection-box-btn/delete?id=' + id,
|
|
|
|
method: 'delete'
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
// 获得安灯按钮16键对应
|
|
|
|
export function getQualityInspectionBoxBtn(id) {
|
|
|
|
return request({
|
|
|
|
url: '/base/quality-inspection-box-btn/get?id=' + id,
|
|
|
|
method: 'get'
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
// 获得安灯按钮16键对应分页
|
|
|
|
export function getQualityInspectionBoxBtnPage(query) {
|
|
|
|
return request({
|
|
|
|
url: '/base/quality-inspection-box-btn/listGroupByLineSection',
|
|
|
|
method: 'get',
|
|
|
|
params: query
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
// 导出安灯按钮16键对应 Excel
|
|
|
|
export function exportQualityInspectionBoxBtnExcel(query) {
|
|
|
|
return request({
|
|
|
|
url: '/base/quality-inspection-box-btn/export-excel',
|
|
|
|
method: 'get',
|
|
|
|
params: query,
|
|
|
|
responseType: 'blob'
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export function getAllDetByTypeList(query) {
|
|
|
|
return request({
|
|
|
|
url: '/base/quality-scrap-det/scrapMap',
|
|
|
|
method: 'get',
|
|
|
|
params: query,
|
|
|
|
})
|
|
|
|
}
|
|
|
|
export function getListByLineSection(query) {
|
|
|
|
return request({
|
|
|
|
url: '/base/quality-inspection-box-btn/detListByLineSection',
|
|
|
|
method: 'get',
|
|
|
|
params: query,
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export function getUserList(query) {
|
|
|
|
return request({
|
2024-01-29 16:50:05 +08:00
|
|
|
url: 'base/quality-inspection-box-btn-auth/getUserList',
|
2024-01-29 15:55:16 +08:00
|
|
|
method: 'get',
|
|
|
|
params: query,
|
|
|
|
})
|
|
|
|
}
|
2024-01-29 16:50:05 +08:00
|
|
|
export function getPage(query) {
|
|
|
|
return request({
|
|
|
|
url: 'base/quality-inspection-box-btn-auth/page',
|
|
|
|
method: 'post',
|
|
|
|
data:query
|
|
|
|
})
|
|
|
|
}
|