From d55923a1fbc22847aaaf21c584568737ff7dc83d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=BC=A0=E5=90=8D=E9=94=90?= <1565842059@qq.com>
Date: Wed, 5 Aug 2026 10:07:01 +0800
Subject: [PATCH] =?UTF-8?q?feat(swaptrade):=20=E4=BF=AE=E5=A4=8D=E4=BA=A4?=
=?UTF-8?q?=E6=98=93=E5=90=8E=E4=BB=98=E3=80=81=E9=A2=84=E4=BB=98=E9=87=91?=
=?UTF-8?q?=E8=85=BF=E9=87=91=E9=A2=9D=20=E5=B0=8F=E6=95=B0=E7=82=B9?=
=?UTF-8?q?=E7=B2=BE=E5=BA=A6=E9=97=AE=E9=A2=98=EF=BC=882=E4=BD=8D?=
=?UTF-8?q?=EF=BC=89?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 新增 inputFormatTradeSinglePriceFixed2 固定精度为2位小数格式
- 更新 InterestPrincipalFix 字段使用固定2位小数格式
- 更新 PosiTradingFeePending 字段使用固定2位小数格式
---
YLErpWeb/Views/SwapTrade2/TradeEdit.cshtml | 4 ++--
YLErpWeb/wwwroot/Scripts/app/swaptrade/swapTradeEdit.js | 1 +
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/YLErpWeb/Views/SwapTrade2/TradeEdit.cshtml b/YLErpWeb/Views/SwapTrade2/TradeEdit.cshtml
index 21bfd56f..211e8a35 100644
--- a/YLErpWeb/Views/SwapTrade2/TradeEdit.cshtml
+++ b/YLErpWeb/Views/SwapTrade2/TradeEdit.cshtml
@@ -320,7 +320,7 @@
-
+
|
|
-
+
我方{{item.PosiDirection==1?"支付":"收取"}}交易费用
|
diff --git a/YLErpWeb/wwwroot/Scripts/app/swaptrade/swapTradeEdit.js b/YLErpWeb/wwwroot/Scripts/app/swaptrade/swapTradeEdit.js
index 500905b1..0ac2c247 100644
--- a/YLErpWeb/wwwroot/Scripts/app/swaptrade/swapTradeEdit.js
+++ b/YLErpWeb/wwwroot/Scripts/app/swaptrade/swapTradeEdit.js
@@ -15,6 +15,7 @@ const inputFormatTradeAmount = Object.freeze({ precision: otcformat.trading.noti
const inputFormatSwapRate = Object.freeze({ precision: 4, negative: true, append: '%', trimTailZeros: false });
const inputFormatTradePrice = Object.freeze({ precision: otcformat.trading.tradePrice.precision, negative: true, append: '' });
const inputFormatTradeSinglePrice = Object.freeze({ precision: otcformat.trading.tradeSinglePrice.precision, negative: true, append: '', percent: false });
+const inputFormatTradeSinglePriceFixed2 = Object.freeze({ precision: 2, negative: true, append: '', percent: false, trimTailZeros: false });
const inputFormatPosiFeePercent = Object.freeze({ precision: 4, negative: true, append: '%' });
const inputFormatPosiFeeUnit = Object.freeze({ precision: 6, negative: true, append: '' });
const inputFormatMarginRate = Object.freeze({ precision: otcformat.trading.marginRateP.precision, append: '%' });