|
|
@@ -22,10 +22,7 @@
|
|
|
<template v-for="(item, index) in configs" :key="index">
|
|
|
<template v-if="(item.fieldcode === 'verify_code')">
|
|
|
<el-form-item :label="item.fieldname" :prop="item.fieldcode"
|
|
|
- v-if="(bankInfo === undefined) &&
|
|
|
- ((item.usabletype === 1) ||
|
|
|
- (item.usabletype === 2 && userStore.userInfo?.userinfotype === 2) ||
|
|
|
- (item.usabletype === 3 && userStore.userInfo?.userinfotype === 1))">
|
|
|
+ v-if="bankInfo === undefined && showExtendInfo(item)">
|
|
|
<el-input placeholder="请必须输入" type="number" v-model="item.value" :rules="formRules.vcode">
|
|
|
<template #append>
|
|
|
<el-button size="small" type="primary" :disabled="isCountdown" @click="sendVerifyCode">
|
|
|
@@ -38,25 +35,19 @@
|
|
|
</template>
|
|
|
<template v-else-if="(item.fieldcode === 'bank_branch_name')">
|
|
|
<el-form-item :label="item.fieldname" prop="OpenBankName"
|
|
|
- v-if="(item.usabletype === 1) ||
|
|
|
- (item.usabletype === 2 && userStore.userInfo?.userinfotype === 2) ||
|
|
|
- (item.usabletype === 3 && userStore.userInfo?.userinfotype === 1)">
|
|
|
+ v-if="showExtendInfo(item)">
|
|
|
<el-input maxlength="50" :name="item.fieldcode" placeholder="请必须输入" v-model="item.value" />
|
|
|
</el-form-item>
|
|
|
</template>
|
|
|
<template v-else-if="(item.fieldcode === '100')">
|
|
|
<el-form-item :label="item.fieldname" prop="OpenBankNo"
|
|
|
- v-if="(item.usabletype === 1) ||
|
|
|
- (item.usabletype === 2 && userStore.userInfo?.userinfotype === 2) ||
|
|
|
- (item.usabletype === 3 && userStore.userInfo?.userinfotype === 1)">
|
|
|
+ v-if="showExtendInfo(item)">
|
|
|
<el-input maxlength="50" :name="item.fieldcode" placeholder="请必须输入" v-model="item.value" />
|
|
|
</el-form-item>
|
|
|
</template>
|
|
|
<template v-else>
|
|
|
<el-form-item :label="item.fieldname" :prop="item.fieldcode"
|
|
|
- v-if="(item.usabletype === 1) ||
|
|
|
- (item.usabletype === 2 && userStore.userInfo?.userinfotype === 2) ||
|
|
|
- (item.usabletype === 3 && userStore.userInfo?.userinfotype === 1)">
|
|
|
+ v-if="showExtendInfo(item)">
|
|
|
<el-input :readonly="item.fieldcode === 'legal_name' && userStore.userInfo?.legalpersonname != ''" maxlength="50" :name="item.fieldcode" placeholder="请必须输入" v-model="item.value" />
|
|
|
</el-form-item>
|
|
|
</template>
|
|
|
@@ -80,6 +71,19 @@ import service from '@/services'
|
|
|
import AppDrawer from '@pc/components/base/drawer/index.vue'
|
|
|
import { shallowRef } from 'vue'
|
|
|
|
|
|
+const { formData, onSubmit, banklist, bankInfo, loading } = useDoBankSign()
|
|
|
+const { configs } = useDoCusBankExtendConfigs(1)
|
|
|
+const { smsVerificationCode } = useT2bSMSVerificationCode()
|
|
|
+
|
|
|
+const userStore = useUserStore()
|
|
|
+const show = ref(true)
|
|
|
+const refresh = ref(false)
|
|
|
+const formRef = ref<FormInstance>()
|
|
|
+const seconds = ref(60) //倒计时剩余时间
|
|
|
+const isCountdown = ref(false) // 是否正在倒计时
|
|
|
+/// 短信验证码交易中心信息
|
|
|
+const CenterErrMsg = shallowRef('')
|
|
|
+
|
|
|
const formRules: FormRules = {
|
|
|
OpenBankAccId: [{
|
|
|
message: '请选择银行信息',
|
|
|
@@ -116,24 +120,18 @@ const formRules: FormRules = {
|
|
|
}]
|
|
|
}
|
|
|
|
|
|
-const { formData, onSubmit, banklist, bankInfo, loading } = useDoBankSign()
|
|
|
-const { configs } = useDoCusBankExtendConfigs(1)
|
|
|
-const { smsVerificationCode } = useT2bSMSVerificationCode()
|
|
|
-
|
|
|
-const userStore = useUserStore()
|
|
|
-const show = ref(true)
|
|
|
-const refresh = ref(false)
|
|
|
-const formRef = ref<FormInstance>()
|
|
|
-const seconds = ref(60) //倒计时剩余时间
|
|
|
-const isCountdown = ref(false) // 是否正在倒计时
|
|
|
-/// 短信验证码交易中心信息
|
|
|
-const CenterErrMsg = shallowRef('')
|
|
|
-
|
|
|
const onCancel = (isRefresh = false) => {
|
|
|
show.value = false
|
|
|
refresh.value = isRefresh
|
|
|
}
|
|
|
|
|
|
+/// 是否显示拓展信息
|
|
|
+const showExtendInfo = (item: Model.BankCusBankExtendConfigRsp) => {
|
|
|
+ return (item.usabletype === 1) ||
|
|
|
+ (item.usabletype === 2 && userStore.userInfo?.userinfotype === 2) ||
|
|
|
+ (item.usabletype === 3 && userStore.userInfo?.userinfotype === 1)
|
|
|
+}
|
|
|
+
|
|
|
// 发送手机验证码
|
|
|
const sendVerifyCode = () => {
|
|
|
formRef.value?.validateField('MobilePhone', (valid) => {
|