| | |
| | | return SetOutPutMqttMsg(action, input.Locale); |
| | | } |
| | | |
| | | public async Task<ApiAction<ScanOutput>> ScanItem(BaseInput input) |
| | | { |
| | | var action = new ApiAction<ScanOutput>(new ScanOutput()); |
| | | try |
| | | { |
| | | List<WMS_ITEM> items = new List<WMS_ITEM>(); |
| | | List<WMS_ITEM_HIS> itemhiss = new List<WMS_ITEM_HIS>(); |
| | | List<WMS_ITEM_PKG> itemPkgs = new List<WMS_ITEM_PKG>(); |
| | | List<WMS_ITEM_EXT> itemExts = new List<WMS_ITEM_EXT>(); |
| | | var rePrints = (input.Data ?? "").JsonToObject<PrintSemiProdLabelEntity>() ?? new PrintSemiProdLabelEntity(); |
| | | if (!rePrints.SnList.Any() || rePrints.SnList.Any(q => q.Qty <= 0)) |
| | | { |
| | | action.IsSuccessed = false; |
| | | //action.LocaleMsg = Biz.L("数量不能小于等于零,请重新确认条码[{0}]的数量"); |
| | | action.LocaleMsg = Biz.L("WMS.Default.ScanItem.ReComfirmQty", input.SN); |
| | | return action; |
| | | } |
| | | else |
| | | { |
| | | |
| | | action.Data.Data = rePrints; |
| | | action.LocaleMsg = Biz.L("半成品打印标签成功"); |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | action.CatchExceptionWithLog(ex, Biz.L("半成品打印标签失败")); |
| | | } |
| | | return action; |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | public override bool Close(bool needSaveHistoryLog = false) |