This commit is contained in:
2023-11-23 09:58:41 +08:00
parent 2524db7e1e
commit 24d8363096
6 changed files with 185 additions and 9 deletions

View File

@@ -1500,7 +1500,8 @@ namespace Tnb.ProductionMgr
report = input.Adapt<PrdReport>();
report.id = SnowflakeIdHelper.NextId();
report.reported_qty = input.reported_qty;
report.material_box_code = input.material_box_qrcode;
report.material_box_code = input.material_box_code;
report.location_code = input.location_code;
report.create_id = _userManager.UserId;
report.create_time = DateTime.Now;
// report.batch = input.mo_task_code + DateTimeOffset.Now.ToUnixTimeSeconds().ToString();
@@ -1730,8 +1731,9 @@ namespace Tnb.ProductionMgr
string[] arr = JsonConvert.DeserializeObject<string[]>(basMaterial.category_id);
if (arr.Length > 0 && arr.Contains("DGJCJ"))//短管挤出件入库申请
{
string resultMsg = await _prdInstockService.InstockTubeOne(report);
return resultMsg == "true" ? (dynamic)true : throw Oops.Bah(resultMsg);
// string resultMsg = await _prdInstockService.InstockTubeOne(report);
// return resultMsg == "true" ? (dynamic)true : throw Oops.Bah(resultMsg);
return true;
}
if (arr.Length > 0 && arr.Contains("CGJCJ"))//短管挤出件入库申请