Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
0e5857873c | ||
![]() |
26d422ecda | ||
![]() |
ccf95bb81a | ||
![]() |
dd1fdb23c2 |
@@ -31,4 +31,18 @@ export const refundList = query => {
|
|||||||
export const refundExport = query => {
|
export const refundExport = query => {
|
||||||
window.location.href = `/admin/chargeRecord/refundExport?${genQueryParam(query)}`;
|
window.location.href = `/admin/chargeRecord/refundExport?${genQueryParam(query)}`;
|
||||||
return;
|
return;
|
||||||
|
};
|
||||||
|
// ======================================金币钻石操作记录==================================
|
||||||
|
// 列表
|
||||||
|
export const goldcoinRecordAll = query => {
|
||||||
|
return request({
|
||||||
|
url: '/admin/goldcoin/recordAll',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
});
|
||||||
|
};
|
||||||
|
// 导出
|
||||||
|
export const recordAllExport = query => {
|
||||||
|
window.location.href = `/admin/goldcoin/recordAllExport?${genQueryParam(query)}`;
|
||||||
|
return;
|
||||||
};
|
};
|
@@ -13,6 +13,12 @@ export const listPartitionInfo = query => {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// 充值代理列表导出
|
||||||
|
export const chargeAgentExport = query => {
|
||||||
|
window.location.href = `/anchorSalaryBill/chargeAgent/export?${genQueryParam(query)}`;
|
||||||
|
return;
|
||||||
|
};
|
||||||
|
|
||||||
// 获取 周期列表
|
// 获取 周期列表
|
||||||
export const getDateCycleList = query => {
|
export const getDateCycleList = query => {
|
||||||
return request({
|
return request({
|
||||||
|
@@ -54,6 +54,9 @@
|
|||||||
<el-form-item label-width="40px">
|
<el-form-item label-width="40px">
|
||||||
<el-button type="primary" @click="handSearch">搜索</el-button>
|
<el-button type="primary" @click="handSearch">搜索</el-button>
|
||||||
<el-button plain @click="resetSearchForm">重置搜索</el-button>
|
<el-button plain @click="resetSearchForm">重置搜索</el-button>
|
||||||
|
<el-button type="primary" @click="chargeAgentExportFun"
|
||||||
|
>导出</el-button
|
||||||
|
>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</div>
|
</div>
|
||||||
</el-form>
|
</el-form>
|
||||||
@@ -127,6 +130,7 @@ import {
|
|||||||
chargeAgentList,
|
chargeAgentList,
|
||||||
chargeAgentSum,
|
chargeAgentSum,
|
||||||
listPartitionInfo,
|
listPartitionInfo,
|
||||||
|
chargeAgentExport,
|
||||||
} from "@/api/relAgency/relAgency.js";
|
} from "@/api/relAgency/relAgency.js";
|
||||||
import TablePagination from "@/components/common/TablePagination";
|
import TablePagination from "@/components/common/TablePagination";
|
||||||
import { formatDate, formatDateYMD } from "@/utils/relDate";
|
import { formatDate, formatDateYMD } from "@/utils/relDate";
|
||||||
@@ -192,7 +196,7 @@ export default {
|
|||||||
// this.getData();
|
// this.getData();
|
||||||
listPartitionInfo().then((res) => {
|
listPartitionInfo().then((res) => {
|
||||||
this.partitionArr = res.data;
|
this.partitionArr = res.data;
|
||||||
this.searchForm.partitionId=this.partitionArr[0].id;
|
this.searchForm.partitionId = this.partitionArr[0].id;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -246,6 +250,32 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
// 导出
|
||||||
|
chargeAgentExportFun() {
|
||||||
|
|
||||||
|
let { pageParams, searchForm } = this;
|
||||||
|
console.log(searchForm);
|
||||||
|
searchForm.startTime = searchForm.startTime
|
||||||
|
? dateFormat(searchForm.startTime, "yyyy-MM-dd hh:mm:ss")
|
||||||
|
: null;
|
||||||
|
searchForm.endTime = searchForm.endTime
|
||||||
|
? dateFormat(searchForm.endTime, "yyyy-MM-dd hh:mm:ss")
|
||||||
|
: null;
|
||||||
|
searchForm = JSON.parse(JSON.stringify(searchForm));
|
||||||
|
pageParams = JSON.parse(JSON.stringify(pageParams));
|
||||||
|
Object.keys(searchForm).forEach((item) => {
|
||||||
|
if (
|
||||||
|
!searchForm[item] ||
|
||||||
|
(searchForm[item] !== undefined && searchForm[item] === "")
|
||||||
|
) {
|
||||||
|
delete searchForm[item];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
Object.assign(pageParams, searchForm);
|
||||||
|
console.log(pageParams);
|
||||||
|
|
||||||
|
chargeAgentExport(pageParams).then((res) => {});
|
||||||
|
},
|
||||||
// 点击搜索
|
// 点击搜索
|
||||||
handSearch() {
|
handSearch() {
|
||||||
this.$refs["searchForm"].validate((valid) => {
|
this.$refs["searchForm"].validate((valid) => {
|
||||||
@@ -270,7 +300,7 @@ export default {
|
|||||||
},
|
},
|
||||||
handlePageChange(val) {
|
handlePageChange(val) {
|
||||||
// this.$set(this.pageParams, 'pageNo', val);
|
// this.$set(this.pageParams, 'pageNo', val);
|
||||||
this.pageParams.pageSize = val;
|
this.pageParams.pageNo = val;
|
||||||
this.getData();
|
this.getData();
|
||||||
},
|
},
|
||||||
headerCopy(column, e) {
|
headerCopy(column, e) {
|
||||||
|
292
src/views/refund/goldDiamondOperationRecord.vue
Normal file
292
src/views/refund/goldDiamondOperationRecord.vue
Normal file
@@ -0,0 +1,292 @@
|
|||||||
|
<template>
|
||||||
|
<div class="box">
|
||||||
|
<!-- 分区 -->
|
||||||
|
<div class="inquire">
|
||||||
|
<div class="block">
|
||||||
|
<span class="demonstration">分区</span>
|
||||||
|
<el-select
|
||||||
|
v-model="inquire.partitionId"
|
||||||
|
style="width: 75%"
|
||||||
|
placeholder="请选择"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in inquire.partitionArr"
|
||||||
|
:key="item.id"
|
||||||
|
:label="item.desc"
|
||||||
|
:value="item.id"
|
||||||
|
></el-option>
|
||||||
|
</el-select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- 平台ID -->
|
||||||
|
<div class="inquire">
|
||||||
|
<span>平台ID</span>
|
||||||
|
<el-input
|
||||||
|
v-model="inquire.userId"
|
||||||
|
placeholder=""
|
||||||
|
class="input"
|
||||||
|
></el-input>
|
||||||
|
</div>
|
||||||
|
<!-- 赠送类型 -->
|
||||||
|
<div class="inquire">
|
||||||
|
<div class="block">
|
||||||
|
<span class="demonstration">赠送类型</span>
|
||||||
|
<el-select
|
||||||
|
v-model="inquire.platform"
|
||||||
|
style="width: 75%"
|
||||||
|
placeholder="请选择"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in inquire.platformArr"
|
||||||
|
:key="item.id"
|
||||||
|
:label="item.desc"
|
||||||
|
:value="item.id"
|
||||||
|
></el-option>
|
||||||
|
</el-select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- 时间选择器 -->
|
||||||
|
<div class="inquire">
|
||||||
|
<div class="block">
|
||||||
|
<span class="demonstration">时间</span>
|
||||||
|
<el-date-picker
|
||||||
|
v-model="inquire.time"
|
||||||
|
type="datetimerange"
|
||||||
|
range-separator="至"
|
||||||
|
start-placeholder="开始日期"
|
||||||
|
end-placeholder="结束日期"
|
||||||
|
>
|
||||||
|
</el-date-picker>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- 查询按钮 -->
|
||||||
|
<el-button class="primary" type="primary" @click="getData()"
|
||||||
|
>搜索</el-button
|
||||||
|
>
|
||||||
|
<el-button
|
||||||
|
class="primary"
|
||||||
|
type="primary"
|
||||||
|
@click="
|
||||||
|
inquire.partitionId = inquire.partitionArr[0].id;
|
||||||
|
inquire.userId = '';
|
||||||
|
inquire.platform = '';
|
||||||
|
inquire.time = '';
|
||||||
|
getData();
|
||||||
|
"
|
||||||
|
>重置搜索</el-button
|
||||||
|
>
|
||||||
|
<el-button class="primary" type="primary" @click="exportInfoFun()"
|
||||||
|
>导出</el-button
|
||||||
|
>
|
||||||
|
<div>
|
||||||
|
<el-button v-for="(value, key) in sortedMapObj" :key="key" type="text"
|
||||||
|
>{{ key }}: {{ value }},
|
||||||
|
</el-button>
|
||||||
|
</div>
|
||||||
|
<!-- 表格 -->
|
||||||
|
<el-table
|
||||||
|
v-loading="loading"
|
||||||
|
:data="tableData"
|
||||||
|
border
|
||||||
|
style="width: 100%; margin-top: 25px"
|
||||||
|
>
|
||||||
|
<el-table-column prop="createTime" align="center" label="操作时间">
|
||||||
|
<template v-slot="scope">
|
||||||
|
{{
|
||||||
|
dateFormat(
|
||||||
|
new Date(scope.row.createTime).getTime(),
|
||||||
|
"yyyy-MM-dd hh:mm:ss"
|
||||||
|
)
|
||||||
|
}}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="erbanNo" align="center" label="用户ID" />
|
||||||
|
<el-table-column prop="nick" align="center" label="用户昵称" />
|
||||||
|
<el-table-column prop="partitionDesc" align="center" label="区域" />
|
||||||
|
<el-table-column prop="money" align="center" label="实时金币余额" />
|
||||||
|
<el-table-column prop="goldNum" align="center" label="赠送金币数量" />
|
||||||
|
<el-table-column prop="diamondNum" align="center" label="赠送钻石数量" />
|
||||||
|
<el-table-column prop="typeDesc" align="center" label="赠送类型" />
|
||||||
|
<el-table-column
|
||||||
|
prop="currencyTypeDesc"
|
||||||
|
align="center"
|
||||||
|
label="赠送分类"
|
||||||
|
/>
|
||||||
|
<el-table-column prop="actualAmount" align="center" label="打款金额" />
|
||||||
|
<el-table-column prop="remark" align="center" label="备注" />
|
||||||
|
<el-table-column prop="operatorName" align="center" label="操作人" />
|
||||||
|
</el-table>
|
||||||
|
<!-- 分页 -->
|
||||||
|
<el-pagination
|
||||||
|
style="margin-top: 10px"
|
||||||
|
class="paginationClass"
|
||||||
|
v-model:current-page="currentPage"
|
||||||
|
v-model:page-size="pageSize"
|
||||||
|
:page-sizes="[10, 20, 30, 40, 50, 100, 200, 300, 400, 500, 999999999]"
|
||||||
|
layout="sizes, prev, pager, next"
|
||||||
|
:total="total"
|
||||||
|
@size-change="handleSizeChange"
|
||||||
|
@current-change="handleCurrentChange"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
import {
|
||||||
|
listPartitionInfo,
|
||||||
|
goldcoinRecordAll,
|
||||||
|
recordAllExport,
|
||||||
|
} from "@/api/refund/refund";
|
||||||
|
// @ts-ignore
|
||||||
|
import { dateFormat } from "@/utils/system-helper";
|
||||||
|
// @ts-ignore
|
||||||
|
import { ElMessage } from "element-plus";
|
||||||
|
export default {
|
||||||
|
name: "goldDiamondOperationRecord",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
loading: false,
|
||||||
|
delDialog: false,
|
||||||
|
delDialogData: null,
|
||||||
|
mapObj: {},
|
||||||
|
//查询所需条件对象
|
||||||
|
inquire: {
|
||||||
|
partitionId: 0,
|
||||||
|
partitionArr: [],
|
||||||
|
userId: "",
|
||||||
|
platform: "",
|
||||||
|
platformArr: [
|
||||||
|
{ desc: "全部", id: "" },
|
||||||
|
{ desc: "官方赠送金币", id: "OFFICAL_DIAMOND" },
|
||||||
|
{ desc: "官方赠送水晶", id: "OFFICAL_RADISH" },
|
||||||
|
{ desc: "活动奖励钻石", id: "ACTIVITY_GOLD" },
|
||||||
|
{ desc: "公款充值金币", id: "COMPANY_ACCOUNT_DIAMOND" },
|
||||||
|
{ desc: "官方金币消除", id: "OFFICAL_REDUCE_DIAMONDS" },
|
||||||
|
{ desc: "官方赠送钻石", id: "OFFICAL_GOLD" },
|
||||||
|
{ desc: "用户钻石清除", id: "CLEAR_USER_GOLD" },
|
||||||
|
],
|
||||||
|
time: "",
|
||||||
|
},
|
||||||
|
// 表格
|
||||||
|
tableData: [],
|
||||||
|
// 分页
|
||||||
|
total: 10, //总页数
|
||||||
|
currentPage: 1, //页码
|
||||||
|
pageSize: 10, //条数
|
||||||
|
};
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
sortedMapObj() {
|
||||||
|
const entries = Object.entries(this.mapObj);
|
||||||
|
// 将 "总充值{USD}" 的键排到第一位
|
||||||
|
entries.sort(([keyA], [keyB]) =>
|
||||||
|
keyA === "总充值{USD}" ? -1 : keyB === "总充值{USD}" ? 1 : 0
|
||||||
|
);
|
||||||
|
return Object.fromEntries(entries);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
listPartitionInfo().then((res) => {
|
||||||
|
this.inquire.partitionArr = res.data;
|
||||||
|
this.inquire.partitionId = this.inquire.partitionArr[0].id;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
dateFormat,
|
||||||
|
// 查询接口
|
||||||
|
getData() {
|
||||||
|
this.loading = true;
|
||||||
|
let time = this.inquire.time;
|
||||||
|
let startTime = "";
|
||||||
|
let endTime = "";
|
||||||
|
if (time && time.length > 0) {
|
||||||
|
startTime = dateFormat(this.inquire.time[0], "yyyy-MM-dd hh:mm:ss");
|
||||||
|
endTime = dateFormat(this.inquire.time[1], "yyyy-MM-dd hh:mm:ss");
|
||||||
|
}
|
||||||
|
goldcoinRecordAll({
|
||||||
|
partitionId: this.inquire.partitionId,
|
||||||
|
type: this.inquire.platform,
|
||||||
|
erbanNo: this.inquire.userId,
|
||||||
|
pageNo: this.currentPage,
|
||||||
|
pageSize: this.pageSize,
|
||||||
|
beginDate: startTime,
|
||||||
|
endDate: endTime,
|
||||||
|
}).then((res) => {
|
||||||
|
if (res.code == 200) {
|
||||||
|
this.total = res.data.total;
|
||||||
|
this.tableData = res.data.rows;
|
||||||
|
this.mapObj = res.data.totalMap;
|
||||||
|
} else {
|
||||||
|
ElMessage({
|
||||||
|
showClose: true,
|
||||||
|
message: res.message,
|
||||||
|
type: "error",
|
||||||
|
});
|
||||||
|
}
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
jsonFun(val) {
|
||||||
|
return JSON.parse(val);
|
||||||
|
},
|
||||||
|
exportInfoFun() {
|
||||||
|
let time = this.inquire.time;
|
||||||
|
let startTime = "";
|
||||||
|
let endTime = "";
|
||||||
|
if (time && time.length > 0) {
|
||||||
|
startTime = dateFormat(this.inquire.time[0], "yyyy-MM-dd 00:00:00");
|
||||||
|
endTime = dateFormat(this.inquire.time[1], "yyyy-MM-dd 23:59:59");
|
||||||
|
}
|
||||||
|
recordAllExport({
|
||||||
|
partitionId: this.inquire.partitionId,
|
||||||
|
type: this.inquire.platform,
|
||||||
|
erbanNo: this.inquire.userId,
|
||||||
|
pageNo: this.currentPage,
|
||||||
|
pageSize: this.pageSize,
|
||||||
|
beginDate: startTime,
|
||||||
|
endDate: endTime,
|
||||||
|
}).then();
|
||||||
|
},
|
||||||
|
// 分页导航
|
||||||
|
handleSizeChange() {
|
||||||
|
this.getData();
|
||||||
|
},
|
||||||
|
handleCurrentChange() {
|
||||||
|
this.getData();
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
<style lang="less" scoped>
|
||||||
|
.box {
|
||||||
|
padding-top: 20px;
|
||||||
|
background: #ecf0f5;
|
||||||
|
.inquire {
|
||||||
|
display: inline-block;
|
||||||
|
margin-right: 20px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
span {
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
.input {
|
||||||
|
width: 180px;
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.dialogTableVisibleBut {
|
||||||
|
display: block;
|
||||||
|
margin: 30px 0 0 830px;
|
||||||
|
}
|
||||||
|
.paginationClass {
|
||||||
|
margin: 15px 0 5px 0px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.selectBox {
|
||||||
|
display: flex;
|
||||||
|
height: 35px;
|
||||||
|
line-height: 35px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
.selectBoxImg {
|
||||||
|
height: 150px;
|
||||||
|
}
|
||||||
|
</style>
|
@@ -87,17 +87,15 @@ export default {
|
|||||||
{ field: 'nick', title: '查询用户昵称', align: 'center', valign: 'middle', width: '10%' },
|
{ field: 'nick', title: '查询用户昵称', align: 'center', valign: 'middle', width: '10%' },
|
||||||
{ field: 'erbanNo', title: '查询用户平台号', align: 'center', valign: 'middle', width: '10%' },
|
{ field: 'erbanNo', title: '查询用户平台号', align: 'center', valign: 'middle', width: '10%' },
|
||||||
{ field: 'targetNick', title: '对应对象昵称', align: 'center', valign: 'middle', width: '10%' },
|
{ field: 'targetNick', title: '对应对象昵称', align: 'center', valign: 'middle', width: '10%' },
|
||||||
{ field: 'targetErbanNo', title: '对应对象平台号', align: 'center', valign: 'middle', width: '10%' },
|
{ field: 'targetErbanNo', title: '对应对象平台号', align: 'center', valign: 'middle', width: '5%' },
|
||||||
{ field: 'roomNick', title: '消费地点房主昵称', align: 'center', valign: 'middle', width: '10%' },
|
{ field: 'roomNick', title: '消费地点房主昵称', align: 'center', valign: 'middle', width: '10%' },
|
||||||
{ field: 'roomErbanNo', title: '房主平台号', align: 'center', valign: 'middle', width: '10%' },
|
{ field: 'roomErbanNo', title: '房主平台号', align: 'center', valign: 'middle', width: '5%' },
|
||||||
{ field: 'giftName', title: '礼物名称', align: 'center', valign: 'middle', width: '5%' },
|
{ field: 'giftName', title: '礼物名称', align: 'center', valign: 'middle', width: '5%' },
|
||||||
{ field: 'giftNum', title: '礼物数量', align: 'center', valign: 'middle', width: '5%' },
|
{ field: 'giftNum', title: '礼物数量', align: 'center', valign: 'middle', width: '5%' },
|
||||||
{ field: 'amount', title: '金币/水晶/钻石', align: 'center', valign: 'middle', width: '5%' },
|
|
||||||
{ field: 'country', title: '国家/地区', align: 'center', valign: 'middle', width: '5%' },
|
|
||||||
{ field: 'localCurrencyCode', title: '本地货币数', align: 'center', valign: 'middle', width: '5%' },
|
|
||||||
{ field: 'localAmount', title: '货币数', align: 'center', valign: 'middle', width: '5%' },
|
|
||||||
{ field: 'currencyDesc', title: '交易币种', align: 'center', valign: 'middle', width: '5%' },
|
{ field: 'currencyDesc', title: '交易币种', align: 'center', valign: 'middle', width: '5%' },
|
||||||
{ field: 'billTypeDesc', title: '账单类型', align: 'center', valign: 'middle', width: '10%' },
|
{ field: 'beforeAmount', title: '变动前', align: 'center', valign: 'middle', width: '5%' },
|
||||||
|
{ field: 'amount', title: '金币/钻石', align: 'center', valign: 'middle', width: '5%' },
|
||||||
|
{ field: 'afterAmount', title: '变动后', align: 'center', valign: 'middle', width: '5%' },
|
||||||
{ field: 'objTypeDesc', title: '业务类型', align: 'center', valign: 'middle', width: '10%' },
|
{ field: 'objTypeDesc', title: '业务类型', align: 'center', valign: 'middle', width: '10%' },
|
||||||
{
|
{
|
||||||
field: 'createTime', title: '创建时间', align: 'center', valign: 'middle', width: '10%', formatter: function (val, row, index) {
|
field: 'createTime', title: '创建时间', align: 'center', valign: 'middle', width: '10%', formatter: function (val, row, index) {
|
||||||
@@ -113,9 +111,9 @@ export default {
|
|||||||
cache: false,
|
cache: false,
|
||||||
striped: true,
|
striped: true,
|
||||||
showRefresh: false,
|
showRefresh: false,
|
||||||
pageSize: 10,
|
pageSize: 20,
|
||||||
pagination: true,
|
pagination: true,
|
||||||
pageList: [10, 20, 30, 50],
|
pageList: [ 20, 30, 50],
|
||||||
sidePagination: "server", //表示服务端请求
|
sidePagination: "server", //表示服务端请求
|
||||||
//设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
|
//设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
|
||||||
//设置为limit可以获取limit, offset, search, sort, order
|
//设置为limit可以获取limit, offset, search, sort, order
|
||||||
|
Reference in New Issue
Block a user