From 01c52550234b3434a39916463d61da9e68472661 Mon Sep 17 00:00:00 2001 From: woody Date: Tue, 15 Jul 2025 15:29:59 +0800 Subject: [PATCH] =?UTF-8?q?feat(cashDetail):=20=E6=8F=90=E7=8E=B0=E6=98=8E?= =?UTF-8?q?=E7=BB=86=E6=B7=BB=E5=8A=A0=E9=A9=B3=E5=9B=9E=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/financialCase.js | 8 +++ src/views/financial/cashDetails/index.vue | 67 ++++++++++++++++++++++- vue.config.js | 2 +- 3 files changed, 75 insertions(+), 2 deletions(-) diff --git a/src/api/financialCase.js b/src/api/financialCase.js index 19341a4..b6a7c61 100644 --- a/src/api/financialCase.js +++ b/src/api/financialCase.js @@ -271,3 +271,11 @@ export function getTreeType(params) { }) } +// 批量驳回 +export function batchReject(data) { + return request({ + url: '/member/manager/withdraw/reject', + method: 'post', + data + }) +} diff --git a/src/views/financial/cashDetails/index.vue b/src/views/financial/cashDetails/index.vue index 3a93d75..dca3ac6 100644 --- a/src/views/financial/cashDetails/index.vue +++ b/src/views/financial/cashDetails/index.vue @@ -221,7 +221,17 @@ @click="handleExport" > {{ '导出' }} + + 驳回 + +
@@ -552,6 +562,28 @@ }} + + + + + + + + 取消 + 确认 + +
@@ -752,7 +784,11 @@ export default { key: '' } ], - showData: {} + showData: {}, + rejectDialogVisible: false, + rejectForm: { + rejectRemark: '' + } } }, computed: { @@ -772,6 +808,35 @@ export default { methods: { isLocals, isLocalSymbol, + saveRejectForm() { + const data = { + idList: this.checkArr, + rejectRemark: this.rejectForm.rejectRemark + } + api.batchReject(data).then((res) => { + if (res.code == 200) { + this.$message({ + message: res.msg, + type: 'success' + }) + this.rejectDialogVisible = false + this.rejectForm.rejectRemark = '' + this.getDataList() + } + }) + }, + batchRejectHandle() { + const canReject = this.checkArrAll.every((item) => item.approveState == 1) + console.log(canReject) + if (!canReject) { + this.$message({ + message: '存在已审核单据,请重新选择', + type: 'warning' + }) + return false + } + this.rejectDialogVisible = true + }, getUserRole() { getRoleMenu('CashDetails').then((res) => { const obj = {} diff --git a/vue.config.js b/vue.config.js index c13c4c0..cd8c4e3 100644 --- a/vue.config.js +++ b/vue.config.js @@ -44,7 +44,7 @@ module.exports = { }, proxy: { '/prod-api': { - target: 'http://192.168.0.104:8080', + target: 'http://192.168.0.86:8080', changeOrigin: true, pathRewrite: { '^/prod-api': '' } }