仓库管理:库位:update
This commit is contained in:
@@ -26,9 +26,9 @@ namespace ZR.Admin.WebApi.Controllers.mes.wms
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpGet("production_warehouse_info")]
|
||||
public IActionResult Queryproduction_warehouse_info(string shelf = "", int layer = 0, int pageNum = 0, int pageSize = 0)
|
||||
public IActionResult Queryproduction_warehouse_info(string shelf , int? layer , int pageNum = 0, int pageSize = 0)
|
||||
{
|
||||
(List<WmInfo>, int) data = wm_locationInfoService.Getwminfo_product(shelf, layer, pageNum, pageSize);
|
||||
(List<WmInfo>, int) data = wm_locationInfoService.Getwminfo_product(shelf, layer??0, pageNum, pageSize);
|
||||
return ToResponse(new ApiResult(200, "success", data));
|
||||
}
|
||||
|
||||
|
||||
@@ -95,7 +95,7 @@ namespace ZR.Admin.WebApi.Controllers
|
||||
[Log(Title = "成品库当前货物表", BusinessType = BusinessType.DELETE)]
|
||||
public IActionResult DeleteWmGoodsNowProduction(string ids)
|
||||
{
|
||||
int[] idsArr = Tools.SpitIntArrary(ids);
|
||||
long[] idsArr = Tools.SpitLongArrary(ids);
|
||||
if (idsArr.Length <= 0) { return ToResponse(ApiResult.Error($"删除失败Id 不能为空")); }
|
||||
|
||||
var response = _WmGoodsNowProductionService.Delete(idsArr);
|
||||
|
||||
@@ -96,7 +96,7 @@ namespace ZR.Admin.WebApi.Controllers
|
||||
[Log(Title = "出库货物记录表", BusinessType = BusinessType.DELETE)]
|
||||
public IActionResult DeleteWmGoodsOutProduction(string ids)
|
||||
{
|
||||
int[] idsArr = Tools.SpitIntArrary(ids);
|
||||
long[] idsArr = Tools.SpitLongArrary(ids);
|
||||
if (idsArr.Length <= 0) { return ToResponse(ApiResult.Error($"删除失败Id 不能为空")); }
|
||||
|
||||
var response = _WmGoodsOutProductionService.Delete(idsArr);
|
||||
|
||||
@@ -107,6 +107,20 @@ namespace ZR.Admin.WebApi.Controllers
|
||||
}
|
||||
|
||||
|
||||
[HttpGet("getInfoByPatchCode")]
|
||||
[Log(Title = "物料记录表", BusinessType = BusinessType.QUERY)]
|
||||
public IActionResult GetInfoByPatchCode(string patchCode)
|
||||
{
|
||||
if (string.IsNullOrEmpty(patchCode))
|
||||
{
|
||||
return SUCCESS(null);
|
||||
}
|
||||
WmGoodsNowProduction nowProduction= _WmMaterialService.GetInfoByPatchCode(patchCode);
|
||||
return SUCCESS(nowProduction);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -6,6 +6,7 @@ using ZR.Service.mes.wms.IService;
|
||||
using ZR.Model.MES.wms.Dto;
|
||||
using ZR.Model.MES.wms;
|
||||
using ZR.Service.mes.wms;
|
||||
using static System.Runtime.InteropServices.JavaScript.JSType;
|
||||
|
||||
//创建时间:2024-03-18
|
||||
namespace ZR.Admin.WebApi.Controllers
|
||||
@@ -150,6 +151,8 @@ namespace ZR.Admin.WebApi.Controllers
|
||||
List<WmMaterialQuery_print> data = _WmOutOrderService.Queryoutoder_matrials(shipment_num);
|
||||
return SUCCESS(data);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 生成出货单的出货计划
|
||||
/// </summary>
|
||||
@@ -166,7 +169,43 @@ namespace ZR.Admin.WebApi.Controllers
|
||||
|
||||
return SUCCESS(WmOutOrderPlanList);
|
||||
}
|
||||
/// <summary>
|
||||
/// 5 成品出库
|
||||
/// </summary>
|
||||
/// <param name="doMaterialOut"></param>
|
||||
/// <returns>
|
||||
///
|
||||
/// </returns>
|
||||
[HttpPost("doMaterialOut")]
|
||||
public IActionResult DoMaterialOut([FromBody] WmDoMaterialOut_Dto doMaterialOut)
|
||||
{
|
||||
if(doMaterialOut == null||doMaterialOut.ShipmentNum==null)
|
||||
{
|
||||
return SUCCESS(null);
|
||||
}
|
||||
|
||||
(int,int) data= _WmOutOrderService.DoMaterialOut(doMaterialOut, HttpContext.GetName());
|
||||
|
||||
return SUCCESS(data);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 6 出库单完成
|
||||
/// </summary>
|
||||
/// <param name="shipment_num"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("over_outorderplan")]
|
||||
public IActionResult OverOutorderplan(string shipment_num)
|
||||
{
|
||||
if (shipment_num == null)
|
||||
{
|
||||
return SUCCESS(null);
|
||||
}
|
||||
|
||||
bool status = _WmOutOrderService.OverOutorderplan(shipment_num);
|
||||
return SUCCESS(status);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user