Browse Source

商户、代理用户认证状态调整

main
daimenglei 1 month ago
parent
commit
d6db8eca08
  1. 16
      src/views/business/agentVerification/index.vue

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

@ -56,28 +56,28 @@
<el-table-column :label="$t('business.agent.agentVerification.status')" align="center" prop="status">
<template slot-scope="scope">
<el-tag type="primary" v-if="scope.row.status == '0' || scope.row.status == null">{{ $t('business.agent.agentVerification.statusOption.unverified') }}</el-tag>
<el-tag type="success" v-if="scope.row.status == '1'">{{ $t('business.agent.agentVerification.statusOption.verified') }}</el-tag>
<el-tag type="danger" v-if="scope.row.status == '2'">{{ $t('business.agent.agentVerification.statusOption.verificationFailed') }}</el-tag>
<el-tag type="warning" v-if="scope.row.status == '3'">{{ $t('business.agent.agentVerification.statusOption.pendingReview') }}</el-tag>
<el-tag type="warning" v-if="scope.row.status == '1'">{{ $t('business.agent.agentVerification.statusOption.pendingReview') }}</el-tag>
<el-tag type="success" v-if="scope.row.status == '2'">{{ $t('business.agent.agentVerification.statusOption.verified') }}</el-tag>
<el-tag type="danger" v-if="scope.row.status == '3'">{{ $t('business.agent.agentVerification.statusOption.verificationFailed') }}</el-tag>
</template>
</el-table-column>
<el-table-column :label="$t('business.agent.agentVerification.authenticationDate')" align="center" prop="authenticationDate" width="180"/>
<el-table-column :label="$t('business.agent.agentVerification.failureReason')" align="center" prop="failureReason"/>
<el-table-column :label="$t('common.tableMsg.operation')" align="center" width="200" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button v-if="(scope.row.status == null || scope.row.status == '2')"
<el-button v-if="(scope.row.status == null || scope.row.status == 0 || scope.row.status == 3)"
size="mini"
type="text"
icon="el-icon-document-add"
@click="handleAdd(scope.row)"
>{{ $t('business.agent.agentVerification.authenticate') }}</el-button>
<el-button v-if="(scope.row.status == 1)"
<el-button v-if="(scope.row.status == 2)"
size="mini"
type="text"
icon="el-icon-view"
@click="handleDetail(scope.row)"
>{{ $t('common.button.detail') }}</el-button>
<el-button v-if="(scope.row.status == 3)"
<el-button v-if="(scope.row.status == 1)"
size="mini"
type="text"
icon="el-icon-view"
@ -500,7 +500,7 @@ export default {
if (valid) {
this.$modal.confirm(this.$t('business.agent.agentVerification.rejectConfirm', { agentName: this.auditForm.agentName })).then(() => {
this.buttonLoading = true;
this.auditForm.status = "2";
this.auditForm.status = "3";
agentAudit(this.auditForm).then(response => {
this.$modal.msgSuccess(this.$t('business.agent.agentVerification.auditResultReject'));
this.auditOpen = false;
@ -515,7 +515,7 @@ export default {
/** 审核通过*/
submitPass() {
this.buttonLoading = true;
this.auditForm.status = "1";
this.auditForm.status = "2";
this.$refs["auditForm"].clearValidate("failureReason");
this.$modal.confirm(this.$t('business.agent.agentVerification.passConfirm', { agentName: this.auditForm.agentName })).then(() => {
agentAudit(this.auditForm).then(response => {

Loading…
Cancel
Save