|
|
@ -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'
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|