|
|
@@ -8,18 +8,19 @@
|
|
|
<Form ref="formRef" class="g-form__container" @submit="onCloseSumit">
|
|
|
<CellGroup title="持仓信息" inset>
|
|
|
<Cell title="代码/名称" :value="`${selectedRow.goodscode}/${selectedRow.goodsname}`" />
|
|
|
- <Cell title="持仓方向" :value="getBuyOrSellName(selectedRow.buyorsell, 1)" />
|
|
|
- <Cell title="持仓价格(USDT)" :value="selectedRow.averageprice" />
|
|
|
- <Cell title="持仓量" :value="selectedRow.positionqty" />
|
|
|
- <Cell title="冻结量" :value="selectedRow.frozenqty" />
|
|
|
- <Cell title="行情价格">
|
|
|
+ <Cell title="持仓方向" :value="getBuyOrSellName(selectedRow.buyorsell)" />
|
|
|
+ <Cell :title="`持仓价格(${getGoodsCurrencyItemName(selectedRow.currencyid)})`"
|
|
|
+ :value="selectedRow.averageprice" />
|
|
|
+ <Cell :title="`持仓量(${selectedRow.goodscode})`" :value="selectedRow.positionqty" />
|
|
|
+ <Cell :title="`冻结量(${selectedRow.goodscode})`" :value="selectedRow.frozenqty" />
|
|
|
+ <Cell :title="`行情价格(${getGoodsCurrencyItemName(selectedRow.currencyid)})`">
|
|
|
<template #value>
|
|
|
<span :class="selectedRow.lastPriceClass">
|
|
|
{{ selectedRow.lastPrice.toFixed(selectedRow.decimalplace) }}
|
|
|
</span>
|
|
|
</template>
|
|
|
</Cell>
|
|
|
- <Cell title="浮动盈亏">
|
|
|
+ <Cell :title="`浮动盈亏(${getGoodsCurrencyItemName(selectedRow.currencyid)})`">
|
|
|
<template #value>
|
|
|
<span :class="selectedRow.profitLossClass">
|
|
|
{{ selectedRow.profitLoss.toFixed(selectedRow.decimalplace) }}
|
|
|
@@ -58,7 +59,7 @@
|
|
|
import { shallowRef, PropType, onMounted, computed } from 'vue'
|
|
|
import { CellGroup, Cell, Button, FieldRule, Form, Field, FormInstance } from 'vant'
|
|
|
import { dialog, fullloading } from '@/utils/vant'
|
|
|
-import { getBuyOrSellName, BuyOrSell, getPricemode2List } from '@/constants/order'
|
|
|
+import { getBuyOrSellName, getGoodsCurrencyItemName, BuyOrSell, getPricemode2List } from '@/constants/order'
|
|
|
import { useOrder } from '@/business/trade'
|
|
|
import { useFuturesStore, i18n, useUserStore } from '@/stores'
|
|
|
import { EBuildType, EDelistingType, EOrderOperateType, EListingSelectType, EPriceMode, EValidType } from '@/constants/client'
|
|
|
@@ -119,7 +120,7 @@ const onCloseSumit = () => {
|
|
|
formData.DelistingType = EDelistingType.DELISTINGTYPE_PRICE
|
|
|
formData.BuildType = EBuildType.BUILDTYPE_CLOSE
|
|
|
formData.TimevalidType = EValidType.VALIDTYPE_DR
|
|
|
- formData.OperateType = EOrderOperateType.ORDEROPERATETYPE_HOLDER_CLOSE
|
|
|
+ formData.OperateType = EOrderOperateType.ORDEROPERATETYPE_NORMAL
|
|
|
const param112 = userStore.getSystemParamValue('112')
|
|
|
formData.MarketMaxSub = Number(param112) || 100
|
|
|
|