diff --git a/src/api/financialCase.js b/src/api/financialCase.js
index ab76c96..984caa2 100644
--- a/src/api/financialCase.js
+++ b/src/api/financialCase.js
@@ -263,3 +263,12 @@ 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 7e020ac..a9c82d4 100644
--- a/src/views/financial/cashDetails/index.vue
+++ b/src/views/financial/cashDetails/index.vue
@@ -224,8 +224,18 @@
class="thebtn4"
@click="handleExport"
>
- {{ '导出' }}
+ 导出
+
+
+ 驳回
+
+
@@ -496,12 +506,7 @@
prop="payerRemarks"
:label="'打款备注'"
/>
-
+
+
{{ '导出' }}
+
@@ -591,6 +604,28 @@
}}
+
+
+
+
+
+
+
+
@@ -660,7 +695,11 @@ export default {
form: {
payerRemarks: ''
},
+ rejectForm: {
+ payerRemarks: ''
+ },
isCz: 0,
+ rejectDialogVisible: false,
checkArrAll: [],
statusList: [],
vertexList: [],
@@ -811,6 +850,34 @@ 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.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 = {}