组装提报仓库 库位修改

This commit is contained in:
2024-07-17 09:32:56 +08:00
parent 73e496b989
commit ff038ff1d5
2 changed files with 9 additions and 6 deletions

View File

@@ -1723,16 +1723,17 @@ namespace Tnb.ProductionMgr
// throw Oops.Bah("未找到对应产线");
// }
report.warehouse_id = WmsWareHouseConst.WAREHOUSE_JXK_ID;
// report.warehouse_id = WmsWareHouseConst.WAREHOUSE_JXK_ID;
report.warehouse_id = WmsWareHouseConst.WAREHOUSE_SLDMJC_ID;
Dictionary<string, string> worklineWarehouseDic = new Dictionary<string, string>()
{
[WmsWareHouseConst.XUELUGUAN1XIAN] = "ZZ-01-01",
[WmsWareHouseConst.XUELUGUAN2XIAN] = "ZZ-01-02",
[WmsWareHouseConst.XUELUGUAN1XIAN] = "ZZ-01-02",
[WmsWareHouseConst.XUELUGUAN2XIAN] = "ZZ-02-02",
};
report.location_code = worklineWarehouseDic.GetOrDefault(prdMoTask.workline_id);
if (string.IsNullOrEmpty(report.location_code))
{
report.location_code = "ZZ-01-01";
report.location_code = "ZZ-01-02";
}
location = await db.Queryable<BasLocation>().SingleAsync(x=>x.location_code==report.location_code);
if (location == null)

View File

@@ -26,8 +26,10 @@
/// 暂存仓仓库ID
/// </summary>
public const string WAREHOUSE_ZCC_ID = "33780009364245";
/// <summary>
/// 四楼待灭菌仓
/// </summary>
public const string WAREHOUSE_SLDMJC_ID = "35412479754517";
/// <summary>
/// 四楼解析库
/// </summary>