Handy_Cao vor 1 Jahr
Ursprung
Commit
a873f82c30

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

@@ -46,11 +46,22 @@
         "modify2": "修改信息",
         "extension": "延期申请",
         "execution": "立即执行",
-        "payment": "付款"
+        "payment": "付款",
+        "disagree": "不同意",
+        "agree": "同意"
     },
     "chart": {
         "time": "分时",
-        "minutes": "分钟"
+        "minutes": "分钟",
+        "dayline": "日线",
+        "weekline": "周线",
+        "monthline": "月线",
+        "yearline": "年线",
+        "oneminutes": "1分钟",
+        "fiveminutes": "5分钟",
+        "thirtyminutes": "30分钟",
+        "onehour": "1小时",
+        "fourhour": "4小时"
     },
     "account": {
         "title": "资金信息",
@@ -96,7 +107,22 @@
         "bid": "买价",
         "ask": "卖价",
         "totalvolume": "成交量",
-        "totalturnover": "成交额"
+        "totalturnover": "成交额",
+        "buyhall": "买大厅",
+        "sellhall": "卖大厅",
+        "buysellhall": "买卖大厅",
+        "buy": "买入",
+        "selll": "卖出",
+        "bid1": "买一",
+        "bid2": "买二",
+        "bid3": "买三",
+        "bid4": "买四",
+        "bid5": "买五",
+        "ask1": "卖一",
+        "ask2": "卖二",
+        "ask3": "卖三",
+        "ask4": "卖四",
+        "ask5": "卖五"
     },
     "order": {
         "title": "我的订单",
@@ -539,5 +565,27 @@
             "tips_5": "账号处于正常使用状态,无被盗风险。",
             "tips_6": "3. 账号无任何纠纷"
         }
+    },
+    "report": {
+        "title": "交易商结算单",
+        "accountid": "账号",
+        "customername": "名称",
+        "currency": "币种",
+        "tradedate": "结算日期",
+        "tradedetail": "成交明细",
+        "inamount": "银行入金",
+        "outamount": "银行出金",
+        "closepl": "转让损益",
+        "reckonpl": "结算损益",
+        "paycharge": "贸易服务费",
+        "oriusedmargin": "占用资金",
+        "orioutamountfreeze": "冻结资金",
+        "avaiableoutmoney": "可出资金",
+        "ordersumary": "订单汇总",
+        "inoutamountdetail": "出入金明细",
+        "fundsinfo": "资金信息",
+        "accountinfo": "账户信息",
+        "reckondate": "结算日期",
+        "reportdetail": "报表明细"
     }
 }

+ 13 - 13
src/packages/mobile/views/bank/capital/information/index.vue

@@ -1,23 +1,23 @@
 <template>
     <div style="padding-top: 10px;">
         <CellGroup v-for="(item, index) in accountStore.accountComputedList" :key="index">
-            <Cell title="资金账号" :value="item.accountid" />
-            <Cell title="期初余额" :value="formatDecimal(item.balance)" />
-            <Cell title="期末余额" :value="formatDecimal(item.currentbalance)" />
-            <Cell title="净值" :value="formatDecimal(item.netvalue)" />
-            <Cell title="可用资金" :value="formatDecimal(item.avaiableMoney)" />
-            <Cell title="占用资金" :value="formatDecimal(item.usedmargin)" />
-            <Cell title="预扣保证金" :value="formatDecimal(item.freezeMargin)" />
-            <Cell title="浮动盈亏">
+            <Cell :title="$t('account.accountid')" :value="item.accountid" />
+            <Cell :title="$t('account.balance2')" :value="formatDecimal(item.balance)" />
+            <Cell :title="$t('account.currentbalance')" :value="formatDecimal(item.currentbalance)" />
+            <Cell :title="$t('account.netWorth')" :value="formatDecimal(item.netvalue)" />
+            <Cell :title="$t('account.availableFunds2')" :value="formatDecimal(item.avaiableMoney)" />
+            <Cell :title="$t('account.usedMargin2')" :value="formatDecimal(item.usedmargin)" />
+            <Cell :title="$t('account.freezeMargin2')" :value="formatDecimal(item.freezeMargin)" />
+            <Cell :title="$t('account.profitLoss')">
                 <template #value>
                     <span :class="handlePriceColor(item.profitLoss)">{{ formatDecimal(item.profitLoss) }}</span>
                 </template>
             </Cell>
