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