From dc203bafb60dc9985c805c6a4ec5f8018f3d3cf6 Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期五, 10 一月 2025 11:37:00 +0800 Subject: [PATCH] 更新 Scan 方法和 ReprintLabel 相关逻辑 --- Tiger.Business.WMS/Transaction/ReprintLabel.cs | 19 +------------------ 1 files changed, 1 insertions(+), 18 deletions(-) diff --git a/Tiger.Business.WMS/Transaction/ReprintLabel.cs b/Tiger.Business.WMS/Transaction/ReprintLabel.cs index b47277a..02d8510 100644 --- a/Tiger.Business.WMS/Transaction/ReprintLabel.cs +++ b/Tiger.Business.WMS/Transaction/ReprintLabel.cs @@ -36,23 +36,9 @@ public string UserCode { get; set; } public long UserId { get; set; } public string OrgCode { get; set; } - public List<SuggestItem> Suggests { get; set; } = new(); public List<V_WMS_ITEM> Vitem { get; set; } = new(); - public List<WMS_ITEM_POOL> CurPoolList => Suggests.Where(q => !q.poolItem.IsNullOrEmpty()).Select(q => q.poolItem).ToList(); public Inventory CurInv { get; set; } - public BIZ_ERP_PROD_OUT req { get; set; } - public ReqType CurReqType { get; set; } - public List<BIZ_ERP_PROD_OUT_DTL> dtls { get; set; } = new(); - public bool isExceed { get; set; } - public ProductionPickToMes toMes { get; set; } - public bool his_isComplete { get; set; } - public bool isCutting { get; set; } - public decimal cutQty { get; set; } - public BIZ_WMS_TRANSFER transferH = null; - public BIZ_WMS_TRANSFER cTransferH = null; - public BIZ_WMS_TRANSFER_DTL transferDtl = null; - public BIZ_WMS_TRANSFER_SN transferSn = null; #endregion #region Functions @@ -61,7 +47,7 @@ /// </summary> public async Task<ApiAction<ScanOutput>> Scan(BaseInput input) { - var action = new ApiAction<ScanOutput>(); + var action = new ApiAction<ScanOutput>(new ScanOutput()); try { if (input.SN.IsNullOrEmpty()) @@ -73,12 +59,9 @@ var whUnit = await Biz.Db.Queryable<V_WH_UNIT>().Where(t => (t.SHELF_CODE.ToUpper() == input.SN || t.LOCATION_CODE.ToUpper() == input.SN) && t.AUTH_ORG == OrgCode).IncludesAllFirstLayer().FirstAsync(); - } catch (Exception ex) { - //鍙栨秷褰撳墠鎿嶄綔 - ResetInfo(); //action.CatchExceptionWithLog(ex, $"鎵弿[{input.SN}]寮傚父"); action.CatchExceptionWithLog(ex, Biz.L("WMS.Default.Scan.ScanException", input.SN)); } -- Gitblit v1.9.3