fix: 不能编辑成交收益率
This commit is contained in:
@@ -579,6 +579,7 @@ namespace YLErp.Modules.SwapModule
|
||||
dbTrade.trade_extend = req.trade_extend;
|
||||
dbTrade.swap_positions = req.swap_positions;
|
||||
dbTrade.MetaDic = req.MetaDic;
|
||||
dbTrade.InitYtm = req.swap_positions.FirstOrDefault(p => p.InitYtm > 0)?.InitYtm ?? 0m;
|
||||
InnerSaveTrade(false, dbTrade, changsStr, changeConfirmStatus);
|
||||
|
||||
return dbTrade;
|
||||
@@ -1380,6 +1381,7 @@ namespace YLErp.Modules.SwapModule
|
||||
position.FloatRateUnderlyingCode = swap.FloatRateUnderlyingCode;
|
||||
position.interest_rest_days = swap.interest_rest_days;
|
||||
position.interest_rule = swap.interest_rule;
|
||||
position.InitYtm = swap.InitYtm;
|
||||
if (position.id == 0)
|
||||
{
|
||||
DbContext.swap_position.Add(position);
|
||||
|
||||
Binary file not shown.
@@ -396,6 +396,7 @@
|
||||
<th>标的代码</th>
|
||||
<th>期初标的交割全价%</th>
|
||||
<th>期初标的交割净价%</th>
|
||||
<th>期初标的成交收益率%</th>
|
||||
<th>数量</th>
|
||||
<th>交易费用后付</th>
|
||||
</tr>
|
||||
@@ -425,6 +426,9 @@
|
||||
<td>
|
||||
<vue-number-input v-model="item.PosiNetNoFeePrice" v-bind:format="inputFormatMarginRateNoPercent"></vue-number-input>
|
||||
</td>
|
||||
<td>
|
||||
<vue-number-input v-model="item.InitYtm" v-bind:format="inputFormatMarginRateNoPercent"></vue-number-input>
|
||||
</td>
|
||||
<td>
|
||||
<vue-number-input v-model="item.PosiQuantity" v-on:input="changeQuantity(item)" v-bind:format="inputFormatTradeAmount"></vue-number-input>{{item.underlying!=null?item.underlying.QuoteUnitString:''}}
|
||||
</td>
|
||||
|
||||
@@ -384,7 +384,7 @@
|
||||
@(((item.PosiNetNoFeePrice ?? 0) * multiplier).OtcFormat(OtcFormatFlag.umprice))
|
||||
</td>
|
||||
<td>
|
||||
@((item.InitYtm * multiplier).OtcFormat(OtcFormatFlag.marginRateP))
|
||||
@((item.InitYtm * multiplier).OtcFormat(OtcFormatFlag.umprice))
|
||||
</td>
|
||||
<td>
|
||||
@item.PosiQuantity.OtcFormat(OtcFormatFlag.StockEqvNotional)
|
||||
|
||||
Reference in New Issue
Block a user