();
var tradingPlaceMap = YLErp.DBModels.Consts.ConsReport.TradingPlaceMapDisplay;
@@ -66,6 +69,7 @@
jsTrader,
jsTraders,
tradeMarginTemplates = tradeMarginTemplates,
+ swapMarginTemplateItems = swapMarginTemplateItems,
tradeMarginTemplateItems = tradeMarginTemplateItems,
needRemark = !isAdd && valuedateBLL.SystemDate.EditTradeNeedRemark,
parentTradeId = ViewBag.ParentTradeId,
@@ -266,6 +270,14 @@
+
+
+
+
@@ -351,6 +363,7 @@
计息方式 |
重置频率(天) |
利率准则 |
+ 类别 |
结算规则 |
|
@@ -401,6 +414,14 @@
+
+
+ |
|
diff --git a/YLErpWeb/Views/SwapTrade2/TradeView.cshtml b/YLErpWeb/Views/SwapTrade2/TradeView.cshtml
index 310b7897..9172e401 100644
--- a/YLErpWeb/Views/SwapTrade2/TradeView.cshtml
+++ b/YLErpWeb/Views/SwapTrade2/TradeView.cshtml
@@ -236,6 +236,10 @@
派息金额支付日 |
@(trade.trade_extend.ExtendObj.DividendPayDate == 0 ? "到期结算日" : "派息日+" + (trade.trade_extend.ExtendObj.DividendPayDate - 1)) |
+
+ | 保证金模板 |
+ @trade.MarginTemplateName |
+
@@ -300,6 +304,7 @@
计息方式 |
重置频率(天) |
利率准则 |
+ 类别 |
结算规则 |
@if (trade.swap_positions != null)
@@ -344,6 +349,7 @@
@item.interest_rest_days |
@((item.interest_rule != null) ? (SwapInterestRule)item.interest_rule : "") |
+ @(string.IsNullOrEmpty(item.category_tag) ? "互换利率" : item.category_tag) |
|
@@ -504,6 +510,7 @@
计息方式 |
重置频率(天) |
利率准则 |
+ 类别 |
结算规则 |
@{
@@ -545,6 +552,7 @@
@(item.InterestType == 0 ? "单利" : "复利") |
@item.interest_rest_days |
@((item.interest_rule != null) ? (SwapInterestRule)item.interest_rule : "") |
+ @(string.IsNullOrEmpty(item.category_tag) ? "互换利率" : item.category_tag) |
|
}
diff --git a/YLErpWeb/Views/SwapTrade2/header.cshtml b/YLErpWeb/Views/SwapTrade2/header.cshtml
index 1e9a93e1..d6706aff 100644
--- a/YLErpWeb/Views/SwapTrade2/header.cshtml
+++ b/YLErpWeb/Views/SwapTrade2/header.cshtml
@@ -157,6 +157,7 @@
{
@MyControls.Btn("收益结算", string.Format("unWindLongShortSwap('{0}')", tradeModel.EncryptId))
}
+ @MyControls.Btn("续做", string.Format("renewTrade('{0}')", tradeModel.EncryptId))
}
diff --git a/YLErpWeb/wwwroot/Scripts/app/swaptrade/swapTradeEdit.js b/YLErpWeb/wwwroot/Scripts/app/swaptrade/swapTradeEdit.js
index 91b2e26a..542f2ccc 100644
--- a/YLErpWeb/wwwroot/Scripts/app/swaptrade/swapTradeEdit.js
+++ b/YLErpWeb/wwwroot/Scripts/app/swaptrade/swapTradeEdit.js
@@ -1414,6 +1414,7 @@ const vue = new Vue({
thisObj.getSwapList = thisObj.trade.swap_positions.filter(x => { if ((x.UnderlyingCode == null || x.UnderlyingCode.length == 0) && x.IsInitial && (x.InterestMode == 1 || x.InterestMode == 2 || x.InterestMode == 7 || x.InterestMode == 8 || x.InterestMode == 9)) return x; });
thisObj.getSwapList.forEach((val, num, arr) => {
arr[num].index = num;
+ arr[num].category_tag = arr[num].category_tag || '互换利率';
// 解析 InterestSwapInterval 为 SwapIntervalList
if (arr[num].InterestSwapInterval && !arr[num].SwapIntervalList) {
try {
@@ -1502,7 +1503,8 @@ const vue = new Vue({
HappenDate: null,//发生日期,
Currency: 'CNY',//币种
interest_rest_days: 7,//重置频率
- interest_rule: null//利率准则
+ interest_rule: null,//利率准则
+ category_tag: '互换利率'//类别
}
thisObj.getSwapList.push(getSwap);
},
diff --git a/YLErpWeb/wwwroot/Scripts/app/swaptrade/swapTradeView.js b/YLErpWeb/wwwroot/Scripts/app/swaptrade/swapTradeView.js
index d0759efc..585a37cb 100644
--- a/YLErpWeb/wwwroot/Scripts/app/swaptrade/swapTradeView.js
+++ b/YLErpWeb/wwwroot/Scripts/app/swaptrade/swapTradeView.js
@@ -26,6 +26,10 @@ function editTrade(enid) {
window.location.href = `/swapTrade2/tradeEdit/?enid=${enid}`;
}
+function renewTrade(enid) {
+ window.location.href = `/swapTrade2/tradeEdit/?enid=0&renewEnid=${encodeURIComponent(enid)}`;
+}
+
function editTradeRemarkInfo(enid) {
main.open("修改备注", "/trade/EditRemarkInfo?enid=" + enid, { area: ["700px", "500px"] });
}
@@ -586,4 +590,4 @@ function SubmissionFields(enid) {
function SubmissionFieldsHistory(enid) {
main.open("报送相关字段填写", "/trade/submissionFieldsHistory?encryptId=" + enid);
-}
\ No newline at end of file
+}