From f06b44b41e8d1a423602bb19c8091282226fdeae Mon Sep 17 00:00:00 2001 From: "DESKTOP-GMUNQ1B\\k" <1154079537@qq.com> Date: Wed, 3 Apr 2024 17:53:11 +0800 Subject: [PATCH] 1 --- src/api/accounts.js | 8 ++ src/views/accounts/auditRecord/index.vue | 132 ++++++++++-------- .../merchant/list/handle/merEditForm.vue | 9 ++ 3 files changed, 92 insertions(+), 57 deletions(-) diff --git a/src/api/accounts.js b/src/api/accounts.js index b345151..8021034 100644 --- a/src/api/accounts.js +++ b/src/api/accounts.js @@ -10,6 +10,14 @@ import request from './request' +/** + * @description 银行卡审核 -- 修改 /sys/merchant/intention/edit/155 + */ +export function editApi(data) { + return request.post('merchant/intention/edit/' + data.id, data) +} + + /** * @description 银行卡审核 -- 列表 */ diff --git a/src/views/accounts/auditRecord/index.vue b/src/views/accounts/auditRecord/index.vue index 8b73842..bf848ab 100644 --- a/src/views/accounts/auditRecord/index.vue +++ b/src/views/accounts/auditRecord/index.vue @@ -80,7 +80,8 @@ 审核 - 查看 + 修改 + 查看 @@ -92,56 +93,60 @@ - - - - - 商户信息 - - 商户名称: - 商户ID:{{ transferData.merchantInfo.mer_id }} - 开户银行: - 银行账号: - 开户户名: - - 开户网点: - 真实姓名: - - 备注:{{ transferData.fail_msg ? transferData.fail_msg : '-' }} - - 凭证: - - - - - - 审核信息 - - - - 通过 - 拒绝 - - - - - - - - - + + + + + + + 通过 + 拒绝 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 取消 - 提交 + 提交 @@ -160,7 +165,7 @@ // | Author: CRMEB Team // +---------------------------------------------------------------------- import { merSelectApi } from '@/api/product' -import { bankListApi, bandAuditApi } from "@/api/accounts"; +import { bankListApi, bandAuditApi ,editApi} from "@/api/accounts"; import { transferRecordApi, transferDetailApi, transferReviewApi, transferEditApi, transferMarkApi, transferHeaderDataApi, transferRecordsExportApi } from '@/api/accounts' import createWorkBook from '@/utils/newToExcel.js'; import timeOptions from '@/utils/timeOptions'; @@ -195,7 +200,7 @@ export default { status: '', fail_msg: '' }, - type: '',//类型 是审核还是查看 + title: '',//类型 是审核还是查看 } }, mounted() { @@ -242,8 +247,18 @@ export default { transferReview(id) { this.$refs.ruleForm.validate(valid => { if (valid) { - this.auditForm.id = this.transferData.id + this.auditForm.id = this.transferData.id; this.auditForm.financial_account = this.transferData.financial_account; + if(this.title == '修改') { + editApi(this.auditForm).then(res=>{ + this.$message.success(res.message); + this.dialogVisible = false; + this.getList(1); + }).catch(res => { + this.listLoading = false; + this.$message.error(res.message) + }) + } else { bandAuditApi(this.auditForm).then(res => { this.$message.success(res.message); this.dialogVisible = false; @@ -252,18 +267,22 @@ export default { this.listLoading = false; this.$message.error(res.message) }) + } } }) }, // 审核 查看 transferMark(item, type) { - console.log(item) this.transferData = JSON.parse(JSON.stringify(item)); - this.auditForm.status = ''; - this.auditForm.fail_msg = ''; + this.auditForm.status = item.is_check; + this.auditForm.fail_msg = item.fail_msg; this.dialogVisible = true; - this.type = type; + + if (type == 1) this.title = '审核'; + if (type == 2) this.title = '修改'; + if (type == 3) this.title = '查看'; + }, // 具体日期 @@ -387,7 +406,6 @@ export default { padding: 0 10px; } - .section { padding: 10px 0 30px; border-bottom: 1px dashed #eeeeee; diff --git a/src/views/merchant/list/handle/merEditForm.vue b/src/views/merchant/list/handle/merEditForm.vue index 4a3fe60..e0fd990 100644 --- a/src/views/merchant/list/handle/merEditForm.vue +++ b/src/views/merchant/list/handle/merEditForm.vue @@ -94,6 +94,15 @@ + + + + + + + + +