工艺微服务变更

yangwl
zhaoxiaolin 1 year ago
parent 875f4d77c8
commit 11cd65e3d0

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

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

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

Loading…
Cancel
Save