You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

111 lines
2.6 KiB
C#

using DS.Module.Core;
using DS.WMS.Core.Fee.Dtos;
using DS.WMS.Core.Fee.Interface;
using Microsoft.AspNetCore.Mvc;
namespace DS.WMS.FeeApi.Controllers
{
/// <summary>
/// 报销模块相关API
/// </summary>
public class ReimbursementController : ApiController
{
readonly IReimbursementService _service;
/// <summary>
/// 初始化
/// </summary>
/// <param name="service"></param>
public ReimbursementController(IReimbursementService service)
{
_service = service;
}
//1获取当前登录人收款信息
// ClientBank/GetClientBankList
//2获取发票列表
// feeApi/InInvoicet/GetInInvoicet
//3新增报销单,并同步到钉钉
/// <summary>
/// 新增
/// </summary>
/// <param name="req"></param>
/// <returns></returns>
[HttpPost]
[Route("AddReimbursement")]
public DataResult AddReimbursement([FromBody] ReimbursementReq req)
{
var res = _service.AddReimbursement(req);
return res;
}
//4未审批的报销单撤销
/// <summary>
/// 未审批的报销单撤销
/// </summary>
/// <param name="req"></param>
/// <returns></returns>
[HttpPost]
[Route("ReimbursementRevoked")]
public DataResult ReimbursementRevoked([FromBody] string id)
{
var res = _service.ReimbursementRevoked(id);
return res;
}
//5报销单审核通过
//6报销单审核驳回
//7获取报销单列表
/// <summary>
/// 列表
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
[HttpPost]
[Route("GetReimbursementList")]
public DataResult<List<ReimbursementRes>> GetReimbursementList([FromBody] PageRequest request)
{
var res = _service.GetListByPage(request);
return res;
}
//8获取报销单详情
/// <summary>
/// 详情
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
[HttpGet]
[Route("GetReimbursementInfo")]
public DataResult<ReimbursementRes> GetReimbursementInfo([FromQuery] string id)
{
var res = _service.GetReimbursementInfo(id);
return res;
}
//9财务银企直连付款接口
//10钉钉开始审核同步到东胜,东胜审核同步到钉钉
//11钉钉配置相关接口
}
}