#EQD-6090 国联民生:名义本金计算有精度问题

This commit is contained in:
吴方海
2026-05-28 13:23:36 +08:00
parent 3d06e59908
commit f873239af4
@@ -268,9 +268,9 @@ const vue = new Vue({
this.getSpotPrice(payItem.UnderlyingCode, this.trade.StartDate, payItem);
}
var national = payItem.PosiQuantity * payItem.ContractSize;
var stockEqvNotional = payItem.PosiGrossPrice * national;//名义本金=期初价格*数量*乘数
var stockEqvNotional = _.round(payItem.PosiGrossPrice * national, 2);//名义本金=期初价格*数量*乘数
this.trade.StockEqvNotional = otcformat.trading.stockEqvNotional(stockEqvNotional);
payItem.PosiNotionalValue = this.StockEqvNotional;
payItem.PosiNotionalValue = this.trade.StockEqvNotional;
}
},
//变更到期日