Browse Source

Merge remote-tracking branch 'origin/main'

# Conflicts:
#	src/views/business/userVerification/index.vue
main
GhubCy 2 months ago
parent
commit
4b8f3b7130
  1. 6
      src/views/business/merchantVerification/index.vue
  2. 7
      src/views/business/userVerification/index.vue

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

@ -277,7 +277,7 @@ export default {
{ required: true,pattern: /^\d+$/, message: "身份证号只能为数字", trigger: "blur" } { required: true,pattern: /^\d+$/, message: "身份证号只能为数字", trigger: "blur" }
], ],
failureReason: [ failureReason: [
{ required: true, message: "审核失败原因不能为空", trigger: "blur" } { }
], ],
} }
}; };
@ -430,6 +430,9 @@ export default {
}, },
/** 审核拒绝*/ /** 审核拒绝*/
submitRefuse() { submitRefuse() {
this.rules.failureReason = [
{ required: true, message: '拒绝原因不能为空!', trigger: 'blur' }
];
this.$refs["auditForm"].validate(valid => { this.$refs["auditForm"].validate(valid => {
if (valid) { if (valid) {
this.$modal.confirm('是否【拒绝】商户"' + this.auditForm.merchantName + '"的认证申请?').then(() => { this.$modal.confirm('是否【拒绝】商户"' + this.auditForm.merchantName + '"的认证申请?').then(() => {
@ -450,6 +453,7 @@ export default {
submitPass() { submitPass() {
this.buttonLoading = true; this.buttonLoading = true;
this.auditForm.status = "1"; this.auditForm.status = "1";
this.$refs["auditForm"].clearValidate("failureReason");
this.$modal.confirm('是否【通过】商户"' + this.auditForm.merchantName + '"的认证申请?').then(() => { this.$modal.confirm('是否【通过】商户"' + this.auditForm.merchantName + '"的认证申请?').then(() => {
merchantAudit(this.auditForm).then(response => { merchantAudit(this.auditForm).then(response => {
this.$modal.msgSuccess("审核结果:通过"); this.$modal.msgSuccess("审核结果:通过");

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

@ -17,7 +17,7 @@
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item :label="$t('business.userManager.userVerification.idCard')" prop="idCardNumber"> <el-form-item label="身份证号" prop="idCardNumber">
<el-input <el-input
v-model="queryParams.idCardNumber" v-model="queryParams.idCardNumber"
:placeholder="$t('business.userManager.userVerification.idCardPlaceholder')" :placeholder="$t('business.userManager.userVerification.idCardPlaceholder')"
@ -450,6 +450,9 @@ export default {
}, },
/** 审核拒绝*/ /** 审核拒绝*/
submitRefuse() { submitRefuse() {
this.rules.failureReason = [
{ required: true, message: '拒绝原因不能为空!', trigger: 'blur' }
];
this.$refs["auditForm"].validate(valid => { this.$refs["auditForm"].validate(valid => {
if (valid) { if (valid) {
this.$modal.confirm('是否【拒绝】用户"' + this.auditForm.userInfoName + '"的认证申请?').then(() => { this.$modal.confirm('是否【拒绝】用户"' + this.auditForm.userInfoName + '"的认证申请?').then(() => {
@ -468,6 +471,8 @@ export default {
}, },
/** 审核通过*/ /** 审核通过*/
submitPass() { submitPass() {
this.$refs["auditForm"].clearValidate("failureReason");
this.$modal.confirm('是否【通过】用户"' + this.auditForm.userInfoName + '"的认证申请?').then(() => { this.$modal.confirm('是否【通过】用户"' + this.auditForm.userInfoName + '"的认证申请?').then(() => {
this.buttonLoading = true; this.buttonLoading = true;
this.auditForm.status = "1"; this.auditForm.status = "1";

Loading…
Cancel
Save