feat(web): EQD-6977 平仓页是否罚息下拉(改选即重取利息含罚息) + 其他费用改标签其他费用含罚息 + 预览参数透传(提交经 UnwindData 随 deal 自动回传)
This commit is contained in:
@@ -90,6 +90,13 @@
|
||||
<label class="formlabel">支付日期</label>
|
||||
<vue-datepicker :mindate="minStartDate" :holiday="1" v-model="deal.PayDate" />
|
||||
</div>
|
||||
<div class="form-group col-md-3">
|
||||
<label class="formlabel">是否罚息</label>
|
||||
<select v-model="deal.IsPenaltyInterest" v-on:change="getInterestList()">
|
||||
<option :value=false>否</option>
|
||||
<option :value=true>是</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group col-md-3">
|
||||
<label class="formlabel">年化天数</label>
|
||||
<input class="text-box" v-model="deal.AnnualDays" readonly="readonly" type="text" />
|
||||
@@ -145,7 +152,7 @@
|
||||
<td>计息开始日</td>
|
||||
<td>计息结算日</td>
|
||||
<td>利率(年化)</td>*@
|
||||
<td>其他费用</td>
|
||||
<td>其他费用含罚息</td>
|
||||
<td>利息金额</td>
|
||||
<td>利息端平仓盈亏</td>
|
||||
</tr>
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user