Handy_Cao il y a 7 mois
Parent
commit
91627977e2

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

@@ -591,7 +591,25 @@
                 "transferstatus": "Transfer status",
                 "createtime": "Application time",
                 "outmemberuserid": "Transferor",
-                "inuserid": "Transferee"
+                "inuserid": "Transferee",
+                "edit": {
+                    "title": "编辑",
+                    "legend": "转出",
+                    "legend1": "转入",
+                    "diversiontype": "转移类型",
+                    "outinvestor": "转出交易商",
+                    "memberUserName": "所属会员",
+                    "parentUserName": "所属机构",
+                    "cardtypeid": "证件类型",
+                    "cardnum": "证件号码",
+                    "outmemberuserid": "转出所属会员",
+                    "outparentuserid": "转出所属机构",
+                    "inmemberuserid": "转入所属会员",
+                    "inuserid": "转入所属机构",
+                    "cardtypeid1": "机构证件类型",
+                    "cardnum1": "机构证件号码",
+                    "tips": "*交易商转移将会在系统结算时处理"
+                }
             },
             "user": {
                 "accountName": "Trader Name",
@@ -3843,5 +3861,12 @@
         "notice_news_delete": "Delete",
         "NotFound": "System Error",
         "NotFoundIndex": "404"
+    },
+    "enum": {
+        "adminstatus": {
+            "enable": "Enable",
+            "disable": "Disable",
+            "lock": "Lock"
+        }
     }
 }

+ 26 - 1
public/locales/th-TH.json

@@ -591,7 +591,25 @@
                 "transferstatus": "สถานะการโอน",
                 "createtime": "เวลาที่ส่งคำขอ",
                 "outmemberuserid": "ผู้โอนออก",
-                "inuserid": "ผู้รับโอน"
+                "inuserid": "ผู้รับโอน",
+                "edit": {
+                    "title": "编辑",
+                    "legend": "转出",
+                    "legend1": "转入",
+                    "diversiontype": "转移类型",
+                    "outinvestor": "转出交易商",
+                    "memberUserName": "所属会员",
+                    "parentUserName": "所属机构",
+                    "cardtypeid": "证件类型",
+                    "cardnum": "证件号码",
+                    "outmemberuserid": "转出所属会员",
+                    "outparentuserid": "转出所属机构",
+                    "inmemberuserid": "转入所属会员",
+                    "inuserid": "转入所属机构",
+                    "cardtypeid1": "机构证件类型",
+                    "cardnum1": "机构证件号码",
+                    "tips": "*交易商转移将会在系统结算时处理"
+                }
             },
             "user": {
                 "accountName": "ชื่อผู้ค้า",
@@ -3843,5 +3861,12 @@
         "notice_news_delete": "ลบ",
         "NotFound": "ข้อผิดพลาดของระบบ",
         "NotFoundIndex": "404"
+    },
+    "enum": {
+        "adminstatus": {
+            "enable": "启用",
+            "disable": "停用",
+            "lock": "锁定"
+        }
     }
 }

+ 26 - 1
public/locales/vi-VN.json

@@ -591,7 +591,25 @@
                 "transferstatus": "Tình Chuyển chuyển",
                 "createtime": "Thời gian đăng ký",
                 "outmemberuserid": "Đối tượng xuất",
-                "inuserid": "Đối tượng nhập"
+                "inuserid": "Đối tượng nhập",
+                "edit": {
+                    "title": "编辑",
+                    "legend": "转出",
+                    "legend1": "转入",
+                    "diversiontype": "转移类型",
+                    "outinvestor": "转出交易商",
+                    "memberUserName": "所属会员",
+                    "parentUserName": "所属机构",
+                    "cardtypeid": "证件类型",
+                    "cardnum": "证件号码",
+                    "outmemberuserid": "转出所属会员",
+                    "outparentuserid": "转出所属机构",
+                    "inmemberuserid": "转入所属会员",
+                    "inuserid": "转入所属机构",
+                    "cardtypeid1": "机构证件类型",
+                    "cardnum1": "机构证件号码",
+                    "tips": "*交易商转移将会在系统结算时处理"
+                }
             },
             "user": {
                 "accountName": "Tên nhà giao dịch",
@@ -3843,5 +3861,12 @@
         "notice_news_delete": "Xóa",
         "NotFound": "Lỗi hệ thống",
         "NotFoundIndex": "404"
+    },
+    "enum": {
+        "adminstatus": {
+            "enable": "启用",
+            "disable": "停用",
+            "lock": "锁定"
+        }
     }
 }

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

@@ -591,7 +591,25 @@
                 "transferstatus": "转移状态",
                 "createtime": "申请时间",
                 "outmemberuserid": "转出方",
