69 lines
2.0 KiB
JavaScript
69 lines
2.0 KiB
JavaScript
import request from '@/utils/request'
|
||
import { downFile } from '@/utils/request'
|
||
|
||
// 导出函数GetcheckItemTable,用于获取检查项表格
|
||
export function GetcheckItemTable(query) {
|
||
// 返回请求,请求地址为/mes/qc/FQC/getcheckItemTable,请求方法为get,参数为query
|
||
return request({
|
||
url: '/mes/qc/FQC/getcheckItemTable__thirty',
|
||
method: 'get',
|
||
params: query,
|
||
})
|
||
}
|
||
|
||
// 导出函数getcurrent_workorder,用于获取当前工单
|
||
export function getcurrent_workorder(query) {
|
||
// 返回请求,请求地址为/mes/qc/FQC/getcurrentWorkorder,请求方法为get,参数为query
|
||
return request({
|
||
url: '/mes/qc/FQC/getcurrentWorkorder_thirty',
|
||
method: 'get',
|
||
params: query,
|
||
})
|
||
}
|
||
|
||
// 导出函数get_next_current_workorder,用于获取下一个当前工单
|
||
export function get_next_current_workorder(query) {
|
||
// 返回请求,请求地址为/mes/qc/FQC/getcurrentWorkorder_next,请求方法为get,参数为query
|
||
return request({
|
||
url: '/mes/qc/FQC/getcurrentWorkorder_next_thirty',
|
||
method: 'get',
|
||
params: query,
|
||
})
|
||
}
|
||
|
||
export function get_previous_current_workorder(query) {
|
||
// 返回请求,请求地址为/mes/qc/FQC/getcurrentWorkorder_next,请求方法为get,参数为query
|
||
return request({
|
||
url: '/mes/qc/FQC/getcurrentWorkorder_previous_thirty',
|
||
method: 'get',
|
||
params: query,
|
||
})
|
||
}
|
||
|
||
//累加写入数据库
|
||
export function accumulator_query(query) {
|
||
return request({
|
||
url: '/mes/qc/FQC/accumulator_query_thirty',
|
||
method: 'get',
|
||
params: query,
|
||
})
|
||
}
|
||
|
||
// 计算当前工单下的包装投入数==一次合格+抛光合格
|
||
export function calculate_packagingInvestment(query) {
|
||
return request({
|
||
url: '/mes/qc/FQC/calculate_packagingInvestment',
|
||
method: 'get',
|
||
params: query,
|
||
})
|
||
}
|
||
|
||
|
||
// 更改工单状态
|
||
export function update_workorder_status(query) {
|
||
return request({
|
||
url: '/mes/qc/FQC/update_workorder_status',
|
||
method: 'get',
|
||
params: query,
|
||
})
|
||
} |