Handy_Cao hai 5 meses
pai
achega
061f6339e7

+ 37 - 32
public/locales/en-US.json

@@ -30,7 +30,7 @@
                 "bankname": "Bank Name",
                 "bankaccountno": "Bank Account Number",
                 "bankaccountname": "Bank Account Name",
-                "mobilephone": "Mobile Number",
+                "mobilephone": "M-Phone Number",
                 "remark": "Remark"
             },
             "bankstatement": {
@@ -125,7 +125,7 @@
                     "bankaccountno": "Bank Account Number:",
                     "bankaccountno1": "Corporate Account:",
                     "bankaccountname": "Bank Account Owner:",
-                    "mobilephone": "Mobile Number:",
+                    "mobilephone": "M-Phone Number:",
                     "tips1": "Confirm to initiate unbinding?",
                     "tips2": "Confirm to initiate contract cancellation?"
                 },
@@ -139,7 +139,7 @@
                     "bankaccountno": "Bank Account Number",
                     "bankaccountno1": "Corporate Account",
                     "bankaccountname": "Bank Account Owner",
-                    "mobilephone": "Mobile Number"
+                    "mobilephone": "M-Phone Number"
                 }
             }
         },
@@ -203,7 +203,7 @@
                 "title": "Edit",
                 "rolename": "Role Name",
                 "sensitivefields": "Sensitive Terms Permission",
-                "mobilephone": "Customer Mobile Number",
+                "mobilephone": "Customer M-Phone Number",
                 "cardtypeid": "Customer ID Number",
                 "email": "Customer Email",
                 "menuids": "Management Permissions"
@@ -461,7 +461,7 @@
                     "userid": "Trader Code",
                     "accountname": "Trader Name",
                     "createtime": "Creation Time",
