Commit 4defc887 authored by Mac's avatar Mac

提现审核功能

parent 61a668ab
......@@ -171,6 +171,17 @@ export function queryCustomerFinishtaskDetailsPage(data) {
data
})
}
/**
* 设置同业提现状态
*
*/
export function setCustomerRemitState(data) {
return request({
url: '/B2BRemit/SetCustomerRemitState',
method: 'post',
data
})
}
/**
* 奖品兑换
......
......@@ -107,7 +107,7 @@
</q-td>
</template>
<template v-slot:body-cell-optioned="props">
<q-td :props="props" style="width:200px;" >
<q-td :props="props" style="width:100px;" >
<q-btn
v-if="props.row.AuditStatus==1"
flat
......@@ -115,19 +115,10 @@
icon="edit"
color="done"
style="font-weight:400"
label="审核通过"
@click="operation(props.row,1)"
/>
<q-btn
v-if="props.row.AuditStatus==1"
flat
size="xs"
icon="highlight_off"
style="font-weight:400;color: red;"
label="审核驳回"
@click="operation(props.row,2)"
label="审核"
@click="operation(props.row)"
/>
</q-td>
</template>
......@@ -144,12 +135,31 @@
@input="changePage"
/>
</div>
<q-dialog v-model="isShow" persistent>
<q-card style="width: 520px; max-width: 80vw;">
<q-card-section>
<div class="text-h6">提现审核</div>
</q-card-section>
<q-separator />
<q-card-section class="q-pt-none" style="margin-top: 15px;padding:10px 20px;">
<q-radio v-model="remitMsg.State" val="1" label="审核通过" />
<q-radio v-model="remitMsg.State" val="2" label="审核驳回" />
<q-input filled clearable v-model="remitMsg.Remark" label="备注"
style="margin-top: 20px;" type="textarea"/>
</q-card-section>
<q-separator />
<q-card-actions align="right" class="bg-white">
<q-btn class="q-mr-md" label="取消" @click="isShow = false" />
<q-btn color="accent" class="q-mr-md" label="确定" @click="submit()" />
</q-card-actions>
</q-card>
</q-dialog>
</div>
</template>
<script>
import {
getCustomerRemitPageList,
RemoveCustomer
setCustomerRemitState
} from '../../api/sale/peemanagement';
export default {
......@@ -162,6 +172,7 @@ export default {
data() {
return {
pageCount: 0,
isShow:false,
msg: {
pageIndex: 1,
pageSize: 12,
......@@ -299,8 +310,24 @@ export default {
},
operation(row,type){
this.remitMsg.RemitId = row.Id;
this.remitMsg.State = row.type;
this.remitMsg.Remark = ''
this.remitMsg.State = '1';
this.remitMsg.Remark = '';
this.isShow = true
},
submit(){
setCustomerRemitState(this.remitMsg).then(res => {
this.$q.notify({
icon: 'iconfont icon-chenggong',
color: 'accent',
timeout: 2000,
message: '操作成功',
position: 'top'
})
this.isShow = false
this.getList();
}).catch(() => {
})
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment