From b513ce3a4527e998da66c6f179a279472c7262a8 Mon Sep 17 00:00:00 2001
From: wangxinhui <wangxinhui@hnkhzn.com>
Date: 星期二, 18 十一月 2025 10:59:46 +0800
Subject: [PATCH] 代码更新优化
---
项目代码/WMS/WMSServices/WIDESEA_WMSServer/Controllers/TaskInfo/TaskController.cs | 118 ++++++++++++++++++++++++++++++++++++++++-------------------
1 files changed, 80 insertions(+), 38 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServices/WIDESEA_WMSServer/Controllers/TaskInfo/TaskController.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServices/WIDESEA_WMSServer/Controllers/TaskInfo/TaskController.cs"
index 10b936b..6b27ca9 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServices/WIDESEA_WMSServer/Controllers/TaskInfo/TaskController.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServices/WIDESEA_WMSServer/Controllers/TaskInfo/TaskController.cs"
@@ -1,9 +1,13 @@
锘縰sing Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
+using System.Diagnostics.CodeAnalysis;
using WIDESEA_Common.CommonEnum;
+using WIDESEA_Common.MaterielEnum;
+using WIDESEA_Common.OrderEnum;
using WIDESEA_Core;
using WIDESEA_Core.BaseController;
+using WIDESEA_DTO.Outbound;
using WIDESEA_DTO.Stock;
using WIDESEA_DTO.Task;
using WIDESEA_ITaskInfoService;
@@ -47,13 +51,24 @@
}
/// <summary>
- /// 鎴愬搧绌烘鍥炲簱
+ /// 鍚慦MS鐢宠鍑哄簱AGV缁堢偣
+ /// </summary>
+ /// <param name="taskNum">浠诲姟鍙�</param>
+ /// <returns></returns>
+ [HttpPost, HttpGet, Route("AssignOutTargetAddress"), AllowAnonymous]
+ public WebResponseContent AssignOutTargetAddress(int taskNum)
+ {
+ return Service.AssignOutTargetAddress(taskNum);
+ }
+
+ /// <summary>
+ /// 鎴愬搧绌烘墭鍥炲簱
/// </summary>
/// <param name="barCode"></param>
/// <param name="startPoint"></param>
/// <returns></returns>
[HttpPost, HttpGet, Route("EmptyBackTask"), AllowAnonymous]
- public WebResponseContent EmptyBackTask(string barCode, string startPoint)
+ public WebResponseContent EmptyBackTask(string barCode, string startPoint,int target)
{
return Service.EmptyBackTask(barCode, startPoint);
}
@@ -63,10 +78,21 @@
/// </summary>
/// <returns></returns>
[HttpPost, HttpGet, Route("InboundFLTask"), AllowAnonymous]
- public WebResponseContent InboundFLOrCPTask(string barCode, string startPoint, string matCode, int matCount)
+ public WebResponseContent InboundFLOrCPTask(string barCode, string startPoint, string matCode, int matCount, int oneCount)
{
- return Service.InboundFLOrCPTask(barCode, startPoint, matCode, matCount);
+ return Service.InboundFLOrCPTask(barCode, startPoint, matCode, matCount,oneCount);
}
+
+ /// <summary>
+ /// 杈呮枡(鎴愬搧)閲囪喘/鏈熷垵鍏ュ簱
+ /// </summary>
+ /// <returns></returns>
+ [HttpPost, HttpGet, Route("InboundOrderInTask"), AllowAnonymous]
+ public WebResponseContent InboundOrderInTask([NotNull] string bindCode, [NotNull] string barCode, [NotNull] string startPoint, int orderType = 0)
+ {
+ return Service.InboundOrderInTask(bindCode, barCode, startPoint, orderType);
+ }
+
/// <summary>
/// 鍒ゆ柇鏄惁闇�瑕佺Щ搴�
@@ -74,11 +100,11 @@
/// <param name="taskNum">浠诲姟鍙�</param>
/// <param name="locationCode"></param>
/// <returns></returns>
- [HttpPost, HttpGet, Route("IsRelocation"), AllowAnonymous]
- public WebResponseContent IsRelocation(int taskNum, string locationCode)
- {
- return Service.IsRelocation(taskNum, locationCode);
- }
+ //[HttpPost, HttpGet, Route("IsRelocation"), AllowAnonymous]
+ //public WebResponseContent IsRelocation(int taskNum, string locationCode)
+ //{
+ // return Service.IsRelocation(taskNum, locationCode);
+ //}
/// <summary>
/// 浠诲姟瀹屾垚
@@ -114,6 +140,17 @@
}
/// <summary>
+ /// 鍒涘缓鐢熺鎵嬪姩鍑哄簱
+ /// </summary>
+ /// <param name="ids"></param>
+ /// <returns></returns>
+ [HttpPost, Route("CreateSGManualTasks"), AllowAnonymous]
+ public WebResponseContent CreateSGManualTasks([FromBody] List<int> ids)
+ {
+ return Service.CreateSGManualTasks(ids);
+ }
+
+ /// <summary>
/// 淇敼浠诲姟鐘舵��
/// </summary>
/// <param name="task"></param>
@@ -142,9 +179,20 @@
/// <param name="palletCode">鏉$爜</param>
/// <returns></returns>
[HttpPost, HttpGet, Route("YLPurchaseBoxing"), AllowAnonymous]
- public WebResponseContent YLPurchaseBoxing(string palletCode)
+ public WebResponseContent YLPurchaseBoxing(string palletCode,decimal weight=0,decimal thickness = 0, decimal wide = 0, string stationCode = "")
{
- return Service.YLPurchaseBoxing(palletCode);
+ return Service.YLPurchaseBoxing(palletCode,weight,thickness,wide,stationCode);
+ }
+
+ /// <summary>
+ /// 鍘熸枡閲囪喘缁戝畾RFID
+ /// </summary>
+ /// <param name="palletCode">绾稿嵎鏉$爜</param>
+ /// <returns></returns>
+ [HttpPost, HttpGet, Route("PurchaseBoxing"), AllowAnonymous]
+ public WebResponseContent PurchaseBoxing(string palletCode, int orderType=0)
+ {
+ return Service.PurchaseBoxing(palletCode, orderType);
}
/// <summary>
@@ -166,37 +214,40 @@
/// <summary>
/// 鎴愬搧鍑哄簱浠诲姟璇锋眰
/// <param name="targetId">
- /// 1 鏈堝彴鍖�<br/>
- /// 2 鍏ュ簱鍖�<br/>
- /// 3 缁囧竷鍖�<br/>
- /// 4 娣嬭啘鍖�<br/>
- /// 5 鏆傚瓨鍖�<br/>
- /// 6 鍗板埛鍖�<br/>
- /// 7 鍐插垏鍖�<br/>
- /// 8 鍘熸枡鍖�<br/>
- /// 9 绾歌鍖�<br/>
- /// 10 甯冭鍖�<br/>
- /// 11 绾告澂鍖�<br/>
- /// 12 闆惧寲鍖�<br/>
+ ///涓�妤兼湀鍙扮爜澶� = 1,
+ ///涓�妤兼棤绾虹粐甯� = 2,
+ ///涓�妤兼棤绾烘穻鑶� = 3,
+ ///涓�妤兼棤绾虹紦瀛� = 4,
+ ///涓�妤肩焊寮犳穻鑶� = 5,
+ ///涓�妤煎嵃鍒� = 6,
+ ///涓�妤煎垎鍒� = 7,
+ ///涓�妤兼ā鍒� = 8,
+ ///涓�妤煎啿鍒� = 9,
+ ///涓�妤煎師鏂� = 10,
+ ///涓�妤兼垚鍝� = 11,
+ ///浜屾ゼ鍘熸枡 = 12,
+ ///浜屾ゼ鎴愬搧 = 13,
+ ///浜屾ゼ鏃犵汉甯冭 = 14,
+ ///浜屾ゼ绾歌 = 15,
+ ///浜屾ゼ绾告澂 = 16,
+ ///浜屾ゼ闆惧寲 = 17
/// </param>
/// </summary>
/// <returns></returns>
[HttpPost, HttpGet, Route("RequestCPWMSTaskOut"), AllowAnonymous]
- public WebResponseContent RequestCPWMSTaskOut(string materialCode,int Count, int targetId)
+ public WebResponseContent RequestCPWMSTaskOut(string materialCode,int outCount, string targetId)
{
- return Service.RequestCPWMSTaskOut(materialCode, Count, targetId);
+ return Service.RequestCPWMSTaskOut(materialCode, outCount, targetId);
}
/// <summary>
/// 鍘熸枡鍑哄簱浠诲姟
/// </summary>
- /// <param name="materielCode">鐗╂枡浠g爜</param>
- /// <param name="materielWide">鐗╂枡骞呭</param>
/// <returns></returns>
[HttpPost, HttpGet, Route("RequestYLWMSTaskOut"), AllowAnonymous]
- public WebResponseContent RequestYLWMSTaskOut(string materielCode,int materielWide, int count,string address="")
+ public WebResponseContent RequestYLWMSTaskOut([FromBody] YLWMSTaskOutDTO yLWMSTaskOutDTO)
{
- return Service.RequestYLWMSTaskOut(materielCode, materielWide, count, address);
+ return Service.RequestYLWMSTaskOut(yLWMSTaskOutDTO);
}
/// <summary>
@@ -248,15 +299,6 @@
public WebResponseContent PrintInbound([FromBody] SaveModel saveModel)
{
return Service.PrintInbound(saveModel);
- }
-
- /// <summary>
- /// 鍒涘缓鍘熺焊鐢熶骇鎺掔▼鍑哄簱浠诲姟
- /// </summary>
- [HttpPost, HttpGet, Route("CreateBSTOutboundTasks"), AllowAnonymous]
- public WebResponseContent CreateBSTOutboundTasks([FromBody] int[] keys)
- {
- return Service.CreateBSTOutboundTasks(keys);
}
}
}
--
Gitblit v1.9.3