-                    "mobilephone": "Mobile Number",
+                    "mobilephone": "M-Phone Number",
                     "cardnum": "ID Number",
                     "edit": {
                         "title": "Edit",
@@ -755,7 +755,7 @@
                     "cardNum": "ID Number:",
                     "company": "Company:",
                     "sex": "Gender:",
-                    "mobile": "Mobile Number:",
+                    "mobile": "M-Phone Number:",
                     "telPhone": "Contact Phone:",
                     "address": "Mailing Address:",
                     "postalCode": "Postal Code:",
@@ -793,7 +793,7 @@
                     "contactName": "Contact Person",
                     "sex": "Gender",
                     "company": "Company",
-                    "mobile": "Mobile Number",
+                    "mobile": "M-Phone Number",
                     "telPhone": "Contact Phone",
                     "region": "Region",
                     "address": "Address",
@@ -829,7 +829,7 @@
                     "details": {
                         "title": "Details",
                         "loginid": "Login Account:",
-                        "authid": "Mobile Number:"
+                        "authid": "M-Phone Numberr:"
                     },
                     "lock": {
                         "tips1": "Confirm unlock this account?",
@@ -898,7 +898,7 @@
                     "legalpersonname": "Legal Representative:",
                     "contactname": "Contact Person:",
                     "sex": "Gender:",
-                    "mobilephone": "Mobile Number:",
+                    "mobilephone": "M-Phone Number:",
                     "postalcode": "Postal Code:",
                     "wechat": "WeChat:",
                     "telphone": "Contact Phone:",
@@ -949,7 +949,7 @@
                     "cardaddress": "Address",
                     "contactname": "Contact Person",
                     "telphone": "Contact Phone",
-                    "mobilephone": "Mobile Number",
+                    "mobilephone": "M-Phone Number",
                     "postalcode": "Postal Code",
                     "company": "Company",
                     "wechat": "WeChat",
@@ -1127,6 +1127,11 @@
                 },
                 "delete": {
                     "tips": "Confirm to delete this institutional role?"
+                },
+                "line": {
+                    "title": "Line Account Configuration",
+                    "username": "User Name",
+                    "lineaccount": "Line Account"
                 }
             },
             "goodscfg": {
@@ -1293,8 +1298,8 @@
                     "cardfrontphotourl": "ID Front Photo:",
                     "cardbackphotourl": "ID Back Photo:",
                     "sex": "Gender:",
-                    "mobilephone": "Mobile Number:",
-                    "telphone": "Contact Phone:",
+                    "mobilephone": "M-Phone Number:",
+                    "telphone": "Tel-Phone Number",
                     "address": "Address:",
                     "postalcode": "Postal Code:",
                     "email": "Email:",
@@ -1334,8 +1339,8 @@
                     "legalcardbackphotourl": "Legal Rep. ID Back",
                     "contactname": "Contact Person",
                     "sex": "Gender",
-                    "mobilephone": "Mobile Number",
-                    "telphone": "Contact Phone",
+                    "mobilephone": "M-Phone Number",
+                    "telphone": "Tel-Phone Number",
                     "provinceid": "Region",
                     "cardaddress": "Address",
                     "postalcode": "Postal Code",
@@ -1599,8 +1604,8 @@
                     "legalcardbackphotourl": "Back of the legal person's ID card",
                     "contactname": "Contact person",
                     "sex": "Gender",
-                    "mobile": "Mobile phone number",
-                    "telphone": "Contact phone number",
+                    "mobile": "M-Phone Number",
+                    "telphone": "Tel-Phone Number",
                     "address": "Address",
                     "postalcode": "Postal code",
                     "email": "Email",
@@ -1638,8 +1643,8 @@
                     "legalcardbackphotourl": "Back of the legal person's ID card",
                     "contactname": "Contact person",
                     "sex": "Gender",
-                    "mobile": "Mobile phone number",
-                    "telphone": "Contact phone number",
+                    "mobile": "M-Phone Number",
+                    "telphone": "Tel-Phone Number",
                     "provinceid": "Region",
                     "address": "Address",
                     "postalcode": "Postal code",
@@ -1775,8 +1780,8 @@
                     "legalPersonName": "Legal Representative:",
                     "legalCardFrontPhotoUrl": "ID Front Photo:",
                     "legalCardBackPhotoUrl": "ID Back Photo:",
-                    "mobile": "Mobile Number:",
-                    "telPhone": "Contact Phone:",
+                    "mobile": "M-Phone Number:",
+                    "telPhone": "Tel-Phone Number:",
                     "address": "Address:",
                     "postalCode": "Postal Code:",
                     "email": "Email:",
@@ -1813,8 +1818,8 @@
                     "legalcardbackphotourl": "Legal Rep. ID Back",
                     "contactname": "Contact Person",
                     "sex": "Gender",
-                    "mobile": "Mobile Number",
-                    "telphone": "Contact Phone",
+                    "mobile": "M-Phone Number",
+                    "telphone": "Tel-Phone Number",
                     "provinceid": "Region",
                     "address": "Address",
                     "postalcode": "Postal Code",
@@ -1904,8 +1909,8 @@
                     "legalcardbackphotourl": "Legal Rep. ID Back",
                     "contactname": "Contact Person",
                     "sex": "Gender",
-                    "mobilephone": "Mobile Number",
-                    "telphone": "Contact Phone",
+                    "mobilephone": "M-Phone Number",
+                    "telphone": "Tel-Phone Number",
                     "provinceid": "Region",
                     "cardaddress": "Address",
                     "postalcode": "Postal Code",
@@ -1936,8 +1941,8 @@
             "title": "Title",
             "srcname": "Source",
             "author": "Author",
-            "istop": "Is it Pinned?",
-            "isshow": "Is it Displayed?",
+            "istop": "IsTop",
+            "isshow": "IsShow",
             "publishdate": "Release Date",
             "status": "Status",
             "creatoruser": "Creator",
@@ -1956,8 +1961,8 @@
                 "author": "Author",
                 "srcname": "Source",
                 "hits": "Number of Clicks",
-                "istop": "Is it Pinned?",
-                "isshow": "Is it Displayed?",
+                "istop": "IsTop",
+                "isshow": "IsShow",
                 "publishdate": "Release Date",
                 "coverimage": "Thumbnail",
                 "title": "Title",
@@ -1974,8 +1979,8 @@
                 "srcid": "Source",
                 "hits": "Number of Clicks",
                 "publishdate": "Release Date",
-                "istop": "Is it Pinned?",
-                "isshow": "Is it Displayed?",
+                "istop": "IsTop",
+                "isshow": "IsShow",
                 "coverimage": "Thumbnail",
                 "brief": "Introduction",
                 "context": "Content"
@@ -2033,13 +2038,13 @@
             }
         },
         "sms": {
-            "columnname": "Receiving Mobile Phone Number",
+            "columnname": "Receiving M-Phone Number",
             "title": "Message Template",
             "srcname": "Sending Status",
             "author": "Error Information",
             "istop": "Sending Time",
             "status": "Sending Status",
-            "recvphone": "Receiving Mobile Phone Number"
+            "recvphone": "Receiving M-Phone Number"
         }
     },
     "performance": {

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

@@ -1127,6 +1127,11 @@
                 },
                 "delete": {
                     "tips": "คุณต้องการยืนยันการลบบทบาทขององค์กรนี้ใช่หรือไม่?"
+                },
+                "line": {
+                    "title": "ปรับ แต่งบัญชีผู้ใช้แบบบรรทัด",
+                    "username": "สถาบัน",
+                    "lineaccount": "บัญชีฝ่ายบริการลูกค้าออนไลน์"
                 }
             },
             "goodscfg": {

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

@@ -1127,6 +1127,11 @@
                 },
                 "delete": {
                     "tips": "Bạn có muốn xác nhận việc xóa vai trò của cơ quan này không?"
+                },
+                "line": {
+                    "title": "Cấu hình tài khoản dòng",
+                    "username": "Các tổ chức",
+                    "lineaccount": "Tài khoản dịch vụ khách hàng Line"
                 }
             },
             "goodscfg": {

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

@@ -1127,6 +1127,11 @@
                 },
                 "delete": {
                     "tips": "确认删除该机构角色?"
+                },
+                "line": {
+                    "title": "Line账号配置",
+                    "username": "机构",
+                    "lineaccount": "Line客服账号"
                 }
             },
             "goodscfg": {

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

@@ -1127,6 +1127,11 @@
                 },
                 "delete": {
                     "tips": "確認刪除該機構角色?"
+                },
+                "line": {
+                    "title": "Line賬號配置",
+                    "username": "機構",
+                    "lineaccount": "Line客服賬號"
                 }
             },
             "goodscfg": {

+ 1 - 1
src/packages/pc/views/base/banner/index.vue

@@ -37,7 +37,7 @@ import { querypicture } from '@/services/api/base'
 import { i18n } from '@/stores'
 import { useEnum } from '@/hooks/enum'
 import { formatDate, getFirstPathFullUrl } from '@/filters'
-import AppTable from '@pc/components/base/table/index.vue'
+import AppTable from '@pc/components/base/table/index.vue'                                                             
 import AppPagination from '@pc/components/base/pagination/index.vue'
 import AppOperation from '@pc/components/base/operation/index.vue'
 import AppFilter from '@pc/components/base/table-filter-v2/index.vue'

+ 72 - 0
src/packages/pc/views/member/institution/broker/components/line/index.vue

@@ -0,0 +1,72 @@
+<!-- 会员机构管理-机构管理-经纪会员管理-line账号配置 -->
+<template>
+    <app-drawer :title="t('member.institution.broker.line.title')" width="480" v-model:show="show" :loading="loading" :refresh="refresh">
+        <el-form ref="formRef" class="el-form--vertical" label-width="90px" :model="formData" :rules="formRules" :show-message="false">
+            <el-form-item :label="t('member.institution.broker.line.username')" prop="username">
+                <span>{{ record.userName }}/{{ record.userid }}</span>
+            </el-form-item>
+            <el-form-item :label="t('member.institution.broker.line.linecsaccount')" prop="linecsaccount">
+                <el-input v-model="formData.linecsaccount" maxlength="50" :placeholder="t('common.pleaseenter')" />
+            </el-form-item>
+        </el-form>
+        <template #footer>
+            <el-button @click="onCancel(false)">{{ t('operation.cancel') }}</el-button>
+            <el-button type="primary" @click="onSubmit">{{ t('operation.save') }}</el-button>
+        </template>
+    </app-drawer>
+</template>
+
+<script lang="ts" setup>
+import { shallowRef, PropType, ref } from 'vue'
+import { ElMessage, FormInstance, FormRules } from 'element-plus'
+import { updatelineaccountconfig } from '@/services/api/member'
+import AppDrawer from '@pc/components/base/drawer/index.vue'
+import { i18n } from '@/stores'
+
+const props = defineProps({
+    record: {
+        type: Object as PropType<Member.OrganRoleRsp>,
+        required: true
+    }
+})
+
+const formData = ref<Partial<Member.UpdateLineAccountConfigReq>>({
+    userid: props.record ? 2 : 1
+})
+
+const { global: { t } } = i18n
+const show = shallowRef(true)
+const formRef = ref<FormInstance>()
+const refresh = shallowRef(false)
+const loading = shallowRef(false)
+
+const onCancel = (isRefresh = false) => {
+    show.value = false
+    refresh.value = isRefresh
+}
+
+// 表单验证规则
+const formRules: FormRules = {
+    linecsaccount: [{ required: true }]
+}
+
+const onSubmit = () => {
+    const rawData = { ...formData.value }
+    formRef.value?.validate((valid) => {
+        if (valid) {
+            loading.value = true
+            updatelineaccountconfig({
+                data: rawData
+            }).then(() => {
+                ElMessage.success(t('common.tips3'))
+                onCancel(true)
+            }).catch((err) => {
+                ElMessage.error(t('common.tips4') + err)
+            }).finally(() => {
+                loading.value = false
+            })
+        }
+    })
+}
+
+</script>

+ 2 - 1
src/packages/pc/views/member/institution/broker/index.vue

@@ -11,7 +11,8 @@
             </template>
             <!-- 操作 -->
             <template #operate="{ row }">
-                <app-operation size="small" :data-list="getActionButtons(['member_institution_broker_details', 'member_institution_broker_modify', 'member_institution_broker_subinstitution', 'member_institution_broker_delete'])"
+                <app-operation size="small" :data-list="getActionButtons(['member_institution_broker_details', 'member_institution_broker_modify', 
+                                                                          'member_institution_broker_subinstitution', 'member_institution_broker_delete', 'member_institution_broker_line'])"
                     @click="(code: string) => openComponent(code, row)" circle />
             </template>
             <template #footer>

+ 7 - 0
src/services/api/member/index.ts

@@ -412,4 +412,11 @@ export function initAdd(options: CommonFetchOptions<{ request: Member.InitAddReq
  */
 export function getOragnDefaultManager(options: CommonFetchOptions<{ request: Member.OragnDefaultManagerReq; }>) {
     return httpClient.commonRequest('/organDetail/getOragnDefaultManager', 'get', options)
+}
+
+/**
+ * 会员机构管理-->机构管理-->经纪会员管理-->line账号配置-->修改
+ */
+export function updatelineaccountconfig(options: CommonFetchOptions<{ request: Member.UpdateLineAccountConfigReq; }>) {
+    return httpClient.commonRequest('/organDetail/updatelineaccountconfig', 'get', options)
 }

+ 8 - 0
src/types/model/member.d.ts

@@ -2253,4 +2253,12 @@ declare namespace Member {
     interface OragnDefaultManagerReq {
         userid?: string
     }
+
+    /** 会员机构管理-->机构管理-->经纪会员管理-->line账号配置-->修改 请求 */
+    interface UpdateLineAccountConfigReq {
+        // linecsaccount
+        linecsaccount?: string
+        // userid
+        userid?: number
+    }
 }