133 lines
3.0 KiB
JavaScript
133 lines
3.0 KiB
JavaScript
import request from '@/utils/request'
|
||
// 获取全部工艺路线(线别)
|
||
export function getAllRoute(params) {
|
||
return request({
|
||
url: '/mes/Mobile/ReportWork/get_all_route',
|
||
method: 'get',
|
||
params
|
||
})
|
||
}
|
||
|
||
// 获取全部组别
|
||
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
|
||
})
|
||
}
|
||
|
||
// 检验箱标签(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
|
||
})
|
||
}
|
||
|
||
// 校验箱子标签(TODO 2025-04-09 新报工接口)
|
||
export function CheckBoxInspectionLabel(params) {
|
||
return request({
|
||
url: '/mes/Mobile/PrintAndReportWork2/CheckBoxInspectionLabel',
|
||
method: 'get',
|
||
params
|
||
})
|
||
}
|
||
|
||
// 获取首件检验标签(TODO 2025-04-09 新报工接口)
|
||
export function GetFirstInspectionLabel(params) {
|
||
return request({
|
||
url: '/mes/Mobile/PrintAndReportWork2/firstInspectionLabel',
|
||
method: 'get',
|
||
params
|
||
})
|
||
}
|
||
|
||
// 校验首标签(TODO 2025-04-09 新报工接口)
|
||
export function CheckFirstInspectionLabel(params) {
|
||
return request({
|
||
url: '/mes/Mobile/PrintAndReportWork2/CheckfirstInspectionLabel',
|
||
method: 'get',
|
||
params
|
||
})
|
||
}
|
||
|
||
// 获取末件检验标签(TODO 2025-04-09 新报工接口)
|
||
export function GetEndInspectionLabel(params) {
|
||
return request({
|
||
url: '/mes/Mobile/PrintAndReportWork2/getendinspectionlabel',
|
||
method: 'get',
|
||
params
|
||
})
|
||
}
|
||
|
||
// 校验末件标签(TODO 2025-04-09 新报工接口)
|
||
export function CheckEndInspectionLabel(params) {
|
||
return request({
|
||
url: '/mes/Mobile/PrintAndReportWork2/CheckEndInspectionLabel',
|
||
method: 'get',
|
||
params
|
||
})
|
||
} |