-
-
-
-
-
-
-
+
-
-
-
-
-
-
-
-
-
-
+
-
+
-
-
-
-
+
{{ $t('common.button.search') }}
{{ $t('common.button.reset') }}
@@ -80,38 +33,6 @@
-
- {{ $t('common.button.add') }}
-
-
- {{ $t('common.button.edit') }}
-
-
- {{ $t('common.button.delete') }}
-
-
-
+
+
-
-
-
-
-
-
+
+
+
-
+ 未认证
+ 认证通过
+ 认证失败
+ 待审核
-
-
-
-
-
-
-
-
{{ parseTime(scope.row.authenticationDate, '{y}-{m}-{d}') }}
@@ -156,26 +69,24 @@
- {{ $t('common.button.detail') }}
- {{ $t('common.button.edit') }}
- {{ $t('common.button.delete') }}
+ 认证
+ 详情
+ 审核
@@ -203,42 +114,53 @@
-
-
+
+
+
+
+
+
+
+
+ {{auditForm.userInfoName}}
-
-
+
+ {{auditForm.fullName}}
-
-
+
+ {{auditForm.idCardShow}}
-
-
+
+ {{auditForm.idCardNumber}}
-
-
+
+ {{auditForm.nationality}}
-
-
+
+
+ {{ parseTime(auditForm.birthDate, '{y}-{m}-{d}') }}
+
-
-
+
+ {{auditForm.idCardFrontImagePath}}
-
-
-
+
+ {{auditForm.idCardBackImagePath}}
-
-
+
+ {{auditForm.userWithIdCardImagePath}}
+
+
+
@@ -332,6 +254,8 @@ export default {
open: false,
// 是否显示详情弹出层
detailOpen: false,
+ // 是否显示详情弹出层
+ auditOpen: false,
// 查询参数
queryParams: {
pageNum: 1,
@@ -353,8 +277,20 @@ export default {
},
// 表单参数
form: {},
+ //审核参数
+ auditForm: {},
// 表单校验
- rules: {}
+ rules: {
+ merchantName: [
+ { required: true, message: "商户名称不能为空", trigger: "blur" }
+ ],
+ legalPersonName: [
+ { required: true, message: "法人姓名不能为空", trigger: "blur" }
+ ],
+ legalPersonIdCard: [
+ { required: true, message: "法人身份证号不能为空", trigger: "blur" }
+ ],
+ }
};
},
created() {
@@ -419,10 +355,16 @@ export default {
this.multiple = !selection.length
},
/** 新增按钮操作 */
- handleAdd() {
- this.reset();
- this.open = true;
- this.title = "添加商户认证信息";
+ handleAdd(row) {
+ if (row.id != null){
+ this.form = row;
+ this.open = true;
+ this.title = "商户认证";
+ }else {
+ this.form.userId = row.userId;
+ this.open = true;
+ this.title = "商户认证";
+ }
},
/** 详情按钮操作 */
handleDetail(row) {
@@ -431,6 +373,13 @@ export default {
this.detailOpen = true;
this.title = "商户认证信息";
},
+ /** 审核按钮操作 */
+ handleAudit(row){
+ this.reset();
+ this.auditForm = row;
+ this.auditOpen = true;
+ this.title = "商户认证审核";
+ },
/** 修改按钮操作 */
handleUpdate(row) {
this.loading = true;
@@ -488,6 +437,32 @@ export default {
this.download('business/merchantVerification/export', {
...this.queryParams
}, `merchantVerification_${new Date().getTime()}.xlsx`)
+ },
+ /** 审核拒绝*/
+ submitRefuse() {
+ this.$refs["auditForm"].validate(valid => {
+ if (valid) {
+ this.buttonLoading = true;
+ auditBusRefuse(this.auditForm).then(response => {
+ this.$modal.msgSuccess("审核结果:拒绝");
+ this.auditOpen = false;
+ this.getList();
+ }).finally(() => {
+ this.buttonLoading = false;
+ });
+ }
+ });
+ },
+ /** 审核通过*/
+ submitPass() {
+ this.buttonLoading = true;
+ auditBusPass(this.auditForm).then(response => {
+ this.$modal.msgSuccess("审核结果:通过");
+ this.auditOpen = false;
+ this.getList();
+ }).finally(() => {
+ this.buttonLoading = false;
+ });
}
}
};
diff --git a/src/views/business/userInfoBus/index.vue b/src/views/business/userInfoBus/index.vue
index 6155caa..504e461 100644
--- a/src/views/business/userInfoBus/index.vue
+++ b/src/views/business/userInfoBus/index.vue
@@ -8,6 +8,13 @@
clearable
@keyup.enter.native="handleQuery" />
+
+
+
+
@@ -105,6 +113,9 @@
+
+
+
@@ -137,6 +148,9 @@
+
+ {{form.merchantName}}
+
{{form.license}}
@@ -199,6 +213,7 @@ export default {
legalPerson: undefined,
operateStatus: undefined,
operateAddr: undefined,
+ merchantName: undefined,
},
options_operateStatus: [{
value: '存续',
@@ -211,6 +226,9 @@ export default {
form: {},
// 表单校验
rules: {
+ merchantName: [
+ { required: true, message: "商企名称不能为空", trigger: "blur" }
+ ],
legalPerson: [
{ required: true, message: "法人姓名不能为空", trigger: "blur" }
],
@@ -247,6 +265,7 @@ export default {
this.form = {
id: undefined,
userId: undefined,
+ merchantName: undefined,
license: undefined,
licenseOther: undefined,
legalPerson: undefined,
diff --git a/src/views/business/userRegister/index.vue b/src/views/business/userRegister/index.vue
index 49a44cc..90b9266 100755
--- a/src/views/business/userRegister/index.vue
+++ b/src/views/business/userRegister/index.vue
@@ -349,32 +349,6 @@
-
-
-
-
- {{ formDetailBus.account }}
-
-
- {{ formDetailBus.userInfoBusVo.license }}
-
-
- {{ formDetailBus.userInfoBusVo.licenseOther }}
-
-
- {{ formDetailBus.userInfoBusVo.legalPerson }}
-
-
- {{ formDetailBus.userInfoBusVo.operateStatus }}
-
-
- {{ formDetailBus.userInfoBusVo.operateAddr }}
-
-
-
-
diff --git a/src/views/business/userRegister/indexBus.vue b/src/views/business/userRegister/indexBus.vue
index 0bfe3a6..0baa1d3 100644
--- a/src/views/business/userRegister/indexBus.vue
+++ b/src/views/business/userRegister/indexBus.vue
@@ -82,6 +82,7 @@