99 行
3.0 KiB
HTML
99 行
3.0 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8"/>
|
|
<title>审核提现</title>
|
|
<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/menu.css?v=1.0.5"/>
|
|
<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/minimal-admin.css?v=1.0.0"/>
|
|
<link rel="stylesheet" type="text/css" href="__PUBLIC__/vue/element-ui.css?v=2.13.2">
|
|
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/vue/js/vue2.5.16.js"></script>
|
|
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/vue/element-ui.js?v=2.13.2"></script>
|
|
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/jquery/js/jquery-3.2.1.min.js"></script>
|
|
</head>
|
|
<body>
|
|
<div id="WithdrawAudit" v-cloak style="padding: 20px;">
|
|
<el-form :model="auditForm" v-loading="loading">
|
|
<el-form-item>
|
|
<el-input
|
|
v-model="auditForm.remark"
|
|
type="textarea"
|
|
:rows="4"
|
|
placeholder="请输入拒绝原因"
|
|
maxlength="200"
|
|
show-word-limit>
|
|
</el-input>
|
|
</el-form-item>
|
|
<el-form-item>
|
|
<el-button type="primary" @click="confirmAudit" :loading="submitting">确定</el-button>
|
|
<el-button @click="closeDialog">取消</el-button>
|
|
</el-form-item>
|
|
</el-form>
|
|
</div>
|
|
|
|
<style>
|
|
[v-cloak] {
|
|
display: none;
|
|
}
|
|
</style>
|
|
|
|
<script>
|
|
new Vue({
|
|
el: '#WithdrawAudit',
|
|
data() {
|
|
return {
|
|
loading: false,
|
|
submitting: false,
|
|
withdrawId: 0,
|
|
auditStatus: 0,
|
|
auditForm: {
|
|
remark: ''
|
|
}
|
|
}
|
|
},
|
|
mounted() {
|
|
this.initData();
|
|
},
|
|
methods: {
|
|
// 初始化数据
|
|
initData() {
|
|
const urlParams = new URLSearchParams(window.location.search);
|
|
this.withdrawId = parseInt(urlParams.get('id'));
|
|
this.auditStatus = parseInt(urlParams.get('status'));
|
|
},
|
|
|
|
// 确认审核
|
|
confirmAudit() {
|
|
if (!this.auditForm.remark.trim()) {
|
|
this.$message.warning('请输入拒绝原因');
|
|
return;
|
|
}
|
|
|
|
this.submitting = true;
|
|
$.post('/index.php/Retail/RiderWithdraw/auditWithdraw', {
|
|
id: this.withdrawId,
|
|
status: this.auditStatus,
|
|
remark: this.auditForm.remark
|
|
}, (res) => {
|
|
this.submitting = false;
|
|
if (res.code === 0) {
|
|
this.$message.success('操作成功');
|
|
setTimeout(() => {
|
|
this.closeDialog();
|
|
}, 1000);
|
|
} else {
|
|
this.$message.error(res.msg);
|
|
}
|
|
});
|
|
},
|
|
|
|
// 关闭弹窗
|
|
closeDialog() {
|
|
const index = parent.layer.getFrameIndex(window.name);
|
|
parent.layer.close(index);
|
|
}
|
|
}
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|