You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

111 lines
2.2 KiB
JavaScript

import request from '@/utils/request'
export function getWorkOrders(workorderCode) {
return request({
url:'/plan/bppro/workorder/getWorkOrders/'+workorderCode,
method:'get'
})
}
// 校验工单是否可以修改
export function checkWorkOrder(workorderId){
return request({
url:'/plan/bppro/workorder/checkWorkOrder/'+workorderId,
method:'get'
})
}
// 提交修改工单接口
export function subChangeWorkOrder(data){
return request({
url:'/plan/bppro/workorder/subChangeWorkOrder',
method:'post',
data:data
})
}
// 通过子工单查询父工单对应的批次list
export function getWorkBatchList(data){
return request({
url:'/plan/bppro/workorder/getWorkBatchList',
method:'post',
data: data
})
}
// 通过子工单查询订单信息和工单信息
export function getOrderAndWork(data) {
return request({
url: '/plan/bppro/workorder/getOrderAndWorkInfo',
method: 'post',
data: data
})
}
// 查询生产工单列表
export function listWorkorder(query) {
return request({
url: '/plan/bppro/workorder/list',
method: 'get',
params: query
});
}
// 查询生产工单详细
export function getWorkorder(workorderId) {
return request({
url: '/plan/bppro/workorder/' + workorderId,
method: 'get'
});
}
// 新增生产工单
export function addWorkorder(data) {
return request({
url: '/plan/bppro/workorder',
method: 'post',
data: data
});
}
// 修改生产工单
export function updateWorkorder(data) {
return request({
url: '/plan/bppro/workorder',
method: 'put',
data: data
});
}
// 删除生产工单
export function delWorkorder(workorderId) {
return request({
url: '/plan/bppro/workorder/' + workorderId,
method: 'delete'
});
}
// 删除白坯湿料计划
export function deleteWetMaterial(workorderId) {
return request({
url: '/plan/bppro/workorder/deleteWetMaterial/' + workorderId,
method: 'delete'
});
}
//下发生产工单
export function downWorkorder(workorderId) {
return request({
url: '/plan/bppro/workorder/downWorkorder/' + workorderId,
method: 'post'
});
}
// 提交修改工单接口
export function subChangeWorkOrderM(data){
return request({
url:'/plan/bppro/workorder/subChangeWorkOrderM',
method:'post',
data:data
})
}