0
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace Gatedge.ScanCode.Controllers
|
||||
[Route("api/[controller]")]
|
||||
[Authorize]
|
||||
[ApiController]
|
||||
public class InStockController : ControllerBase
|
||||
public class StkInStockController : ControllerBase
|
||||
{
|
||||
private readonly string _FormName = "采购入库单";
|
||||
private readonly string _FormId = "STK_InStock";
|
||||
@@ -23,7 +23,7 @@ namespace Gatedge.ScanCode.Controllers
|
||||
/// <summary>
|
||||
/// 构造方法
|
||||
/// </summary>
|
||||
public InStockController(K3CloudApiUtils utils)
|
||||
public StkInStockController(K3CloudApiUtils utils)
|
||||
{
|
||||
_utils = utils;
|
||||
}
|
||||
Reference in New Issue
Block a user