|
|
@@ -41,7 +41,7 @@
|
|
|
:step="quote?.decimalvalue" />
|
|
|
</template>
|
|
|
</Field>
|
|
|
- <Cell title="价格" value="最优市价" v-if="formData.PriceMode === PriceMode.Market" />
|
|
|
+ <Cell title="价格" :value="t('digital.optimal')" v-if="formData.PriceMode === PriceMode.Market" />
|
|
|
<Field label="数量" :rules="formRules.OrderQty">
|
|
|
<template #input>
|
|
|
<app-stepper v-model="formData.OrderQty" :min="0"
|
|
|
@@ -68,9 +68,9 @@
|
|
|
<Row class="g-layout-block g-layout-block--inset">
|
|
|
<Col span="24">
|
|
|
<Button type="success" block v-if="formData.BuyOrSell === BuyOrSell.Buy"
|
|
|
- @click="formRef?.submit">买入</Button>
|
|
|
+ @click="formRef?.submit">{{ $t('quote.buy') }}</Button>
|
|
|
<Button type="danger" block v-if="formData.BuyOrSell === BuyOrSell.Sell"
|
|
|
- @click="formRef?.submit">卖出</Button>
|
|
|
+ @click="formRef?.submit">{{ $t('quote.sell') }}</Button>
|
|
|
</Col>
|
|
|
</Row>
|
|
|
<Tabs v-model:active="tabIndex" sticky>
|
|
|
@@ -132,6 +132,8 @@ const quote = computed(() => futuresStore.getQuoteItem({ goodsid: goodsId }))
|
|
|
const baseAccount = computed(() => spotAccountStore.getAccountItem({ currencyid: quote.value?.goodscurrencyid })) // 基础货币账户
|
|
|
const quoteAccount = computed(() => spotAccountStore.getAccountItem({ currencyid: quote.value?.currencyid })) // 计价货币账户
|
|
|
|
|
|
+console.log(quoteAccount.value, baseAccount.value)
|
|
|
+
|
|
|
const goodsCode = computed(() => quote.value?.goodscode ?? '')
|
|
|
|
|
|
const calculations = computed(() => {
|