|
@@ -3117,7 +3117,7 @@ FROM
|
|
|
/// <param name="dto"></param>
|
|
|
/// <param name="currUserId"></param>
|
|
|
/// <returns></returns>
|
|
|
- public async Task<JsonView> GoodsReceiveBatchOp(GoodsReceiveBatchOpDto dto)
|
|
|
+ public async Task<JsonView> GoodsReceiveBatchOpAsync(GoodsReceiveBatchOpDto dto)
|
|
|
{
|
|
|
var goodsReceiveId = dto.Id;
|
|
|
var currUserId = dto.CurrUserId;
|
|
@@ -3341,6 +3341,50 @@ FROM
|
|
|
return _jv;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 物品领用 批量 详情
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="dto"></param>
|
|
|
+ /// <param name="currUserId"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ public async Task<JsonView> GoodsReceiveBatchInfoAsync(int id)
|
|
|
+ {
|
|
|
+ var receiveInfo = await _sqlSugar.Queryable<Pm_GoodsReceive>()
|
|
|
+ .Where(x => x.IsDel == 0 && x.Id == id)
|
|
|
+ .FirstAsync();
|
|
|
+ if (receiveInfo == null)
|
|
|
+ {
|
|
|
+ _jv.Msg = "暂无数据!";
|
|
|
+ return _jv;
|
|
|
+ }
|
|
|
+
|
|
|
+ var info = new GoodsReceiveBatchView();
|
|
|
+ info.Id = receiveInfo.Id;
|
|
|
+ info.GroupId = receiveInfo.GroupId;
|
|
|
+ info.Reason = receiveInfo.Reason;
|
|
|
+ info.Remark = receiveInfo.Remark;
|
|
|
+ info.ReceiveDetails = await _sqlSugar
|
|
|
+ .Queryable<Pm_GoodsReceiveDetails>()
|
|
|
+ .LeftJoin<Pm_GoodsInfo>((x, y) => x.GoodsId == y.Id)
|
|
|
+ .Where((x, y) => x.IsDel == 0 && x.GoodsReceiveId == receiveInfo.Id)
|
|
|
+ .Select((x, y) => new GoodsReceiveDetailsView()
|
|
|
+ {
|
|
|
+ Id = x.Id,
|
|
|
+ GoodsId = x.GoodsId,
|
|
|
+ GoodsName = y.Name,
|
|
|
+ Quantity = x.Quantity,
|
|
|
+ Remark = x.Remark,
|
|
|
+ })
|
|
|
+ .ToArrayAsync();
|
|
|
+
|
|
|
+ _jv.Code = StatusCodes.Status200OK;
|
|
|
+ _jv.Msg = $"操作成功!";
|
|
|
+ _jv.Data = info;
|
|
|
+ return _jv;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 物品领用 审核 通过
|
|
|
/// </summary>
|