From a9aec6d0d5385fc8d2a0b17335da22643318fb39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=96=B9=E6=B5=B7?= Date: Sun, 27 Apr 2025 10:12:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=87=E7=9A=84=E4=BA=A4=E6=98=93=E6=95=B0?= =?UTF-8?q?=E9=87=8F=E4=B8=8E=E4=BB=B7=E6=A0=BC=E7=BB=9F=E4=B8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- YLErpWeb/Controllers/ExchangeTradeController.cs | 6 ++++-- YLErpWeb/Views/ExchangeTrade/PositionList.cshtml | 7 ------- YLErpWeb/Views/ExchangeTrade/TradeEdit.cshtml | 6 +++--- YLErpWeb/Views/ExchangeTrade/TradeView.cshtml | 6 +++--- .../Scripts/app/trade/exchange/positionList.js | 6 ------ .../wwwroot/Scripts/app/trade/exchange/tradeEdit.js | 12 +++++++----- 6 files changed, 17 insertions(+), 26 deletions(-) diff --git a/YLErpWeb/Controllers/ExchangeTradeController.cs b/YLErpWeb/Controllers/ExchangeTradeController.cs index 8465a6bb..93f54830 100644 --- a/YLErpWeb/Controllers/ExchangeTradeController.cs +++ b/YLErpWeb/Controllers/ExchangeTradeController.cs @@ -93,8 +93,8 @@ namespace YLErp.Web.Controllers td = new ExchangeTrade { - TradeType = isOption ? "场内期权" : "商品期货", - InstrumentType = ConsGlobal.InstrumentType.CommodityFutures, + TradeType = "信用债", + InstrumentType = ConsGlobal.InstrumentType.CreditBonds, TradeDate = valuedateBLL.ValueDate, TraderId = UserId, TraderName = UserName, @@ -129,6 +129,8 @@ namespace YLErp.Web.Controllers public JsonResult AjaxSaveTradeEdit(ExchangeTrade model) { + model.TradeAmount *= 100;//张数 + model.TradeSinglePrice /= 100;// 价格除100 var td = new ExchangeTradeSaveService(CurUser).Save(model, Model.Enum.TradeSourceEnum.系统交易); return JsonSuccessData(td); } diff --git a/YLErpWeb/Views/ExchangeTrade/PositionList.cshtml b/YLErpWeb/Views/ExchangeTrade/PositionList.cshtml index edd1d560..e032de74 100644 --- a/YLErpWeb/Views/ExchangeTrade/PositionList.cshtml +++ b/YLErpWeb/Views/ExchangeTrade/PositionList.cshtml @@ -31,13 +31,6 @@ 标的代码 - @if (!pageObj.IsGuoJun) - { -
- 期权代码 - -
- }