-
报告类型
-
- @Html.Raw(GlobalData.GetOptions(pageObj.reportTypeInfos.Select(a => new SelectListItem { Text = a.Key, Value = a.Value + "" })));
-
-
- @Html.SearchDate("ValueDate", "日期")
-
-
- @Html.ShortInput("ValueMonthly", "月份")
-
-
- @Html.SearchDate("StartDate", "开始日期")@Html.SearchDate("EndDate", "结束日期")
-
-
- @Html.SearchDateRange("ValueDate1", "发生时间")
- @Html.MyAceDropdownInput("ClientId", "客户名称", CurUser.GetClientSelectItems(),false)
-
- @MyControls.Btn("导出", "exportToFile()")
+
+
报告类型
+
+ @Html.Raw(GlobalData.GetOptions(pageObj.reportTypeInfos.Select(a => new SelectListItem { Text = a.Key, Value = a.Value + "" })));
+
+
+ @Html.SearchDate("ValueDate", "日期")
+
+ 月份
+
+ @{
+ for (var i = 0; i < 6; i++)
+ {
+ var date = DateTime.Now.AddMonths(-i);
+ @(date.ToString("yyyy-MM"))
+ }
+ }
+
+
+
+ @Html.SearchDate("StartDate", "开始日期")@Html.SearchDate("EndDate", "结束日期")
+
+ @MyControls.Btn("导出", "exportToFile()")
+
diff --git a/YLErpWeb/YLErpWeb.csproj b/YLErpWeb/YLErpWeb.csproj
index 7b0a1442..b637f139 100644
--- a/YLErpWeb/YLErpWeb.csproj
+++ b/YLErpWeb/YLErpWeb.csproj
@@ -106,6 +106,9 @@
PreserveNewest
+
+ PreserveNewest
+
PreserveNewest
diff --git a/YLErpWeb/appsettings.dev.json b/YLErpWeb/appsettings.dev.json
index 8d34d9d8..9e1f16d1 100644
--- a/YLErpWeb/appsettings.dev.json
+++ b/YLErpWeb/appsettings.dev.json
@@ -7,11 +7,10 @@
},
"AllowedHosts": "*",
"ConnectionStrings": {
- "ylcms": "server=221.229.106.161;uid=roottest;pooling=true;port=20306;pwd=YieldChain!@#$2020;database=yltrs_ylcms;charset=utf8;Allow User Variables=True;SslMode=none;Connection Timeout=30;IgnoreCommandTransaction=true;",
- "yladmin": "server=221.229.106.161;uid=roottest;pooling=true;port=20306;pwd=YieldChain!@#$2020;database=yltrs_admin;charset=utf8;Allow User Variables=True;SslMode=none;Connection Timeout=30;IgnoreCommandTransaction=true;",
- "ylclient": "server=221.229.106.161;uid=roottest;pooling=true;port=20306;pwd=YieldChain!@#$2020;database=yltrs_client;charset=utf8;Allow User Variables=True;SslMode=none;Connection Timeout=30;IgnoreCommandTransaction=true;",
- "bondoms": "server=221.229.106.161;uid=roottest;pooling=true;port=20306;pwd=YieldChain!@#$2020;database=bond_oms;charset=utf8;Allow User Variables=True;SslMode=none;Connection Timeout=30;IgnoreCommandTransaction=true;",
- "apex_oracle": "Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=122.112.205.57)(PORT=11521)))(CONNECT_DATA=(SERVICE_NAME=xe)));User ID=system;Password=oracle;"
+ "ylcms": "server=192.168.2.96;uid=DBAdmin;pooling=true;port=3306;pwd=YieldChain$$2025;database=zszq_yltrs_ylcms;charset=utf8;Allow User Variables=True;SslMode=none;Connection Timeout=30;IgnoreCommandTransaction=true;",
+ "yladmin": "server=192.168.2.96;uid=DBAdmin;pooling=true;port=3306;pwd=YieldChain$$2025;database=zszq_yltrs_admin;charset=utf8;Allow User Variables=True;SslMode=none;Connection Timeout=30;IgnoreCommandTransaction=true;",
+ "ylclient": "server=192.168.2.96;uid=DBAdmin;pooling=true;port=3306;pwd=YieldChain$$2025;database=zszq_yltrs_client;charset=utf8;Allow User Variables=True;SslMode=none;Connection Timeout=30;IgnoreCommandTransaction=true;",
+ "bondoms": "server=192.168.2.96;uid=DBAdmin;pooling=true;port=3306;pwd=YieldChain$$2025;database=zszq_bond_oms;charset=utf8;Allow User Variables=True;SslMode=none;Connection Timeout=30;IgnoreCommandTransaction=true;"
},
"AppSettings": {
"VirtualPathRoot": "",
@@ -66,9 +65,10 @@
"YiLian_SwapFlowGroup": "YiLian_SwapFlowGroup" //交易端同步流水消费组
},
"BondOmsInterface": {
- "BaseUrl": "http://localhost:8887",
+ "BaseUrl": "http://192.168.2.96:10023/trs_hub_api",
"CalculateMarginUrl": "/marginAlgorithm/triggerMarginCalc" //
},
+ "Reg_Report_Url": "http://192.168.2.96:10025/reg_api/",
"OrcaleDatabaseConfig": {
"Schema": "APEX_040000"
},
diff --git a/YLErpWeb/appsettings.local.json b/YLErpWeb/appsettings.local.json
index 4e435ca1..49a2868a 100644
--- a/YLErpWeb/appsettings.local.json
+++ b/YLErpWeb/appsettings.local.json
@@ -1,85 +1,86 @@
{
- "Logging": {
- "LogLevel": {
- "Default": "Information",
- "Microsoft.AspNetCore": "Warning"
- }
- },
- "AllowedHosts": "*",
- "ConnectionStrings": {
- "ylcms": "server=139.196.109.225;uid=root;pooling=true;port=3306;pwd=Midnight001!@#$;database=yltrs_ylcms;charset=utf8;Allow User Variables=True;SslMode=none;Connection Timeout=30;IgnoreCommandTransaction=true;",
- "yladmin": "server=139.196.109.225;uid=root;pooling=true;port=3306;pwd=Midnight001!@#$;database=yltrs_admin;charset=utf8;Allow User Variables=True;SslMode=none;Connection Timeout=30;IgnoreCommandTransaction=true;",
- "ylclient": "server=139.196.109.225;uid=root;pooling=true;port=3306;pwd=Midnight001!@#$;database=yltrs_client;charset=utf8;Allow User Variables=True;SslMode=none;Connection Timeout=30;IgnoreCommandTransaction=true;",
- "bondoms": "server=139.196.109.225;uid=root;pooling=true;port=3306;pwd=Midnight001!@#$;database=bond_oms;charset=utf8;Allow User Variables=True;SslMode=none;Connection Timeout=30;IgnoreCommandTransaction=true;"
- // "apex_oracle": "Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=122.112.205.57)(PORT=11521)))(CONNECT_DATA=(SERVICE_NAME=xe)));User ID=system;Password=oracle;"
- },
- "AppSettings": {
- "VirtualPathRoot": "",
- "UseRightAligned": "",
- "PluginFolder": "D:\\project\\zsza-trs\\Plugins\\build\\ZheShang\\Debug\\net6.0"
- },
- "LibreOffice": {
- "ExePath": "",
- "UserInstallation": ""
- },
- "EPPlus": {
- "ExcelPackage": {
- "LicenseContext": "NonCommercial" //The license context used
- }
- },
- "KafkaConfig": {
- "BootstrapServers": "139.196.109.225:9092", // Kafka 集群的地址
- "Acks": -1, // 消息确认方式,可以是 All(-1)、Leader(1)、None(0) 中的一种
- "EnableAutoCommit": false, //是否自动提交
- "EnableIdempotence": false, // 开启幂等性,确保消息只被发送一次
- "MaxInFlight": 5, // 控制生产者在同一时间最多可以发送的未确认消息数
- "CompressionType": 0, // 消息压缩方式,可以是 None(0)、Gzip(1)、Snappy(2)、Lz4(3)、Zstd(4) 中的一种,
- "MessageTimeoutMs": 3000, // 控制生产者等待消息确认的时间,单位是毫秒
- "ClientRateTopic": "ylClientRateTopic", //客户互换费率生产topic
- "HedgingAccountTopic": "ylHedgingAccountTopic", //对冲账户生产topic
- "AccountCapitalTopicGroupId": "YiLian_OnRspAccountCapitalConsumer", //账户资金消费组
- "ReqAccountCapitalTopic": "ReqAccountCapital", //账户资金请求topic
- "OnRspAccountCapitalTopic": "OnRspAccountCapital", //账户资金请求返回topic
- "AutoOffsetReset": 1, //Latest(0),Earliest(1),Error(2)
- "EnableCalcBongd": false, //是否启用kafka计算
- "ReqClientRiskCheckTopic": "YiLian_ReqClientRiskCheck", //客户风控检查
- "ReqClientRiskCheckConsumerTopic": "YiLian_OnRspClientRiskCheck", //客户风控检查消费者
- "ReqClientRiskCheckTopicGroupId": "YiLian_ReqClientRiskCheckConsumer1", //客户风控检查消费者
- "ReqClientMonitorTopic": "YiLian_ReqClientMonitor", //客户资金监控
- "OnRspClientMonitorConsumerTopic": "YiLian_OnRspClientMonitor", //客户资金监控消费者
- "ReqClientMonitorTopicGroupId": "YiLian_ReqClientMonitorConsumer1", //客户资金监控消费组
- "ReqClientMonitorSingleTopic": "YiLian_ReqClientMonitorSingle", //单个客户资金监控
- "OnRspClientMonitorSingleConsumerTopic": "YiLian_OnRspClientMonitorSingle", //单个客户资金监控
- "ReqClientMonitorSingleTopicGroupId": "YiLian_ReqClientMonitorSingleConsumer1", //单个客户资金监控
- "TrsExchangeTradeConsumerTopic": "YiLian_HedgingOrder", //TRS对冲交易消费 topic
- "TrsExchangeTradeConsumerTopicGroupId": "YiLian_HedgingOrderGroup1", //TRS对冲交易消费 Group
- "YiLian_ReqHedgingOrderCancelTopic": "YiLian_ReqHedgingOrderCancel", //TRS对冲交易撤单请求消费 topic
- "YiLian_ReqHedgingOrderCancelTopicGroupId": "YiLian_ReqHedgingOrderCancelGroup1", //TRS对冲交易撤单请求消费 Group
- "YiLian_RespHedgingOrderCancelTopic": "YiLian_RespHedgingOrderCancel", //TRS对冲交易撤单请求回应 topic
- "YiLian_ClientInfoChangeTopic": "YiLian_ClientInfoChangeTopic", //客户信息变更通知客户端 topic
- "YiLian_CashCalcConsumerTopic": "YiLian_CashCalc", //客户资金计算 topic
- "YiLian_CashCalcConsumerGroup": "YiLian_CashCalcGroup1", //客户资金计算消费组 topic
- "YiLian_CashNoticeConsumerTopic": "YiLian_CashNotice", //客户资金通知 topic
- "YiLian_CashNoticeConsumerGroup": "YiLian_CashNoticeGroup", //客户资金通知消费组 topic
- "YiLian_HolidayResetTopic": "YiLian_HolidayReset", //交易日历缓存重新加载 topic
- "YiLian_HolidayResetGroupId": "YiLian_HedgingOrderGroup1", //交易日历缓存重新加载消费 Group
- "YiLian_SwapFlowTopic": "YiLian_SwapFlow", //交易端同步流水
- "YiLian_SwapFlowGroup": "YiLian_SwapFlowGroup1", //交易端同步流水消费组
- "YiLian_SysUserInfoChangeTopic": "YiLian_SysUserInfoChangeTopic" //管理端系统用户变更
- },
- "BondOmsInterface": {
- "BaseUrl": "http://trs.yiliantech.com:8080/trs_hub_api"
- },
- "OrcaleDatabaseConfig": {
- "Schema": "APEX_040000"
- },
- "SendKafakaCron": "10 0 * * *",
- "MaxThreadPercent": 0.6, //占系统资源最多60%的线程数量
- "oa_confg": {
- "BaseUrl": "http://ip:port",
- "SystemKey": "M001", //OA系统key
- "ObjectClass": "ZSZQ_ZDNX", //OA文件类别
- "Urgent": 1, //紧急程度,1一般 2紧急 3加急
- "Issend": 1 //流程是否自动发送,0不发送,1自动发送下一步
+ "Logging": {
+ "LogLevel": {
+ "Default": "Information",
+ "Microsoft.AspNetCore": "Warning"
}
+ },
+ "AllowedHosts": "*",
+ "ConnectionStrings": {
+ "ylcms": "server=139.196.109.225;uid=root;pooling=true;port=3306;pwd=Midnight001!@#$;database=yltrs_ylcms;charset=utf8;Allow User Variables=True;SslMode=none;Connection Timeout=30;IgnoreCommandTransaction=true;",
+ "yladmin": "server=139.196.109.225;uid=root;pooling=true;port=3306;pwd=Midnight001!@#$;database=yltrs_admin;charset=utf8;Allow User Variables=True;SslMode=none;Connection Timeout=30;IgnoreCommandTransaction=true;",
+ "ylclient": "server=139.196.109.225;uid=root;pooling=true;port=3306;pwd=Midnight001!@#$;database=yltrs_client;charset=utf8;Allow User Variables=True;SslMode=none;Connection Timeout=30;IgnoreCommandTransaction=true;",
+ "bondoms": "server=139.196.109.225;uid=root;pooling=true;port=3306;pwd=Midnight001!@#$;database=bond_oms;charset=utf8;Allow User Variables=True;SslMode=none;Connection Timeout=30;IgnoreCommandTransaction=true;"
+ // "apex_oracle": "Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=122.112.205.57)(PORT=11521)))(CONNECT_DATA=(SERVICE_NAME=xe)));User ID=system;Password=oracle;"
+ },
+ "AppSettings": {
+ "VirtualPathRoot": "",
+ "UseRightAligned": "",
+ "PluginFolder": "D:\\project\\zsza-trs\\Plugins\\build\\ZheShang\\Debug\\net6.0"
+ },
+ "LibreOffice": {
+ "ExePath": "",
+ "UserInstallation": ""
+ },
+ "EPPlus": {
+ "ExcelPackage": {
+ "LicenseContext": "NonCommercial" //The license context used
+ }
+ },
+ "KafkaConfig": {
+ "BootstrapServers": "139.196.109.225:9092", // Kafka 集群的地址
+ "Acks": -1, // 消息确认方式,可以是 All(-1)、Leader(1)、None(0) 中的一种
+ "EnableAutoCommit": false, //是否自动提交
+ "EnableIdempotence": false, // 开启幂等性,确保消息只被发送一次
+ "MaxInFlight": 5, // 控制生产者在同一时间最多可以发送的未确认消息数
+ "CompressionType": 0, // 消息压缩方式,可以是 None(0)、Gzip(1)、Snappy(2)、Lz4(3)、Zstd(4) 中的一种,
+ "MessageTimeoutMs": 3000, // 控制生产者等待消息确认的时间,单位是毫秒
+ "ClientRateTopic": "ylClientRateTopic", //客户互换费率生产topic
+ "HedgingAccountTopic": "ylHedgingAccountTopic", //对冲账户生产topic
+ "AccountCapitalTopicGroupId": "YiLian_OnRspAccountCapitalConsumer", //账户资金消费组
+ "ReqAccountCapitalTopic": "ReqAccountCapital", //账户资金请求topic
+ "OnRspAccountCapitalTopic": "OnRspAccountCapital", //账户资金请求返回topic
+ "AutoOffsetReset": 1, //Latest(0),Earliest(1),Error(2)
+ "EnableCalcBongd": false, //是否启用kafka计算
+ "ReqClientRiskCheckTopic": "YiLian_ReqClientRiskCheck", //客户风控检查
+ "ReqClientRiskCheckConsumerTopic": "YiLian_OnRspClientRiskCheck", //客户风控检查消费者
+ "ReqClientRiskCheckTopicGroupId": "YiLian_ReqClientRiskCheckConsumer1", //客户风控检查消费者
+ "ReqClientMonitorTopic": "YiLian_ReqClientMonitor", //客户资金监控
+ "OnRspClientMonitorConsumerTopic": "YiLian_OnRspClientMonitor", //客户资金监控消费者
+ "ReqClientMonitorTopicGroupId": "YiLian_ReqClientMonitorConsumer1", //客户资金监控消费组
+ "ReqClientMonitorSingleTopic": "YiLian_ReqClientMonitorSingle", //单个客户资金监控
+ "OnRspClientMonitorSingleConsumerTopic": "YiLian_OnRspClientMonitorSingle", //单个客户资金监控
+ "ReqClientMonitorSingleTopicGroupId": "YiLian_ReqClientMonitorSingleConsumer1", //单个客户资金监控
+ "TrsExchangeTradeConsumerTopic": "YiLian_HedgingOrder", //TRS对冲交易消费 topic
+ "TrsExchangeTradeConsumerTopicGroupId": "YiLian_HedgingOrderGroup1", //TRS对冲交易消费 Group
+ "YiLian_ReqHedgingOrderCancelTopic": "YiLian_ReqHedgingOrderCancel", //TRS对冲交易撤单请求消费 topic
+ "YiLian_ReqHedgingOrderCancelTopicGroupId": "YiLian_ReqHedgingOrderCancelGroup1", //TRS对冲交易撤单请求消费 Group
+ "YiLian_RespHedgingOrderCancelTopic": "YiLian_RespHedgingOrderCancel", //TRS对冲交易撤单请求回应 topic
+ "YiLian_ClientInfoChangeTopic": "YiLian_ClientInfoChangeTopic", //客户信息变更通知客户端 topic
+ "YiLian_CashCalcConsumerTopic": "YiLian_CashCalc", //客户资金计算 topic
+ "YiLian_CashCalcConsumerGroup": "YiLian_CashCalcGroup1", //客户资金计算消费组 topic
+ "YiLian_CashNoticeConsumerTopic": "YiLian_CashNotice", //客户资金通知 topic
+ "YiLian_CashNoticeConsumerGroup": "YiLian_CashNoticeGroup", //客户资金通知消费组 topic
+ "YiLian_HolidayResetTopic": "YiLian_HolidayReset", //交易日历缓存重新加载 topic
+ "YiLian_HolidayResetGroupId": "YiLian_HedgingOrderGroup1", //交易日历缓存重新加载消费 Group
+ "YiLian_SwapFlowTopic": "YiLian_SwapFlow", //交易端同步流水
+ "YiLian_SwapFlowGroup": "YiLian_SwapFlowGroup1", //交易端同步流水消费组
+ "YiLian_SysUserInfoChangeTopic": "YiLian_SysUserInfoChangeTopic" //管理端系统用户变更
+ },
+ "BondOmsInterface": {
+ "BaseUrl": "http://trs.yiliantech.com:8080/trs_hub_api"
+ },
+ "Reg_Report_Url": "http://139.196.109.225:8889",//报送后端地址
+ "OrcaleDatabaseConfig": {
+ "Schema": "APEX_040000"
+ },
+ "SendKafakaCron": "10 0 * * *",
+ "MaxThreadPercent": 0.6, //占系统资源最多60%的线程数量
+ "oa_confg": {
+ "BaseUrl": "http://ip:port",
+ "SystemKey": "M001", //OA系统key
+ "ObjectClass": "ZSZQ_ZDNX", //OA文件类别
+ "Urgent": 1, //紧急程度,1一般 2紧急 3加急
+ "Issend": 0 //流程是否自动发送,0不发送,1自动发送下一步
+ }
}
diff --git a/YLErpWeb/appsettings.uat.json b/YLErpWeb/appsettings.uat.json
index 186bb9db..c26cc1d6 100644
--- a/YLErpWeb/appsettings.uat.json
+++ b/YLErpWeb/appsettings.uat.json
@@ -73,5 +73,12 @@
"Schema": "YILIAN"
},
"SendKafakaCron": "10 0 * * *",
- "MaxThreadPercent": 0.6 //占系统资源最多60%的线程数量
+ "MaxThreadPercent": 0.6, //占系统资源最多60%的线程数量
+ "oa_confg": {
+ "BaseUrl": "http://10.52.130.11",
+ "SystemKey": "fF2U9HXs7dm6Hjz5X", //OA系统key
+ "ObjectClass": "ZSZQ_CWYSPJYQRSDZWF", //OA文件类别
+ "Urgent": 1, //紧急程度,1一般 2紧急 3加急
+ "Issend": 0 //流程是否自动发送,0不发送,1自动发送下一步
+ }
}
diff --git a/YLErpWeb/wwwroot/Scripts/app/client/entryexitEdit.js b/YLErpWeb/wwwroot/Scripts/app/client/entryexitEdit.js
index 5dd2036d..10d5a0cc 100644
--- a/YLErpWeb/wwwroot/Scripts/app/client/entryexitEdit.js
+++ b/YLErpWeb/wwwroot/Scripts/app/client/entryexitEdit.js
@@ -1,4 +1,8 @@
-const cardInputMgr = (new function () {
+var winloss = 0; // 已实现盈亏
+var netFund = 0; // 初保账户
+var vmFund = 0; // 追保账户
+var transferOutMoney = 0; // 转出金额
+const cardInputMgr = (new function () {
var _inited = 0, _inputFlag = 0;
@@ -180,7 +184,18 @@ function checkSubmitData() {
else {
$("#Money").val($("#Money").val().replace(',', ''));
}
-
+ let direction = $("#Direction").val();
+ if (direction==="划转") {
+ var transfer_out_account = $("#TransferOutAccount").val();
+ var transfer_in_account = $("#TransferInAccount").val();
+ if (transfer_out_account === transfer_in_account) {
+ return main.message("转出科目与转入科目不能相同!");
+ }
+ var money = parseFloat($("#Money").val());
+ if (money <=0) {
+ return main.message("转出金额必须大于0!");
+ }
+ }
return cardInputMgr.checkSubmit();
}
@@ -205,16 +220,30 @@ function setDirection(isInit) {
!isInit && cardInputMgr.changeInputType(true);
let direction = $("#Direction").val();
$(".changeInputBtn").toggleClass("hide", ["出金", "应付"].includes(direction));
- if (direction === "出金") {
- $("#cash_type_container").hide(); // 隐藏资金类型
- } else {
+ if (direction === "入金") {
$("#cash_type_container").show(); // 显示资金类型
+ } else {
+ $("#cash_type_container").hide(); // 隐藏资金类型
+ }
+ if (direction === "划转") {
+ $("#transfer_out_container").show();
+ $("#transfer_in_container").show();
+ $("#transferAll").show();
+ } else {
+ $("#transfer_out_container").hide();
+ $("#transfer_in_container").hide();
+ $("#transferAll").hide();
}
cardInputMgr.toggle(["入金", "出金"].includes(direction));
cardInputMgr.updateOptions();
}
+// 全部转出
+function transferAll() {
+ $("#MoneyStr").val(transferOutMoney);
+ moneyInputMgr.onInput();
+}
function setClientCash() {
var clientId = $("#ClientId").val();
if (!clientId) {
@@ -225,9 +254,49 @@ function setClientCash() {
$("#ClientCashCNY").val(res.CNY);
$("#ClientCashUSD").val(res.USD);
}
- })
+ });
+ main.post("/trade_span/GetClientLatestBalance", { clientId: clientId }).done(function (data) {
+ winloss = numFormart(data.WinLoss);
+ netFund = numFormart(data.NetFund);
+ vmFund = numFormart(data.VmFundSum);
+ setTransferMoney();
+ });
+}
+function setTransferMoney() {
+ var clientId = $("#ClientId").val();
+ if (!clientId) {
+ return;
+ }
+ var transfer_out_account = $("#TransferOutAccount").val();
+ var transfer_in_account = $("#TransferInAccount").val();
+ if (transfer_out_account === "初保账户") {
+ transferOutMoney = netFund;
+ $("#transfer_out_account_money").text("余额:" + netFund);
+ }
+ else if (transfer_out_account === "追保账户") {
+ transferOutMoney = vmFund;
+ $("#transfer_out_account_money").text("余额:" + vmFund);
+ } else {
+ transferOutMoney = winloss;
+ $("#transfer_out_account_money").text("余额:" + winloss);
+ }
+ if (transfer_in_account === "初保账户") {
+ $("#transfer_in_account_money").text("余额:" + netFund);
+ }
+ else if (transfer_in_account === "追保账户") {
+ $("#transfer_in_account_money").text("余额:" + vmFund);
+ } else {
+ $("#transfer_in_account_money").text("余额:" + winloss);
+ }
+}
+function numFormart(num) {
+ num = num || 0;
+ var result = numeral(num).format("0,0.00") === "NaN" ? "0.00" : numeral(num).format("0,0.00");
+ if (result === "-0.00") {
+ result = "0.00";
+ }
+ return result;
}
-
$(function () {
cardInputMgr.init();
diff --git a/YLErpWeb/wwwroot/Scripts/app/swaptrade/SwapflowList.js b/YLErpWeb/wwwroot/Scripts/app/swaptrade/SwapflowList.js
index 3d51053f..cc16488f 100644
--- a/YLErpWeb/wwwroot/Scripts/app/swaptrade/SwapflowList.js
+++ b/YLErpWeb/wwwroot/Scripts/app/swaptrade/SwapflowList.js
@@ -1155,6 +1155,10 @@ var vue = new Vue({
this.swapflow.ClientId = client.id;
this.swapflow.ClientName = client.Name;
},
+ //变更标的单价
+ changeSpotPrice() {
+ this.swapflow.TradingAmount = main.toNumber(this.swapflow.TradingAmountAvg * this.swapflow.TradingQty * this.swapflow.ContractSize*100, 2);
+ },
deleteSwapflow(id, st) {
main.confirm("确定要删除吗?", function () {
main.post("/swaptrade2/DeleteSwapflow?enid=" + id + "&step=" + st).done(function (resp) {
diff --git a/YLErpWeb/wwwroot/Scripts/app/trade/tradeConfirmBookListByClient.js b/YLErpWeb/wwwroot/Scripts/app/trade/tradeConfirmBookListByClient.js
index 9238fd46..4dcb8b62 100644
--- a/YLErpWeb/wwwroot/Scripts/app/trade/tradeConfirmBookListByClient.js
+++ b/YLErpWeb/wwwroot/Scripts/app/trade/tradeConfirmBookListByClient.js
@@ -37,16 +37,16 @@ const colModelGrid = (new function () {
return html;
}
},
- // { label: 'OA状态', name: 'OAStatus', width: 100, align: 'center' },
- //{ label: 'OA-URL', name: 'OAURL', width: 150, align: 'center',
- // formatter: function (cellValue, options, rowObject) {
- // if (cellValue && cellValue.length > 0) {
- // return '
查看 ';
- // }
- // return '';
- // }
- //},
- //{ label: 'OA消息', name: 'OAMessage', width: 150, align: 'left' },
+ { label: 'OA状态', name: 'OAStatus', width: 100, align: 'center' },
+ { label: 'OA-URL', name: 'OAURL', width: 150, align: 'center',
+ formatter: function (cellValue, options, rowObject) {
+ if (cellValue && cellValue.length > 0) {
+ return '
查看 ';
+ }
+ return '';
+ }
+ },
+ { label: 'OA消息', name: 'OAMessage', width: 150, align: 'left' },
{ label: '交易数量', name: 'tradeCount', width: 80, align: 'center' },
{ label: 'tradeIds', name: 'tradeIds', hidden: true, optionHide: true }];
this.upload = function (encryptId, sendMail) {
@@ -166,7 +166,7 @@ $(function () {
// $("#batchSendMailBtn").click(BatchSendMail);
initJqGrid();
SendEmailHub()
- // SendOAHub(); // 初始化OA发送功能
+ SendOAHub(); // 初始化OA发送功能
});
// 初始化jqGrid函数
@@ -259,8 +259,8 @@ function showToolName(cellValue, options, rowObject) {
html += "
".template(rowObject.ContractCode, canUpload);
// 添加发送OA按钮
- //html += "
"
- // .template(rowObject.id);
+ html += "
"
+ .template(rowObject.id);
return html;
}