-            <Cell title="今日入金" :value="formatDecimal(item.inamount)" />
-            <Cell title="今日出金" :value="formatDecimal(item.outamount)" />
-            <Cell title="今日损益" :value="formatDecimal(item.closepl)" />
-            <Cell title="贸易手续费" :value="formatDecimal(item.paycharge)" />
-            <Cell title="状态" :value="getTradeStatusName(item.tradestatus)" />
+            <Cell :title="$t('account.inamount')" :value="formatDecimal(item.inamount)" />
+            <Cell :title="$t('account.outamount')" :value="formatDecimal(item.outamount)" />
+            <Cell :title="$t('account.closepl')" :value="formatDecimal(item.closepl)" />
+            <Cell :title="$t('account.paycharge')" :value="formatDecimal(item.paycharge)" />
+            <Cell :title="$t('account.tradestatus')" :value="getTradeStatusName(item.tradestatus)" />
         </CellGroup>
     </div>
 </template>

+ 1 - 0
src/packages/mobile/views/bank/capital/statement/index.vue

@@ -33,6 +33,7 @@ const error = shallowRef(false)
 /// 资金类型
 const operatetype = shallowRef(0)
 const pullRefreshRef = shallowRef()
+
 /// 查询数据
 const operateTypeSearchList = [{
         label: '全部',

+ 2 - 2
src/packages/mobile/views/goods/detail/Index.vue

@@ -9,8 +9,8 @@
         <component :is="Tik" v-bind="{ goodsCode }" />
         <template #footer>
             <div class="g-form__footer">
-                <Button block type="danger" square @click="onListing(BuyOrSell.Buy)">买入</Button>
-                <Button block color="#199e00" square @click="onListing(BuyOrSell.Sell)">卖出</Button>
+                <Button block type="danger" square @click="onListing(BuyOrSell.Buy)">{{ $t('quote.buy') }}</Button>
+                <Button block color="#199e00" square @click="onListing(BuyOrSell.Sell)">{{ $t('quote.selll') }}</Button>
             </div>
             <component ref="componentRef" :is="componentMap.get(componentId)" v-bind="{ goodsCode, buyOrSell }"
                 @closed="closeComponent" v-if="componentId" />

+ 2 - 2
src/packages/mobile/views/goods/detail/components/listing/Index.vue

@@ -11,8 +11,8 @@
                     <Field name="BuyOrSell" :rules="formRules.BuyOrSelly" label="方向">
                         <template #input>
                             <RadioGroup v-model="direction" direction="horizontal">
-                                <Radio :name="0">买入</Radio>
-                                <Radio :name="1">卖出</Radio>
+                                <Radio :name="0">{{ $t('quote.buy') }}</Radio>
+                                <Radio :name="1">{{ $t('quote.selll') }}</Radio>
                             </RadioGroup>
                         </template>
                     </Field>

+ 4 - 4
src/packages/mobile/views/goods/trade/index.vue

@@ -1,11 +1,11 @@
 <template>
     <app-view class="g-form">
         <template #header>
-            <app-navbar :title="quote ? quote.goodscode + '/' + quote.goodsname : '买卖大厅'">
+            <app-navbar :title="quote ? quote.goodscode + '/' + quote.goodsname : $t('quote.buysellhall')">
                 <template #footer>
                     <Tabs v-model:active="tabIndex" @click="onRefresh">
-                        <Tab title="卖大厅" :name="BuyOrSell.Sell" />
-                        <Tab title="买大厅" :name="BuyOrSell.Buy" />
+                        <Tab :title="$t('quote.sellhall')" :name="BuyOrSell.Sell" />
+                        <Tab :title="$t('quote.buyhall')" :name="BuyOrSell.Buy" />
                     </Tabs>
                 </template>
             </app-navbar>
@@ -22,7 +22,7 @@
                     <template #operate="{ row, index }">
                         <Button size="small" type="primary" v-if="index === 0" round @click="onDelisting(row)"
                             style="width: 50px;">
-                            {{ tabIndex === BuyOrSell.Buy ? '卖出' : '买入' }}
+                            {{ tabIndex === BuyOrSell.Buy ? $t('quote.selll') : $t('quote.buy') }}
                         </Button>
                     </template>
                 </app-list>

+ 1 - 1
src/packages/mobile/views/order/position/components/spot/listing/Index.vue

@@ -32,7 +32,7 @@
             </Form>
             <template #footer>
                 <div class="g-form__footer">
-                    <Button block square type="danger" @click="formRef?.submit">卖出</Button>
+                    <Button block square type="danger" @click="formRef?.submit">{{ $t('quote.selll') }}</Button>
                 </div>
             </template>
         </app-view>

+ 22 - 22
src/packages/mobile/views/report/components/index.vue

@@ -3,34 +3,34 @@
         <template #header>
             <DropdownMenu :close-on-click-outside="false" style="z-index:1;">
                 <DropdownItem v-model="reportTypeValue" :options="reportType" @change="onChange" />
-                <DropdownItem ref="dropdownItemRef" :title="currentDate.length ? currentDate.join('-') : '结算日期'"
+                <DropdownItem ref="dropdownItemRef" :title="currentDate.length ? currentDate.join('-') : $t('report.reckondate')"
                     @open="showPicker = true" />
             </DropdownMenu>
         </template>
         <div style="padding-bottom: 50px;">
-            <CellGroup title="账户信息">
-                <Cell title="账号" :value="currentAccount.accountid" />
-                <Cell title="名称" :value="userInfo.customername" />
-                <Cell title="币种" value="RMB" />
-                <Cell title="结算日期" :value="tradeDate" />
+            <CellGroup :title="$t('report.accountinfo')">
+                <Cell :title="$t('report.accountid')" :value="currentAccount.accountid" />
+                <Cell :title="$t('report.customername')" :value="userInfo.customername" />
+                <Cell :title="$t('report.currency')" value="RMB" />
+                <Cell :title="$t('report.tradedate')" :value="tradeDate" />
             </CellGroup>
-            <CellGroup title="资金信息">
-                <Cell title="期初余额" :value="handleAmount(taaccount?.balance)" />
-                <Cell title="银行入金" :value="handleAmount(taaccount?.inamount)" />
-                <Cell title="银行出金" :value="handleAmount(taaccount?.outamount)" />
-                <Cell title="转让损益" :value="handleAmount(taaccount?.closepl)" />
-                <Cell title="结算损益" :value="handleAmount(taaccount?.reckonpl)" />
-                <Cell title="贸易服务费" :value="handleAmount(taaccount?.paycharge)" />
-                <Cell title="期末余额" :value="handleAmount(taaccount?.currentbalance)" />
-                <Cell title="占用资金" :value="handleAmount(taaccount?.oriusedmargin)" />
-                <Cell title="可用资金" :value="handleAmount(taaccount?.avaiablemoney)" />
-                <Cell title="冻结资金" :value="handleAmount(taaccount?.orioutamountfreeze)" />
-                <Cell title="可出资金" :value="handleAmount(taaccount?.avaiableoutmoney)" />
+            <CellGroup :title="$t('report.fundsinfo')">
+                <Cell :title="$t('account.balance2')" :value="handleAmount(taaccount?.balance)" />
+                <Cell :title="$t('account.inamount')" :value="handleAmount(taaccount?.inamount)" />
+                <Cell :title="$t('account.outamount')" :value="handleAmount(taaccount?.outamount)" />
+                <Cell :title="$t('account.closepl')" :value="handleAmount(taaccount?.closepl)" />
+                <Cell :title="$t('account.reckonpl')" :value="handleAmount(taaccount?.reckonpl)" />
+                <Cell :title="$t('account.paycharge')" :value="handleAmount(taaccount?.paycharge)" />
+                <Cell :title="$t('account.currentbalance')" :value="handleAmount(taaccount?.currentbalance)" />
+                <Cell :title="$t('account.oriusedmargin')" :value="handleAmount(taaccount?.oriusedmargin)" />
+                <Cell :title="$t('account.availableFunds2')" :value="handleAmount(taaccount?.avaiablemoney)" />
+                <Cell :title="$t('account.orioutamountfreeze')" :value="handleAmount(taaccount?.orioutamountfreeze)" />
+                <Cell :title="$t('account.avaiableoutmoney')" :value="handleAmount(taaccount?.avaiableoutmoney)" />
             </CellGroup>
-            <CellGroup title="报表明细">
-                <Cell title="出入金明细" is-link @click="openComponent('bank')" />
-                <Cell title="订单汇总" is-link @click="openComponent('position')" />
-                <Cell title="成交明细" is-link @click="openComponent('trade')" />
+            <CellGroup :title="$t('account.reportdetail')">
+                <Cell :title="$t('account.inoutamountdetail')" is-link @click="openComponent('bank')" />
+                <Cell :title="$t('account.ordersumary')" is-link @click="openComponent('position')" />
+                <Cell :title="$t('account.tradedetail')" is-link @click="openComponent('trade')" />
             </CellGroup>
             <Popup position="bottom" v-model:show="showPicker" round @click-overlay="dropdownItemRef.toggle()">
                 <DatePicker v-model="currentDate" :max-date="new Date()" :columns-type="columnsType"

+ 3 - 3
src/packages/mobile/views/report/index.vue

@@ -1,13 +1,13 @@
 <template>
     <app-view class="g-form">
         <template #header>
-            <app-navbar title="交易商结算单" :show-back-button="false" />
+            <app-navbar :title="$t('report.title')" :show-back-button="false" />
         </template>
         <Report />
         <template #footer>
             <div class="g-form__footer">
-                <Button type="danger" block square @click="onSubmit(false)">不同意</Button>
-                <Button type="primary" block square @click="onSubmit(true)">同意</Button>
+                <Button type="danger" block square @click="onSubmit(false)">{{ $t('operation.disagree') }}</Button>
+                <Button type="primary" block square @click="onSubmit(true)">{{ $t('operation.agree') }}</Button>
             </div>
         </template>
     </app-view>

+ 2 - 2
src/packages/mobile/views/spot/detail/Index.vue

@@ -37,7 +37,7 @@
                 <Cell title="卖出挂牌" />
                 <app-list :columns="columns" :data-list="sellList">
                     <template #operate="{ row }">
-                        <Button size="small" round @click="delistingListing(row, BuyOrSell.Buy)">买入</Button>
+                        <Button size="small" round @click="delistingListing(row, BuyOrSell.Buy)">{{ $t('quote.buy') }}</Button>
                     </template>
                 </app-list>
             </div>
@@ -45,7 +45,7 @@
                 <Cell title="买入挂牌" />
                 <app-list :columns="columns" :data-list="buyList">
                     <template #operate="{ row }">
-                        <Button size="small" round @click="delistingListing(row, BuyOrSell.Sell)">卖出</Button>
+                        <Button size="small" round @click="delistingListing(row, BuyOrSell.Sell)">{{ $t('quote.selll') }}</Button>
                     </template>
                 </app-list>
             </div>

+ 1 - 1
src/packages/mobile/views/spot/detail/components/delisting/index.vue

@@ -1,5 +1,5 @@
 <template>
-    <app-popup class="supply-demand-listing" :title="buyorsell === BuyOrSell.Sell ? '卖出' : '买入'"
+    <app-popup class="supply-demand-listing" :title="buyorsell === BuyOrSell.Sell ? $t('quote.selll') : $t('quote.buy')"
         v-model:show="showModal" :refresh="refresh">
         <Form class="supply-demand-listing__form" ref="formRef" @submit="onSubmit">
             <Field label="履约模板">

+ 1 - 1
src/packages/mobile/views/swap/detail/components/delisting/Index.vue

@@ -88,7 +88,7 @@
         </Form>
         <template #footer>
             <Button type="danger" block round @click="formRef?.submit">
-                {{ selectedRow.buyorsell === 0 ? '卖出' : '买入' }}
+                {{ selectedRow.buyorsell === 0 ? $t('quote.selll') : $t('quote.buy') }}
             </Button>
         </template>
     </app-popup>

+ 1 - 1
src/packages/mobile/views/transfer/delisting/Index.vue

@@ -7,7 +7,7 @@
             :page-count="pageCount" @refresh="run">
             <app-list :columns="columns" :data-list="dataList">
                 <template #operate="{ row }">
-                    <Button type="primary" size="small" round @click="delisting(row)" style="width: 60px;">买入</Button>
+                    <Button type="primary" size="small" round @click="delisting(row)" style="width: 60px;">{{ $t('quote.buy') }}</Button>
                 </template>
             </app-list>
         </app-pull-refresh>

+ 1 - 1
src/packages/mobile/views/transfer/delisting/components/delisting/index.vue

@@ -2,7 +2,7 @@
     <app-modal direction="right-top" height="100%" width="100%" v-model:show="showModal" :refresh="refresh">
         <app-view class="g-form">
             <template #header>
-                <app-navbar title="买入" @back="closed" />
+                <app-navbar :title="$t('quote.buy')" @back="closed" />
             </template>
             <Form ref="formRef" class="g-form__container" @submit="onSubmit">
                 <CellGroup inset>

+ 1 - 1
src/packages/mobile/views/transfer/detail/Index.vue

@@ -52,7 +52,7 @@
                 <div class="submit">
                     <span class="submit-button warning" @click="openComponent('listing')" v-if="dataList.length">转让</span>
                     <span class="submit-button danger"
-                        @click="$router.push({ name: 'transfer-delisting', query: { goodsid } })">买入</span>
+                        @click="$router.push({ name: 'transfer-delisting', query: { goodsid } })">{{ $t('quote.buy') }}</span>
                 </div>
             </div>
             <component ref="componentRef" :is="componentMap.get(componentId)" v-bind="{ selectedRow: dataList[0] }"

+ 2 - 2
src/packages/mobile/views/transfer/detail2/index.vue

@@ -13,8 +13,8 @@
         </div>
         <template #footer>
             <div class="g-form__footer">
-                <Button block type="danger" square @click="showComponent(BuyOrSell.Buy)">买入</Button>
-                <Button block color="#199e00" square @click="showComponent(BuyOrSell.Sell)">卖出</Button>
+                <Button block type="danger" square @click="showComponent(BuyOrSell.Buy)">{{ $t('quote.buy') }}</Button>
+                <Button block color="#199e00" square @click="showComponent(BuyOrSell.Sell)">{{ $t('quote.selll') }}</Button>
             </div>
             <component ref="componentRef" :is="componentMap.get(componentId)" v-bind="{ goodsCode, buyOrSell }"
                 @closed="closeComponent" v-if="componentId" />

+ 1 - 1
src/packages/pc/views/market/trade/swap/detail/order/delisting/index.vue

@@ -57,7 +57,7 @@
         <template #footer>
             <el-button type="info" @click="onCancel(false)">取消</el-button>
             <el-button type="danger" :disabled="!formData.OrderQty || formData.OrderQty > selectedRow.orderqty"
-                        @click="onSubmit(EBuildType.BUILDTYPE_OPEN)">{{ selectedRow.buyorsell === 0 ? '卖出' : '买入' }}</el-button>
+                        @click="onSubmit(EBuildType.BUILDTYPE_OPEN)">{{ selectedRow.buyorsell === 0 ? $t('quote.selll') : $t('quote.buy') }}</el-button>
         </template>
     </app-drawer>
 </template>

+ 2 - 2
src/packages/qdhs/views/goods/detail/index.vue

@@ -20,9 +20,9 @@
         <template #footer>
             <div class="g-form__footer">
                 <Button type="danger" :disabled="selectedIndex < 0" @click="onListing(BuyOrSell.Buy)" square
-                    block>买入</Button>
+                    block>{{ $t('quote.buy') }}</Button>
                 <Button type="primary" :disabled="selectedIndex < 0" @click="onListing(BuyOrSell.Sell)" square
-                    block>卖出</Button>
+                    block>{{ $t('quote.selll') }}</Button>
             </div>
             <component ref="componentRef" :is="componentMap.get(componentId)" v-bind="{ goodsCode, buyOrSell }"
                 @closed="closeComponent" v-if="componentId" />