初始化
This commit is contained in:
106
api/workorder/proworkorder.js
Normal file
106
api/workorder/proworkorder.js
Normal file
@@ -0,0 +1,106 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
/**
|
||||
* 生产工单分页查询
|
||||
* @param {查询条件} data
|
||||
*/
|
||||
export function listProWorkorder(data) {
|
||||
return request({
|
||||
url: '/mes/productManagement/ProWorkorder/list',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 生产工单(不校验)分页查询
|
||||
* @param {查询条件} data
|
||||
*/
|
||||
export function listProWorkorderNoCheck(data) {
|
||||
return request({
|
||||
url: '/mes/productManagement/ProWorkorder/list_nocheck',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取生产工单详情
|
||||
* @param {Id}
|
||||
*/
|
||||
export function getProWorkorder(id) {
|
||||
return request({
|
||||
url: '/mes/productManagement/ProWorkorder/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取全部工艺路线
|
||||
* @param {查询条件} params
|
||||
*/
|
||||
export function GetAllRoute() {
|
||||
return request({
|
||||
url: '/mes/productManagement/ProWorkorder/get_all_route',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取全部组
|
||||
* @param {查询条件} params
|
||||
*/
|
||||
export function GetAllGroup() {
|
||||
return request({
|
||||
url: '/mes/productManagement/ProWorkorder/get_groups',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 工单进度跟踪
|
||||
* @param {查询条件} params
|
||||
*/
|
||||
export function GetWorkorderTraceProgressList(data) {
|
||||
return request({
|
||||
url: '/mes/productManagement/ProWorkorder/get_workorder_trace_progress',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取工单详情
|
||||
* @param {查询条件} params
|
||||
*/
|
||||
export function GetWorkOrderDetail(params) {
|
||||
return request({
|
||||
url: '/kanban/workorderProgress/get_workorder_detail',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 开始工单
|
||||
* @param {主键} pid
|
||||
*/
|
||||
export function startWorkOrder(query) {
|
||||
return request({
|
||||
url: '/kanban/workorderProgress/start_workorder',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 完成工单
|
||||
* @param {主键} pid
|
||||
*/
|
||||
export function finishWorkOrder(query) {
|
||||
return request({
|
||||
url: '/kanban/workorderProgress/finish_workorder2',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user