forked from angelo/web-retail-admin
feat(cashDetail): 提现明细添加驳回操作
This commit is contained in:
parent
851c2e8e3b
commit
01c5255023
|
@ -271,3 +271,11 @@ export function getTreeType(params) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 批量驳回
|
||||||
|
export function batchReject(data) {
|
||||||
|
return request({
|
||||||
|
url: '/member/manager/withdraw/reject',
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
|
@ -221,7 +221,17 @@
|
||||||
@click="handleExport"
|
@click="handleExport"
|
||||||
>
|
>
|
||||||
{{ '导出' }}</el-button>
|
{{ '导出' }}</el-button>
|
||||||
|
<el-button
|
||||||
|
v-has-buttons="['CashDetailsReject']"
|
||||||
|
style="padding: 8px"
|
||||||
|
size="small"
|
||||||
|
class="thebtn2"
|
||||||
|
@click="batchRejectHandle"
|
||||||
|
>
|
||||||
|
驳回
|
||||||
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div style="overflow: auto">
|
<div style="overflow: auto">
|
||||||
|
@ -552,6 +562,28 @@
|
||||||
}}</el-button>
|
}}</el-button>
|
||||||
</span>
|
</span>
|
||||||
</el-dialog>
|
</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>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -752,7 +784,11 @@ export default {
|
||||||
key: ''
|
key: ''
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
showData: {}
|
showData: {},
|
||||||
|
rejectDialogVisible: false,
|
||||||
|
rejectForm: {
|
||||||
|
rejectRemark: ''
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
@ -772,6 +808,35 @@ export default {
|
||||||
methods: {
|
methods: {
|
||||||
isLocals,
|
isLocals,
|
||||||
isLocalSymbol,
|
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() {
|
getUserRole() {
|
||||||
getRoleMenu('CashDetails').then((res) => {
|
getRoleMenu('CashDetails').then((res) => {
|
||||||
const obj = {}
|
const obj = {}
|
||||||
|
|
|
@ -44,7 +44,7 @@ module.exports = {
|
||||||
},
|
},
|
||||||
proxy: {
|
proxy: {
|
||||||
'/prod-api': {
|
'/prod-api': {
|
||||||
target: 'http://192.168.0.104:8080',
|
target: 'http://192.168.0.86:8080',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
pathRewrite: { '^/prod-api': '' }
|
pathRewrite: { '^/prod-api': '' }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue