From 4b483d9d06bead231b88ca212fd799196668a057 Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期二, 28 四月 2026 22:58:27 +0800
Subject: [PATCH] fix(任务服务): 修复出库任务选择逻辑和货位分配问题
---
Code/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Stock/StockController.cs | 20 +++++++++++++++-----
1 files changed, 15 insertions(+), 5 deletions(-)
diff --git a/Code/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Stock/StockController.cs b/Code/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Stock/StockController.cs
index 6fecdfb..52d41df 100644
--- a/Code/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Stock/StockController.cs
+++ b/Code/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Stock/StockController.cs
@@ -1,5 +1,4 @@
锘縰sing Microsoft.AspNetCore.Authorization;
-using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using WIDESEA_Core;
using WIDESEA_Core.BaseController;
@@ -25,8 +24,8 @@
/// </summary>
/// <param name="stock"></param>
/// <returns></returns>
- [HttpGet,HttpPost,Route("GroupPalletAsync"), AllowAnonymous]
- public async Task<WebResponseContent> GroupPallet([FromBody]StockDTO stock)
+ [HttpGet, HttpPost, Route("GroupPalletAsync"), AllowAnonymous]
+ public async Task<WebResponseContent> GroupPallet([FromBody] StockDTO stock)
{
return await Service.GroupPalletAsync(stock);
}
@@ -36,7 +35,7 @@
/// </summary>
/// <param name="stock"></param>
/// <returns></returns>
- [HttpGet, HttpPost, Route("ChangePalletAsync"),AllowAnonymous]
+ [HttpGet, HttpPost, Route("ChangePalletAsync"), AllowAnonymous]
public async Task<WebResponseContent> ChangePalletAsync([FromBody] StockDTO stock)
{
return await Service.ChangePalletAsync(stock);
@@ -85,5 +84,16 @@
{
return await Service.GroupPalletConfirmAsync(dto.PalletCode, dto.DeviceName);
}
+
+ /// <summary>
+ /// 鏍规嵁鎵樼洏鍙锋煡璇㈠簱瀛樻槑缁嗘暟閲�
+ /// </summary>
+ /// <param name="palletCode">鎵樼洏鍙�</param>
+ /// <returns>搴撳瓨鏄庣粏鏁伴噺</returns>
+ [HttpGet("GetStockDetailCount"), AllowAnonymous]
+ public async Task<WebResponseContent> GetStockDetailCount(string palletCode)
+ {
+ return await Service.GetStockDetailCountByPalletCodeAsync(palletCode);
+ }
}
-}
+}
\ No newline at end of file
--
Gitblit v1.9.3