| | |
| | | sortName: "AreaCode" |
| | | }); |
| | | const editFormFields = ref({ |
| | | // "toArea": "", |
| | | // "fromArea": "", |
| | | // "barcodeType": "", |
| | | "toArea": "", |
| | | "fromArea": "", |
| | | "barcodeType": "", |
| | | "productLine": "", |
| | | "inLineNum": "", |
| | | "cacheNum":"" |
| | | }); |
| | | const editFormOptions = ref([ |
| | | // [ |
| | | // { "title": "ç®æ åºåº", "field": "toArea", type: "text" }, |
| | | // { "title": "æ¥æºåºåº", "field": "fromArea", type: "text" }, |
| | | // { "title": "æçç±»å", "field": "barcodeType", type: "text" }, |
| | | // ], |
| | | [ |
| | | { "title": "ç®æ åºåº", "field": "toArea", type: "text" }, |
| | | { "title": "æ¥æºåºåº", "field": "fromArea", type: "text" }, |
| | | { "title": "æçç±»å", "field": "barcodeType", type: "text" }, |
| | | ], |
| | | [ |
| | | { "title": "æå±äº§çº¿", "field": "productLine", type: "text" }, |
| | | { "title": "å¨éæ°é", "field": "inLineNum", type: "text" }, |
| | |
| | | ]); |
| | | const searchFormFields = ref({}); |
| | | const searchFormOptions = ref([ |
| | | // [ |
| | | // { "title": "ç®æ åºåº", "field": "toArea", type: "text" }, |
| | | // { "title": "æ¥æºåºåº", "field": "fromArea", type: "text" }, |
| | | // { "title": "æçç±»å", "field": "barcodeType", type: "text" }, |
| | | // ], |
| | | [ |
| | | { "title": "ç®æ åºåº", "field": "toArea", type: "text" }, |
| | | { "title": "æ¥æºåºåº", "field": "fromArea", type: "text" }, |
| | | { "title": "æçç±»å", "field": "barcodeType", type: "text" }, |
| | | ], |
| | | [ |
| | | { "title": "æå±äº§çº¿", "field": "productLine", type: "text" }, |
| | | { "title": "å¨éæ°é", "field": "inLineNum", type: "text" }, |
| | |
| | | ] |
| | | ]); |
| | | const columns = ref([{ field: 'ID', title: '主é®', type: 'int', sort: true, hidden: true, width: 110, readonly: true, require: true, align: 'left' }, |
| | | //{ field: 'toArea', title: 'ç®æ åºåº', type: 'string', sort: true, width: 110, require: true, align: 'left', sort: true }, |
| | | //{ field: 'fromArea', title: 'æ¥æºåºåº', type: 'string', sort: true, width: 110, align: 'left' }, |
| | | //{ field: 'barcodeType', title: 'æçç±»å', type: 'string', sort: true, width: 110, align: 'left' }, |
| | | { field: 'productLine', title: 'æå±äº§çº¿', type: 'string', sort: true, width: 110, align: 'left',}, |
| | | { field: 'toArea', title: 'ç®æ åºåº', type: 'string', sort: true, width: 110, require: true, align: 'left', sort: true }, |
| | | { field: 'fromArea', title: 'æ¥æºåºåº', type: 'string', sort: true, width: 110, align: 'left' }, |
| | | { field: 'barcodeType', title: 'æçç±»å', type: 'string', sort: true, width: 110, align: 'left' }, |
| | | { field: 'productLine', title: 'æå±äº§çº¿', type: 'string', sort: true, width: 110, align: 'left',bind: { key: "ProductionLine", data: [] } }, |
| | | { field: 'inLineNum', title: 'å¨éæ°é', type: 'int', sort: true, width: 110, align: 'left' }, |
| | | { field: 'cacheNum', title: 'å¯ç¼åæ°é', type: 'int', sort: true, width: 100, align: 'left' }, |
| | | { field: 'creater', title: 'å建人', type: 'string', sort: true, width: 110, align: 'left' }, |
| | |
| | | title: "产线", |
| | | type: "string", |
| | | width: 70, |
| | | align: "left", |
| | | align: "left", |
| | | bind: { key: "ProductionLine", data: [] } |
| | | }, |
| | | { |
| | | field: "exceptionMessage", |
| | |
| | | type: "string", |
| | | width: 70, |
| | | align: "left", |
| | | bind: { key: "ProductionLine", data: [] } |
| | | }, |
| | | { |
| | | field: "exceptionMessage", |
| | |
| | | { |
| | | return content.Error("å½åæçåå¨ä»»å¡"); |
| | | } |
| | | |
| | | var Station = await _stationManagerRepository.QueryFirstAsync(x => x.stationType == 6 && x.productLine == stationManager.productLine && x.stationArea == stationManager.stationArea); |
| | | var tasks= await BaseDal.QueryFirstAsync(x => x.TaskType == (int)TaskOutboundTypeEnum.InToOut && x.TargetAddress == stationManager.stationLocation && x.CurrentAddress == Station.stationChildCode); |
| | | if(tasks!=null) |
| | | { |
| | | ConsoleHelper.WriteErrorLine($"ã{stationManager.stationChildCode}ãå·²åå¨ç´æ¥åºåºä»»å¡ä»»å¡"); |
| | | return content.Error($"ã{stationManager.stationChildCode}ãå·²åå¨ç´æ¥åºåºä»»å¡ä»»å¡"); |
| | | } |
| | | if (stationManager.stationType == 7) |
| | | { |
| | | var Station = await _stationManagerRepository.QueryFirstAsync(x => x.stationType == 6 && x.productLine == stationManager.productLine && x.stationArea == stationManager.stationArea); |
| | | var runTask = await BaseDal.QueryFirstAsync(x => x.SourceAddress == Station.stationChildCode && x.TaskState == (int)TaskInStatusEnum.InNew && x.TaskType == (int)TaskInboundTypeEnum.InTray); |
| | | |
| | | var runTask = await BaseDal.QueryFirstAsync(x => x.CurrentAddress == Station.stationChildCode && x.TaskState == (int)TaskInStatusEnum.Line_InFinish && x.TaskType == (int)TaskInboundTypeEnum.InTray); |
| | | if (runTask != null) |
| | | { |
| | | runTask.TargetAddress = stationManager.stationLocation; |
| | | runTask.NextAddress = stationManager.stationChildCode; |
| | | runTask.Grade = 3; |
| | | runTask.TaskType = (int)TaskOutboundTypeEnum.InToOut; |
| | | runTask.TaskState = (int)TaskOutStatusEnum.OutNew; |
| | | |
| | | var config1 = _sys_ConfigService.GetConfigsByCategory(CateGoryConst.CONFIG_SYS_IPAddress); |
| | | var wmsBase1 = config1.FirstOrDefault(x => x.ConfigKey == SysConfigKeyConst.WMSIP_BASE)?.ConfigValue; |
| | |
| | | } |
| | | var wmsIpAddrss1 = wmsBase1 + requestTask1; |
| | | |
| | | var result1 = await HttpHelper.PostAsync(wmsIpAddrss1, new { palletCode = runTask.PalletCode, EquiCodeMOM = stationManager.stationEquipMOM, Roadways = stationManager.Roadway, area = stationManager.stationArea, Position = stationManager.stationChildCode }.ToJsonString()); |
| | | var result1 = await HttpHelper.PostAsync(wmsIpAddrss1, new { palletCode = runTask.PalletCode, EquiCodeMOM = stationManager.stationEquipMOM, Roadways = stationManager.Roadway, area = stationManager.stationArea, Position = Station.stationChildCode }.ToJsonString()); |
| | | content = JsonConvert.DeserializeObject<WebResponseContent>(result1); |
| | | if (content.Status) |
| | | { |
| | | await BaseDal.UpdateDataAsync(runTask); |
| | | ConsoleHelper.WriteSuccessLine($"ã{runTask.PalletCode}ç´æ¥åºåºè³äºå°ã"); |
| | | return content.OK("æå"); |
| | | } |
| | | else |
| | | ConsoleHelper.WriteErrorLine(content.Message); |
| | | } |
| | | else |
| | | ConsoleHelper.WriteErrorLine("æªæ¾å°ç©ºæçå
¥åºä»»å¡"); |
| | | ConsoleHelper.WriteErrorLine($"ã{Station.stationChildCode}ãæªæ¾å°ç©ºæçå
¥åºä»»å¡"); |
| | | } |
| | | |
| | | var config = _sys_ConfigService.GetConfigsByCategory(CateGoryConst.CONFIG_SYS_IPAddress); |
| | |
| | | //èªå®ä¹æé® |
| | | customOpen(row) { |
| | | this.locationCode = row.locationCode; |
| | | this.locationId = row.id; |
| | | this.model = true; |
| | | this.$nextTick(() => { |
| | | this.$refs.table.load(null, true); |
| | |
| | | loadBefore(params, callBack) {//è°ç¨åå°æ¥å£åå¤ç |
| | | //设置æ¥è¯¢æ¡ä»¶åæ° |
| | | params.wheres.push({ |
| | | name: "locationCode", |
| | | value: this.locationCode, |
| | | displayType: "like"//æ¨¡ç³æ¥è¯¢ |
| | | name: "locationId", |
| | | value: this.locationId, |
| | | displayType: "text"//æ¨¡ç³æ¥è¯¢ |
| | | }) |
| | | |
| | | //ä¹å¯ä»¥ç»value设置å¼ï¼åå°èªå·±è§£æ |
| | |
| | | { field: 'isFull', title: 'æ¯å¦æ»¡ç', type: 'bool', width: 110, align: 'left' }, |
| | | // { field: 'state', title: 'åºåç¶æ', type: 'int', width: 110, align: 'left', bind: { key: "StockState", data: [] } }, |
| | | { field: 'remark', title: '夿³¨', type: 'string', width: 120, align: 'left' }, |
| | | { field: 'productionLine', title: '产线', type: 'string', width: 70, align: 'left' }, |
| | | { field: 'productionLine', title: '产线', type: 'string', width: 70, align: 'left' , bind: { key: "ProductionLine", data: [] } }, |
| | | { field: 'createDate', title: 'å建æ¶é´', type: 'int', sort: true, width: 100, align: 'left' }, |
| | | ]); |
| | | |
| | |
| | | { field: 'nextAddress', title: 'ä¸ä¸ä½ç½®', type: 'string', width: 110, align: 'left' }, |
| | | { field: 'targetAddress', title: 'ç®æ ä½ç½®', type: 'string', width: 110, align: 'left' }, |
| | | { field: 'grade', title: 'ä¼å
级', type: 'int', width: 60, align: 'left' }, |
| | | { field: 'productionLine', title: '产线', type: 'string', width: 70, align: 'left' }, |
| | | { field: 'productionLine', title: '产线', type: 'string', width: 70, align: 'left', bind: { key: "ProductionLine", data: [] } }, |
| | | { field: 'processCode', title: 'å·¥åº', type: 'string', width: 90, align: 'left' }, |
| | | { field: 'dispatchertime', title: 'ä»»å¡ä¸åæ¶é´', type: 'datetime', width: 150, align: 'left', sort: true }, |
| | | { field: 'remark', title: '夿³¨', type: 'string', width: 110, align: 'left',hidden: true, }, |
| | |
| | | { field: 'nextAddress', title: 'ä¸ä¸ä½ç½®', type: 'string', width: 110, align: 'left' }, |
| | | { field: 'targetAddress', title: 'ç®æ ä½ç½®', type: 'string', width: 110, align: 'left' }, |
| | | { field: 'grade', title: 'ä¼å
级', type: 'int', width: 60, align: 'left' }, |
| | | { field: 'productionLine', title: '产线', type: 'string', width: 70, align: 'left' }, |
| | | { field: 'productionLine', title: '产线', type: 'string', width: 70, align: 'left', bind: { key: "ProductionLine", data: [] } }, |
| | | { field: 'processCode', title: 'å·¥åº', type: 'string', width: 90, align: 'left' }, |
| | | { field: 'dispatchertime', title: 'ä»»å¡ä¸åæ¶é´', type: 'datetime', width: 150, align: 'left', sort: true }, |
| | | { field: 'operateType', title: 'æä½ç±»å', type: 'string', width: 110, align: 'left', bind: { key: "operateType", data: [] }}, |
| | |
| | | CreateDate = DateTime.Now, |
| | | Creater = "HK", |
| | | CurrentAddress = result.LocationID, |
| | | Grade = 1, |
| | | Grade = result.IsNG == 1 ? 1 : 2, |
| | | Dispatchertime = DateTime.Now, |
| | | PalletCode = result.PalletBarcode, |
| | | Roadway = location.RoadwayNo, |
| | |
| | | WMSTaskDTO taskDTO = new WMSTaskDTO() |
| | | { |
| | | TaskNum = task.TaskNum.Value, |
| | | Grade = 1, |
| | | Grade = result.IsNG == 1 ? 1 : 2, |
| | | PalletCode = task.PalletCode, |
| | | RoadWay = task.Roadway, |
| | | SourceAddress = task.SourceAddress, |
| | |
| | | var toStation = await _stationManagerRepository.QueryFirstAsync(x => x.stationType == 7 && x.productLine == fromStation.productLine && x.stationArea == fromStation.stationArea); |
| | | if (!toStation.IsNullOrEmpty()) |
| | | { |
| | | var location = await _locationRepository.QueryFirstAsync(x => x.LocationCode == task.TargetAddress && x.AreaId == int.Parse(fromStation.stationArea)); |
| | | task.TargetAddress = toStation.stationLocation; |
| | | task.NextAddress = toStation.stationChildCode; |
| | | task.Grade = 3; |
| | | task.TaskType = (int)TaskOutboundTypeEnum.InToOut; |
| | | task.TaskState = (int)TaskOutStatusEnum.OutNew; |
| | | |
| | | var location = await _locationRepository.QueryFirstAsync(x => x.LocationCode == task.TargetAddress); |
| | | location.LocationStatus = (int)LocationEnum.Free; |
| | | |
| | | await _locationRepository.UpdateDataAsync(location); |
| | |
| | | { |
| | | throw new Exception("æªæ¾å°å
¥åºç«å°é
ç½®"); |
| | | } |
| | | //List<string> strings; |
| | | //if (areaIn == "GWSC1") |
| | | //{ |
| | | // strings = new List<string> |
| | | // { |
| | | // (boxing.ProductionLine != null && boxing.ProductionLine == "ZJ-7") ? "GWSC1" : "GWSC2" |
| | | // }; |
| | | //} |
| | | //else |
| | | //{ |
| | | // strings = stationManagers.Roadway.Split(',').ToList(); |
| | | //} |
| | | |
| | | List<string> strings = stationManagers.Roadway.Split(',').ToList(); |
| | | |
| | | var resultContent = await CreateNewTask(input, result.ProductionLine, boxing.ProcessCode, strings); |