li.shaoyi 1 ano atrás
pai
commit
57609bcde5

+ 2 - 1
oem/ykhj/config/appconfig.json

@@ -13,5 +13,6 @@
     "holdvolume"
   ],
   "forcedPasswordChange": false,
-  "riskType": 1
+  "riskType": 1,
+  "i18nEnabled": false
 }

+ 2 - 1
src/packages/mobile/views/account/authresult/Index.vue

@@ -53,7 +53,8 @@ useRequest(queryWrDraftUserInfo, {
         /// 签约状态
         userInfo.value = res.data[0] ?? {
             ...userStore.userInfo,
-            cardnum: decryptAES(userStore.userInfo.cardnum)
+            cardnum: decryptAES(userStore.userInfo.cardnum),
+            bankaccount: decryptAES(userStore.userInfo.bankaccount),
         }
     }
 })

+ 16 - 8
src/packages/mobile/views/bank/sign/components/edit/Index.vue

@@ -7,16 +7,18 @@
             </template>
             <Form ref="formRef" class="g-form__container" @submit="formSubmit">
                 <CellGroup inset>
+                    <Field name="OpenBankAccId" :label="$t('banksign.bankname')" v-model.trim="formData.BankAccountNo"
+                        readonly v-if="userInfo.bankid" />
                     <Field name="OpenBankAccId" :label="$t('banksign.bankname')" v-model="selectedBankName"
                         :placeholder="$t('banksign.Pleaseselectyourbank')" :rules="formRules.OpenBankAccId"
-                        @click-input="showSelect = true" readonly is-link />
+                        @click-input="showSelect = true" readonly is-link v-else />
                     <Field type="number" name="BankNo" :label="$t('banksign.bankaccountno')"
-                        :readonly="bankaccount != ''" maxlength="30" v-model.trim="formData.BankAccountNo"
+                        :readonly="!!userInfo.bankaccount" maxlength="30" v-model.trim="formData.BankAccountNo"
                         :placeholder="$t('banksign.Pleaseenterbankaccountno')" :rules="formRules.BankAccountNo" />
                     <Field name="AccountName" :label="$t('banksign.bankaccountname')" readonly
                         v-model="formData.AccountName" :placeholder="$t('banksign.Pleaseenterbankaccountname')"
                         :rules="formRules.AccountName" />
-                    <Field name="MobilePhone" :label="$t('banksign.mobilephone')" :readonly="mobile2 != ''"
+                    <Field name="MobilePhone" :label="$t('banksign.mobilephone')" :readonly="!!userInfo.mobile2"
                         maxlength="50" v-model="formData.MobilePhone"
                         :placeholder="$t('banksign.Pleaseenteryourmobilephonenumber')" :rules="formRules.MobilePhone" />
                     <template v-for="(item, index) in configs" :key="index">
@@ -47,7 +49,7 @@
                         </template>
                         <template v-else>
                             <Field v-if="showExtendInfo(item)" :name="item.fieldcode" :label="item.fieldname"
-                                :readonly="item.fieldcode === 'legal_name' && legalpersonname != ''"
+                                :readonly="item.fieldcode === 'legal_name' && !!userInfo.legalpersonname"
                                 v-model="item.value" maxlength="50"
                                 :placeholder="$t('common.pleaseenter') + `${item.fieldname}`" />
                         </template>
@@ -68,7 +70,7 @@
 
 <script lang="ts" setup>
 
-import { shallowRef, ref, computed, defineAsyncComponent } from 'vue'
+import { onMounted, shallowRef, ref, computed, defineAsyncComponent } from 'vue'
 import { CellGroup, Button, Field, Form, FormInstance, FieldRule, showFailToast } from 'vant'
 import { fullloading, dialog } from '@/utils/vant'
 import { useDoBankSign, useDoCusBankExtendConfigs } from '@/business/bank'
@@ -91,7 +93,7 @@ const showSearch = shallowRef(false) // 弹出客户搜索界面
 const selectedBankName = shallowRef('') // 选中的银行名称
 const { configs } = useDoCusBankExtendConfigs(1)
 const userStore = useUserStore()
-const { legalpersonname, mobile2, bankaccount, userinfotype } = userStore.userInfo
+const { userInfo } = userStore.$toRefs()
 
 const { global: { t } } = i18n
 /// 短信验证码交易中心信息
@@ -118,8 +120,8 @@ const props = defineProps({
 /// 是否显示拓展信息
 const showExtendInfo = (item: Model.BankCusBankExtendConfigRsp) => {
     return (item.usabletype === 1) ||
-        (item.usabletype === 2 && userinfotype === 2) ||
-        (item.usabletype === 3 && userinfotype === 1)
+        (item.usabletype === 2 && userInfo.value.userinfotype === 2) ||
+        (item.usabletype === 3 && userInfo.value.userinfotype === 1)
 }
 
 // 发送手机验证码
@@ -254,6 +256,12 @@ const closed = (isRefresh = false) => {
     }
 }
 
+onMounted(() => {
+    selectedBankName.value = userInfo.value.bankbankname
+    formData.BankAccountNo = userInfo.value.bankaccount
+    formData.OpenBankAccId = userInfo.value.bankid
+})
+
 // 暴露组件属性给父组件调用
 defineExpose({
     closed,

+ 1 - 1
src/packages/tss/router/index.ts

@@ -188,7 +188,7 @@ const routes: Array<RouteRecordRaw> = [
       {
         path: 'sign',
         name: 'bank-sign',
-        component: () => import('../views/bank/sign/Index.vue'),
+        component: () => import('@mobile/views/bank/sign/Index.vue'),
       },
       {
         path: 'capital',