|
|
@@ -3,25 +3,25 @@
|
|
|
<Delivery v-bind="{ goodsId: selectedRow.goodsid, total: selectedRow.enableqty }">
|
|
|
<template #header="{ qtyStep, goodunit }">
|
|
|
<span>{{ selectedRow.goodsname }}</span>
|
|
|
- <span>持仓量:{{ selectedRow.curpositionqty }}</span>
|
|
|
- <span>可用量:{{ selectedRow.enableqty }}</span>
|
|
|
- <span>可交收数量:{{ (selectedRow.enableqty * qtyStep) + goodunit }}</span>
|
|
|
+ <span>{{ t('quote.holdvolume') }}:{{ selectedRow.curpositionqty }}</span>
|
|
|
+ <span>{{ t('quote.spot.enableqty') }}:{{ selectedRow.enableqty }}</span>
|
|
|
+ <span>{{ t('delivery.online.enableQty') }}:{{ (selectedRow.enableqty * qtyStep) + goodunit }}</span>
|
|
|
</template>
|
|
|
<template #footer="{ qty, qtyStep, discount, goodunit }">
|
|
|
<ul>
|
|
|
<li>
|
|
|
- <span :class="selectedRow.lastColor">现价:{{ selectedRow.lastprice }}</span>
|
|
|
+ <span :class="selectedRow.lastColor">{{ t('position.pricing.lastprice') }}:{{ selectedRow.lastprice }}</span>
|
|
|
</li>
|
|
|
<li>
|
|
|
- <span>所需合约量:{{ qty / qtyStep }}</span>
|
|
|
+ <span>{{ t('delivery.online.needqty') }}:{{ qty / qtyStep }}</span>
|
|
|
</li>
|
|
|
</ul>
|
|
|
<ul>
|
|
|
<li>
|
|
|
- <span>升贴水:{{ discount.toFixed(2) }}</span>
|
|
|
+ <span>{{ t('delivery.online.pricemove') }}:{{ discount.toFixed(2) }}</span>
|
|
|
</li>
|
|
|
<li>
|
|
|
- <span>已点数量:{{ qty + goodunit }}</span>
|
|
|
+ <span>{{ t('delivery.online.orderedqty') }}:{{ qty + goodunit }}</span>
|
|
|
</li>
|
|
|
</ul>
|
|
|
</template>
|
|
|
@@ -31,6 +31,9 @@
|
|
|
<script lang="ts" setup>
|
|
|
import { PropType } from 'vue'
|
|
|
import Delivery from '@pc/components/modules/delivery/index.vue'
|
|
|
+import { i18n } from "@/stores"
|
|
|
+
|
|
|
+const { t } = i18n.global
|
|
|
|
|
|
defineProps({
|
|
|
selectedRow: {
|