pan
2025-12-02 550ae4989da1ce9ca874a00aec7423d252b67a27
项目代码/WMS无仓储版/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Stock/StockInfoController.cs
@@ -25,11 +25,49 @@
        /// <param name="orderId"></param>
        /// <param name="materielCode"></param>
        /// <returns></returns>
        [HttpPost, HttpGet, Route("GetStockSelectViews"),AllowAnonymous]
        [HttpPost, HttpGet, Route("GetStockSelectViews"), AllowAnonymous]
        public List<StockSelectViewDTO> GetStockSelectViews(int orderId, string materielCode)
        {
            return Service.GetStockSelectViews(orderId, materielCode);
        }
        /// <summary>
        /// 鏌ヨ璁㈠崟绔嬪簱搴撳瓨瑙嗗浘
        /// </summary>
        /// <param name="orderId"></param>
        /// <param name="materielCode"></param>
        /// <returns></returns>
        [HttpPost, HttpGet, Route("GetSelectViewDTOs"), AllowAnonymous]
        public List<StockSelectViewDTO> GetSelectViewDTOs(string orderNo, string materielCode)
        {
            try
            {
                return Service.GetSelectViewDTOs(orderNo, materielCode);
            }
            catch (Exception ex)
            {
                return new List<StockSelectViewDTO>();
            }
        }
        /// <summary>
        /// /
        /// </summary>
        /// <param name="orderNo"></param>
        /// <param name="materielCode"></param>
        /// <returns></returns>
        [HttpPost, HttpGet, Route("GetAllocateStockSelect"), AllowAnonymous]
        public List<StockSelectViewDTO> GetAllocateSelectViewDTOs(int orderId, string materielCode)
        {
            try
            {
                return Service.GetAllocateSelectViewDTOs(orderId, materielCode);
            }
            catch (Exception ex)
            {
                return new List<StockSelectViewDTO>();
            }
        }
    }
}