| | |
| | | using Utility; |
| | | using Model.ModelVm.LogVm; |
| | | using System.Diagnostics; |
| | | using Model.ModelVm.BllSoVm; |
| | | |
| | | namespace Wms.Controllers |
| | | { |
| | |
| | | /// <param name="environment">存储环境</param> |
| | | /// <param name="categoryNo">类别编码</param> |
| | | /// <returns></returns> |
| | | [HttpGet] |
| | | public async Task<List<MaterialsDto>> GetMateList(string skuNo, string skuName, string auditStatusNo, string type, string isControlled, string isInspect, string environment, string categoryNo) |
| | | [HttpPost] |
| | | [ServiceFilter(typeof(ApiResponseActionFilter))] |
| | | public async Task<IActionResult> GetMateList(GetMaterialsVm model) |
| | | { |
| | | return await _mate.GetMateList(skuNo, skuName, auditStatusNo, type, isControlled, isInspect, environment, categoryNo); |
| | | RefAsync<int> count = new RefAsync<int>(); |
| | | var bolls = await _mate.GetMateList(model, count); |
| | | |
| | | //return new SqlSugarPagedList() { Items = bolls, Total = count }; |
| | | return Ok(new { code = 0, count=count.Value, msg = "物料信息", data = bolls }); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpGet] |
| | | public async Task<List<SysPackag>> GetPackagList() |
| | | public async Task<List<SysPackag>> GetPackagList(int page) |
| | | { |
| | | return await _mate.GetPackagList(); |
| | | var data = await _mate.GetPackagList(page); |
| | | return data; |
| | | } |
| | | |
| | | #endregion |