工艺微服务变更

yangwl
zhaoxiaolin 1 year ago
parent 875f4d77c8
commit 11cd65e3d0

@ -3,7 +3,7 @@ import request from '@/utils/request'
//通过母订单id查询最新工单列表
export function getWorkOrderList(id) {
return request({
url: '/mes/order/getWorkOrderList/' + id,
url: '/plan/order/getWorkOrderList/' + id,
method: 'get'
})
}
@ -11,7 +11,7 @@ export function getWorkOrderList(id) {
//通过母订单id查询最新订单列表
export function getOrderList(id) {
return request({
url: '/mes/order/getOrderList/' + id,
url: '/plan/order/getOrderList/' + id,
method: 'get'
})
}
@ -19,7 +19,7 @@ export function getOrderList(id) {
// 提交拆分
export function subSplitOrder(data) {
return request({
url: '/mes/order/subSplitOrder',
url: '/plan/order/subSplitOrder',
method: 'post',
data: data
})
@ -29,7 +29,7 @@ export function subSplitOrder(data) {
// 获取换算值
export function getConvert() {
return request({
url: '/mes/order/getConvert',
url: '/plan/order/getConvert',
method: 'get',
})
}
@ -37,7 +37,7 @@ export function getConvert() {
// 获取线体
export function getprodLineShift(orderType) {
return request({
url: '/mes/order/getProdLineShift/'+'?type='+orderType,
url: '/plan/order/getProdLineShift/'+'?type='+orderType,
method: 'get',
})
}
@ -45,7 +45,7 @@ export function getprodLineShift(orderType) {
// 查询订单列表
export function listOrder(query) {
return request({
url: '/mes/order/list',
url: '/plan/order/list',
method: 'get',
params: query
});
@ -54,7 +54,7 @@ export function listOrder(query) {
// 查询订单详细
export function getOrder(id) {
return request({
url: '/mes/order/' + id,
url: '/plan/order/' + id,
method: 'get'
});
}
@ -62,7 +62,7 @@ export function getOrder(id) {
// 新增订单
export function addOrder(data) {
return request({
url: '/mes/order',
url: '/plan/order',
method: 'post',
data: data
});
@ -71,7 +71,7 @@ export function addOrder(data) {
// 修改订单
export function updateOrder(data) {
return request({
url: '/mes/order',
url: '/plan/order',
method: 'put',
data: data
});
@ -80,14 +80,14 @@ export function updateOrder(data) {
// 删除订单
export function delOrder(id) {
return request({
url: '/mes/order/' + id,
url: '/plan/order/' + id,
method: 'delete'
});
}
// 同步SAP订单
export function syncSAP() {
return request({
url: '/mes/order/syncSAP',
url: '/plan/order/syncSAP',
method: 'post'
});
}

@ -3,7 +3,7 @@ import request from '@/utils/request'
// 修改-提交按钮-修改湿料计划
export function updatePlanDetail(data) {
return request({
url:'/mes/plan/updatePlanDetail',
url:'/plan/plan/updatePlanDetail',
method: 'put',
data: data
})
@ -12,7 +12,7 @@ export function updatePlanDetail(data) {
// 修改-通过主计划id获取湿料计划详情list
export function getPlanDetailList(id) {
return request({
url: '/mes/plan/getPlanDetail'+'?id='+id,
url: '/plan/plan/getPlanDetail'+'?id='+id,
method: 'get',
})
}
@ -20,7 +20,7 @@ export function getPlanDetailList(id) {
// 新增-提交按钮-提交湿料计划
export function addWetPlan(data) {
return request({
url: '/mes/plan/addWetPlan',
url: '/plan/plan/addWetPlan',
method: 'post',
data: data
})
@ -29,7 +29,7 @@ export function addWetPlan(data) {
// 通过计划日期获取已分配的料罐、物料、班次信息list
export function getBMSList(planTime) {
return request({
url:'/mes/plan/getBMSList/'+'?planTime='+planTime,
url:'/plan/plan/getBMSList/'+'?planTime='+planTime,
method:'get'
})
}
@ -37,7 +37,7 @@ export function getBMSList(planTime) {
// 获取物料信息list
export function getProductList() {
return request({
url:'/mes/plan/getProductList',
url:'/plan/plan/getProductList',
method:'get'
})
}
@ -45,7 +45,7 @@ export function getProductList() {
// 获取料罐信息list
export function getBucketList() {
return request({
url:'/mes/plan/getBucketList',
url:'/plan/plan/getBucketList',
method:'get'
})
}
@ -53,7 +53,7 @@ export function getBucketList() {
// 通过工单日期查询没有被分配的所有子工单
export function getWorkOrderList(productDate) {
return request({
url:'/mes/plan/getWorkOrderByTime'+'?productDate='+productDate,
url:'/plan/plan/getWorkOrderByTime'+'?productDate='+productDate,
method:'get',
})
}
@ -61,7 +61,7 @@ export function getWorkOrderList(productDate) {
// 查询湿料计划管理列表
export function listPlan(query) {
return request({
url: '/mes/plan/list',
url: '/plan/plan/list',
method: 'get',
params: query
});
@ -70,7 +70,7 @@ export function listPlan(query) {
// 查询湿料计划管理详细
export function getPlan(id) {
return request({
url: '/mes/plan/' + id,
url: '/plan/plan/' + id,
method: 'get'
});
}
@ -78,7 +78,7 @@ export function getPlan(id) {
// 新增湿料计划管理
export function addPlan(data) {
return request({
url: '/mes/plan',
url: '/plan/plan',
method: 'post',
data: data
});
@ -87,7 +87,7 @@ export function addPlan(data) {
// 修改湿料计划管理
export function updatePlan(data) {
return request({
url: '/mes/plan',
url: '/plan/plan',
method: 'put',
data: data
});
@ -96,7 +96,7 @@ export function updatePlan(data) {
// 删除湿料计划管理
export function delPlan(id) {
return request({
url: '/mes/plan/' + id,
url: '/plan/plan/' + id,
method: 'delete'
});
}

@ -3,7 +3,7 @@ import request from '@/utils/request'
// 查询生产工单列表
export function listWorkorder(query) {
return request({
url: '/mes/pro/workorder/list',
url: '/plan/pro/workorder/list',
method: 'get',
params: query
});
@ -12,7 +12,7 @@ export function listWorkorder(query) {
// 查询生产工单详细
export function getWorkorder(workorderId) {
return request({
url: '/mes/pro/workorder/' + workorderId,
url: '/plan/pro/workorder/' + workorderId,
method: 'get'
});
}
@ -20,7 +20,7 @@ export function getWorkorder(workorderId) {
// 新增生产工单
export function addWorkorder(data) {
return request({
url: '/mes/pro/workorder',
url: '/plan/pro/workorder',
method: 'post',
data: data
});
@ -29,7 +29,7 @@ export function addWorkorder(data) {
// 修改生产工单
export function updateWorkorder(data) {
return request({
url: '/mes/pro/workorder',
url: '/plan/pro/workorder',
method: 'put',
data: data
});
@ -38,7 +38,7 @@ export function updateWorkorder(data) {
// 删除生产工单
export function delWorkorder(workorderId) {
return request({
url: '/mes/pro/workorder/' + workorderId,
url: '/plan/pro/workorder/' + workorderId,
method: 'delete'
});
}
@ -46,7 +46,7 @@ export function delWorkorder(workorderId) {
//下发生产工单
export function downWorkorder(workorderId) {
return request({
url: '/mes/pro/workorder/downWorkorder/' + workorderId,
url: '/plan/pro/workorder/downWorkorder/' + workorderId,
method: 'post'
});
}

Loading…
Cancel
Save