-                "inuserid": "转入方"
+                "inuserid": "转入方",
+                "edit": {
+                    "title": "编辑",
+                    "legend": "转出",
+                    "legend1": "转入",
+                    "diversiontype": "转移类型",
+                    "outinvestor": "转出交易商",
+                    "memberUserName": "所属会员",
+                    "parentUserName": "所属机构",
+                    "cardtypeid": "证件类型",
+                    "cardnum": "证件号码",
+                    "outmemberuserid": "转出所属会员",
+                    "outparentuserid": "转出所属机构",
+                    "inmemberuserid": "转入所属会员",
+                    "inuserid": "转入所属机构",
+                    "cardtypeid1": "机构证件类型",
+                    "cardnum1": "机构证件号码",
+                    "tips": "*交易商转移将会在系统结算时处理"
+                }
             },
             "user": {
                 "accountName": "交易商名称",
@@ -3843,5 +3861,12 @@
         "notice_news_delete": "删除",
         "NotFound": "系统错误",
         "NotFoundIndex": "404"
+    },
+    "enum": {
+        "adminstatus": {
+            "enable": "启用",
+            "disable": "停用",
+            "lock": "锁定"
+        }
     }
 }

+ 26 - 1
public/locales/zh-TW.json

@@ -591,7 +591,25 @@
                 "transferstatus": "轉移狀態",
                 "createtime": "申請時間",
                 "outmemberuserid": "轉出方",
-                "inuserid": "轉入方"
+                "inuserid": "轉入方",
+                "edit": {
+                    "title": "编辑",
+                    "legend": "转出",
+                    "legend1": "转入",
+                    "diversiontype": "转移类型",
+                    "outinvestor": "转出交易商",
+                    "memberUserName": "所属会员",
+                    "parentUserName": "所属机构",
+                    "cardtypeid": "证件类型",
+                    "cardnum": "证件号码",
+                    "outmemberuserid": "转出所属会员",
+                    "outparentuserid": "转出所属机构",
+                    "inmemberuserid": "转入所属会员",
+                    "inuserid": "转入所属机构",
+                    "cardtypeid1": "机构证件类型",
+                    "cardnum1": "机构证件号码",
+                    "tips": "*交易商转移将会在系统结算时处理"
+                }
             },
             "user": {
                 "accountName": "交易商名稱",
@@ -3843,5 +3861,12 @@
         "notice_news_delete": "刪除",
         "NotFound": "系統錯誤",
         "NotFoundIndex": "404"
+    },
+    "enum": {
+        "adminstatus": {
+            "enable": "启用",
+            "disable": "停用",
+            "lock": "锁定"
+        }
     }
 }

+ 5 - 3
src/constants/admin.ts

@@ -1,3 +1,5 @@
+import { i18n } from "@/stores"
+
 /**
  * 管理员状态
  */
