交易审批页面期初价格展示百分比

This commit is contained in:
嬴政 时
2026-04-30 10:34:18 +08:00
parent 9c2aef3933
commit 466683b102
@@ -166,7 +166,12 @@ var colModelGrid = [
width: 85,
align: 'center',
sortable: false,
formatter: otcformat.trading.umprice
formatter: function (cellvalue, options, rowObject) {
if (rowObject.TradeType === "收益互换") {
return otcformat.trading.umprice(cellvalue) * 100 + "%";
}
return otcformat.trading.umprice(cellvalue);
}
}, {
name: 'ExerciseMode',
label: '行权方式',
@@ -419,7 +424,7 @@ function showToolName(cellValue, options, rowObject) {
.template(rowObject.id, "审批");
}
}
}
else {
html =
@@ -427,12 +432,12 @@ function showToolName(cellValue, options, rowObject) {
.template(rowObject.EncryptId, rowObject.TradeType);
if (rowObject.TradeType === "结构化交易" && rowObject.IsGroup == 1) {
html = html + "<input type=\"button\" class=\"wentiEdit\" title='平仓复核' onclick=\"parentUnWindSelect('{0}','平仓复核',1)\" value=\"{1}\" />"
.template(rowObject.id, "平仓复核");
.template(rowObject.id, "平仓复核");
} else {
html = html + "<input type=\"button\" class=\"wentiEdit\" title='平仓复核' onclick=\"unWindSelect('{0}','{1}','check','{3}')\" value=\"{2}\" />"
.template(rowObject.EncryptId, rowObject.TradeType, "平仓复核", rowObject.StructureType);
}
}
}
//没有审批流程(包括审批参数配置为false或者没有审批流程即审批角色id为空),该用户有该角色权限
@@ -483,7 +488,7 @@ function showToolName(cellValue, options, rowObject) {
if (page.IsTradeCheckInfo) {
html = html +
"<input type=\"button\" class=\"wentiEdit\" title='审批' onclick=\"passorreinfo('{0}','{1}','{2}','{3}','{5}')\" value=\"{4}\" />"
.template(rowObject.EncryptId, rowObject.TradeType, rowObject.TradeStatus, rowObject.IsGroup, "审批", rowObject.StructureType);
.template(rowObject.EncryptId, rowObject.TradeType, rowObject.TradeStatus, rowObject.IsGroup, "审批", rowObject.StructureType);
}
else {
html = html +
@@ -491,7 +496,7 @@ function showToolName(cellValue, options, rowObject) {
.template(rowObject.id, "审批");
}
}
}
//无审批权限
else {
@@ -521,7 +526,7 @@ function showToolName(cellValue, options, rowObject) {
if (page.IsTradeCheckInfo) {
html = html +
"<input type=\"button\" class=\"wentiEdit\" title='审批' onclick=\"passorreinfo('{0}','{1}','{2}','{3}','{5}')\" value=\"{4}\" />"
.template(rowObject.EncryptId, rowObject.TradeType, rowObject.TradeStatus, rowObject.IsGroup, "审批", rowObject.StructureType);
.template(rowObject.EncryptId, rowObject.TradeType, rowObject.TradeStatus, rowObject.IsGroup, "审批", rowObject.StructureType);
}
else {
html = html +
@@ -529,7 +534,7 @@ function showToolName(cellValue, options, rowObject) {
.template(rowObject.id, "审批");
}
}
}
else {
html =
@@ -542,7 +547,7 @@ function showToolName(cellValue, options, rowObject) {
html = html + "<input type=\"button\" class=\"wentiEdit\" title='行权复核' onclick=\"executionTrade('{0}',true)\" value=\"{1}\" />"
.template(rowObject.EncryptId, "行权复核");
}
}
}
//没有审批流程(包括审批config为false或者没有审批流程即审批角色id为空),该用户有该角色权限
@@ -557,7 +562,7 @@ function showToolName(cellValue, options, rowObject) {
html = html + "<input type=\"button\" class=\"wentiEdit\" title='行权复核' onclick=\"executionTrade('{0}',true)\" value=\"{1}\" />"
.template(rowObject.EncryptId, "行权复核");
}
}
//没有审批权限
else {
@@ -593,7 +598,7 @@ function showToolName(cellValue, options, rowObject) {
if (page.IsTradeCheckInfo) {
html = html +
"<input type=\"button\" class=\"wentiEdit\" title='审批' onclick=\"passorreinfo('{0}','{1}','{2}','{3}','{5}')\" value=\"{4}\" />"
.template(rowObject.EncryptId, rowObject.TradeType, rowObject.TradeStatus, rowObject.IsGroup, "审批", rowObject.StructureType);
.template(rowObject.EncryptId, rowObject.TradeType, rowObject.TradeStatus, rowObject.IsGroup, "审批", rowObject.StructureType);
}
else {
html = html +
@@ -601,7 +606,7 @@ function showToolName(cellValue, options, rowObject) {
.template(rowObject.id, "审批");
}
}
}
//无审批权限
else {
@@ -632,7 +637,7 @@ function showToolName(cellValue, options, rowObject) {
if (page.IsTradeCheckInfo) {
html = html +
"<input type=\"button\" class=\"wentiEdit\" title='审批' onclick=\"passorreinfo('{0}','{1}','{2}','{3}','{5}')\" value=\"{4}\" />"
.template((rowObject.IsGroup == 1 ? rowObject.id : rowObject.EncryptId), rowObject.TradeType, rowObject.TradeStatus, rowObject.IsGroup, "审批", rowObject.StructureType);
.template((rowObject.IsGroup == 1 ? rowObject.id : rowObject.EncryptId), rowObject.TradeType, rowObject.TradeStatus, rowObject.IsGroup, "审批", rowObject.StructureType);
}
else {
html = html +
@@ -655,7 +660,7 @@ function showToolName(cellValue, options, rowObject) {
html = html +
"<input type=\"button\" class=\"wentiEdit\" title='复核审批' disabled='disabled' value=\"{1}\" />"
.template(rowObject.id, "复核审批");
}
}
else {
@@ -674,7 +679,7 @@ function showToolName(cellValue, options, rowObject) {
if (page.IsTradeCheckInfo) {
html = html +
"<input type=\"button\" class=\"wentiEdit\" title='审批' onclick=\"passorreinfo('{0}','{1}','{2}','{3}','{5}')\" value=\"{4}\" />"
.template(rowObject.EncryptId, rowObject.TradeType, rowObject.TradeStatus, rowObject.IsGroup, "审批", rowObject.StructureType);
.template(rowObject.EncryptId, rowObject.TradeType, rowObject.TradeStatus, rowObject.IsGroup, "审批", rowObject.StructureType);
}
else {
html = html +
@@ -709,7 +714,7 @@ function passorreject(eid) {
main.open("审批", url, { area: ['900px', '600px'] });
}
function passorreinfo(eid, tradeType, status, isGroup,StructureType) {
function passorreinfo(eid, tradeType, status, isGroup, StructureType) {
var url = "";
var title = "审批";
var height = "900px";
@@ -876,7 +881,7 @@ function unWindSelect(id, tradeType, isReCheck, StructureType) {
reloadtrade();
}
});
} else if (tradeType=="收益互换") {
} else if (tradeType == "收益互换") {
var url = "/swaptrade2/SwapUnwind/?enid=" + id + "&isUseApproval=" + true;;
if (StructureType == "多空组合") {
url = "/swaptrade2/SwapLongShortUnwind/?enid=" + id + "&isUseApproval=" + true;;
@@ -900,7 +905,7 @@ function unWindSelect(id, tradeType, isReCheck, StructureType) {
}
}
}
function parentUnWindSelect(id,title,reCheck) {
function parentUnWindSelect(id, title, reCheck) {
var srcurl = "/trade/tradeSettle/?ids=" + id + "&&reCheck=" + reCheck;
main.open(title, srcurl, {
area: ["1220px", "100%"],
@@ -948,7 +953,7 @@ function starttradeView(id, tradeType) {
let srcurl = "/forwardtrade/tradeView/?enid=" + id + "&isOnlyCloseButton=true";
main.open("查看远期交易", srcurl, { area: ['1260px', '800px'] });
}
else if (tradeType=="收益互换") {
else if (tradeType == "收益互换") {
main.open("查看交易", "/swaptrade2/tradeView/?enid=" + id + "&isOnlyCloseButton=true", { area: ['90%', '90%'] });
}
else {