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': '' }
}