| | |
| | | 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 |
| | |
| | | /// </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()) |
| | |
| | | |
| | | 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)); |
| | | } |