|
|
@@ -13,8 +13,8 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item prop="OrderQty" :label="t('quote.goods.delistingqty')">
|
|
|
<div class="g-qty-group">
|
|
|
- <el-input-number :placeholder="t('common.pleaseenter')" :min="0" :max="selectedRow.orderqty" :precision="0" :step="qtyStep"
|
|
|
- v-model="formData.OrderQty" />
|
|
|
+ <el-input-number :placeholder="t('common.pleaseenter')" :min="0" :max="selectedRow.orderqty"
|
|
|
+ :precision="0" :step="qtyStep" v-model="formData.OrderQty" />
|
|
|
<el-radio-group size="small" v-model="qtyStep" @change="onRadioChange">
|
|
|
<el-radio v-for="(value, index) in qtyStepList" :key="index" :label="value" border />
|
|
|
</el-radio-group>
|
|
|
@@ -24,7 +24,8 @@
|
|
|
<template #footer>
|
|
|
<template v-if="selectedRow.buyorsell === BuyOrSell.Buy">
|
|
|
<el-button type="primary" :disabled="!formData.OrderQty || formData.OrderQty > selectedRow.orderqty"
|
|
|
- @click="onSubmit(EBuildType.BUILDTYPE_OPEN)" v-if="quote?.tradeproperty === 1">{{ t('quote.ordersell') }}</el-button>
|
|
|
+ @click="onSubmit(EBuildType.BUILDTYPE_OPEN)" v-if="quote?.tradeproperty === 1">{{
|
|
|
+ t('quote.ordersell') }}</el-button>
|
|
|
<el-button type="primary" :disabled="!formData.OrderQty || !buyQty || (formData.OrderQty > buyQty)"
|
|
|
@click="onSubmit(EBuildType.BUILDTYPE_CLOSE)">
|
|
|
<span>{{ t('quote.transfersell') }}</span>
|
|
|
@@ -51,9 +52,9 @@ import { handleRequestBigNumber } from '@/filters'
|
|
|
import { EBuildType, EDelistingType, EListingSelectType, EOrderOperateType, EPriceMode, EValidType } from '@/constants/client'
|
|
|
import { BuyOrSell } from '@/constants/order'
|
|
|
import { useOrder } from '@/business/trade'
|
|
|
-import { useFuturesStore, usePositionStore } from '@/stores'
|
|
|
+import { i18n, useFuturesStore, usePositionStore } from '@/stores'
|
|
|
import AppDrawer from '@pc/components/base/drawer/index.vue'
|
|
|
-import { i18n } from '@/stores'
|
|
|
+import ElInputNumber from '@pc/components/base/input-number/index.vue'
|
|
|
|
|
|
const { t } = i18n.global
|
|
|
|