限额监控 名义本金单位改为万
This commit is contained in:
@@ -46,6 +46,10 @@ namespace YLErp
|
||||
/// </summary>
|
||||
public const decimal bondShowPriceMultiple = 100m;
|
||||
|
||||
/// <summary>
|
||||
/// 限额监控系数
|
||||
/// </summary>
|
||||
public const double quotaMonitorMultiple = 0.0001;
|
||||
/// <summary>
|
||||
/// 互换结算岗组
|
||||
/// </summary>
|
||||
|
||||
@@ -3562,6 +3562,10 @@ namespace YLErp.Modules.RiskModule
|
||||
{
|
||||
count = 4;
|
||||
}
|
||||
if (O.QuotaIndex.Contains("名义本金"))
|
||||
{
|
||||
O.QuotaLowerLimit *= ConsGlobal.quotaMonitorMultiple;
|
||||
}
|
||||
O.QuotaLowerLimit = O.QuotaLowerLimit.FormatValue(count);
|
||||
O.QuotaUpperLimit = O.QuotaUpperLimit.FormatValue(count);
|
||||
O.WarningLowerLimit = O.WarningLowerLimit.FormatValue(count);
|
||||
|
||||
@@ -3,6 +3,7 @@ var g_grid = {};
|
||||
var quotaSettings = {};
|
||||
var underlyingId = 0;
|
||||
var disabledQuotaIndexs = ["止损金额", "Delta金额", "浮动盈亏"];
|
||||
var quotaMonitorMultiple = 10000;
|
||||
$(function () {
|
||||
FastVue.numberInput(document.getElementById('QuotaRange-PercentDays'), { precision: 0 });
|
||||
var postData = GetPostData();
|
||||
@@ -40,6 +41,9 @@ $(function () {
|
||||
$("#SingleUnderlyingRate").val(res.SingleUnderlyingRate);
|
||||
quotaSettings = res.QuotaSettings;
|
||||
_.forEach(quotaSettings, (item) => {
|
||||
if (item.QuotaIndex.indexOf("名义本金") != -1) {
|
||||
item.QuotaIndex = item.QuotaIndex + "(万)";
|
||||
}
|
||||
if (item.Percent) {
|
||||
item.QuotaUpperLimit = item.QuotaUpperLimit == null || item.QuotaUpperLimit == undefined || item.QuotaUpperLimit == "NaN" || item.QuotaUpperLimit === "" ? "" : (Number.parseFloat(item.QuotaUpperLimit) * 100).toFixed(2);
|
||||
item.QuotaLowerLimit = item.QuotaLowerLimit == null || item.QuotaLowerLimit == undefined || item.QuotaLowerLimit == "NaN" || item.QuotaLowerLimit === "" ? "" : (Number.parseFloat(item.QuotaLowerLimit) * 100).toFixed(2);
|
||||
@@ -255,6 +259,13 @@ function save() {
|
||||
item.QuotaLowerLimit = $("#" + v + "_QuotaLowerLimit").val() === "" ? "NaN" : removeThousands($("#" + v + "_QuotaLowerLimit").val());
|
||||
item.WarningUpperLimit = $("#" + v + "_WarningUpperLimit").val() === "" ? "NaN" : removeThousands($("#" + v + "_WarningUpperLimit").val());
|
||||
item.WarningLowerLimit = $("#" + v + "_WarningLowerLimit").val() === "" ? "NaN" : removeThousands($("#" + v + "_WarningLowerLimit").val());
|
||||
if (item.QuotaIndex.indexOf("名义本金") != -1) {
|
||||
item.QuotaIndex = item.QuotaIndex.replace("(万)", "");
|
||||
item.QuotaUpperLimit = item.QuotaUpperLimi == "NaN" ?"NaN": item.QuotaUpperLimit * quotaMonitorMultiple;
|
||||
item.QuotaLowerLimit = item.QuotaLowerLimit == "NaN" ? "NaN" : item.QuotaLowerLimit * quotaMonitorMultiple;
|
||||
item.WarningUpperLimit = item.WarningUpperLimit == "NaN" ? "NaN" : item.WarningUpperLimit * quotaMonitorMultiple;
|
||||
item.WarningLowerLimit = item.WarningLowerLimit == "NaN" ? "NaN" : item.WarningLowerLimit * quotaMonitorMultiple;
|
||||
}
|
||||
}
|
||||
arr.push(item);
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user