生产领料完成
This commit is contained in:
@@ -102,11 +102,14 @@ namespace ZR.Admin.WebApi.Controllers.MES.pro
|
||||
public IActionResult ReleaseProduction(string id)
|
||||
{
|
||||
|
||||
int data = proWorkorderService.ReleaseProduction(id);
|
||||
int data = proWorkorderService.ReleaseProduction(id, HttpContext);
|
||||
|
||||
return ToResponse(new ApiResult(200, "success", data));
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 对当前的,排产工单排序
|
||||
/// </summary>
|
||||
|
||||
@@ -8,8 +8,6 @@ using ZR.Service.MES.md;
|
||||
|
||||
namespace ZR.Admin.WebApi.Controllers.MES.pro
|
||||
{
|
||||
//
|
||||
//
|
||||
|
||||
[Route("mes/pro/workplan")]
|
||||
public class ProWorkplanController : BaseController
|
||||
@@ -156,6 +154,7 @@ namespace ZR.Admin.WebApi.Controllers.MES.pro
|
||||
// 计划数>0 计划数要大于等于当前工单总数
|
||||
if(countWorkplan > 0 && (countWorkplan>= countWorkorder))
|
||||
{
|
||||
proWorkorder.Partnumber = lstWorkplan[0].Partnumber;
|
||||
proWorkorder.ToCreate(HttpContext);
|
||||
data = proWorkplanService.AddWorkorder(proWorkorder);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user