Handy_Cao 3 months ago
parent
commit
a1a5360006

+ 24 - 0
src/business/bank/index.ts

@@ -454,6 +454,30 @@ export function useDoCusBankExtendConfigs(extendbiztype: number) {
                     })
                 }
             })
+        } else {
+            // 查询托管银行信息
+            queryCusBankSignBank().then((res) => {
+                if (res.data) {
+                    cusBank.value = res.data[0]
+                }
+                if (cusBank.value) {
+                    /// 不为空 入金取 318 出金取 319
+                    const time = getSystemParamValue(extendbiztype === 2 ? '318' : '319') ?? ''
+                    endTime.value = time != '' ? time : endTime.value
+                    /// 查询配置信息
+                    queryBankCusBankExtendConfigs({
+                        data: {
+                            cusbankid: cusBank.value.cusbankid,
+                            extendbiztype: extendbiztype
+                        },
+                    }).then((res) => {
+                        configs.value = res.data.map(obj => ({
+                            ...obj,
+                            value: obj.fieldcode === 'legal_name' ? (useStore.userInfo?.legalpersonname ?? '') : ''
+                        }))
+                    })
+                }
+            })
         }
     })
 

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

@@ -91,7 +91,7 @@
 
 <script lang="ts" setup>
 import { shallowRef, ref, computed, defineAsyncComponent, watch, onMounted } from 'vue'
-import { CellGroup, Button, Field, Form, FormInstance, FieldRule, showFailToast, Popup, Picker } from 'vant'
+import { CellGroup, Button, Field, Form, FormInstance, FieldRule, showFailToast } from 'vant'
 import { fullloading, dialog } from '@/utils/vant'
 import { useDoBankSign, useDoCusBankExtendConfigs } from '@/business/bank'
 import { validateRules } from '@/constants/regex'

+ 12 - 0
src/packages/mobile/views/user/register/Index.vue

@@ -241,6 +241,16 @@ const routerAction = () => {
   }
 }
 
+// 清除数据
+const resetData = () => {
+  formData.mobilephone = ''
+  formData.vcode = ''
+  formData.loginpwd = ''
+  confirmpassword.value = ''
+  formData.refernum = ''
+  checked.value = false
+}
+
 // 发送手机验证码
 const sendVerifyCode = () => {
   formRef.value?.validate('mobilephone').then(() => {
@@ -312,6 +322,8 @@ const formSubmit = () => {
               })
             }, 3000)
           } else {
+            // 清除数据
+            resetData()
             showSuccessToast(t('user.register.tips11'))
           }
         } else {

+ 1 - 1
src/packages/tss/views/bank/wallet/components/deposit/Index.vue

@@ -92,7 +92,7 @@
             </CellGroup>
         </Form>
         <template #footer v-if="cusBank?.caninamount === 1">
-            <div class="g-form__footer inset">
+            <div class="g-form__footer inset" v-if="hybrids.length != 0">
                 <Button block type="danger" @click="formRef?.submit()">{{ $t('operation.confirm') }}</Button>
             </div>
         </template>

+ 14 - 2
src/packages/tss/views/bank/wallet/components/hybank/Index.vue

@@ -1,8 +1,8 @@
 <template>
-    <app-modal direction="right-top" height="100%" width="100%" v-model:show="showModal">
+    <app-modal direction="right-top" height="100%" width="100%" v-model:show="showModal" :refresh="refresh">
         <app-view class="g-form">
             <template #header>
-                <app-navbar :title="$t('banksign.tips14')">
+                <app-navbar :title="$t('banksign.tips14')" @back="closed">
                     <template #footer>
                         <Form action="/">
                             <Search :placeholder="$t('banksign.tips15')" v-model="keyword" />
@@ -45,6 +45,7 @@ const props = defineProps({
 const emit = defineEmits(['update:show', 'change'])
 const keyword = shallowRef('')
 const checked = shallowRef<Model.HybridBank>()
+const refresh = shallowRef(false) // 是否刷新父组件数据
 
 const showModal = computed({
     get: () => props.show,
@@ -65,4 +66,15 @@ const onChange = (item: Model.HybridBank) => {
     showModal.value = false
     emit('change', toRaw(item))
 }
+
+// 关闭弹窗
+const closed = (isRefresh = false) => {
+    refresh.value = isRefresh
+    showModal.value = false
+}
+
+// 暴露组件属性给父组件调用
+defineExpose({
+    closed,
+})
 </script>

+ 1 - 1
src/packages/tss/views/bank/wallet/components/withdraw/Index.vue

@@ -86,7 +86,7 @@
             </div>
         </Form>
         <template #footer v-if="cusBank?.canoutamount === 1">
-            <div class="g-form__footer inset">
+            <div class="g-form__footer inset" v-if="hybrids.length != 0">
                 <Button block type="danger" @click="formRef?.submit()">{{ $t('operation.confirm') }}</Button>
             </div>
         </template>