Handy_Cao 7 ماه پیش
والد
کامیت
1db65991b3

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

@@ -3281,6 +3281,7 @@
             "tradedate": "Date",
             "quarter": "Quarter",
             "areaname": "Member Code/Name",
+            "areaname1": "会员/机构",
             "yxareauserid": "Affiliated Marketing Center",
             "isson": "Include Sub-organizations",
             "areatype": "Role",

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

@@ -3281,6 +3281,7 @@
             "tradedate": "วันที่",
             "quarter": "ไตรมาส",
             "areaname": "รหัสสมาชิก/ชื่อ",
+            "areaname1": "会员/机构",
             "yxareauserid": "ศูนย์การตลาดที่เป็นส่วนของ",
             "isson": "รวมองค์กรย่อยหรือไม่",
             "areatype": "บทบาท",

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

@@ -3281,6 +3281,7 @@
             "tradedate": "Ngày",
             "quarter": "Qúy",
             "areaname": "Mã thành viên/Tên",
+            "areaname1": "会员/机构",
             "yxareauserid": "Trung tâm tiếp thị thuộc sở hữu",
             "isson": "Bao gồm tổ chức con?",
             "areatype": "Vai trò",

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

@@ -3281,6 +3281,7 @@
             "tradedate": "日期",
             "quarter": "季度",
             "areaname": "会员代码/名称",
+            "areaname1": "会员/机构",
             "yxareauserid": "所属营销中心",
             "isson": "是否包含子机构",
             "areatype": "角色",

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

@@ -3281,6 +3281,7 @@
             "tradedate": "日期",
             "quarter": "季度",
             "areaname": "會員代碼/名稱",
+            "areaname1": "會員/名稱",
             "yxareauserid": "所屬營銷中心",
             "isson": "是否包含子機構",
             "areatype": "角色",

+ 18 - 1
src/packages/pc/views/member/institution/tradecfg/components/add/index.vue

@@ -36,7 +36,7 @@
                 <el-form-item :label="t('member.institution.tradecfg.add.goodsid')" prop="goodsid">
                     <el-select v-model="formData.goodsid" @change="onGoodsChange">
                         <template v-for="(item, index) in goodsData?.goods" :key="index">
-                            <el-option :label="item.goodsname" :value="item.goodsid" />
+                            <el-option :label="item[getLocalizedKey()] || item.goodscode || item.goodsid" :value="item.goodsid" />
                         </template>
                     </el-select>
                 </el-form-item>
@@ -98,6 +98,7 @@
 import { ref, reactive, computed } from 'vue'
 import { ElMessage, FormInstance, FormRules } from 'element-plus'
 import { handleNoneValue } from '@/filters'
+import { Language } from '@/constants/language'
 import { useEnum } from '@/hooks/enum'
 import { useRequest } from '@/hooks/request'
 import { loadSelectOption, tradeConfigAdd } from '@/services/api/member'
@@ -106,6 +107,22 @@ import AppDrawer from '@pc/components/base/drawer/index.vue'
 import AppTable from '@pc/components/base/table/index.vue'
 import AppSelectMember from '@pc/components/modules/select-member/index.vue'
 
+// 获取本地化属性键
+const getLocalizedKey: () => keyof Investor.InvestorPersonRsp['goods'][number] = () => {
+    switch (i18n.global.locale) {
+        case Language.Simplified:
+            return 'goodsname'
+        case Language.Thai:
+            return 'goodsnameth'
+        case Language.Traditional:
+            return 'goodsnametw'
+        case Language.Vietnamese:
+            return 'goodsnamevi'
+        default:
+            return 'goodsnameen'
+    }
+}
+
 const customerType = useEnum('customerType')
 const scfRiskMode = useEnum('SCFRiskMode')
 const feetypeEnum = useEnum('feetype')

+ 3 - 3
src/packages/pc/views/report/profitshare/index.vue

@@ -108,11 +108,11 @@ const { queryParams, filterOption, getQueryParams, resetFilters } = useDataFilte
         },
         {
             field: 'areaname',
-            label: '会员代码/名称',
+            label: t('report.profitshare.areaname'),
         },
         {
             field: 'yxareauserid',
-            label: '所属营销中心',
+            label: t('report.profitshare.yxareauserid'),
         }
     ],
     buttons: [
@@ -170,7 +170,7 @@ const arraySpanMethod = (data: { row: Model.ShareAmountQueryPlatRsp; rowIndex: n
 }
 
 const tableColumns = ref<Model.TableColumn[]>([
-    { field: 'areaname', label: '会员/机构' },
+    { field: 'areaname', label: 'report.profitshare.areaname1' },
     { field: 'areatype', label: 'report.profitshare.areatype', formatValue: (val) => roleTypeEnum.getEnumTypeName(val) },
     { field: 'areaaccountid', label: 'report.profitshare.areaaccountid' },
     { field: 'totalcount', label: 'report.profitshare.totalcount' },