| | |
| | | } |
| | | var inv = result.Data as Inventory; |
| | | |
| | | //验证条码是否正确 |
| | | if (!inv.isNormalStatus || inv.Status.GetValue() != WMS_ITEM.STATUSs.NotExists.GetValue() && inv.Status.GetValue() <= WMS_ITEM.STATUSs.InStore.GetValue()) |
| | | //验证条码是否正确!inv.isNormalStatus || inv.Status.GetValue() != WMS_ITEM.STATUSs.NotExists.GetValue() && |
| | | if (inv.Status.GetValue() == WMS_ITEM.STATUSs.InStore.GetValue()) |
| | | { |
| | | action.IsSuccessed = false; |
| | | //action.LocaleMsg = Biz.L("状态[{0}]异常,请重新扫描"); |
| | |
| | | CurScanShelf.WarehouseCode = whUnit.WH_CODE; |
| | | CurScanShelf.RegionCode = whUnit.REGION_CODE; |
| | | CurScanShelf.ShelfCode = whUnit.SHELF_CODE; |
| | | CurScanShelf.LocationCode = whUnit.LOCATION_CODE; |
| | | CurScanShelf.ShelfType = whUnit.SHELF_TYPE; |
| | | CurScanShelf.IsSmartRack = true; |
| | | } |
| | | // 扫描库位代码 |
| | | else |
| | | { |
| | | var nLocation = await Biz.Db.Queryable<V_WH_UNIT>().Where(t => t.LOCATION_CODE.ToUpper() == Code.ToUpper() && t.AUTH_ORG == OrgCode).FirstAsync(); |
| | | var nLocation = await Biz.Db.Queryable<V_WH_UNIT>().Where(t => t.LOCATION_CODE.ToUpper() == Code.ToUpper() && t.AUTH_ORG == OrgCode).IncludesAllFirstLayer().FirstAsync(); |
| | | if (nLocation == null) |
| | | { |
| | | action.IsSuccessed = false; |
| | |
| | | return action; |
| | | } |
| | | } |
| | | CurScanShelf.Shelf = nLocation.Shelf; |
| | | CurScanShelf.Location = nLocation.Location; |
| | | CurScanShelf.WarehouseCode = nLocation.WH_CODE; |
| | | CurScanShelf.RegionCode = nLocation.REGION_CODE; |