@@ -13,9 +15,9 @@ export enum AdminStatus {
  */
 export function getAdminStatusList() {
     return [
-        { label: '启用', value: AdminStatus.Enable },
-        { label: '停用', value: AdminStatus.Disable },
-        { label: '锁定', value: AdminStatus.Lock },
+        { label: i18n.global.t('enum.adminstatus.enable'), value: AdminStatus.Enable },
+        { label: i18n.global.t('enum.adminstatus.disable'), value: AdminStatus.Disable },
+        { label: i18n.global.t('enum.adminstatus.lock'), value: AdminStatus.Lock },
     ]
 }
 

+ 17 - 17
src/packages/pc/views/investor/manage/transfer/components/edit/index.vue

@@ -1,12 +1,12 @@
 <!-- 交易商管理-交易商管理-交易商批量转移-新增 -->
 <template>
-    <app-drawer :title="t('account.tradeacct.sign.edit.title')" width="960" v-model:show="show" :refresh="refresh"
+    <app-drawer :title="t('investor.manage.transfer.edit.title')" width="960" v-model:show="show" :refresh="refresh"
         :loading="loading">
         <el-form ref="formRef" class="el-form--horizontal" label-width="140px" :model="formData" :rules="formRules"
             :show-message="false">
             <fieldset class="g-fieldset el-form--horizontal">
-                <legend class="g-fieldset__legend">转出</legend>
-                <el-form-item label="转移类型" prop="diversiontype">
+                <legend class="g-fieldset__legend">{{ t('investor.manage.transfer.edit.legend') }}</legend>
+                <el-form-item :label="t('investor.manage.transfer.edit.diversiontype')" prop="diversiontype">
                     <el-radio-group v-model="formData.diversiontype" @change="switchOutType">
                         <template v-for="item in investortransfertypeEnum.getEnumOptions()" :key="item.value">
                             <el-radio :label="item.label" :value="item.value" />
@@ -14,30 +14,30 @@
                     </el-radio-group>
                 </el-form-item>
                 <template v-if="formData.diversiontype === 1">
-                    <el-form-item label="转出交易商" prop="outinvestor">
+                    <el-form-item :label="t('investor.manage.transfer.edit.outinvestor')" prop="outinvestor">
                         <app-select-member v-model="formData.outinvestor" :params="{ usertype: '5' }"
                             @change="selectOutUser" />
                     </el-form-item>
-                    <el-form-item label="所属会员">
+                    <el-form-item :label="t('investor.manage.transfer.edit.memberUserName')">
                         {{ handleNoneValue(accountInfo?.memberUserName) }}
                     </el-form-item>
-                    <el-form-item label="所属机构">
+                    <el-form-item :label="t('investor.manage.transfer.edit.parentUserName')">
                         {{ handleNoneValue(accountInfo?.parentUserName) }}
                     </el-form-item>
-                    <el-form-item label="证件类型">
+                    <el-form-item :label="t('investor.manage.transfer.edit.cardtypeid')">
                         {{ outUserInfo ? certificatetypeEnum.getEnumTypeName(outUserInfo.cardtypeid) :
                             handleNoneValue() }}
                     </el-form-item>
-                    <el-form-item label="证件号码">
+                    <el-form-item :label="t('investor.manage.transfer.edit.cardnum')">
                         {{ outUserInfo ? decryptAES(outUserInfo.cardnum) : handleNoneValue() }}
                     </el-form-item>
                 </template>
                 <template v-else>
-                    <el-form-item label="转出所属会员" prop="outmemberuserid">
+                    <el-form-item :label="t('investor.manage.transfer.edit.outmemberuserid')" prop="outmemberuserid">
                         <app-select-member v-model="formData.outmemberuserid" :params="{ usertype: '2', roles: '7' }"
                             @change="outParentUserRef.onReset()" />
                     </el-form-item>
-                    <el-form-item label="转出所属机构" prop="outparentuserid">
+                    <el-form-item :label="t('investor.manage.transfer.edit.outparentuserid')" prop="outparentuserid">
                         <app-select-member ref="outParentUserRef" v-model="formData.outparentuserid"
                             :params="{ usertype: '3', parentuserid: formData.outmemberuserid }"
                             :disabled="!formData.outmemberuserid" />
@@ -45,30 +45,30 @@
                 </template>
             </fieldset>
             <fieldset class="g-fieldset el-form--horizontal">
-                <legend class="g-fieldset__legend">转入</legend>
-                <el-form-item label="转入所属会员" prop="inmemberuserid">
+                <legend class="g-fieldset__legend">{{ t('investor.manage.transfer.edit.legend1') }}</legend>
+                <el-form-item :label="t('investor.manage.transfer.edit.inmemberuserid')" prop="inmemberuserid">
                     <app-select-member v-model="formData.inmemberuserid" :params="{ usertype: '2', roles: '7' }"
                         @change="selectInUser" />
                 </el-form-item>
-                <el-form-item label="转入所属机构" prop="inuserid">
+                <el-form-item :label="t('investor.manage.transfer.edit.inuserid')" prop="inuserid">
                     <app-select-member ref="inUserRef" v-model="formData.inuserid"
                         :params="{ usertype: '3', parentuserid: formData.inmemberuserid }"
                         :disabled="!formData.inmemberuserid" @change="selectInUser" />
                 </el-form-item>
-                <el-form-item label="机构证件类型">
+                <el-form-item :label="t('investor.manage.transfer.edit.cardtypeid1')">
                     {{ inUserInfo ? certificatetypeEnum.getEnumTypeName(inUserInfo.cardtypeid) : handleNoneValue() }}
                 </el-form-item>
-                <el-form-item label="机构证件号码">
+                <el-form-item :label="t('investor.manage.transfer.edit.cardnum1')">
                     {{ inUserInfo ? decryptAES(inUserInfo.cardnum) : handleNoneValue() }}
                 </el-form-item>
                 <el-form-item class="el-form-item--row">
-                    <span class="g-red">*交易商转移将会在系统结算时处理</span>
+                    <span class="g-red">{{ t('investor.manage.transfer.edit.tips') }}</span>
                 </el-form-item>
             </fieldset>
         </el-form>
         <template #footer>
             <el-button @click="onCancel(false)">{{ t('operation.close') }}</el-button>
-            <el-button type="primary" @click="onSubmit">保存</el-button>
+            <el-button type="primary" @click="onSubmit">{{ t('operation.save') }}</el-button>
         </template>
     </app-drawer>
 </template>