Handy_Cao 1 سال پیش
والد
کامیت
66034dd721

+ 2 - 1
public/locales/en-US.json

@@ -1186,7 +1186,8 @@
                 "failedtogetservertime": "Failed to get server time",
                 "submitsuccess": "Submit successfully. Please do not submit again. Confirm the result later",
                 "submitfailure": "Commit failure:",
-                "availableoutmoney": "Available "
+                "availableoutmoney": "Available ",
+                "remark": "Remark"
             },
             "inoutapply": {
                 "title": "Application List",

+ 2 - 1
public/locales/zh-CN.json

@@ -1191,7 +1191,8 @@
                 "submitsuccess": "提交成功,请勿重复提交,稍后确认结果",
                 "submitfailure": "提交失败:",
                 "pleaseuploadthetransfervoucher": "请上传转账凭证",
-                "availableoutmoney": "可出金额"
+                "availableoutmoney": "可出金额",
+                "remark": "备注"
             },
             "inoutapply": {
                 "title": "申请流水",

+ 17 - 17
src/packages/pc/views/footer/capital/summary/deposit/index.vue

@@ -1,13 +1,13 @@
 <!-- 资金信息-资金汇总-入金 -->
 <template>
-    <app-drawer title="入金" :width="600" v-model:show="show" :loading="loading">
+    <app-drawer :title="t('banksign.wallet.cashin')" :width="600" v-model:show="show" :loading="loading">
         <el-form ref="formRef" v-if="cusBank?.caninamount === 1" class="el-form--vertical" label-width="120px"
             :model="formData" :rules="formRules">
-            <el-form-item prop="Amount" label="入金金额">
+            <el-form-item prop="Amount" :label="t('banksign.wallet.deposit.inamount')">
                 <el-input-number :placeholder="t('common.pleaseenter')" :max="9999999999" :precision="2" v-model="formData.Amount"
                     :rules="formRules.Amount" />
             </el-form-item>
-            <el-form-item label="凭证" prop="filePath">
+            <el-form-item :label="t('banksign.wallet.deposit.credit')" prop="filePath">
                 <app-upload :file-types="['image']" type-message="请选择正确的图片类型" @change="onUploadChange" />
             </el-form-item>
             <template v-for="(item, index) in configs" :key="index">
@@ -19,30 +19,30 @@
         </el-form>
         <fieldset class="g-fieldset">
             <legend class="g-fieldset__legend">入金时间</legend>
-            <span class="el-form-tips">入金时间:交易日 {{ startTime }} - {{ endTime }}</span>
-            <span class="el-form-tips">节假日以通知、公告为准,非交易日请勿操作!</span>
+            <span class="el-form-tips">{{ t('banksign.wallet.deposit.time') }}{{ startTime }} - {{ endTime }}</span>
+            <span class="el-form-tips">{{ t('banksign.wallet.deposit.notice') }}</span>
         </fieldset>
         <fieldset class="g-fieldset" v-if="msg_320">
             <legend class="g-fieldset__legend">入金平台</legend>
             <div class="msg_row" v-if="msg_320">
-                <span class="msg_label">平台入金银行</span>
+                <span class="msg_label">{{ t('banksign.wallet.deposit.platformdepositbankname') }}</span>
                 <span class="msg_tips" :data-clipboard-text="msg_320" v-copy="onCopy">{{ msg_320 }}</span>
             </div>
             <div class="msg_row" v-if="msg_321">
-                <span class="msg_label">平台入金账号</span>
+                <span class="msg_label">{{ t('banksign.wallet.deposit.platformdepositaccountno') }}</span>
                 <span class="msg_tips" :data-clipboard-text="msg_321" v-copy="onCopy">{{ msg_321 }}</span>
             </div>
             <div class="msg_row" v-if="msg_322">
-                <span class="msg_label">平台入金账户</span>
+                <span class="msg_label">{{ t('banksign.wallet.deposit.platformdepositaccount') }}</span>
                 <span class="msg_tips" :data-clipboard-text="msg_322" v-copy="onCopy">{{ msg_322 }}</span>
             </div>
             <div class="msg_row" v-if="msg_323">
-                <span class="msg_label">平台入金支行</span>
+                <span class="msg_label">{{ t('banksign.wallet.deposit.platformdepositsub-branch') }}</span>
                 <span class="msg_tips" :data-clipboard-text="msg_323" v-copy="onCopy">{{ msg_323 }}</span>
             </div>
         </fieldset>
         <fieldset class="g-fieldset" v-if="msg_324">
-            <legend class="g-fieldset__legend">提示</legend>
+            <legend class="g-fieldset__legend">{{ t('common.tips') }}</legend>
             <span class="el-form-tips" v-html="msg_324" />
         </fieldset>
         <template #footer>
@@ -85,7 +85,7 @@ const msg_323 = getSystemParamValue('323')
 const msg_324 = getSystemParamValue('324')
 
 const formRules: FormRules = {
-    Amount: [{ required: true, message: '请输入入金金额' }],
+    Amount: [{ required: true, message: t('banksign.wallet.deposit.pleaseenterinamount') }],
 }
 
 const onUploadChange = (file: { filePath: string }) => {
@@ -98,9 +98,9 @@ const onCancel = () => {
 
 const onCopy = (status: boolean) => {
     if (status) {
-        ElMessage.success('已复制,快去粘贴吧~')
+        ElMessage.success(t('banksign.wallet.deposit.paste'))
     } else {
-        ElMessage.error('复制失败')
+        ElMessage.error(t('banksign.wallet.deposit.pastefailure'))
     }
 }
 
@@ -114,8 +114,8 @@ const doDepositWarning = () => {
                 const e = moment(endTime.value, 'HH:mm')
                 if (n.isSameOrAfter(s) && n.isBefore(e)) {
                     ElMessageBox.confirm(
-                        '是否已在银行端进行入金转账?',
-                        '提示',
+                        t('banksign.wallet.deposit.whetherthedeposittransferhasbeenmadeatthebankend') ,
+                        t('common.tips'),
                         { confirmButtonText: '确认', cancelButtonText: '取消', })
                         .then(() => {
                             formSubmit()
@@ -123,10 +123,10 @@ const doDepositWarning = () => {
                             onCancel()
                         })
                 } else {
-                    ElMessageBox.confirm('入金不在时间范围内', '提示', { confirmButtonText: '我知道了', showCancelButton: false })
+                    ElMessageBox.confirm(t('banksign.wallet.deposit.goldisnotwithinthetimeframe'), '提示', { confirmButtonText: '我知道了', showCancelButton: false })
                 }
             }).catch(() => {
-                ElMessage.error('获取服务器时间失败')
+                ElMessage.error(t('banksign.wallet.deposit.failedtogetservertime'))
             }).finally(() => {
                 loading.value = false
             })

+ 10 - 10
src/packages/pc/views/footer/capital/summary/withdraw/index.vue

@@ -1,17 +1,17 @@
 <!-- 资金信息-资金汇总-出金申请 -->
 <template>
-    <app-drawer title="出金申请" :width="600" v-model:show="show" :loading="loading">
+    <app-drawer :title="t('banksign.wallet.cashout')" :width="600" v-model:show="show" :loading="loading">
         <el-form ref="formRef" v-if="cusBank?.canoutamount === 1" class="el-form--vertical" label-width="140px"
             :model="formData" :rules="formRules">
-            <el-form-item label="资金账号">
+            <el-form-item :label="t('banksign.capital.accountid')">
                 <span>{{ accountStore.currentAccountId }}</span>
             </el-form-item>
-            <el-form-item label="可出资金">
+            <el-form-item :label="t('banksign.wallet.withdraw.availableoutmoney')">
                 <span>{{ fund.AvailableOutMoney?.toFixed(2) }}</span>
             </el-form-item>
-            <el-form-item label="出金金额" prop="Amount">
+            <el-form-item :label="t('banksign.wallet.withdraw.outamount')" prop="Amount">
                 <div class="el-form-item--col">
-                    <el-input-number placeholder="请输入出金金额" :precision="2" v-model="formData.Amount" />
+                    <el-input-number :placeholder="t('banksign.wallet.withdraw.pleaseenteroutamount')" :precision="2" v-model="formData.Amount" />
                     <el-button type="danger" @click="formData.Amount = fund.AvailableOutMoney">{{ t('operation.all') }}</el-button>
                 </div>
             </el-form-item>
@@ -21,21 +21,21 @@
                     <el-input :name="item.fieldcode" :placeholder="t('common.pleaseenter')" v-model="item.value" />
                 </el-form-item>
             </template>
-            <el-form-item class="el-form-item--row" label="备注" prop="Remark">
+            <el-form-item class="el-form-item--row" :label="t('banksign.wallet.withdraw.remark')" prop="Remark">
                 <el-input type="textarea" :maxlength="50" :rows="3" v-model="formData.Remark" />
             </el-form-item>
             <fieldset class="g-fieldset">
                 <legend class="g-fieldset__legend">出金时间</legend>
-                <span class="el-form-tips">出金时间:交易日 {{ startTime }} - {{ endTime }}</span>
+                <span class="el-form-tips">{{ t('banksign.wallet.withdraw.time') }} {{ startTime }} - {{ endTime }}</span>
                 <span class="el-form-tips">{{ t('banksign.wallet.withdraw.notice') }}</span>
             </fieldset>
             <fieldset class="g-fieldset" v-if="msg_317">
-                <legend class="g-fieldset__legend">提示</legend>
+                <legend class="g-fieldset__legend">{{ t('common.tips') }}</legend>
                 <span class="el-form-tips" v-html="msg_317" />
             </fieldset>
         </el-form>
         <fieldset class="g-fieldset" v-if="cusBank?.canoutamount === 0">
-            <legend class="g-fieldset__legend">提示</legend>
+            <legend class="g-fieldset__legend">{{ t('common.tips') }}</legend>
             <span class="el-form-tips" v-html="msg" />
         </fieldset>
         <template #footer>
@@ -100,7 +100,7 @@ const doWithDrawWarning = () => {
                     /// 提交
                     formSubmit()
                 } else {
-                    ElMessageBox.confirm('出金不在时间范围内', '提示', { confirmButtonText: '我知道了', showCancelButton: false })
+                    ElMessageBox.confirm('出金不在时间范围内', t('common.tips'), { confirmButtonText: '我知道了', showCancelButton: false })
                 }
             }).catch(() => {
                 ElMessage.error('获取服务器时间失败')

+ 1 - 1
src/stores/modules/language.ts

@@ -6,7 +6,7 @@ import enUS from '@public/locales/en-US.json'
 const appLanguage = localData.getRef('appLanguage')
 
 export const i18n = createI18n({
-    locale: 'en-US',//appLanguage.value,
+    locale: appLanguage.value,
     fallbackLocale: 'zh-CN',
     messages: {
         'zh-CN': zhCN,