|
|
@@ -37,18 +37,18 @@
|
|
|
</template>
|
|
|
</Field>
|
|
|
<template v-if="direction === BuyOrSell.Buy || quote?.tradeproperty !== 2">
|
|
|
- <Field :label="$t('quote.goods.enableQty')">
|
|
|
+ <Field :label="$t('quote.enableQty')">
|
|
|
<template #input>
|
|
|
<span>{{ total.enableQty }}</span>
|
|
|
</template>
|
|
|
</Field>
|
|
|
- <Field :label="$t('quote.goods.deposit')">
|
|
|
+ <Field :label="$t('quote.deposit')">
|
|
|
<template #input>
|
|
|
<span>{{ total.deposit.toFixed(2) }}</span>
|
|
|
</template>
|
|
|
</Field>
|
|
|
</template>
|
|
|
- <Field :label="$t('quote.goods.avaiableMoney')">
|
|
|
+ <Field :label="$t('quote.avaiableMoney')">
|
|
|
<template #input>
|
|
|
<span>{{ accountStore.currentAccount.avaiableMoney?.toFixed(2) }}</span>
|
|
|
</template>
|
|
|
@@ -59,22 +59,22 @@
|
|
|
<div class="g-form__footer">
|
|
|
<template v-if="direction === BuyOrSell.Buy">
|
|
|
<Button type="danger" block square :disabled="!formData.OrderQty"
|
|
|
- @click="onBeforeSubmit(EBuildType.BUILDTYPE_OPEN)" v-if="!quote?.iscannotbuy">{{ $t('quote.goods.orderbuy') }}</Button>
|
|
|
+ @click="onBeforeSubmit(EBuildType.BUILDTYPE_OPEN)" v-if="!quote?.iscannotbuy">{{ $t('quote.orderbuy') }}</Button>
|
|
|
<Button color="#199e00" block square
|
|
|
:disabled="!formData.OrderQty || !sellQty || (formData.OrderQty > sellQty)"
|
|
|
@click="onBeforeSubmit(EBuildType.BUILDTYPE_CLOSE)" v-if="!isTrademode16">
|
|
|
- <span>{{ $t('quote.goods.transferbuy') }}</span>
|
|
|
+ <span>{{ $t('quote.transferbuy') }}</span>
|
|
|
<span v-if="sellQty">(≤{{ sellQty }})</span>
|
|
|
</Button>
|
|
|
</template>
|
|
|
<template v-if="direction === BuyOrSell.Sell">
|
|
|
<Button type="danger" block square :disabled="!formData.OrderQty"
|
|
|
@click="onBeforeSubmit(EBuildType.BUILDTYPE_OPEN)"
|
|
|
- v-if="!isTrademode16 && !quote?.iscannotsell">{{ $t('quote.goods.ordersell') }}</Button>
|
|
|
+ v-if="!isTrademode16 && !quote?.iscannotsell">{{ $t('quote.ordersell') }}</Button>
|
|
|
<Button color="#199e00" block square
|
|
|
:disabled="!formData.OrderQty || !buyQty || (formData.OrderQty > buyQty)"
|
|
|
@click="onBeforeSubmit(EBuildType.BUILDTYPE_CLOSE)">
|
|
|
- <span>{{ $t('quote.goods.transfersell') }}</span>
|
|
|
+ <span>{{ $t('quote.transfersell') }}</span>
|
|
|
<span v-if="buyQty">(≤{{ buyQty }})</span>
|
|
|
</Button>
|
|
|
</template>
|
|
|
@@ -135,7 +135,7 @@ const total = computed(() => {
|
|
|
enableQty: 0,
|
|
|
deposit: 0
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
const fixed = agreeunit * marketmarginvalue
|
|
|
const ratio = fixed * (formData.OrderPrice ?? 0)
|
|
|
|