Pārlūkot izejas kodu

修改 资金信息 余额

huangbin 4 gadi atpakaļ
vecāks
revīzija
7e2e8dfcc5

+ 1 - 1
src/views/order/funding_information/components/funding_information_funding_summary/index.vue

@@ -35,7 +35,7 @@
         <span>{{hazardRates(record)}}</span>
       </template>
       <!-- 净值 -->
-      <template #currentbalance="{record}">
+      <template #netWorth="{record}">
         <span>{{netWorth(record)}}</span>
       </template>
       <template #tradestatus="{text}">

+ 4 - 3
src/views/order/funding_information/components/funding_information_funding_summary/setup.ts

@@ -19,11 +19,11 @@ export const tableColumns = [
     },
     {
         key: '1th',
-        dataIndex: 'currentbalance',
+        dataIndex: 'netWorth',
         title: '净值',
         align: 'center',
         slots: {
-            customRender: 'currentbalance',
+            customRender: 'netWorth',
         },
         width: 120,
     },
@@ -139,9 +139,9 @@ export const useHazardRates = (positions: Ref<QueryTradePositionRsp[]>) => {
         const { accountid, currentbalance, otherfreezemargin, outamountfreeze } = taaccount
         // 浮动盈亏
         const profitloss = handleProfitloss(taaccount, false) as number
+
         // 市值
         const price = getSystemParam('087', '1') ? handleHoldPrice(accountid) : 0
-
         // 风险净值	根据系统参数“087 风险净值是否加上市值 - 0:不加 1:加“
         // 0. 风险净值=期末余额+浮动盈亏(收益权)-其他冻结-出金冻结
         // 1. 风险净值=期末余额+市值+浮动盈亏(收益权)-其他冻结-出金冻结
@@ -167,6 +167,7 @@ export const useHazardRates = (positions: Ref<QueryTradePositionRsp[]>) => {
         const { usedmargin, mortgagecredit } = taaccount
         // 风险净值
         const riskValue = handleRiskValue(taaccount)
+        console.log('riskValue', riskValue)
         const decimalplace = getDecimalplace()
         //   风险率	根据系统参数“132   风险率计算公式”:
         // 1. 风险率=占用/风险净值