增加采购模块的自动审核

This commit is contained in:
qmj
2026-07-03 16:39:39 +08:00
parent 070537d147
commit 86cb7a2eba
4 changed files with 8 additions and 6 deletions
@@ -41,11 +41,13 @@ namespace UFIDA.U8.Framework.Api.Controllers.U8
/// <param name="VoucherState">单据状态:2新增,1修改,0非编辑</param>
/// <param name="UserMode">CS 0,BS 1;一般CS</param>
/// <param name="sOverDetailsXml">为空</param>
/// <param name="tradeid">业务ID</param>
/// <param name="bVerify">是否审核</param>
/// <returns></returns>
/// <exception cref="Exception"></exception>
[HttpPost]
[Route("api/U8/PU/{cCardNum}/VoucherSave")]
public async Task<BaseResult<string>> VoucherSave(string cAccId, string cCardNum, [FromBody] Dictionary<string, object> input, bool bPositive = true, string sBillType = null, string sBusType = "", int VoucherState = 2, UseMode UserMode = UseMode.CS, string sOverDetailsXml = null, string tradeid = null)
public async Task<BaseResult<string>> VoucherSave(string cAccId, string cCardNum, [FromBody] Dictionary<string, object> input, bool bPositive = true, string sBillType = null, string sBusType = "", int VoucherState = 2, UseMode UserMode = UseMode.CS, string sOverDetailsXml = null, string tradeid = null, bool? bVerify = null)
{
try
{
@@ -157,7 +159,7 @@ namespace UFIDA.U8.Framework.Api.Controllers.U8
var co = new clsVoucherCO_PU();
var res = await co.VoucherSave(baseLogin, input, cCardNum, (vouchertype)Convert.ToInt32(voucherInfo.VoucherType), bPositive, sBillType, sBusType, VoucherState, UserMode, sOverDetailsXml, bGetCode, codeKey, voucherInfo.bVerify, voucherInfo.bPrintDom, voucherInfo.iswfcontrolled, voucherInfo.cFlowFieldName);
var res = await co.VoucherSave(baseLogin, input, cCardNum, (vouchertype)Convert.ToInt32(voucherInfo.VoucherType), bPositive, sBillType, sBusType, VoucherState, UserMode, sOverDetailsXml, bGetCode, codeKey, bVerify ?? voucherInfo.bVerify, voucherInfo.bPrintDom, voucherInfo.iswfcontrolled, voucherInfo.cFlowFieldName);
res.tradeid = tradeid;