This commit is contained in:
2025-12-11 17:49:54 +08:00
parent 96081cf795
commit 986e2a0d21
20 changed files with 514 additions and 206 deletions

View File

@@ -3,6 +3,9 @@ using Gatedge.K3Cloud.Utils.Model.K3Request;
using Gatedge.ScanCode.Common;
using Gatedge.ScanCode.Extension;
using Gatedge.ScanCode.Models.Dto;
using Gatedge.ScanCode.Models.Dto.BarRecord;
using Gatedge.ScanCode.Services;
using Gatedge.ScanCode.Services.IServices;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
@@ -46,7 +49,7 @@ namespace Gatedge.ScanCode.Controllers
{
FormId = this._FormId,
// 单据ID、单据编号
FieldKeys = "FID,FBillNo,FDate",
FieldKeys = "FID,FBillNo,FDate,FSupplierId.FName",
Limit = Param.PageSize,
StartRow = Param.PageSize * (Param.PageIndex - 1),
};
@@ -71,5 +74,20 @@ namespace Gatedge.ScanCode.Controllers
var result = _utils.Query(_FormId, Param);
return AjaxResult.Success(result);
}
/// <summary>
/// 批量下推采购入库单
/// </summary>
/// <param name="barRecord"></param>
/// <returns></returns>
[HttpPost("BatchPushPurInStock")]
public AjaxResult BatchPushPurInStock([FromBody] BarRecord barRecord)
{
var loginInfo = User.GetLoginInfoByClaimsPrincipal();
_utils.InitCloudApi(loginInfo);
IPurchaseOrderService service = new PurchaseOrderService(_utils);
service.PushPurInStock(barRecord.BarRecordId);
return AjaxResult.Success();
}
}
}