| | |
| | | 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> |
| | |
| | | { |
| | | RefAsync<int> count = new RefAsync<int>(); |
| | | var bolls = await _customerSvc.GetCustomerList(model.CustomerNo, model.CustomerName, model.Type, model.LinkMan, model.Phone, model.Page, model.Limit, count); |
| | | return new SqlSugarPagedList() { Items = bolls, Total = count }; |
| | | return new SqlSugarPagedList() { Items = bolls, Total = count.Value }; |
| | | } |
| | | /// <summary> |
| | | /// 查询单条客户信息 |
| | |
| | | { |
| | | RefAsync<int> count = new RefAsync<int>(); |
| | | var list = await _unitSvc.GetUnitList(model.UnitNo, model.UnitName, model.Page, model.Limit, count); |
| | | return new SqlSugarPagedList() { Items = list, Total = count }; |
| | | return new SqlSugarPagedList() { Items = list, Total = count.Value }; |
| | | } |
| | | /// <summary> |
| | | /// 查询单条单位信息 |
| | |
| | | { |
| | | RefAsync<int> count = new RefAsync<int>(); |
| | | var list = await _packagSvc.GetPackagList(model.PackagNo, model.PackagName, model.Level, model.Page, model.Limit, count); |
| | | return new SqlSugarPagedList { Items = list, Total = count }; |
| | | return new SqlSugarPagedList { Items = list, Total = count.Value }; |
| | | } |
| | | |
| | | /// <summary> |