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