卢江海、出货改动

This commit is contained in:
卢江海
2025-03-12 17:31:32 +08:00
parent 7d23adb53b
commit ab8c1dbb9b
3 changed files with 43 additions and 5 deletions

View File

@@ -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 获取工单下的报工列表