From dda095e27b535d5748340f127c5f83c0d1324226 Mon Sep 17 00:00:00 2001
From: huangxiaoqiang <huangxiaoqiang@hnkhzn.com>
Date: 星期三, 29 十月 2025 17:30:58 +0800
Subject: [PATCH] 1

---
 项目代码/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Task/TaskController.cs |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Task/TaskController.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Task/TaskController.cs"
index 97cca29..c3cdeb3 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Task/TaskController.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Task/TaskController.cs"
@@ -23,7 +23,7 @@
     /// </summary>
     /// <param name="saveModel">浠诲姟鍙�</param>
     /// <returns>鎴愬姛鎴栧け璐�</returns>
-    [HttpGet, Route("CompleteTaskAsync"), AllowAnonymous]
+    [HttpGet,HttpPost, Route("CompleteTaskAsync"), AllowAnonymous]
     public async Task<WebResponseContent> CompleteTaskAsync(int taskNum)
     {
         return await Service.CompleteAsync(taskNum);
@@ -34,7 +34,7 @@
     /// </summary>
     /// <param name="taskNum"></param>
     /// <returns></returns>
-    [HttpPost, Route("TaskCancel"), AllowAnonymous]
+    [HttpPost, HttpGet,Route("TaskCancel"), AllowAnonymous]
     public WebResponseContent TaskCancel(int taskNum)
     {
         return Service.TaskCancel(taskNum);
@@ -44,7 +44,7 @@
     /// 鑾峰彇浠诲姟淇℃伅
     /// </summary>
     /// <returns></returns>
-    [HttpPost, Route("GetTaskInfo")]
+    [HttpPost, HttpGet, Route("GetTaskInfo")]
     public WebResponseContent GetTaskInfo()
     {
         return Service.GetTaskInfo();
@@ -55,7 +55,7 @@
     /// </summary>
     /// <param name="input">璇锋眰鏁版嵁</param>
     /// <returns></returns>
-    [HttpPost, AllowAnonymous, Route("RequestInboundTaskAsync")]
+    [HttpPost, HttpGet, AllowAnonymous, Route("RequestInboundTaskAsync")]
     [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 5 })]
     public async Task<WebResponseContent> RequestInboundTaskAsync([FromBody] RequestTaskDto input)
     {
@@ -67,7 +67,7 @@
     /// </summary>
     /// <param name="input">璇锋眰鏁版嵁</param>
     /// <returns></returns>
-    [HttpPost, AllowAnonymous, Route("RequestLocationAsync")]
+    [HttpPost, HttpGet, AllowAnonymous, Route("RequestLocationAsync")]
     [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 5 })]
     public async Task<WebResponseContent> RequestLocationAsync([FromBody] RequestTaskDto input)
     {
@@ -79,7 +79,7 @@
     /// </summary>
     /// <param name="request">璇锋眰鏁版嵁</param>
     /// <returns></returns>
-    [HttpPost, AllowAnonymous, Route("RequestOutboundTaskAsync")]
+    [HttpPost, HttpGet, AllowAnonymous, Route("RequestOutboundTaskAsync")]
     [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 5 })]
     public async Task<Dt_Task> RequestOutboundTaskAsync([FromBody] RequestTaskDto taskDto)
     {
@@ -91,7 +91,7 @@
     /// </summary>
     /// <param name="request">璇锋眰鏁版嵁</param>
     /// <returns></returns>
-    [HttpPost, AllowAnonymous, Route("OutBoundTaskAsync")]
+    [HttpPost, HttpGet, AllowAnonymous, Route("OutBoundTaskAsync")]
     [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 2 })]
     public Task<WebResponseContent> OutBoundTaskAsync(string palletCode)
     {
@@ -152,8 +152,8 @@
 
     [HttpPost, AllowAnonymous, Route("SendERPTaskCompletion")]
     [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 5 })]
-    public Task<WebResponseContent> ERPAllocate(string palletCode)
+    public Task<WebResponseContent> ERPAllocate(DtStockInfo stockInfo)
     {
-        return Service.ERPAllocate(palletCode);
+        return Service.ERPAllocate(stockInfo);
     }
 }
\ No newline at end of file

--
Gitblit v1.9.3