卢江海、出货改动
This commit is contained in:
@@ -122,8 +122,29 @@ public class ReportFlowController : BaseController
|
||||
{
|
||||
throw new CustomException("workorder or process is null");
|
||||
}
|
||||
int ret = _reportFlowService.ShipmentProcessReportwork(workorder, processId, finish_num, bad_num, customer_order, process_operator);
|
||||
string data = "";
|
||||
if (ret == 0)
|
||||
{
|
||||
data = "失败";
|
||||
|
||||
return SUCCESS(_reportFlowService.ShipmentProcessReportwork(workorder, processId, finish_num, bad_num, customer_order, process_operator));
|
||||
}
|
||||
if (ret==1)
|
||||
{
|
||||
data = "成功";
|
||||
|
||||
}
|
||||
if (ret == 2)
|
||||
{
|
||||
data = "采购订单号和工单号不匹配";
|
||||
|
||||
}
|
||||
if (ret == 3)
|
||||
{
|
||||
data = "出货数量超额";
|
||||
|
||||
}
|
||||
return SUCCESS(data);
|
||||
}
|
||||
|
||||
//TODO 获取工单下的报工列表
|
||||
|
||||
Reference in New Issue
Block a user