| | |
| | | "fastq": "^1.6.0" |
| | | } |
| | | }, |
| | | "@popperjs/core": { |
| | | "version": "npm:@sxzz/popperjs-es@2.11.7", |
| | | "resolved": "https://registry.npmmirror.com/@sxzz/popperjs-es/-/popperjs-es-2.11.7.tgz", |
| | | "integrity": "sha512-Ccy0NlLkzr0Ex2FKvh2X+OyERHXJ88XJ1MXtsI9y9fGexlaXaVTPzBCRBwIxFkORuOb+uBqeu+RqnpgYTEZRUQ==" |
| | | }, |
| | | "@sideway/address": { |
| | | "version": "4.1.5", |
| | | "resolved": "https://registry.npmmirror.com/@sideway/address/-/address-4.1.5.tgz", |
| | |
| | | "lodash-unified": "^1.0.2", |
| | | "memoize-one": "^6.0.0", |
| | | "normalize-wheel-es": "^1.2.0" |
| | | }, |
| | | "dependencies": { |
| | | "@popperjs/core": { |
| | | "version": "npm:@sxzz/popperjs-es@2.11.8", |
| | | "resolved": "https://registry.npmmirror.com/@sxzz/popperjs-es/-/popperjs-es-2.11.8.tgz", |
| | | "integrity": "sha512-wOwESXvvED3S8xBmcPWHs2dUuzrE4XiZeFu7e1hROIJkm02a49N120pmOXxY33sBb6hArItm5W5tcg1cBtV+HQ==" |
| | | } |
| | | } |
| | | }, |
| | | "element-ui": { |
| | |
| | | // 1. æçº¸å·æ¡ç åç» |
| | | const groupedData = {}; |
| | | res.data.data.forEach((x) => { |
| | | //夿x.taskNumæ¯ç©ºå¯¹x.palletCodeè¿è¡å¤ç |
| | | if (x.taskNum == null || x.taskNum == "") { |
| | | x.palletCode = "èå"+x.palletCode; |
| | | }else { |
| | | x.palletCode = "ç«åº"+x.palletCode; |
| | | } |
| | | if (!groupedData[x.palletCode]) { |
| | | groupedData[x.palletCode] = []; |
| | | } |
| | |
| | | |
| | | // å建åå¹¶åçåæ¡è®°å½ |
| | | var item = [ |
| | | '<span style="color:#FF4500; font-size:75px;">' + palletCode + '</span>', |
| | | '<span style="color:#FF4500; font-size:75px;">' +firstItem.taskNum ? "ç«åº" + palletCode : "èå" + palletCode + '</span>', |
| | | //'<span style="color:#FF4500; font-size:55px;">' + orderNos + '</span>', |
| | | '<span style="color:#FF4500; font-size:75px;">' + firstItem.materielCode + '</span>', |
| | | '<span style="color:#FF4500; font-size:75px;">' + machineLastChar + '</span>', |
| | |
| | | using Microsoft.AspNetCore.Components.Routing; |
| | | using Newtonsoft.Json; |
| | | using Quartz; |
| | | using SqlSugar.Extensions; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | |
| | | using WIDESEAWCS_Common.TaskEnum; |
| | | using WIDESEAWCS_Communicator; |
| | | using WIDESEAWCS_Core; |
| | | using WIDESEAWCS_Core.Helper; |
| | | using WIDESEAWCS_DTO.TaskInfo; |
| | | using WIDESEAWCS_IBasicInfoRepository; |
| | | using WIDESEAWCS_ITaskInfoRepository; |
| | |
| | | R_ConveyorLineCPInfo conveyorLineInfoRead = device.Communicator.ReadCustomer<R_ConveyorLineCPInfo>(deviceProRead.DeviceProAddress); |
| | | if (conveyorLineInfoRead != null) |
| | | { |
| | | WriteInfo(item.StationName, $"ç¶æ{conveyorLineInfoRead}"); |
| | | WriteInfo(item.StationName, $"ç¶æ{conveyorLineInfoRead.Serialize()}"); |
| | | } |
| | | if (conveyorLineInfoRead != null && conveyorLineInfoRead.Command == 4 && conveyorLineInfoRead.TaskNo > 0) |
| | | { |
| | |
| | | { |
| | | //è·åå½åèåç¼åææçº¸å·ä¿¡æ¯ |
| | | List<Dt_OutLineView> outLineViews = BaseDal.QueryData(); |
| | | //è·åå½å纸å·ä¸ªæ° |
| | | int? outLineCount = outLineViews?.Select(x => x.PalletCode).Distinct().Count(); |
| | | if (outLineViews==null || outLineViews.Count<=0 || outLineCount<=2) |
| | | { |
| | | List<Dt_OutLineView> outLineViewsAdd = outStockLockInfos.Select(x => _mapper.Map<Dt_OutLineView>(x)).ToList(); |
| | | BaseDal.AddData(outLineViewsAdd); |
| | | } |
| | | else |
| | | { |
| | | //è·åææ©ç纸å·ä¿¡æ¯ |
| | | string? code= outLineViews.FirstOrDefault()?.PalletCode; |
| | | List<Dt_OutLineView> outLineViewsDel = outLineViews.Where(x=>x.PalletCode==code).ToList(); |
| | | List<Dt_OutLineView> outLineViewsAdd = outStockLockInfos.Select(x => _mapper.Map<Dt_OutLineView>(x)).ToList(); |
| | | BaseDal.DeleteData(outLineViewsDel); |
| | | BaseDal.AddData(outLineViewsAdd); |
| | | } |
| | | content.OK("æå"); |
| | | } |
| | | catch (Exception ex) |
| | |
| | | }); |
| | | for (int i = 0; i < details.Count; i++) |
| | | { |
| | | //è®¢åæ°é |
| | | ////è®¢åæ°é |
| | | //if ((details.Count-1) == i) |
| | | //{ |
| | | |
| | | //} |
| | | decimal orderQuantity = details[i].XqLen; |
| | | bool assignStop = true; |
| | | while (assignStop) |
| | |
| | | } |
| | | |
| | | _outStockLockInfoService.Repository.AddData(addOutStockLockInfos); |
| | | List<Dt_OutStockLockInfo> addOutCacheInfos = addOutStockLockInfos.Where(x => x.LocationCode.Contains("èåç¼ååº")).ToList(); |
| | | List<Dt_OutLineView> outLineViewsAdd = addOutCacheInfos.Select(x => _mapper.Map<Dt_OutLineView>(x)).ToList(); |
| | | _outboundRepository.OutLineViewRepository.AddData(outLineViewsAdd); |
| | | } |
| | | List<Dt_OutStockLockInfo> updateOutStockLockInfos = outStockLockInfos.Where(x => x.Id > 0).ToList(); |
| | | if (updateOutStockLockInfos != null && updateOutStockLockInfos.Any()) |
| | |
| | | return content; |
| | | } |
| | | //è·åææçåºåºè¯¦æ
夿æ¯å¦æ»¡è¶³åºåºéå°äº5ä¸ä¸å°äº17å· |
| | | List<Dt_OutStockLockInfo> outStockLockInfos = _outboundRepository.OutStockLockInfoRepository.QueryData(x=>x.OrderType==OutOrderTypeEnum.OutSGPick.ObjToInt() && x.Status<OutLockStockStatusEnum.å
³é.ObjToInt()); |
| | | decimal sumAssignQty = outStockLockInfos.Sum(x => x.AssignQuantity); |
| | | int outCount= outStockLockInfos.Select(x=>x.PalletCode).Distinct().Count(); |
| | | if (sumAssignQty < AppSettings.Get("OutSGLength").ObjToInt() && outCount < AppSettings.Get("OutSGCount").ObjToInt()) |
| | | { |
| | | //List<Dt_OutStockLockInfo> outStockLockInfos = _outboundRepository.OutStockLockInfoRepository.QueryData(x=>x.OrderType==OutOrderTypeEnum.OutSGPick.ObjToInt() && x.Status<OutLockStockStatusEnum.å
³é.ObjToInt()); |
| | | //decimal sumAssignQty = outStockLockInfos.Sum(x => x.AssignQuantity); |
| | | //int outCount= outStockLockInfos.Select(x=>x.PalletCode).Distinct().Count(); |
| | | //if (sumAssignQty < AppSettings.Get("OutSGLength").ObjToInt() && outCount < AppSettings.Get("OutSGCount").ObjToInt()) |
| | | //{ |
| | | List<int> ints = _outboundRepository.OutSGOrderDetailRepository.QueryData(x => x.Id > outDetailId).Select(x => x.Id).ToList(); |
| | | int[] reseponse = new int[ints.Count]; |
| | | for (int i = 0; i < ints.Count; i++) |
| | |
| | | reseponse[i] = ints[i]; |
| | | } |
| | | content.Message = CreateSGOutboundTasks(reseponse).Message; |
| | | } |
| | | else |
| | | { |
| | | return content.Error($"å½ååºåºéï¼{sumAssignQty},å½ååºåºå·æ°ï¼{outCount},䏿»¡è¶³å°äº5ä¸ä¸å°äº17å·åºåºæ¡ä»¶"); |
| | | } |
| | | //} |
| | | //else |
| | | //{ |
| | | // return content.Error($"å½ååºåºéï¼{sumAssignQty},å½ååºåºå·æ°ï¼{outCount},䏿»¡è¶³å°äº5ä¸ä¸å°äº17å·åºåºæ¡ä»¶"); |
| | | //} |
| | | } |
| | | |
| | | } |
| | |
| | | stockInfoOld.StockLength = stockLength; |
| | | stockInfoOld.StockOutLength = 0; |
| | | stockInfoOld.WarehouseId = WarehouseEnum.LLDYL.ObjToInt(); |
| | | List<Dt_OutLineView> outLineViewsDel = _outboundRepository.OutLineViewRepository.QueryData(x=>x.PalletCode==stockInfoOld.PalletCode); |
| | | if (outLineViewsDel.Count>0) |
| | | { |
| | | _outboundRepository.OutLineViewRepository.DeleteData(outLineViewsDel); |
| | | } |
| | | content.OK("æå",data:stockInfoOld); |
| | | } |
| | | catch (Exception ex) |
| | |
| | | { |
| | | return content.Error($"çæä»»å¡å¤±è´¥"); |
| | | } |
| | | tasks.ForEach(x => |
| | | { |
| | | x.Grade = 99; |
| | | }); |
| | | stockInfos.ForEach(x => |
| | | { |
| | | x.StockStatus = StockStatusEmun.åºåºéå®.ObjToInt(); |
| | |
| | | } |
| | | } |
| | | #endregion |
| | | List<Dt_OutLineView> outLineViewsDel = _outboundRepository.OutLineViewRepository.QueryData(x => stockInfos.Select(x=>x.PalletCode).Contains(x.PalletCode)); |
| | | _unitOfWorkManage.BeginTran(); |
| | | _stockRepository.StockInfoRepository.UpdateData(stockInfos); |
| | | _outboundRepository.OutStockLockInfoRepository.UpdateData(outStockLockInfos); |
| | | _outboundRepository.OutSGOrderRepository.UpdateData(outSGOrders); |
| | | _outboundRepository.OutSGOrderDetailRepository.UpdateData(orderDetails); |
| | | _outboundRepository.OutLineViewRepository.DeleteData(outLineViewsDel); |
| | | _unitOfWorkManage.CommitTran(); |
| | | content.OK(ExistNoCodes.Count>0 ? string.Join(",", ExistNoCodes)+"èå坿£åºåä¸åå¨" : ""); |
| | | } |