Browse Source

用户、商户、代理商,认证是图片上传验空规则调整

main
daimenglei 1 month ago
parent
commit
e21874a048
  1. 4
      src/views/business/agentVerification/index.vue
  2. 22
      src/views/business/merchantVerification/index.vue
  3. 3
      src/views/business/userVerification/index.vue

4
src/views/business/agentVerification/index.vue

@ -409,8 +409,12 @@ export default {
}, },
/** 新增按钮操作 */ /** 新增按钮操作 */
handleAdd(row) { handleAdd(row) {
this.reset()
if (row.id != null){ if (row.id != null){
this.form = row; this.form = row;
this.form.idCardFrontImagePath = null;
this.form.idCardBackImagePath = null;
this.form.userWithIdCardImagePath = null;
this.open = true; this.open = true;
this.title = this.$t('business.agent.agentVerification.authenticateTitle'); this.title = this.$t('business.agent.agentVerification.authenticateTitle');
}else { }else {

22
src/views/business/merchantVerification/index.vue

@ -110,7 +110,7 @@
<el-form-item :label="$t('business.merchant.merchantVerification.legalPersonIdCard')" prop="legalPersonIdCard"> <el-form-item :label="$t('business.merchant.merchantVerification.legalPersonIdCard')" prop="legalPersonIdCard">
<el-input v-model="form.legalPersonIdCard" :placeholder="$t('business.merchant.merchantVerification.legalPersonIdCardPlaceholder')"/> <el-input v-model="form.legalPersonIdCard" :placeholder="$t('business.merchant.merchantVerification.legalPersonIdCardPlaceholder')"/>
</el-form-item> </el-form-item>
<el-form-item :label="$t('business.userManager.userVerification.idCardFront')" prop="idCardFrontImagePath"> <el-form-item :label="$t('business.userManager.userVerification.idCardFront')" prop="legalPersonIdCardFrontImagePath">
<el-upload <el-upload
class="upload-demo" class="upload-demo"
:action="uploadUrl" :action="uploadUrl"
@ -123,7 +123,7 @@
<div slot="tip" class="el-upload__tip">只能上传JPG/PNG文件且不超过5M</div> <div slot="tip" class="el-upload__tip">只能上传JPG/PNG文件且不超过5M</div>
</el-upload> </el-upload>
</el-form-item> </el-form-item>
<el-form-item :label="$t('business.userManager.userVerification.idCardBack')" prop="idCardBackImagePath"> <el-form-item :label="$t('business.userManager.userVerification.idCardBack')" prop="legalPersonIdCardBackImagePath">
<el-upload <el-upload
class="upload-demo" class="upload-demo"
:action="uploadUrl" :action="uploadUrl"
@ -136,7 +136,7 @@
<div slot="tip" class="el-upload__tip">只能上传JPG/PNG文件且不超过5M</div> <div slot="tip" class="el-upload__tip">只能上传JPG/PNG文件且不超过5M</div>
</el-upload> </el-upload>
</el-form-item> </el-form-item>
<el-form-item :label="$t('business.userManager.userVerification.idCardHolding')" prop="userWithIdCardImagePath"> <el-form-item :label="$t('business.userManager.userVerification.idCardHolding')" prop="legalPersonUserWithIdCardImagePath">
<el-upload <el-upload
class="upload-demo" class="upload-demo"
:action="uploadUrl" :action="uploadUrl"
@ -303,13 +303,13 @@ export default {
legalPersonName: [ legalPersonName: [
{ required: true, message: this.$t('business.merchant.merchantVerification.legalPersonNameRequired'), trigger: "blur" } { required: true, message: this.$t('business.merchant.merchantVerification.legalPersonNameRequired'), trigger: "blur" }
], ],
idCardFrontImagePath: [ legalPersonIdCardFrontImagePath: [
{ required: true, message: this.$t('business.userManager.userVerification.idCardFrontRequired'), trigger: "blur" } { required: true, message: this.$t('business.userManager.userVerification.idCardFrontRequired'), trigger: "blur" }
], ],
idCardBackImagePath: [ legalPersonIdCardBackImagePath: [
{ required: true, message: this.$t('business.userManager.userVerification.idCardBackRequired'), trigger: "blur" } { required: true, message: this.$t('business.userManager.userVerification.idCardBackRequired'), trigger: "blur" }
], ],
userWithIdCardImagePath: [ legalPersonUserWithIdCardImagePath: [
{ required: true, message: this.$t('business.userManager.userVerification.idCardHoldingRequired'), trigger: "blur" } { required: true, message: this.$t('business.userManager.userVerification.idCardHoldingRequired'), trigger: "blur" }
], ],
legalPersonIdCard: [ legalPersonIdCard: [
@ -393,8 +393,12 @@ export default {
}, },
/** 新增按钮操作 */ /** 新增按钮操作 */
handleAdd(row) { handleAdd(row) {
this.reset();
if (row.id != null){ if (row.id != null){
this.form = row; this.form = row;
this.form.legalPersonIdCardFrontImagePath = null;
this.form.legalPersonIdCardBackImagePath = null;
this.form.legalPersonUserWithIdCardImagePath = null;
this.open = true; this.open = true;
this.title = this.$t('business.merchant.merchantVerification.authenticateTitle'); this.title = this.$t('business.merchant.merchantVerification.authenticateTitle');
}else { }else {
@ -514,19 +518,19 @@ export default {
// //
handleSuccess_idCardFrontImagePath(response) { handleSuccess_idCardFrontImagePath(response) {
if (response.code === 200) { if (response.code === 200) {
this.form.idCardFrontImagePath = response.data; // URL this.form.legalPersonIdCardFrontImagePath = response.data; // URL
} }
}, },
// //
handleSuccess_idCardBackImagePath(response) { handleSuccess_idCardBackImagePath(response) {
if (response.code === 200) { if (response.code === 200) {
this.form.idCardBackImagePath = response.data; // URL this.form.legalPersonIdCardBackImagePath = response.data; // URL
} }
}, },
// //
handleSuccess_userWithIdCardImagePath(response) { handleSuccess_userWithIdCardImagePath(response) {
if (response.code === 200) { if (response.code === 200) {
this.form.userWithIdCardImagePath = response.data; // URL this.form.legalPersonUserWithIdCardImagePath = response.data; // URL
} }
} }
} }

3
src/views/business/userVerification/index.vue

@ -473,6 +473,9 @@ export default {
this.reset(); this.reset();
if (row.id != null) { if (row.id != null) {
this.form = row; this.form = row;
this.form.idCardFrontImagePath = null;
this.form.idCardBackImagePath = null;
this.form.userWithIdCardImagePath = null;
this.open = true; this.open = true;
this.title = this.$t("business.userManager.userVerification.verification"); this.title = this.$t("business.userManager.userVerification.verification");
} else { } else {

Loading…
Cancel
Save