优先级、巷道、分区
This commit is contained in:
@@ -17,6 +17,7 @@ using Npgsql;
|
||||
using Senparc.Weixin.MP.AdvancedAPIs.Card;
|
||||
using SqlSugar;
|
||||
using Tnb.WarehouseMgr.Entities;
|
||||
using Tnb.WarehouseMgr.Entities.Consts;
|
||||
using Tnb.WarehouseMgr.Entities.Dto;
|
||||
using Tnb.WarehouseMgr.Entities.Dto.Inputs;
|
||||
using Tnb.WarehouseMgr.Entities.Dto.Outputs;
|
||||
@@ -152,6 +153,12 @@ namespace Tnb.WarehouseMgr
|
||||
return result;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 仅原材料仓八工位PDA使用
|
||||
/// </summary>
|
||||
/// <param name="input"></param>
|
||||
/// <returns></returns>
|
||||
/// <exception cref="AppFriendlyException"></exception>
|
||||
[HttpPost]
|
||||
public async Task CarryMaterialBind(CarryMaterialBindInput input)
|
||||
{
|
||||
@@ -172,6 +179,12 @@ namespace Tnb.WarehouseMgr
|
||||
int rows = 0;
|
||||
if (WmsCarryCodes.Count > 0)
|
||||
rows = await _db.Insertable(WmsCarryCodes).ExecuteCommandAsync();
|
||||
|
||||
await _db.Updateable<WmsCarryH>().SetColumns(r => new WmsCarryH
|
||||
{
|
||||
location_id = WmsWareHouseConst.LOCATION_YCLBGWDRK,
|
||||
location_code = "YCLBGWDRK"
|
||||
}).Where(r => r.id == carry.id).ExecuteCommandAsync();
|
||||
if (rows == 0)
|
||||
{
|
||||
throw new Exception($"物料列表为空,不能提交绑定,可能的原因;1.需要检查扫码设置(新PDA) 2.未扫到有效的二维码 详细信息:接收到{input.details.Count}个条码 但是成功绑定的条码数量为0个!");
|
||||
|
||||
Reference in New Issue
Block a user