2024-11-20 16:33:20 +08:00
|
|
|
|
import request from '@/utils/request'
|
2025-02-22 14:30:17 +08:00
|
|
|
|
// 获取全部工艺路线(线别)
|
2024-11-20 16:33:20 +08:00
|
|
|
|
export function getAllRoute(params) {
|
|
|
|
|
|
return request({
|
|
|
|
|
|
url: '/mes/Mobile/ReportWork/get_all_route',
|
|
|
|
|
|
method: 'get',
|
|
|
|
|
|
params
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-02-22 14:30:17 +08:00
|
|
|
|
// 获取全部组别
|
2024-11-20 16:33:20 +08:00
|
|
|
|
export function getAllGroup(params) {
|
|
|
|
|
|
return request({
|
|
|
|
|
|
url: '/mes/Mobile/ReportWork/get_groups',
|
|
|
|
|
|
method: 'get',
|
|
|
|
|
|
params
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 获取报工工单列表
|
|
|
|
|
|
export function getWorkOrderList(params) {
|
|
|
|
|
|
return request({
|
|
|
|
|
|
url: '/mes/Mobile/ReportWork/get_workorder_status_list',
|
|
|
|
|
|
method: 'get',
|
|
|
|
|
|
params
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 开始工单
|
|
|
|
|
|
export function doStartWorkOrder(params) {
|
|
|
|
|
|
return request({
|
|
|
|
|
|
url: '/mes/Mobile/ReportWork/start_workorder',
|
|
|
|
|
|
method: 'get',
|
|
|
|
|
|
params
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 结束工单
|
|
|
|
|
|
export function doFinishWorkOrder(params) {
|
|
|
|
|
|
return request({
|
|
|
|
|
|
url: '/mes/Mobile/ReportWork/finish_workorder',
|
|
|
|
|
|
method: 'get',
|
|
|
|
|
|
params
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
// 工单详情
|
|
|
|
|
|
export function getWorkOrderDetail(params) {
|
|
|
|
|
|
return request({
|
|
|
|
|
|
url: '/mes/Mobile/ReportWork/get_workorder_detail',
|
|
|
|
|
|
method: 'get',
|
|
|
|
|
|
params
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
// 无需防错就报工(修改报工表数据)
|
|
|
|
|
|
export function updateReport(params) {
|
|
|
|
|
|
return request({
|
|
|
|
|
|
url: '/mes/Mobile/ReportWork/no_errorProofingAndReportingReport',
|
|
|
|
|
|
method: 'get',
|
|
|
|
|
|
params
|
|
|
|
|
|
})
|
2025-04-06 16:47:27 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 检验箱标签(TODO 2025-04-06 新报工接口)
|
|
|
|
|
|
export function InspectionBoxLabel(params) {
|
|
|
|
|
|
return request({
|
|
|
|
|
|
url: '/mes/Mobile/PrintAndReportWork/inspectionBoxLabel',
|
|
|
|
|
|
method: 'get',
|
|
|
|
|
|
params
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 检验箱标签(TODO 2025-04-06 新报工接口)
|
|
|
|
|
|
export function InspectionProductLabel(params) {
|
|
|
|
|
|
return request({
|
|
|
|
|
|
url: '/mes/Mobile/PrintAndReportWork/inspectionProductLabel',
|
|
|
|
|
|
method: 'get',
|
|
|
|
|
|
params
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 箱子标签和产品标签关联,及产品标签检验,及其工单报工(TODO 2025-04-06 新报工接口)
|
|
|
|
|
|
export function BoxLabelAndProductLabel(params) {
|
|
|
|
|
|
return request({
|
|
|
|
|
|
url: '/mes/Mobile/PrintAndReportWork/box_label_and_product_label',
|
|
|
|
|
|
method: 'get',
|
|
|
|
|
|
params
|
|
|
|
|
|
})
|
2025-04-09 18:12:00 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2025-04-11 17:13:42 +08:00
|
|
|
|
// 校验箱子标签(TODO 2025-04-09 U16线U13线新报工接口)
|
2025-04-09 18:12:00 +08:00
|
|
|
|
export function CheckBoxInspectionLabel(params) {
|
|
|
|
|
|
return request({
|
|
|
|
|
|
url: '/mes/Mobile/PrintAndReportWork2/CheckBoxInspectionLabel',
|
|
|
|
|
|
method: 'get',
|
|
|
|
|
|
params
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-04-11 17:13:42 +08:00
|
|
|
|
// 获取首件检验标签(TODO 2025-04-09 U16线U13线新报工接口)
|
2025-04-09 18:12:00 +08:00
|
|
|
|
export function GetFirstInspectionLabel(params) {
|
|
|
|
|
|
return request({
|
|
|
|
|
|
url: '/mes/Mobile/PrintAndReportWork2/firstInspectionLabel',
|
|
|
|
|
|
method: 'get',
|
|
|
|
|
|
params
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-04-11 17:13:42 +08:00
|
|
|
|
// 校验首标签(TODO 2025-04-09 U16线U13线新报工接口)
|
2025-04-09 18:12:00 +08:00
|
|
|
|
export function CheckFirstInspectionLabel(params) {
|
|
|
|
|
|
return request({
|
|
|
|
|
|
url: '/mes/Mobile/PrintAndReportWork2/CheckfirstInspectionLabel',
|
|
|
|
|
|
method: 'get',
|
|
|
|
|
|
params
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-04-11 17:13:42 +08:00
|
|
|
|
// 获取末件检验标签(TODO 2025-04-09 U16线U13线新报工接口)
|
2025-04-09 18:12:00 +08:00
|
|
|
|
export function GetEndInspectionLabel(params) {
|
|
|
|
|
|
return request({
|
|
|
|
|
|
url: '/mes/Mobile/PrintAndReportWork2/getendinspectionlabel',
|
|
|
|
|
|
method: 'get',
|
|
|
|
|
|
params
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-04-11 17:13:42 +08:00
|
|
|
|
// 校验末件标签(TODO 2025-04-09 U16线U13线新报工接口)
|
2025-04-09 18:12:00 +08:00
|
|
|
|
export function CheckEndInspectionLabel(params) {
|
|
|
|
|
|
return request({
|
|
|
|
|
|
url: '/mes/Mobile/PrintAndReportWork2/CheckEndInspectionLabel',
|
|
|
|
|
|
method: 'get',
|
|
|
|
|
|
params
|
|
|
|
|
|
})
|
2025-04-11 17:13:42 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 校验箱子标签(TODO 2025-04-11 U03U05线新报工接口)
|
|
|
|
|
|
export function CheckBoxInspectionLabel2(params) {
|
|
|
|
|
|
return request({
|
|
|
|
|
|
url: '/mes/Mobile/PrintAndReportWork3/CheckBoxInspectionLabel',
|
|
|
|
|
|
method: 'get',
|
|
|
|
|
|
params
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 获取首件检验标签(TODO 2025-04-11 U03U05线新报工接口)
|
|
|
|
|
|
export function GetFirstInspectionLabel2(params) {
|
|
|
|
|
|
return request({
|
|
|
|
|
|
url: '/mes/Mobile/PrintAndReportWork3/firstInspectionLabel',
|
|
|
|
|
|
method: 'get',
|
|
|
|
|
|
params
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 校验首标签(TODO 2025-04-11 U03U05线新报工接口)
|
|
|
|
|
|
export function CheckFirstInspectionLabel2(params) {
|
|
|
|
|
|
return request({
|
|
|
|
|
|
url: '/mes/Mobile/PrintAndReportWork3/CheckfirstInspectionLabel',
|
|
|
|
|
|
method: 'get',
|
|
|
|
|
|
params
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 获取末件检验标签(TODO 2025-04-11 U03U05线新报工接口)
|
|
|
|
|
|
export function GetEndInspectionLabel2(params) {
|
|
|
|
|
|
return request({
|
|
|
|
|
|
url: '/mes/Mobile/PrintAndReportWork3/getendinspectionlabel',
|
|
|
|
|
|
method: 'get',
|
|
|
|
|
|
params
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 校验末件标签(TODO 2025-04-11 U03U05线新报工接口)
|
|
|
|
|
|
export function CheckEndInspectionLabel2(params) {
|
|
|
|
|
|
return request({
|
|
|
|
|
|
url: '/mes/Mobile/PrintAndReportWork3/CheckEndInspectionLabel',
|
|
|
|
|
|
method: 'get',
|
|
|
|
|
|
params
|
|
|
|
|
|
})
|
2024-11-20 16:33:20 +08:00
|
|
|
|
}
|