|
@@ -6,37 +6,37 @@
|
|
|
<Form ref="formRef" class="g-form__container" @submit="onCheckCardNum" :loading="loading">
|
|
<Form ref="formRef" class="g-form__container" @submit="onCheckCardNum" :loading="loading">
|
|
|
<!-- 个人 -->
|
|
<!-- 个人 -->
|
|
|
<CellGroup v-if="getUserInfoType() === 1" inset>
|
|
<CellGroup v-if="getUserInfoType() === 1" inset>
|
|
|
- <Field v-model="person.realName" name="realName" label="姓名" placeholder="请输入用户姓名" :rules="PFormRules.realName" />
|
|
|
|
|
|
|
+ <Field v-model="person.realName" :readonly="isReadonly && person.realName != ''" name="realName" label="姓名" placeholder="请输入用户姓名" :rules="PFormRules.realName" />
|
|
|
<Field v-model="person.mobile" name="mobile" readonly label="手机号码" :rules="PFormRules.mobile"/>
|
|
<Field v-model="person.mobile" name="mobile" readonly label="手机号码" :rules="PFormRules.mobile"/>
|
|
|
- <Field v-model="person.bankCard" name="bankCard" label="银行卡号" placeholder="请输入银行卡号" :rules="PFormRules.bankCard" />
|
|
|
|
|
- <Field v-model="person.idCardNo" name="idCardNo" label="证件号码" placeholder="请输入证件号码" :rules="PFormRules.idCardNo" />
|
|
|
|
|
|
|
+ <Field v-model="person.bankCard" :readonly="isReadonly && person.bankCard != ''" name="bankCard" label="银行卡号" placeholder="请输入银行卡号" :rules="PFormRules.bankCard" />
|
|
|
|
|
+ <Field v-model="person.idCardNo" :readonly="isReadonly && person.idCardNo != ''" name="idCardNo" label="证件号码" placeholder="请输入证件号码" :rules="PFormRules.idCardNo" />
|
|
|
<Field name="idCardPhoto" label="证件正面照片" :rules="PFormRules.idCardPhoto">
|
|
<Field name="idCardPhoto" label="证件正面照片" :rules="PFormRules.idCardPhoto">
|
|
|
<template #input>
|
|
<template #input>
|
|
|
<Image fit="contain" :src="getFileUrl(person.idCardPhoto)" width="100" height="100"
|
|
<Image fit="contain" :src="getFileUrl(person.idCardPhoto)" width="100" height="100"
|
|
|
- v-if="isReadonly" />
|
|
|
|
|
|
|
+ v-if="isReadonly && person.idCardPhoto != ''" />
|
|
|
<app-uploader @success="f_afterRead" v-else />
|
|
<app-uploader @success="f_afterRead" v-else />
|
|
|
</template>
|
|
</template>
|
|
|
</Field>
|
|
</Field>
|
|
|
<Field name="cardbackphotourl" label="证件反面照片" :rules="PFormRules.idCardPhotoBackURL">
|
|
<Field name="cardbackphotourl" label="证件反面照片" :rules="PFormRules.idCardPhotoBackURL">
|
|
|
<template #input>
|
|
<template #input>
|
|
|
<Image fit="contain" :src="getFileUrl(person.idCardPhotoBackURL)" width="100" height="100"
|
|
<Image fit="contain" :src="getFileUrl(person.idCardPhotoBackURL)" width="100" height="100"
|
|
|
- v-if="isReadonly" />
|
|
|
|
|
|
|
+ v-if="isReadonly && person.idCardPhotoBackURL != ''" />
|
|
|
<app-uploader @success="b_afterRead" v-else />
|
|
<app-uploader @success="b_afterRead" v-else />
|
|
|
</template>
|
|
</template>
|
|
|
</Field>
|
|
</Field>
|
|
|
</CellGroup>
|
|
</CellGroup>
|
|
|
<!-- 企业 -->
|
|
<!-- 企业 -->
|
|
|
<CellGroup inset v-else>
|
|
<CellGroup inset v-else>
|
|
|
- <Field v-model="company.realName" name="realName" label="法人姓名" placeholder="请输入法人姓名" :rules="CFormRules.realName" />
|
|
|
|
|
|
|
+ <Field v-model="company.realName" :readonly="isReadonly && company.realName != ''" name="realName" label="法人姓名" placeholder="请输入法人姓名" :rules="CFormRules.realName" />
|
|
|
<Field v-model="company.mobile" name="mobile" readonly label="法人手机号" />
|
|
<Field v-model="company.mobile" name="mobile" readonly label="法人手机号" />
|
|
|
<Field v-model="company.companyName" name="companyName" label="企业名称" placeholder="请输入企业名称" :rules="CFormRules.companyName" />
|
|
<Field v-model="company.companyName" name="companyName" label="企业名称" placeholder="请输入企业名称" :rules="CFormRules.companyName" />
|
|
|
<Field v-model="company.creditCode" name="creditCode" label="信用代码" placeholder="请输入社会统一信用代码" :rules="CFormRules.creditCode" />
|
|
<Field v-model="company.creditCode" name="creditCode" label="信用代码" placeholder="请输入社会统一信用代码" :rules="CFormRules.creditCode" />
|
|
|
- <Field v-model="company.bankCard" name="bankCard" label="法人银行卡号" placeholder="请输入法人银行卡号" :rules="CFormRules.bankCard" />
|
|
|
|
|
- <Field v-model="company.idCardNo" name="idCardNo" label="法人身份证号" placeholder="请输入法人身份证号" :rules="CFormRules.idCardNo" />
|
|
|
|
|
|
|
+ <Field v-model="company.bankCard" :readonly="isReadonly && company.bankCard != ''" name="bankCard" label="法人银行卡号" placeholder="请输入法人银行卡号" :rules="CFormRules.bankCard" />
|
|
|
|
|
+ <Field v-model="company.idCardNo" :readonly="isReadonly && company.idCardNo != ''" name="idCardNo" label="法人身份证号" placeholder="请输入法人身份证号" :rules="CFormRules.idCardNo" />
|
|
|
<Field name="idCardPhoto" label="营业执照" :rules="CFormRules.idCardPhoto">
|
|
<Field name="idCardPhoto" label="营业执照" :rules="CFormRules.idCardPhoto">
|
|
|
<template #input>
|
|
<template #input>
|
|
|
<Image fit="contain" :src="getFileUrl(company.idCardPhoto)" width="100" height="100"
|
|
<Image fit="contain" :src="getFileUrl(company.idCardPhoto)" width="100" height="100"
|
|
|
- v-if="isReadonly" />
|
|
|
|
|
|
|
+ v-if="isReadonly && company.idCardPhoto != ''" />
|
|
|
<app-uploader @success="f_afterRead" v-else />
|
|
<app-uploader @success="f_afterRead" v-else />
|
|
|
</template>
|
|
</template>
|
|
|
</Field>
|
|
</Field>
|
|
@@ -68,6 +68,7 @@ import { useNavigation } from '@mobile/router/navigation'
|
|
|
import { getUserId, getMemberUserId, getUserInfoType } from '@/services/methods/user'
|
|
import { getUserId, getMemberUserId, getUserInfoType } from '@/services/methods/user'
|
|
|
import AppUploader from '@mobile/components/base/uploader/index.vue'
|
|
import AppUploader from '@mobile/components/base/uploader/index.vue'
|
|
|
import { decryptAES } from '@/services/websocket/package/crypto';
|
|
import { decryptAES } from '@/services/websocket/package/crypto';
|
|
|
|
|
+import { queryBankAccountSign } from '@/services/api/bank'
|
|
|
|
|
|
|
|
const componentMap = new Map<string, unknown>([
|
|
const componentMap = new Map<string, unknown>([
|
|
|
['captcha', defineAsyncComponent(() => import('./components/captcha/Index.vue'))],
|
|
['captcha', defineAsyncComponent(() => import('./components/captcha/Index.vue'))],
|
|
@@ -89,7 +90,18 @@ const { componentRef, componentId, openComponent, closeComponent } = useComponen
|
|
|
/// 流水号
|
|
/// 流水号
|
|
|
const serialNo = ref<string>('')
|
|
const serialNo = ref<string>('')
|
|
|
/// 是否只读
|
|
/// 是否只读
|
|
|
-const isReadonly = false
|
|
|
|
|
|
|
+const isReadonly = ref(false)
|
|
|
|
|
+
|
|
|
|
|
+/// 查询托管银行信息
|
|
|
|
|
+useRequest(queryBankAccountSign, {
|
|
|
|
|
+ onSuccess: (res) => {
|
|
|
|
|
+ /// 签约状态
|
|
|
|
|
+ if (res.data.length != 0) {
|
|
|
|
|
+ /// 如果已经签约了 不允许修改信息
|
|
|
|
|
+ isReadonly.value = res.data.some(e => [2, 3, 4].includes(e.signstatus))
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+})
|
|
|
|
|
|
|
|
/// 查询记录
|
|
/// 查询记录
|
|
|
const { loading: buttonLoading } = useRequest(queryTencentUsereSignRecords, {
|
|
const { loading: buttonLoading } = useRequest(queryTencentUsereSignRecords, {
|