| | |
| | | name: '空æçå
¥åº', |
| | | type: 'primary', |
| | | value: '空æçå
¥åº', |
| | | |
| | | onClick: function () { |
| | | const mountNode = document.createElement('div'); |
| | | document.body.appendChild(mountNode); |
| | |
| | | onInit() { |
| | | }, |
| | | onInited() { |
| | | |
| | | //æ¡æ¶åå§åé
ç½®å |
| | | //妿è¦é
ç½®æç»è¡¨,卿¤æ¹æ³æä½ |
| | | //this.detailOptions.columns.forEach(column=>{ }); |
| | |
| | | public int Code { get; set; } |
| | | |
| | | [JsonProperty("msg")] |
| | | public string Msg { get; set; } |
| | | public string? Msg { get; set; } |
| | | |
| | | [JsonProperty("data")] |
| | | public T? Data { get; set; } |
| | |
| | | /// <returns></returns> |
| | | public object GetTreeItem(int menuId) |
| | | { |
| | | return GetTreeItem(menuId); |
| | | var sysMenu = BaseDal.QueryData(x => x.MenuId == menuId) |
| | | .Select( |
| | | p => new |
| | | { |
| | | p.MenuId, |
| | | p.ParentId, |
| | | p.MenuName, |
| | | p.Url, |
| | | p.Auth, |
| | | p.OrderNo, |
| | | p.Icon, |
| | | p.Enable, |
| | | MenuType = p.MenuType, |
| | | p.CreateDate, |
| | | p.Creater, |
| | | p.TableName, |
| | | p.ModifyDate |
| | | }).FirstOrDefault(); |
| | | return sysMenu; |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | Dt_StockInfo stockInfo; |
| | | if (string.IsNullOrEmpty(palletCode)) |
| | | { |
| | | stockInfo = _stockRepository.Db.Queryable<Dt_StockInfo>().Where(x => x.PalletType == PalletTypeEnum.Empty.ObjToInt() && !string.IsNullOrWhiteSpace(x.LocationCode)).First(); |
| | | stockInfo = _stockRepository.Db.Queryable<Dt_StockInfo>().Where(x => x.PalletType == PalletTypeEnum.Empty.ObjToInt() && x.StockStatus == StockStatusEmun.å
¥åºå®æ.ObjToInt() && !string.IsNullOrWhiteSpace(x.LocationCode)).First(); |
| | | } |
| | | else |
| | | { |
| | | stockInfo = _stockRepository.Db.Queryable<Dt_StockInfo>().Where(x => x.PalletCode == palletCode).First(); |
| | | stockInfo = _stockRepository.Db.Queryable<Dt_StockInfo>().Where(x => x.PalletType == PalletTypeEnum.Empty.ObjToInt() && x.PalletCode == palletCode && x.StockStatus == StockStatusEmun.å
¥åºå®æ.ObjToInt()).First(); |
| | | } |
| | | |
| | | if (stockInfo == null) |
| | |
| | | _logger.LogInformation("å建任å¡PalletOutboundTask è¿å: " + result); |
| | | if (result) |
| | | { |
| | | return WebResponseContent.Instance.OK(); |
| | | return WebResponseContent.Instance.OK(200); |
| | | } |
| | | else |
| | | { |
| | |
| | | _logger.LogInformation(" ESSController ContainerArrivalReport : CallId={CallId},ContainerCode={ContainerCode},SlotCode={SlotCode}", request.CallId, request.ContainerCode, request.SlotCode); |
| | | var response = new ApiResponse<ContainerArrivalResponseData> |
| | | { |
| | | Code = 0, |
| | | Msg = "", |
| | | Data = new ContainerArrivalResponseData |
| | | { |
| | | direction = "100" // 示ä¾å¼ï¼å¯æ ¹æ®å®é
æ
åµè¿åæ¹åæå
¶ä»ä¿¡æ¯ |
| | | } |
| | | Code = 1 |
| | | |
| | | }; |
| | | |
| | | // çæè¯·æ±çå¯ä¸æ è¯ï¼åºäºcallId + æ¶é´æ³ï¼ |
| | |
| | | { |
| | | _logger.LogWarning("æ£æµå°éå¤è¯·æ±ï¼å·²å¿½ç¥: CallId={CallId}", request.CallId); |
| | | response.Code = 1; |
| | | response.Msg = "error"; |
| | | response.Data.direction = "0"; |
| | | response.Msg = null; |
| | | response.Data = null; |
| | | return Ok(response); |
| | | } |
| | | |
| | |
| | | { |
| | | _logger.LogWarning("åéæ£æ¥æ£æµå°éå¤è¯·æ±ï¼å·²å¿½ç¥: CallId={CallId}", request.CallId); |
| | | response.Code = 1; |
| | | response.Msg = "error"; |
| | | response.Data.direction = "0"; |
| | | response.Msg = null; |
| | | response.Data = null; |
| | | return Ok(response); |
| | | } |
| | | |
| | |
| | | |
| | | var cacheOptions = new MemoryCacheEntryOptions |
| | | { |
| | | AbsoluteExpirationRelativeToNow = TimeSpan.FromMinutes(1) |
| | | AbsoluteExpirationRelativeToNow = TimeSpan.FromSeconds(20) |
| | | }; |
| | | _memoryCache.Set(requestKey, true, cacheOptions); |
| | | if (result.Status) |
| | |
| | | else |
| | | { |
| | | response.Code = 1; |
| | | response.Msg = "error"; |
| | | response.Data.direction = "0"; |
| | | response.Msg = null; |
| | | response.Data = null; |
| | | _logger.LogError(" ESSController ContainerArrivalReport Error: Message={Message}", result.Message); |
| | | |
| | | return Ok(response); |