|
|
@@ -1,6 +1,6 @@
|
|
|
<!-- 账户管理-签约账号管理-签约 -->
|
|
|
<template>
|
|
|
- <app-drawer :title="bankInfo ? '修改签约账户' : '添加签约账户'" :width="800" v-model:show="show" :loading="loading"
|
|
|
+ <app-drawer :title="bankInfo?.signstatus != undefined ? '修改签约账户' : '添加签约账户'" :width="800" v-model:show="show" :loading="loading"
|
|
|
:refresh="refresh">
|
|
|
<el-form ref="formRef" class="el-form--horizontal" label-width="120px" :model="formData" :rules="formRules">
|
|
|
<el-form-item label="开户银行" prop="OpenBankAccId">
|
|
|
@@ -12,39 +12,43 @@
|
|
|
<el-input name="BankAccountNo" placeholder="银行卡号" :maxlength="30" v-model="formData.BankAccountNo"
|
|
|
:rules="formRules.BankAccountNo" />
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="姓名" prop="AccountName">
|
|
|
+ <el-form-item label="名称" prop="AccountName">
|
|
|
<el-input name="AccountName" readonly placeholder="银行卡账户名" v-model="formData.AccountName"
|
|
|
:rules="formRules.AccountName" />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="手机号码" prop="MobilePhone">
|
|
|
- <el-input name="MobilePhone" readonly placeholder="请输入手机号码" v-model="formData.MobilePhone" />
|
|
|
+ <el-input name="MobilePhone" :readonly="userStore.userInfo?.mobile2 != ''" maxlength="50" placeholder="请输入手机号码" v-model="formData.MobilePhone" />
|
|
|
</el-form-item>
|
|
|
<template v-for="(item, index) in configs" :key="index">
|
|
|
- <el-form-item :label="item.fieldname" :prop="item.fieldcode"
|
|
|
- v-if="(item.fieldcode === 'verify_code') &&
|
|
|
- (item.usabletype === 1) ||
|
|
|
- (item.usabletype === 2 && userStore.userInfo?.userinfotype === 2) ||
|
|
|
- (item.usabletype === 3 && userStore.userInfo?.userinfotype === 1)">
|
|
|
- <el-input placeholder="请输入短信验证码" type="number" v-model="item.value" :rules="formRules.vcode">
|
|
|
- <template #append>
|
|
|
- <el-button size="small" type="primary" :disabled="isCountdown" @click="sendVerifyCode">
|
|
|
- <span v-if="isCountdown">重新发送({{ seconds }})</span>
|
|
|
- <span v-else>获取验证码</span>
|
|
|
- </el-button>
|
|
|
- </template>
|
|
|
- </el-input>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item :label="item.fieldname" :prop="item.fieldcode"
|
|
|
- v-else-if="(item.usabletype === 1) ||
|
|
|
- (item.usabletype === 2 && userStore.userInfo?.userinfotype === 2) ||
|
|
|
- (item.usabletype === 3 && userStore.userInfo?.userinfotype === 1)">
|
|
|
- <el-input :name="item.fieldcode" placeholder="请必须输入" v-model="item.value" />
|
|
|
- </el-form-item>
|
|
|
+ <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))">
|
|
|
+ <el-input placeholder="请必须输入" type="number" v-model="item.value" :rules="formRules.vcode">
|
|
|
+ <template #append>
|
|
|
+ <el-button size="small" type="primary" :disabled="isCountdown" @click="sendVerifyCode">
|
|
|
+ <span v-if="isCountdown">重新发送({{ seconds }})</span>
|
|
|
+ <span v-else>获取验证码</span>
|
|
|
+ </el-button>
|
|
|
+ </template>
|
|
|
+ </el-input>
|
|
|
+ </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)">
|
|
|
+ <el-input :readonly="item.fieldcode === 'legal_name' && userStore.userInfo?.legalpersonname != ''" maxlength="50" :name="item.fieldcode" placeholder="请必须输入" v-model="item.value" />
|
|
|
+ </el-form-item>
|
|
|
+ </template>
|
|
|
</template>
|
|
|
</el-form>
|
|
|
<template #footer>
|
|
|
<el-button type="info" @click="onCancel(false)">取消</el-button>
|
|
|
- <el-button type="primary" @click="formSubmit">{{ bankInfo ? '修改' : '提交' }}</el-button>
|
|
|
+ <el-button type="primary" @click="formSubmit">{{ bankInfo?.signstatus != undefined ? '修改' : '提交' }}</el-button>
|
|
|
</template>
|
|
|
</app-drawer>
|
|
|
</template>
|
|
|
@@ -160,7 +164,7 @@ const formSubmit = () => {
|
|
|
formData.extend_info = JSON.stringify(obj)
|
|
|
|
|
|
onSubmit().then(() => {
|
|
|
- ElMessage.success(bankInfo ? '签约信息修改成功' : '签约提交成功,请耐心等待审核。')
|
|
|
+ ElMessage.success(bankInfo.value?.signstatus != undefined ? '签约信息修改成功' : '签约提交成功,请耐心等待审核。')
|
|
|
onCancel(true)
|
|
|
}).catch((err) => {
|
|
|
const { getErrorInfoByCode } = useErrorInfoStore()
|