Handy_Cao hace 1 año
padre
commit
fa21c4b448

+ 3 - 0
public/locales/en-US.json

@@ -163,6 +163,7 @@
         "ask": "AskPrice",
         "time": "Time",
         "vol": "VOL",
+        "holdvolume": "Hold Volume",
         "totalvolume": "Total Volume",
         "totalturnover": "Total Turnover",
         "buyhall": "Buy Hall",
@@ -1055,6 +1056,8 @@
             "title": "Invoice",
             "title1": "Update Invoice Info",
             "title2": "Add Invoice Info",
+            "personal": "Personal",
+            "company": "Company",
             "default": "Default",
             "receipttype": "ReceiptType",
             "UserName": "UserName",

+ 3 - 0
public/locales/zh-CN.json

@@ -164,6 +164,7 @@
         "ask": "卖价",
         "time": "时间",
         "vol": "现量",
+        "holdvolume": "持仓量",
         "totalvolume": "成交量",
         "totalturnover": "成交额",
         "buyhall": "买大厅",
@@ -1059,6 +1060,8 @@
             "title": "发票信息",
             "title1": "修改发票信息",
             "title2": "新增发票信息",
+            "personal": "个人",
+            "company": "企业",
             "default": "默认",
             "receipttype": "发票类型",
             "UserName": "发票抬头",

+ 14 - 12
src/packages/pc/components/modules/quote/price/index.vue

@@ -23,55 +23,55 @@
         <div class="app-quote-price__more">
             <ul>
                 <li>
-                    <span>开盘</span>
+                    <span>{{ t('quote.opened') }}</span>
                     <span :class="quote.openedColor">
                         {{ handleNumberValue(quote.opened.toFixed(quote.decimalplace)) }}
                     </span>
                 </li>
                 <li>
-                    <span>昨结</span>
+                    <span>{{ t('quote.presettle') }}</span>
                     <span>{{ handleNumberValue(quote.presettle.toFixed(quote.decimalplace)) }}</span>
                 </li>
                 <li>
-                    <span>最高</span>
+                    <span>{{ t('quote.highest') }}</span>
                     <span :class="quote.highestColor">
                         {{ handleNumberValue(quote.highest.toFixed(quote.decimalplace)) }}
                     </span>
                 </li>
                 <li>
-                    <span>最低</span>
+                    <span>{{ t('quote.lowest') }}</span>
                     <span :class="quote.lowestColor">
                         {{ handleNumberValue(quote.lowest.toFixed(quote.decimalplace)) }}
                     </span>
                 </li>
                 <li v-if="quote.marketid != 99201">
-                    <span>涨停</span>
+                    <span>{{ t('quote.limitup') }}</span>
                     <span class="g-price-up">{{ handleNumberValue(quote.limitup.toFixed(quote.decimalplace)) }}</span>
                 </li>
                 <li v-if="quote.marketid != 99201">
-                    <span>跌停</span>
+                    <span>{{ t('quote.limitdown') }}</span>
                     <span class="g-price-down">{{ handleNumberValue(quote.limitdown.toFixed(quote.decimalplace)) }}</span>
                 </li>
                 <li>
-                    <span>均价</span>
+                    <span>{{ t('quote.averageprice') }}</span>
                     <span :class="quote.averagepriceColor">
                         {{ handleNumberValue(quote.averageprice.toFixed(quote.decimalplace)) }}
                     </span>
                 </li>
                 <li>
-                    <span>振幅</span>
+                    <span>{{ t('quote.amplitude') }}</span>
                     <span>{{ parsePercent(quote.amplitude) }}</span>
                 </li>
                 <li v-if="quote.marketid != 99201">
-                    <span>成交额</span>
+                    <span>{{ t('quote.totalturnover') }}</span>
                     <span>{{ changeUnit(quote.totalturnover) }}</span>
                 </li>
                 <li v-if="globalStore.hasQuotationProperty('holdvolume')">
-                    <span>持仓量</span>
+                    <span>{{ t('quote.holdvolume') }}</span>
                     <span>{{ changeUnit(quote.holdvolume) }}</span>
                 </li>
                 <li v-if="globalStore.hasQuotationProperty('totalvolume') && quote.marketid != 99201">
-                    <span>成交量</span>
+                    <span>{{ t('quote.totalvolume') }}</span>
                     <span>{{ changeUnit(quote.totalvolume) }}</span>
                 </li>
             </ul>
@@ -81,7 +81,7 @@
 
 <script lang="ts" setup>
 import { parsePercent, handleNumberValue, changeUnit } from '@/filters'
