|
|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<app-view class="g-form bank-wallet-withdraw">
|
|
|
- <Form ref="formRef" class="g-form__container" @submit="formSubmit">
|
|
|
+ <Form ref="formRef" v-if="cusBank.canoutamount === 1" class="g-form__container" @submit="formSubmit">
|
|
|
<CellGroup inset>
|
|
|
<Field class="form-field" type="number" label="提现金额" v-model="formData.Amount" :rules="formRules.Amount">
|
|
|
<template #input>
|
|
|
@@ -29,6 +29,9 @@
|
|
|
</template>
|
|
|
</CellGroup>
|
|
|
</Form>
|
|
|
+ <div class="g-form__bank" v-else>
|
|
|
+ <span>{{ msg }}</span>
|
|
|
+ </div>
|
|
|
<div class="g-form__time">
|
|
|
<label>充值提现时间:{{ start }}-{{ end }}</label>
|
|
|
</div>
|
|
|
@@ -41,7 +44,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
-import { useDoWithdraw, useAccountFundInfo, useDoCusBankExtendConfigs } from '@/business/bank';
|
|
|
+import { useDoWithdraw, useAccountFundInfo, useDoCusBankExtendConfigs, useQueryCusBankSignBank } from '@/business/bank';
|
|
|
import { Form, Field, CellGroup, FormInstance, Button, FieldRule } from 'vant'
|
|
|
import { shallowRef } from 'vue'
|
|
|
import { fullloading, dialog } from '@/utils/vant'
|
|
|
@@ -57,7 +60,10 @@ const formRef = shallowRef<FormInstance>()
|
|
|
const { getSystemParamValue } = useUserStore()
|
|
|
const start = getSystemParamValue('012')
|
|
|
const end = getSystemParamValue('013')
|
|
|
+const msg = getSystemParamValue('302')
|
|
|
const userStore = useUserStore()
|
|
|
+/// 查询托管银行信息
|
|
|
+const { cusBank } = useQueryCusBankSignBank()
|
|
|
|
|
|
// 表单验证规则
|
|
|
const formRules: { [key in keyof Proto.t2bBankWithdrawReq]?: FieldRule[] } = {
|
|
|
@@ -79,9 +85,6 @@ const formSubmit = () => {
|
|
|
if(e.value){
|
|
|
obj[e.fieldcode]=e.value
|
|
|
}
|
|
|
- if (e.fieldcode === 'bank_branch_name') {
|
|
|
- formData.BranchBankName = e.value
|
|
|
- }
|
|
|
})
|
|
|
formData.extend_info = JSON.stringify(obj)
|
|
|
fullloading((hideLoading) => {
|