订单管理管理模块

master
wws 1 year ago
parent 8233899bc3
commit 23ffc3d1b9

@ -1,44 +1,86 @@
import request from '@/utils/request' import request from '@/utils/request'
//通过母订单id查询最新工单列表
export function getWorkOrderList(id) {
return request({
url: '/mes/order/getWorkOrderList/' + id,
method: 'get'
})
}
//通过母订单id查询最新订单列表
export function getOrderList(id) {
return request({
url: '/mes/order/getOrderList/' + id,
method: 'get'
})
}
// 提交拆分
export function subSplitOrder(data) {
return request({
url: '/mes/order/subSplitOrder',
method: 'post',
data: data
})
}
// 获取换算值
export function getConvert() {
return request({
url: '/mes/order/getConvert',
method: 'get',
})
}
// 获取线体
export function getprodLineShift() {
return request({
url: '/mes/order/getProdLineShift',
method: 'get',
})
}
// 查询订单列表 // 查询订单列表
export function listOrder(query) { export function listOrder(query) {
return request({ return request({
url: '/mes/order/list', url: '/mes/order/list',
method: 'get', method: 'get',
params: query params: query
}); });
} }
// 查询订单详细 // 查询订单详细
export function getOrder(id) { export function getOrder(id) {
return request({ return request({
url: '/mes/order/' + id, url: '/mes/order/' + id,
method: 'get' method: 'get'
}); });
} }
// 新增订单 // 新增订单
export function addOrder(data) { export function addOrder(data) {
return request({ return request({
url: '/mes/order', url: '/mes/order',
method: 'post', method: 'post',
data: data data: data
}); });
} }
// 修改订单 // 修改订单
export function updateOrder(data) { export function updateOrder(data) {
return request({ return request({
url: '/mes/order', url: '/mes/order',
method: 'put', method: 'put',
data: data data: data
}); });
} }
// 删除订单 // 删除订单
export function delOrder(id) { export function delOrder(id) {
return request({ return request({
url: '/mes/order/' + id, url: '/mes/order/' + id,
method: 'delete' method: 'delete'
}); });
} }

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save