服务端的TigerApi 框架,基于.NET6 2024 版本
Ben Lin
2025-03-12 ad0d339452923d38d47ff63b8d5bbcf8efd0923c
Tiger.Business.WMS/Transaction/In_Default.cs
@@ -103,7 +103,7 @@
                    {
                        action.IsSuccessed = false;
                        //action.LocaleMsg = Biz.L("物料编码[{0}]不存在或者该物料未启用");
                        action.LocaleMsg = Biz.L("WMS.Default.ScanItem.ItemCodeNotExistsOrNotActive", inv.ItemInfo.ITEM_CODE.IsNullOrEmpty(inv.Barcode.ItemCode));
                        action.LocaleMsg = Biz.L("WMS.Default.ScanItem.ItemCodeNotExistsOrNotActive", inv.ItemInfo?.ITEM_CODE.IsNullOrEmpty(inv.Barcode.ItemCode));
                        return action;
                    }
@@ -188,6 +188,7 @@
                        {
                            var item = CurInvItem.Items.First(q => q.SN == qty.Code);
                            item.QTY = qty.WhQty;
                            item.SUPP_LOTNO = qty.Segment7;
                        }
                        action.Data.Data = CurInvItem.Items.Select(q => new { q.SN, q.QTY });
                        action.Data.Command = Command = "ComfirmQty";
@@ -426,8 +427,8 @@
            //action.LocaleMsg = Biz.L($"扫描条码[{0}]上架到储位[{1}]成功");
            action.LocaleMsg = Biz.L("WMS.Default.ScanItem.PutOnSucceeded", CurInvItem.SN, CurInvItem.Location.LOCATION_CODE);
            //重置工序
            ResetScan();
            //重置扫码信息
            ResetScanInfo();
            return action;
        }
@@ -439,9 +440,17 @@
        public override void ResetScan()
        {
            base.ResetScan();
            ResetScanInfo();
            CurScanShelf = null;
        }
        /// <summary>
        /// 重置扫码信息
        /// </summary>
        public void ResetScanInfo()
        {
            Command = null;
            CurInvItem = null;
            CurScanShelf = null;
        }
        public override bool Close(bool needSaveHistoryLog = false)