| | |
| | | WebResponseContent GenerateOutboundTask(int[] keys); |
| | | |
| | | WebResponseContent PalletOutboundTask(string roadwayNo, string endStation); |
| | | |
| | | WebResponseContent Bind(string qty, string point); |
| | | WebResponseContent CallMateriel(string endPoint); |
| | | |
| | | WebResponseContent MaterielCarry(string startPoint); |
| | | WebResponseContent GetTaskInfo(); |
| | | object AGVTaskFeedBack(AGVTaskFeedBackModel taskFeedBackModel); |
| | | WebResponseContent AcrossFloorCallMat(string point); |
| | | } |
| | | } |
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// è´§ä½ç»å® |
| | | /// </summary> |
| | | /// <param name="qty"></param> |
| | | /// <param name="Point"></param> |
| | | /// <returns></returns> |
| | | public WebResponseContent Bind(string qty, string point) |
| | | { |
| | | try |
| | | { |
| | | if (Repository.QueryFirst(x => x.SourceAddress == point && |
| | | x.TaskStatus < AGVTaskStatusEnum.DoneFetch.ObjToInt() || |
| | | x.TargetAddress == point) != null) |
| | | throw new Exception($"ç«ç¹ã{point}ãåå¨ä»»å¡ï¼"); |
| | | Dt_CachePoint? cachePoint = _basicService.CachePointService.Repository.QueryFirst(x => x.PointCode == point); |
| | | if (cachePoint == null) throw new Exception("æªæ¾å°ç¼åç¹!"); |
| | | if (cachePoint.AreaId != 4) throw new Exception("å½åç¼åç¹åºåæ ç»å®æé!"); |
| | | cachePoint.PointStatus = LocationStatusEnum.InStock.ObjToInt(); |
| | | cachePoint.Remark = qty; |
| | | cachePoint.Modifier = App.User.UserName; |
| | | _basicService.CachePointService.Repository.UpdateData(cachePoint); |
| | | return WebResponseContent.Instance.OK(); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return WebResponseContent.Instance.Error(ex.Message); |
| | | } |
| | | } |
| | | /// <summary> |
| | | /// éæ¾ç¼åç¹ |
| | | /// </summary> |
| | | /// <param name="point"></param> |
| | | /// <returns></returns> |
| | | public WebResponseContent AcrossFloorCallMat(string point) |
| | | { |
| | | try |
| | | { |
| | | if (Repository.QueryFirst(x => x.SourceAddress == point && |
| | | x.TaskStatus < AGVTaskStatusEnum.DoneFetch.ObjToInt() || |
| | | x.TargetAddress == point) != null) |
| | | throw new Exception($"ç«ç¹ã{point}ãåå¨ä»»å¡ï¼"); |
| | | Dt_CachePoint? cachePoint = _basicService.CachePointService.Repository.QueryFirst(x => x.PointCode == point); |
| | | if (cachePoint == null) throw new Exception("æªæ¾å°ç¼åç¹!"); |
| | | if (cachePoint.AreaId != 2 && cachePoint.AreaId != 5 && cachePoint.AreaId != 8) |
| | | throw new Exception("å½åç¼åç¹åºåæ éæ¾æé!"); |
| | | cachePoint.PointStatus = LocationStatusEnum.Free.ObjToInt(); |
| | | _basicService.CachePointService.Repository.UpdateData(cachePoint); |
| | | return WebResponseContent.Instance.OK(); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return WebResponseContent.Instance.Error(ex.Message); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 嫿 |
| | | /// </summary> |
| | | /// <param name="endPoint"></param> |
| | |
| | | { |
| | | try |
| | | { |
| | | if (Repository.QueryFirst(x => x.SourceAddress == endPoint && |
| | | x.TaskStatus < AGVTaskStatusEnum.DoneFetch.ObjToInt() || |
| | | x.TargetAddress == endPoint) != null) |
| | | throw new Exception($"ç«ç¹ã{endPoint}ãåå¨ä»»å¡ï¼"); |
| | | |
| | | Dt_CachePoint cachePoint = GetCachePointByEndPoint(endPoint); |
| | | |
| | | Dt_Task task = new Dt_Task() |
| | |
| | | |
| | | Db.Ado.BeginTran(); |
| | | var response = SendAGVTask(task, cachePoint); |
| | | if (response.Status) |
| | | if (!response.Status) |
| | | { |
| | | _unitOfWorkManage.RollbackTran(); |
| | | return WebResponseContent.Instance.Error($"{response.Message}"); |
| | |
| | | { |
| | | try |
| | | { |
| | | if (Repository.QueryFirst(x => x.SourceAddress == startPoint && |
| | | x.TaskStatus < AGVTaskStatusEnum.DoneFetch.ObjToInt() || |
| | | x.TargetAddress == startPoint) != null) |
| | | throw new Exception($"ç«ç¹ã{startPoint}ãåå¨ä»»å¡ï¼"); |
| | | |
| | | Dt_CachePoint cachePoint = GetCachePointByStartPoint(startPoint); |
| | | |
| | | Dt_Task task = new() |
| | |
| | | }; |
| | | cachePoint.PointStatus = LocationStatusEnum.Lock.ObjToInt(); |
| | | |
| | | Db.Ado.BeginTran(); |
| | | var response = SendAGVTask(task, cachePoint); |
| | | if (!response.Status) |
| | | { |
| | | _unitOfWorkManage.RollbackTran(); |
| | | return WebResponseContent.Instance.Error($"{response.Message}"); |
| | | } |
| | | _basicService.CachePointService.Repository.UpdateData(cachePoint); |
| | | Repository.AddData(task); |
| | | Db.Ado.CommitTran(); |
| | | return WebResponseContent.Instance.OK(); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | Db.Ado.RollbackTran(); |
| | | return WebResponseContent.Instance.Error(ex.Message); |
| | | } |
| | | } |
| | |
| | | using System.IO; |
| | | using WIDESEA_Model.Models; |
| | | using System; |
| | | using System.Net; |
| | | |
| | | namespace WIDESEA_WMSServer.Controllers |
| | | { |
| | |
| | | _taskService = taskService; |
| | | } |
| | | /// <summary> |
| | | /// ç»å®è´§ä½ |
| | | /// </summary> |
| | | /// <param name="qty"></param> |
| | | /// <param name="point"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("Bind"), AllowAnonymous] |
| | | public WebResponseContent Bind(string qty, string point) |
| | | { |
| | | return _taskService.Bind(qty, point); |
| | | } |
| | | /// <summary> |
| | | /// éæ¾ç¼åç¹ |
| | | /// </summary> |
| | | /// <param name="point"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("AcrossFloorCallMat"), AllowAnonymous] |
| | | public WebResponseContent AcrossFloorCallMat(string point) |
| | | { |
| | | return _taskService.AcrossFloorCallMat(point); |
| | | } |
| | | /// <summary> |
| | | /// 嫿 |
| | | /// </summary> |
| | | /// <param name="endPoint"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("CallMateriel"), AllowAnonymous] |
| | | public WebResponseContent CallMateriel([FromBody] string endPoint) |
| | | public WebResponseContent CallMateriel(string endPoint) |
| | | { |
| | | return _taskService.CallMateriel(endPoint); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ¬è¿ |
| | | /// </summary> |
| | | /// <param name="startPoint"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("MaterielCarry"), AllowAnonymous] |
| | | public WebResponseContent MaterielCarry([FromBody] string startPoint) |
| | | public WebResponseContent MaterielCarry(string startPoint) |
| | | { |
| | | return _taskService.MaterielCarry(startPoint); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// ç»ç |
| | | /// </summary> |
| | | /// <param name="materielGroupDTO"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("MaterielGroup")] |
| | | public WebResponseContent MaterielGroup([FromBody] MaterielGroupDTO materielGroupDTO) |
| | | { |
| | | return _inboundService.InbounOrderService.MaterielGroup(materielGroupDTO); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ¥è¯¢å
¥åºå |
| | | /// </summary> |
| | | /// <param name="pageNo"></param> |
| | | /// <param name="orderNo"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("QueryOrderInfo")] |
| | | public WebResponseContent QueryOrderInfo(int pageNo, string orderNo) |
| | | { |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 2025/6/8 20:26:51.713 |
| | | 请æ±å¼å¸¸ |
| | | {"è¯·æ±æ¥æ":{"task_id":"68","task_name":null,"priority":"0","site_value_type":1,"src_pos":"ZH013M007","dst_pos":"ZH012M001","car_id":-1,"src_level":4,"dst_level":0,"task_type":"1132","former_id":null},"æ¥æ¶æ¥æ":"","é误":"The operation has timed out."} |
| | | ------------------------------- |
| | | |
| | |
| | | // let baseUrl = 'http://10.1.105.155:9995' |
| | | // let baseUrl = 'http://10.1.211.101:9004' |
| | | // let baseUrl = 'http://127.0.0.1:9995' |
| | | let baseUrl = 'http://192.168.100.14:9290' |
| | | let baseUrl = 'http://127.0.0.1:9290' |
| | | //let baseUrl = 'http://192.168.100.14:9290' |
| | | // let baseUrl = 'http://192.168.43.71:9995' |
| | | // let baseUrl = 'http://47.112.196.253:8881' |
| | | |
| | |
| | | </uni-forms-item> |
| | | </uni-forms> |
| | | <button @click="submit" type="primary" size="default" style="margin-top: 2%;">éæ¾</button> |
| | | <u-toast ref="uToast" /> |
| | | <u-toast ref="BindluToast" /> |
| | | </view> |
| | | </view> |
| | | <view v-show="current === 1"> |
| | |
| | | istrue: false, |
| | | range: [], |
| | | value: "", |
| | | items: ['éæ¾ç¼åä½', 'æå
'], |
| | | items: ['éæ¾ç¼åä½'], //, 'æå
' |
| | | current: 0 |
| | | } |
| | | }, |
| | |
| | | } |
| | | }, |
| | | submit() { |
| | | if (this.value.length <= 0) { |
| | | this.$refs.uToast.show({ |
| | | if (this.value == "") { |
| | | this.$refs.BindluToast.show({ |
| | | title: "请è¾å
¥ç¼åç¹", |
| | | type: "error" |
| | | }) |
| | | return; |
| | | } |
| | | var param = { |
| | | MainData: { |
| | | matCode: this.value, |
| | | endPoint: this.value |
| | | } |
| | | } |
| | | this.$u.post('/api/AcrossFloorCarry/AcrossFloorCallMat', param).then(res => { |
| | | // var param = { |
| | | // MainData: { |
| | | // matCode: this.value, |
| | | // endPoint: this.value |
| | | // } |
| | | // } |
| | | this.$u.post('/api/PDA/AcrossFloorCallMat?Point=' + this.value, {}).then(res => { |
| | | if (res.status) { |
| | | this.$refs.uToast.show({ |
| | | this.$refs.BindluToast.show({ |
| | | title: "éæ¾æå", |
| | | type: "success" |
| | | }) |
| | | this.carNo = ""; |
| | | // this.carNo = ""; |
| | | this.value = ""; |
| | | this.locationNo = ""; |
| | | // this.locationNo = ""; |
| | | this.istrue = false; |
| | | } else { |
| | | this.$refs.uToast.show({ |
| | | this.$refs.BindluToast.show({ |
| | | title: res.message, |
| | | type: "error" |
| | | }) |
| | |
| | | <view v-show="current === 0"> |
| | | <view style="padding: 5%;"> |
| | | <uni-forms label-width="120"> |
| | | <uni-forms-item label="æçç¼ç "> |
| | | <uni-easyinput type="text" :focus="!istrue" @input="carNoInputChange" v-model="PalletCode" |
| | | placeholder="请è¾å
¥æçç¼ç " ref='midInput' /> |
| | | <uni-forms-item label="æçæ°é"> |
| | | <uni-easyinput type="text" :focus="istrue" @input="carNoInputChange" v-model="PalletCode" |
| | | placeholder="请è¾å
¥æçæ°é" ref='midInput' /> |
| | | </uni-forms-item> |
| | | <uni-forms-item label="ç»å®è´§ä½"> |
| | | <uni-easyinput type="text" :focus="!istrue" @input="carNoInputChange" v-model="Point" |
| | |
| | | } |
| | | }, |
| | | Bind() { |
| | | if (this.PalletCode.length <= 0&&this.Point.length) { |
| | | if (this.PalletCode.length == "" || this.Point.length == "") { |
| | | this.$refs.BindluToast.show({ |
| | | title: "æçç¼ç è·ç»å®è´§ä½ä¸è½ä¸ºç©º", |
| | | title: "æçæ°éè·ç»å®è´§ä½ä¸è½ä¸ºç©º", |
| | | type: "error" |
| | | }) |
| | | return; |
| | | } |
| | | var param = { |
| | | MainData: { |
| | | "PalletCode": this.PalletCode, |
| | | "Point":this.Point |
| | | }, |
| | | } |
| | | this.$u.post('/api/PDA/CallMateriel', param).then(res => { |
| | | // var param = { |
| | | // MainData: { |
| | | // "PalletCode": this.PalletCode, |
| | | // "Point": this.Point |
| | | // }, |
| | | // } |
| | | this.$u.post('/api/PDA/Bind?qty=' + this.PalletCode + '&point=' + this.Point, {}).then(res => { |
| | | if (res.status) { |
| | | this.$refs.uToast.show({ |
| | | title: "å¼å«Agvæ¬è¿æå", |
| | | this.$refs.BindluToast.show({ |
| | | title: "ç»å®æå", |
| | | type: "success" |
| | | }) |
| | | this.EndAddress = ""; |
| | | this.Point = ""; |
| | | this.PalletCode = ""; |
| | | this.istrue = false; |
| | | } else { |
| | | this.$refs.BindluToast.show({ |
| | |
| | | }) |
| | | }, |
| | | CallMateriel() { |
| | | if (this.EndAddress.length <= 0) { |
| | | if (this.EndAddress == "") { |
| | | this.$refs.CallMaterieluToast.show({ |
| | | title: "请è¾å
¥ç»ç¹", |
| | | type: "error" |
| | | }) |
| | | return; |
| | | } |
| | | var param = { |
| | | MainData: { |
| | | "endPoint": this.EndAddress |
| | | }, |
| | | } |
| | | this.$u.post('/api/PDA/CallMateriel', param).then(res => { |
| | | // var param = { |
| | | // MainData: { |
| | | // "endPoint": this.EndAddress |
| | | // }, |
| | | // } |
| | | this.$u.post('/api/PDA/CallMateriel?endPoint=' + this.EndAddress, {}).then(res => { |
| | | if (res.status) { |
| | | this.$refs.uToast.show({ |
| | | title: "å¼å«Agvæ¬è¿æå", |
| | | this.$refs.CallMaterieluToast.show({ |
| | | title: "嫿æå", |
| | | type: "success" |
| | | }) |
| | | this.EndAddress = ""; |
| | |
| | | }) |
| | | }, |
| | | MaterielCarry() { |
| | | if (this.StartAddress.length <= 0) { |
| | | if (this.StartAddress == "") { |
| | | this.$refs.MaterielCarryuToast.show({ |
| | | title: "请è¾å
¥èµ·ç¹", |
| | | type: "error" |
| | | }) |
| | | return; |
| | | } |
| | | var param = { |
| | | MainData: { |
| | | "startPoint": this.StartAddress |
| | | }, |
| | | } |
| | | this.$u.post('/api/PDA/MaterielCarry', param).then(res => { |
| | | // var param = { |
| | | // MainData: { |
| | | // "startPoint": this.StartAddress |
| | | // }, |
| | | // } |
| | | this.$u.post('/api/PDA/MaterielCarry?startPoint=' + this.StartAddress, {}).then(res => { |
| | | if (res.status) { |
| | | this.$refs.uToast.show({ |
| | | this.$refs.MaterielCarryuToast.show({ |
| | | title: "å¼å«Agvæ¬è¿æå", |
| | | type: "success" |
| | | }) |