| | |
| | | result.Flag = Result.Flags.Failed; |
| | | result.LocaleMsg = new("WMS.WmsItem.Barcode.EmptyFailure"); |
| | | } |
| | | else if (barcode.IsException) |
| | | { |
| | | throw barcode.AnalyseException; |
| | | } |
| | | //非法条码 |
| | | else if (!barcode.IsRegular) |
| | | { |
| | | result.Flag = Result.Flags.Failed; |
| | | result.LocaleMsg = new("WMS.WmsItem.Barcode.IllegalFailure"); |
| | | } |
| | | else if (barcode.Qty <= 0) |
| | | { |
| | | result.Flag = Result.Flags.Failed; |
| | | result.LocaleMsg = new("数量不能小于等于零,请检查二维码!"); |
| | | } |
| | | //else if (barcode.Qty <= 0) |
| | | //{ |
| | | // result.Flag = Result.Flags.Failed; |
| | | // result.LocaleMsg = new("数量不能小于等于零,请检查二维码!"); |
| | | //} |
| | | else |
| | | { |
| | | var query = Biz.Db.Queryable<WMS_ITEM_PKG>().ByAuth(option).Where(q => q.SN == barcode.SN).IncludesAllFirstLayer().First(); |
| | |
| | | inv.ItemsExt.Add(new() |
| | | { |
| | | SN = item.SN, |
| | | SUPP_ITEM_CODE = barcode.OEMItemCode, |
| | | META_SN = barcode.MetaSn, |
| | | QR_CODE = barcode.MetaSn |
| | | }); |
| | |
| | | result.Flag = Result.Flags.Failed; |
| | | result.LocaleMsg = new("WMS.WmsItem.Barcode.EmptyFailure"); |
| | | } |
| | | else if (barcode.IsException) |
| | | { |
| | | throw barcode.AnalyseException; |
| | | } |
| | | //非法条码 |
| | | else if (!barcode.IsRegular) |
| | | { |
| | |
| | | inv.ItemsExt.Add(new() |
| | | { |
| | | SN = item.SN, |
| | | SUPP_ITEM_CODE = barcode.OEMItemCode, |
| | | META_SN = barcode.MetaSn, |
| | | QR_CODE = barcode.MetaSn |
| | | }); |
| | |
| | | { |
| | | item.AUTH_ORG = option.OrgCode; |
| | | item.SN = inv.Barcode.SN; |
| | | item.SUPP_ITEM_CODE = inv.Barcode.OEMItemCode; |
| | | } |
| | | |
| | | result.Data.Items = inventory.Items; |