|
@@ -0,0 +1,161 @@
|
|
|
|
|
+<template>
|
|
|
|
|
+ <div v-loading="loading" style="padding: 20px">
|
|
|
|
|
+ <div style="margin-bottom: 10px">
|
|
|
|
|
+ <el-input v-model="search.uid" size="small" style="width: 200px" placeholder="用户的UID"></el-input>
|
|
|
|
|
+ <el-button size="small" @click="search_" type="primary">搜索</el-button>
|
|
|
|
|
+ <div class="flex_1" />
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <div style="width: 100%">
|
|
|
|
|
+ <el-table row-key="id" :data="list">
|
|
|
|
|
+ <el-table-column prop="order_no" fixed width="170px" label="UID">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <a style="color: #006eff" target="_blank" :href="scope.row.user_info.link">{{scope.row.uid}}</a>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column prop="money" label="退款金额">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <span style="cursor: pointer" @click="show_pub_log(scope.row.uid)">{{scope.row.money}}</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column prop="reason" label="罚款原因"></el-table-column>
|
|
|
|
|
+ <el-table-column prop="addtime" label="申请时间"></el-table-column>
|
|
|
|
|
+ <el-table-column prop="paytime" label="支付时间"></el-table-column>
|
|
|
|
|
+ <el-table-column fixed="right" width="140px" prop="uid" label="操作">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <el-button v-if="scope.row.status==1" type="text" @click="agree_tk(scope.row.id)">同意退款</el-button>
|
|
|
|
|
+ <el-button v-if="scope.row.status==2" style="color: #2b2f3a" type="text">已退款</el-button>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ </el-table>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <el-pagination
|
|
|
|
|
+ background
|
|
|
|
|
+ style="margin-top: 10px"
|
|
|
|
|
+ layout="total,prev, pager, next"
|
|
|
|
|
+ :current-page="search.page"
|
|
|
|
|
+ @current-change="page_event"
|
|
|
|
|
+ :page-size="search.pagesize"
|
|
|
|
|
+ :total="search.total">
|
|
|
|
|
+ </el-pagination>
|
|
|
|
|
+
|
|
|
|
|
+ <pub_log v-if="drawer_obj.pub_log" :back="this" :pro="drawer_obj.id" action="i_user_bond"></pub_log>
|
|
|
|
|
+ <user_bond_fk_add v-if="child_page.type=='user_bond_fk_add'" :back="this" :pro="child_page.id"></user_bond_fk_add>
|
|
|
|
|
+ </div>
|
|
|
|
|
+</template>
|
|
|
|
|
+
|
|
|
|
|
+<script>
|
|
|
|
|
+ import user_bond_fk_add from '@/components/user_bond/user_bond_fk_add';
|
|
|
|
|
+ import pub_log from '@/components/drawer/pub_log';
|
|
|
|
|
+ export default {
|
|
|
|
|
+ props: {
|
|
|
|
|
+ status: {},
|
|
|
|
|
+ role: {},
|
|
|
|
|
+ invoice_type:{}
|
|
|
|
|
+ },
|
|
|
|
|
+ components: {user_bond_fk_add,pub_log},
|
|
|
|
|
+ data() {
|
|
|
|
|
+ return {
|
|
|
|
|
+ loading: true,
|
|
|
|
|
+ pay_type:"",
|
|
|
|
|
+ drawer_obj:{
|
|
|
|
|
+ user_settlement:false,
|
|
|
|
|
+ user_invoice_add:false,
|
|
|
|
|
+ id:0,
|
|
|
|
|
+ pub_log:false,
|
|
|
|
|
+ config:false,
|
|
|
|
|
+ obj:{},
|
|
|
|
|
+ },
|
|
|
|
|
+ search: {
|
|
|
|
|
+ pagesize: 10,
|
|
|
|
|
+ total: 0,
|
|
|
|
|
+ type:2,
|
|
|
|
|
+ },
|
|
|
|
|
+ child_page:{
|
|
|
|
|
+ type:"",
|
|
|
|
|
+ obj:{}
|
|
|
|
|
+ }
|
|
|
|
|
+ };
|
|
|
|
|
+ },
|
|
|
|
|
+ computed: {},
|
|
|
|
|
+ watch: {},
|
|
|
|
|
+ created() {
|
|
|
|
|
+ this.search.status=this.status;
|
|
|
|
|
+ this.search.invoice_type=this.invoice_type;
|
|
|
|
|
+ },
|
|
|
|
|
+ mounted() {
|
|
|
|
|
+ this.getList();
|
|
|
|
|
+ },
|
|
|
|
|
+ methods: {
|
|
|
|
|
+ async agree_tk(id) {
|
|
|
|
|
+ this.$confirm('是否确认已操作, 是否继续?', '提示', {
|
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
|
+ type: 'warning'
|
|
|
|
|
+ }).then(async () => {
|
|
|
|
|
+ let res = await this.$post("/uapi/pub/info/user/user_bond_order/admin_agree",{id:id});
|
|
|
|
|
+ if (res.status == 1) {
|
|
|
|
|
+ this.$message({
|
|
|
|
|
+ type: 'success',
|
|
|
|
|
+ message: '成功!'
|
|
|
|
|
+ });
|
|
|
|
|
+ this.getList();
|
|
|
|
|
+ }
|
|
|
|
|
+ }).catch(() => {
|
|
|
|
|
+ this.$message({
|
|
|
|
|
+ type: 'info',
|
|
|
|
|
+ message: '已取消删除'
|
|
|
|
|
+ });
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+ show_child_page(type,obj)
|
|
|
|
|
+ {
|
|
|
|
|
+ this.child_page.type=type;
|
|
|
|
|
+ this.child_page.obj=obj;
|
|
|
|
|
+ },
|
|
|
|
|
+ show_config()
|
|
|
|
|
+ {
|
|
|
|
|
+ this.drawer_obj.id = 0;
|
|
|
|
|
+ this.drawer_obj.config = true;
|
|
|
|
|
+ },
|
|
|
|
|
+ show_pub_log(id)
|
|
|
|
|
+ {
|
|
|
|
|
+ this.drawer_obj.id = id;
|
|
|
|
|
+ this.drawer_obj.pub_log = true;
|
|
|
|
|
+ },
|
|
|
|
|
+ async getList() {
|
|
|
|
|
+ this.loading = true;
|
|
|
|
|
+ this.drawer = false;
|
|
|
|
|
+ let data=this.search;
|
|
|
|
|
+ data.act="";
|
|
|
|
|
+ let res = await this.$post("/uapi/pub/info/user/user_bond_order/admin_list", this.search);
|
|
|
|
|
+ this.loading = false;
|
|
|
|
|
+ if (res.status == 1) {
|
|
|
|
|
+ this.list = res.data.list;
|
|
|
|
|
+ this.search.total = res.data.total;
|
|
|
|
|
+ this.payMoney=res.data.payMoney;
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ page_event(page) {
|
|
|
|
|
+ this.search.page = page;
|
|
|
|
|
+ this.getList();
|
|
|
|
|
+ },
|
|
|
|
|
+ getData_(id) {
|
|
|
|
|
+ this.search.status = id;
|
|
|
|
|
+ this.search.page=0;
|
|
|
|
|
+ this.getList();
|
|
|
|
|
+ },
|
|
|
|
|
+ search_() {
|
|
|
|
|
+ this.search.page = 0;
|
|
|
|
|
+ this.getList();
|
|
|
|
|
+ },
|
|
|
|
|
+ }
|
|
|
|
|
+ };
|
|
|
|
|
+</script>
|
|
|
|
|
+
|
|
|
|
|
+<style scoped>
|
|
|
|
|
+ .el-tag {
|
|
|
|
|
+ cursor: pointer;
|
|
|
|
|
+ }
|
|
|
|
|
+</style>
|