人工入空托

This commit is contained in:
2024-07-13 23:10:31 +08:00
parent 724372b20a
commit 53384c7be5
2 changed files with 15 additions and 1 deletions

View File

@@ -49,4 +49,14 @@ public partial class WmsEmptycarryInstockLog : BaseEntity<string>
/// </summary>
public string? carry_code { get; set; }
/// <summary>
/// 仓库id
/// </summary>
public string? wh_id { get; set; }
/// <summary>
/// 仓库名称
/// </summary>
public string? wh_name { get; set; }
}

View File

@@ -83,6 +83,8 @@ namespace Tnb.WarehouseMgr
throw new Exception($"库位{basLocation.location_code}已占用");
}
BasWarehouse basWarehouse = await _db.Queryable<BasWarehouse>().Where(r => r.id == basLocation.wh_id).FirstAsync();
wmsCarryH.location_id = basLocation.id;
wmsCarryH.location_code = basLocation.location_code;
@@ -97,8 +99,10 @@ namespace Tnb.WarehouseMgr
wmsEmptycarryInstockLog.location_id = basLocation.id;
wmsEmptycarryInstockLog.location_code = basLocation.location_code;
wmsEmptycarryInstockLog.org_id = input.org_id;
wmsEmptycarryInstockLog.create_id =input.create_id ;
wmsEmptycarryInstockLog.create_id =input.create_id;
wmsEmptycarryInstockLog.create_time = DateTime.Now;
wmsEmptycarryInstockLog.wh_id = basWarehouse.id;
wmsEmptycarryInstockLog.wh_name = basWarehouse.whname;
await _db.Insertable(wmsEmptycarryInstockLog).ExecuteCommandAsync();