-import { useGlobalStore, useFuturesStore } from '@/stores'
+import { useGlobalStore, useFuturesStore, i18n } from '@/stores'
 
 const props = defineProps({
     goodsCode: {
@@ -93,6 +93,8 @@ const props = defineProps({
 const globalStore = useGlobalStore()
 const futuresStore = useFuturesStore()
 const quote = futuresStore.getGoodsQuote(props.goodsCode)
+const { t } = i18n.global
+
 </script>
 
 <style lang="less">

+ 1 - 1
src/packages/pc/views/account/receipt/components/delete/index.vue

@@ -1,7 +1,7 @@
 <!-- 账户管理-发票信息管理-删除 -->
 <template>
     <app-drawer :title="t('common.tips')" v-model:show="show" :loading="loading" :refresh="refresh">
-        <div class="g-text-message">是否删除该发票?</div>
+        <div class="g-text-message">{{ t('mine.invoice.tips3') }}</div>
         <template #footer>
             <el-button type="info" @click="onCancel(false)">{{ t('operation.cancel') }}</el-button>
             <el-button type="primary" @click="onSubmit">{{ t('operation.confirm') }}</el-button>

+ 10 - 10
src/packages/pc/views/account/receipt/components/edit/index.vue

@@ -1,31 +1,31 @@
 <!-- 账户管理-发票信息管理-编辑 -->
 <template>
-    <app-drawer :title="selectedRow?.autoid ? '修改发票' : '新增发票'" :width="800" v-model:show="show" :loading="loading"
+    <app-drawer :title="selectedRow?.autoid ? t('mine.invoice.title1') : t('mine.invoice.title2')" :width="800" v-model:show="show" :loading="loading"
         :refresh="refresh">
         <el-form ref="formRef" class="el-form--horizontal" label-width="100px" :model="formData" :rules="formRules">
-            <el-form-item label="发票类型" prop="ReceiptType">
+            <el-form-item :label="t('mine.invoice.receipttype')" prop="ReceiptType">
                 <el-radio-group v-model="formData.ReceiptType">
-                    <el-radio :label="1">个人</el-radio>
-                    <el-radio :label="2">企业</el-radio>
+                    <el-radio :label="1">{{ t('mine.invoice.personal') }}</el-radio>
+                    <el-radio :label="2">{{ t('mine.invoice.company') }}</el-radio>
                 </el-radio-group>
             </el-form-item>
-            <el-form-item label="发票抬头" prop="UserName">
+            <el-form-item :label="t('mine.invoice.UserName')" prop="UserName">
                 <el-input :placeholder="t('common.pleaseenter')" v-model="formData.UserName" />
             </el-form-item>
             <template v-if="formData.ReceiptType === 2">
-                <el-form-item label="税号" prop="TaxpayerID">
+                <el-form-item :label="t('mine.invoice.TaxpayerID')" prop="TaxpayerID">
                     <el-input :placeholder="t('common.pleaseenter')" v-model="formData.TaxpayerID" />
                 </el-form-item>
-                <el-form-item label="开户银行" prop="ReceiptBank">
+                <el-form-item :label="t('mine.invoice.ReceiptBank')" prop="ReceiptBank">
                     <el-input :placeholder="t('common.pleaseenter')" v-model="formData.ReceiptBank" />
                 </el-form-item>
-                <el-form-item label="银行账号" prop="ReceiptAccount">
+                <el-form-item :label="t('mine.invoice.ReceiptAccount')" prop="ReceiptAccount">
                     <el-input :placeholder="t('common.pleaseenter')" v-model="formData.ReceiptAccount" />
                 </el-form-item>
-                <el-form-item label="企业地址" prop="Address">
+                <el-form-item :label="t('mine.invoice.Address')" prop="Address">
                     <el-input :placeholder="t('common.pleaseenter')" v-model="formData.Address" />
                 </el-form-item>
-                <el-form-item label="企业电话" prop="ContactInfo">
+                <el-form-item :label="t('mine.invoice.ContactInfo')" prop="ContactInfo">
                     <el-input :placeholder="t('common.pleaseenter')" v-model="formData.ContactInfo" />
                 </el-form-item>
             </template>

+ 6 - 6
src/packages/pc/views/market/trade/swap/detail/listing/index.vue

@@ -2,10 +2,10 @@
 <template>
     <app-drawer title="挂牌" v-model:show="show" :width="800" :loading="loading" :refresh="refresh">
         <el-form ref="formRef" class="el-form--horizontal" label-width="100px" :model="formData" :rules="formRules">
-            <el-form-item label="方向" prop="BuyOrSell">
+            <el-form-item :label="t('quote.buyorsell')" prop="BuyOrSell">
                 <el-radio-group v-model="formData.BuyOrSell">
-                    <el-radio :label="0">买挂牌</el-radio>
-                    <el-radio :label="1">卖挂牌</el-radio>
+                    <el-radio :label="0">{{ t('quote.bidlisting') }}</el-radio>
+                    <el-radio :label="1">{{ t('quote.asklisting') }}</el-radio>
                 </el-radio-group>
             </el-form-item>
             <el-form-item label="价格类型" prop="PriceMove">
@@ -128,7 +128,7 @@ const formRules: FormRules = {
             if (value) {
                 callback()
             } else {
-                callback(new Error('请输入挂牌价格'))
+                callback(new Error(t('quote.pricing.tips2')))
             }
         }
     }],
@@ -138,14 +138,14 @@ const formRules: FormRules = {
             if (value) {
                 callback()
             } else {
-                callback(new Error('请输入挂牌量'))
+                callback(new Error(t('quote.pricing.tips1')))
             }
         }
     }],
     MarketMaxSub: [{
         required: true,
         type: 'number',
-        message: '请输入点差'
+        message: t('quote.pricing.tips3')
     }],
 }