PDA-库存查询功能更新
This commit is contained in:
@@ -57,10 +57,15 @@ namespace ZR.Admin.WebApi.Controllers
|
||||
/// <param name="parm"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("shortPatchsearch")]
|
||||
public IActionResult QueryshortPatch(WmGoodsNowProductionQueryDto parm)
|
||||
public IActionResult QueryshortPatch(CommonQueryDto parm)
|
||||
{
|
||||
var response = _WmGoodsNowProductionService.QueryshortPatch(parm);
|
||||
return SUCCESS(response);
|
||||
List<WmGoodShortPackageCodeDto> response = _WmGoodsNowProductionService.QueryshortPatch(parm);
|
||||
var json = new
|
||||
{
|
||||
list = response,
|
||||
total = response.Count
|
||||
};
|
||||
return ToResponse(new ApiResult(200, "ok", json));
|
||||
}
|
||||
/// <summary>
|
||||
/// 移动端 短批次号查询
|
||||
@@ -84,7 +89,7 @@ namespace ZR.Admin.WebApi.Controllers
|
||||
public IActionResult GetWmGoodsNowProduction(string Id)
|
||||
{
|
||||
var response = _WmGoodsNowProductionService.GetInfo(Id);
|
||||
|
||||
|
||||
var info = response.Adapt<WmGoodsNowProduction>();
|
||||
return SUCCESS(info);
|
||||
}
|
||||
@@ -144,14 +149,14 @@ namespace ZR.Admin.WebApi.Controllers
|
||||
/// <param name="stack_num"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("modifyInventoryQuantity")]
|
||||
public IActionResult ModifyInventoryQuantity(string id,int stack_num)
|
||||
public IActionResult ModifyInventoryQuantity(string id, int stack_num)
|
||||
{
|
||||
if(string.IsNullOrEmpty(id))
|
||||
if (string.IsNullOrEmpty(id))
|
||||
{
|
||||
return SUCCESS(null);
|
||||
}
|
||||
var response= _WmGoodsNowProductionService.ModifyInventoryQuantity(id, stack_num);
|
||||
return SUCCESS(response);
|
||||
var response = _WmGoodsNowProductionService.ModifyInventoryQuantity(id, stack_num);
|
||||
return SUCCESS(response);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -155,7 +155,7 @@ namespace ZR.Admin.WebApi.Controllers
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 生成出货单的出货计划
|
||||
/// 8.1根据出库单生成出库计划
|
||||
/// </summary>
|
||||
/// <param name="shipment_num"></param>
|
||||
/// <returns></returns>
|
||||
@@ -167,28 +167,57 @@ namespace ZR.Admin.WebApi.Controllers
|
||||
return SUCCESS(null);
|
||||
}
|
||||
// TODO 1.返回值修改为 对象 返回是否可生成计划,计划结果:{canPlan:true,resultList:[]}
|
||||
// XXX 无计划返回空即可
|
||||
List<WmOutOrderPlan> WmOutOrderPlanList = _WmOutOrderService.Generate_outorderplan(shipment_num);
|
||||
|
||||
return SUCCESS(WmOutOrderPlanList);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 持久化存储出货单的出货计划
|
||||
/// 8.2 持久化存储出库单的出库计划
|
||||
/// </summary>
|
||||
/// <param name="shipment_num"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("persistenceOutorderplan")]
|
||||
public IActionResult PersistenceOutorderplan(string shipment_num)
|
||||
{
|
||||
|
||||
if (shipment_num == null)
|
||||
{
|
||||
return SUCCESS(null);
|
||||
}
|
||||
int result= _WmOutOrderService.PersistenceOutorderplan(shipment_num);
|
||||
|
||||
return SUCCESS(result);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 8.3 获取出库单的持久化存储出库计划
|
||||
/// </summary>
|
||||
/// <param name="shipment_num"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("getOutOrderplan")]
|
||||
public IActionResult getOutOrderplan(string shipment_num)
|
||||
{
|
||||
if (shipment_num == null)
|
||||
{
|
||||
return SUCCESS(null);
|
||||
}
|
||||
int result = _WmOutOrderService.PersistenceOutorderplan(shipment_num);
|
||||
return SUCCESS(result);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 8.4 获取出库单的已出货物
|
||||
/// </summary>
|
||||
/// <param name="shipment_num"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("getOutOrderOutProduction")]
|
||||
public IActionResult getOutOrderOutProduction(string shipment_num)
|
||||
{
|
||||
if (shipment_num == null)
|
||||
{
|
||||
return SUCCESS(null);
|
||||
}
|
||||
int result = _WmOutOrderService.PersistenceOutorderplan(shipment_num);
|
||||
return SUCCESS(result);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user