From 4f1b55b843947950bc4a6e47e6f5c63ef7f63faf Mon Sep 17 00:00:00 2001 From: hjhan Date: Thu, 20 Aug 2026 15:53:13 +0800 Subject: [PATCH] =?UTF-8?q?feat(web):=20EQD-6977=20=E5=B9=B3=E4=BB=93?= =?UTF-8?q?=E9=A1=B5=E6=98=AF=E5=90=A6=E7=BD=9A=E6=81=AF=E4=B8=8B=E6=8B=89?= =?UTF-8?q?(=E6=94=B9=E9=80=89=E5=8D=B3=E9=87=8D=E5=8F=96=E5=88=A9?= =?UTF-8?q?=E6=81=AF=E5=90=AB=E7=BD=9A=E6=81=AF)=20+=20=E5=85=B6=E4=BB=96?= =?UTF-8?q?=E8=B4=B9=E7=94=A8=E6=94=B9=E6=A0=87=E7=AD=BE=E5=85=B6=E4=BB=96?= =?UTF-8?q?=E8=B4=B9=E7=94=A8=E5=90=AB=E7=BD=9A=E6=81=AF=20+=20=E9=A2=84?= =?UTF-8?q?=E8=A7=88=E5=8F=82=E6=95=B0=E9=80=8F=E4=BC=A0(=E6=8F=90?= =?UTF-8?q?=E4=BA=A4=E7=BB=8F=20UnwindData=20=E9=9A=8F=20deal=20=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E5=9B=9E=E4=BC=A0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- YLErpWeb/Views/SwapTrade2/SwapUnwind.cshtml | 9 ++++++++- .../wwwroot/Scripts/app/swaptrade/unwindSwapTrade.js | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/YLErpWeb/Views/SwapTrade2/SwapUnwind.cshtml b/YLErpWeb/Views/SwapTrade2/SwapUnwind.cshtml index 3ef08042..04dd36f2 100644 --- a/YLErpWeb/Views/SwapTrade2/SwapUnwind.cshtml +++ b/YLErpWeb/Views/SwapTrade2/SwapUnwind.cshtml @@ -90,6 +90,13 @@ +
+ + +
@@ -145,7 +152,7 @@ 计息开始日 计息结算日 利率(年化)*@ - 其他费用 + 其他费用含罚息 利息金额 利息端平仓盈亏 diff --git a/YLErpWeb/wwwroot/Scripts/app/swaptrade/unwindSwapTrade.js b/YLErpWeb/wwwroot/Scripts/app/swaptrade/unwindSwapTrade.js index b19a4c95..1f70d833 100644 --- a/YLErpWeb/wwwroot/Scripts/app/swaptrade/unwindSwapTrade.js +++ b/YLErpWeb/wwwroot/Scripts/app/swaptrade/unwindSwapTrade.js @@ -368,7 +368,7 @@ const vue = new Vue({ getInterestList() {//根据平仓日期获取利息腿信息 var thisObj = this; // closePercent 按"占期初(original)"语义(A)传给后端,由 GetUnwindInterestList 转为"占剩余(B)"计算 - var postData = { valueDate: thisObj.deal.ValueDate, unwindDate: thisObj.deal.ValueDate, tradeId: thisObj.deal.SwapTradeId, closePercent: thisObj.deal.ClosePercent, eventType: 2, notionalValue: thisObj.deal.NotionalValue, posiNotionalValue: thisObj.deal.PosiNotionalValue } + var postData = { valueDate: thisObj.deal.ValueDate, unwindDate: thisObj.deal.ValueDate, tradeId: thisObj.deal.SwapTradeId, closePercent: thisObj.deal.ClosePercent, eventType: 2, notionalValue: thisObj.deal.NotionalValue, posiNotionalValue: thisObj.deal.PosiNotionalValue, isPenaltyInterest: thisObj.deal.IsPenaltyInterest == true } // EQD-6977 是否罚息:预览即含罚息(其他费用含罚息) // 调试埋点(?otcdebug=1):记录实际发给后端的平仓比例——未来若"改比例利息腿不动", // 对比此处请求比例 与 下方返回各腿 principal/amount 是否随比例变化,即可定位是前端没传对还是后端没缩放。 if (window.otcDebug) window.otcDebug.log('[unwind] getInterestList → POST closePercent=', thisObj.deal.ClosePercent,