From 466683b1025e04dcdfa2ab10fc6a67fd35cbfccf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AC=B4=E6=94=BF=20=E6=97=B6?= Date: Thu, 30 Apr 2026 10:34:18 +0800 Subject: [PATCH 1/7] =?UTF-8?q?=E4=BA=A4=E6=98=93=E5=AE=A1=E6=89=B9?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=9C=9F=E5=88=9D=E4=BB=B7=E6=A0=BC=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E7=99=BE=E5=88=86=E6=AF=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Scripts/app/trade/tradeApproval.js | 43 +++++++++++-------- 1 file changed, 24 insertions(+), 19 deletions(-) diff --git a/YLErpWeb/wwwroot/Scripts/app/trade/tradeApproval.js b/YLErpWeb/wwwroot/Scripts/app/trade/tradeApproval.js index 868eb6e7..4dfc4855 100644 --- a/YLErpWeb/wwwroot/Scripts/app/trade/tradeApproval.js +++ b/YLErpWeb/wwwroot/Scripts/app/trade/tradeApproval.js @@ -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 + "" - .template(rowObject.id, "平仓复核"); + .template(rowObject.id, "平仓复核"); } else { html = html + "" .template(rowObject.EncryptId, rowObject.TradeType, "平仓复核", rowObject.StructureType); } - + } } //没有审批流程(包括审批参数配置为false或者没有审批流程即审批角色id为空),该用户有该角色权限 @@ -483,7 +488,7 @@ function showToolName(cellValue, options, rowObject) { if (page.IsTradeCheckInfo) { html = html + "" - .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 + "" - .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 + "" .template(rowObject.EncryptId, "行权复核"); } - + } } //没有审批流程(包括审批config为false或者没有审批流程即审批角色id为空),该用户有该角色权限 @@ -557,7 +562,7 @@ function showToolName(cellValue, options, rowObject) { html = html + "" .template(rowObject.EncryptId, "行权复核"); } - + } //没有审批权限 else { @@ -593,7 +598,7 @@ function showToolName(cellValue, options, rowObject) { if (page.IsTradeCheckInfo) { html = html + "" - .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 + "" - .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 + "" .template(rowObject.id, "复核审批"); - + } } else { @@ -674,7 +679,7 @@ function showToolName(cellValue, options, rowObject) { if (page.IsTradeCheckInfo) { html = html + "" - .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 { From 429572323ba1b08cb94fafcc405ae279c06c8a0a Mon Sep 17 00:00:00 2001 From: "zheng.zhang" Date: Thu, 30 Apr 2026 13:50:37 +0800 Subject: [PATCH 2/7] =?UTF-8?q?fix:=20=E5=B0=86=E7=94=A8=E6=88=B7=E8=BF=BD?= =?UTF-8?q?=E8=B8=AA=E4=BB=8EUserId=E6=94=B9=E4=B8=BAOaAccount?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- YLErpWeb/Views/Shared/_MainLayout.cshtml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/YLErpWeb/Views/Shared/_MainLayout.cshtml b/YLErpWeb/Views/Shared/_MainLayout.cshtml index 8030b453..2b58d6b6 100644 --- a/YLErpWeb/Views/Shared/_MainLayout.cshtml +++ b/YLErpWeb/Views/Shared/_MainLayout.cshtml @@ -116,8 +116,8 @@ techStack: sensorsConfig._techStack }); - if ('@CurUser?.UserId' && sensors.login) { - sensors.login('@CurUser.UserId'); + if ('@CurUser?.OaAccount' && sensors.login) { + sensors.login('@CurUser.OaAccount'); sensors.setProfile({ userId: '@CurUser.OaAccount', name: '@CurUser.UserName' }); } @@ -125,7 +125,7 @@ (function () { try { var diag = { - uid: '@CurUser?.UserId' || 'NULL', + uid: '@CurUser?.OaAccount' || 'NULL', platform: sensorsConfig._platformType || 'onederiv', ua: (navigator.userAgent || '').substring(0, 50) || 'NULL', url: location.href From d61a22222e824f2d292c28442d7c6ecf4c0cea0e Mon Sep 17 00:00:00 2001 From: "zheng.zhang" Date: Thu, 30 Apr 2026 14:18:38 +0800 Subject: [PATCH 3/7] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DBonree=E7=9B=91?= =?UTF-8?q?=E6=8E=A7=E8=84=9A=E6=9C=AC=E5=8A=A0=E8=BD=BD=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E5=B9=B6=E4=BC=98=E5=8C=96=E7=94=A8=E6=88=B7ID=E6=A3=80?= =?UTF-8?q?=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- YLErpWeb/Views/Shared/_MainLayout.cshtml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/YLErpWeb/Views/Shared/_MainLayout.cshtml b/YLErpWeb/Views/Shared/_MainLayout.cshtml index 2b58d6b6..6e254660 100644 --- a/YLErpWeb/Views/Shared/_MainLayout.cshtml +++ b/YLErpWeb/Views/Shared/_MainLayout.cshtml @@ -18,10 +18,9 @@ @RenderSection("CSS", false) - -