3
0
Fork 0

feat(cashDetail): 提现明细添加驳回操作

This commit is contained in:
woody 2025-07-15 15:29:59 +08:00
parent 851c2e8e3b
commit 01c5255023
3 changed files with 75 additions and 2 deletions

View File

@ -271,3 +271,11 @@ export function getTreeType(params) {
})
}
// 批量驳回
export function batchReject(data) {
return request({
url: '/member/manager/withdraw/reject',
method: 'post',
data
})
}

View File

@ -221,7 +221,17 @@
@click="handleExport"
>
{{ '导出' }}</el-button>
<el-button
v-has-buttons="['CashDetailsReject']"
style="padding: 8px"
size="small"
class="thebtn2"
@click="batchRejectHandle"
>
驳回
</el-button>
</div>
</div>
<div style="overflow: auto">
@ -552,6 +562,28 @@
}}</el-button>
</span>
</el-dialog>
<el-dialog
title="驳回原因"
:visible.sync="rejectDialogVisible"
width="30%"
:close-on-click-modal="false"
center
>
<el-form ref="rejectForm" :model="rejectForm" label-width="auto">
<el-form-item required label="驳回原因">
<el-input
v-model="rejectForm.rejectRemark"
:maxlength="80"
show-word-limit
type="textarea"
/>
</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button @click="rejectDialogVisible = false">取消</el-button>
<el-button type="primary" @click="saveRejectForm">确认</el-button>
</span>
</el-dialog>
</div>
</template>
@ -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 = {}

View File

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