| | |
| | | /// <param name="model">查询条件</param> |
| | | /// <returns>入库单信息</returns> |
| | | [HttpPost] |
| | | public IActionResult GetArrivalNoticeList(ArrivalNoticeVm model) |
| | | [ServiceFilter(typeof(ApiResponseActionFilter))] |
| | | public async Task<SqlSugarPagedList> GetArrivalNoticeList(ArrivalNoticeVm model) |
| | | { |
| | | try |
| | | { |
| | | var models = _arrivalNoticeSvc.GetArrivalNoticeList(model, out int count); |
| | | |
| | | return Ok(new { code = 0, count, msg = "入库单信息", data = models }); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | return Ok(new { code = 1, msg = e.Message }); |
| | | } |
| | | RefAsync<int> count = new RefAsync<int>(); |
| | | var bolls = await _arrivalNoticeSvc.GetArrivalNoticeList(model, count); |
| | | return new SqlSugarPagedList() { Items = bolls, Total = count }; |
| | | } |
| | | |
| | | [HttpPost] |
| | | public IActionResult GetArrivalNoticeDetailList(ArrivalNoticeDetailVm model) |
| | | { |
| | | try |
| | | { |
| | | var models = _arrivalNoticeSvc.GetArrivalNoticeDetailList(model, out int count); |
| | | |
| | | return Ok(new { code = 0, count, msg = "入库单明细信息", data = models }); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | return Ok(new { code = 1, msg = e.Message }); |
| | | } |
| | | [HttpPost] |
| | | [ServiceFilter(typeof(ApiResponseActionFilter))] |
| | | public async Task<SqlSugarPagedList> GetArrivalNoticeDetailList(ArrivalNoticeDetailVm model) |
| | | { |
| | | RefAsync<int> count = new RefAsync<int>(); |
| | | var bolls = await _arrivalNoticeSvc.GetArrivalNoticeDetailList(model, count); |
| | | return new SqlSugarPagedList() { Items = bolls, Total = count }; |
| | | } |
| | | |
| | | /// <summary> |