diff --git a/YLErpWeb/Views/Pricing/_PricingItemTpl.cshtml b/YLErpWeb/Views/Pricing/_PricingItemTpl.cshtml
index fd3809ad..6d565236 100644
--- a/YLErpWeb/Views/Pricing/_PricingItemTpl.cshtml
+++ b/YLErpWeb/Views/Pricing/_PricingItemTpl.cshtml
@@ -1,4 +1,4 @@
-@using YLErp.Modules.CalcPriceShowConfigModule
+@using YLErp.Modules.CalcPriceShowConfigModule
@*定价模板*@
@model PricingModel
@{
@@ -1199,6 +1199,55 @@
| {{calcResult.GammaContainsKnockOut}} |
}
+ else if ("Delta_r".Equals(quta.Name))
+ {
+
+ | Delta_r |
+ {{calcResult.Delta_r}} |
+
+ }
+ else if ("Delta_r(1bp)".Equals(quta.Name))
+ {
+
+ | Delta_r(1bp) |
+ {{calcResult.Delta_r_1bp}} |
+
+ }
+ else if ("Dv01".Equals(quta.Name))
+ {
+
+ | Dv01 |
+ {{calcResult.Dv01}} |
+
+ }
+ else if ("Gamma_r".Equals(quta.Name))
+ {
+
+ | Gamma_r |
+ {{calcResult.Gamma_r}} |
+
+ }
+ else if ("Gamma_r(1bp)".Equals(quta.Name))
+ {
+
+ | Gamma_r(1bp) |
+ {{calcResult.Gamma_r_1bp}} |
+
+ }
+ else if ("Vega_r".Equals(quta.Name))
+ {
+
+ | Vega_r |
+ {{calcResult.Vega_r}} |
+
+ }
+ else if ("Vega_r(1bp)".Equals(quta.Name))
+ {
+
+ | Vega_r(1bp) |
+ {{calcResult.Vega_r_1bp}} |
+
+ }
}
}
diff --git a/YLErpWeb/wwwroot/Scripts/app/pricing/structure.js b/YLErpWeb/wwwroot/Scripts/app/pricing/structure.js
index 9e0dbe2c..5652bb7f 100644
--- a/YLErpWeb/wwwroot/Scripts/app/pricing/structure.js
+++ b/YLErpWeb/wwwroot/Scripts/app/pricing/structure.js
@@ -1,4 +1,4 @@
-
+
//客户选择组件
const vueClient = function () {
return {
@@ -214,7 +214,7 @@ const vueMarginTemplateName = function () {
}
//计算结果字段
-const consCalcFields = Object.freeze(['TotalMargin', 'Pv', 'Delta', 'Gamma', 'Vega', 'Theta', 'Rho', 'PvContainsKnockOut', 'DeltaContainsKnockOut', 'DeltaInLots', 'GammaInLots', 'DeltaCash', 'GammaCash', 'VegaCash', 'GammaContainsKnockOut']);
+const consCalcFields = Object.freeze(['TotalMargin', 'Pv', 'Delta', 'Gamma', 'Vega', 'Theta', 'Rho', 'PvContainsKnockOut', 'DeltaContainsKnockOut', 'DeltaInLots', 'GammaInLots', 'DeltaCash', 'GammaCash', 'VegaCash', 'GammaContainsKnockOut', 'Delta_r', 'Delta_r_1bp', 'Dv01', 'Gamma_r', 'Gamma_r_1bp', 'Vega_r', 'Vega_r_1bp']);
var _trades, _tradeVues, _salesCommissionCtrl;
//交易保存
@@ -1913,6 +1913,13 @@ function createVue(index, baseVue, floating) {
calcResult.PvContainsKnockOut = pricingFormat.tradePrice(result.PvContainsKnockOut);
calcResult.DeltaContainsKnockOut = pricingFormat.greek(result.DeltaContainsKnockOut);
calcResult.GammaContainsKnockOut = pricingFormat.greek(result.GammaContainsKnockOut);
+ calcResult.Delta_r = result.Delta_r ? pricingFormat.greek(result.Delta_r) : "";
+ calcResult.Delta_r_1bp = result.Delta_r_1bp ? pricingFormat.greek(result.Delta_r_1bp) : "";
+ calcResult.Dv01 = result.Dv01 ? pricingFormat.greek(result.Dv01) : "";
+ calcResult.Gamma_r = result.Gamma_r ? pricingFormat.greek(result.Gamma_r) : "";
+ calcResult.Gamma_r_1bp = result.Gamma_r_1bp ? pricingFormat.greek(result.Gamma_r_1bp) : "";
+ calcResult.Vega_r = result.Vega_r ? pricingFormat.greek(result.Vega_r) : "";
+ calcResult.Vega_r_1bp = result.Vega_r_1bp ? pricingFormat.greek(result.Vega_r_1bp) : "";
calcResult.TotalMargin = 0;
if (data === this.datas[this.datas.length - 1]) {
calcResult.TotalMargin = pageVue.GetTotalMargin(_.map(this.datas, x => x.trade), this.structureType);