完善工会信息
This commit is contained in:
@@ -5,29 +5,22 @@
|
||||
<div class="block">
|
||||
<span class="demonstration">日期</span>
|
||||
<el-config-provider :locale="zhCn">
|
||||
<el-date-picker
|
||||
v-model="inquire.time"
|
||||
type="month"
|
||||
placeholder="选择月"
|
||||
>
|
||||
</el-date-picker
|
||||
></el-config-provider>
|
||||
<el-date-picker v-model="inquire.time"
|
||||
type="month"
|
||||
placeholder="选择月">
|
||||
</el-date-picker></el-config-provider>
|
||||
</div>
|
||||
</div>
|
||||
<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.inquireonInfos"
|
||||
:key="item.id"
|
||||
:label="item.desc"
|
||||
:value="item.id"
|
||||
></el-option>
|
||||
<el-select v-model="inquire.partitionId"
|
||||
style="width: 75%"
|
||||
placeholder="请选择">
|
||||
<el-option v-for="item in inquire.inquireonInfos"
|
||||
:key="item.id"
|
||||
:label="item.desc"
|
||||
:value="item.id"></el-option>
|
||||
</el-select>
|
||||
</div>
|
||||
</div>
|
||||
@@ -35,71 +28,81 @@
|
||||
<!-- 公会 -->
|
||||
<div class="inquire">
|
||||
<span>会长ID</span>
|
||||
<el-input v-model="inquire.nick" placeholder="" class="input"></el-input>
|
||||
<el-input v-model="inquire.nick"
|
||||
placeholder=""
|
||||
class="input"></el-input>
|
||||
</div>
|
||||
<!-- 查询按钮 -->
|
||||
<el-button class="primary" type="primary" @click="getData()"
|
||||
>查询</el-button
|
||||
>
|
||||
<el-button class="primary"
|
||||
type="primary"
|
||||
@click="getData()">查询</el-button>
|
||||
<!-- 导出 -->
|
||||
<el-button class="primary" type="primary" @click="deriveFun()"
|
||||
>导出</el-button
|
||||
>
|
||||
<el-button class="primary"
|
||||
type="primary"
|
||||
@click="deriveFun()">导出</el-button>
|
||||
|
||||
<!-- 表格 -->
|
||||
<el-table
|
||||
v-loading="loading"
|
||||
:data="tableData"
|
||||
border
|
||||
style="width: 100%; margin-top: 25px"
|
||||
>
|
||||
<el-table-column prop="ownerErbanNo" align="center" label="会长ID" />
|
||||
<el-table-column prop="name" align="center" label="公会名称" />
|
||||
<el-table-column
|
||||
prop="ownerPartitionName"
|
||||
align="center"
|
||||
label="会长分区"
|
||||
/>
|
||||
<el-table-column prop="memberNum" align="center" label="成员数" />
|
||||
<el-table-column
|
||||
prop="goldIncome"
|
||||
align="center"
|
||||
label="月金币收入(流水)"
|
||||
/>
|
||||
<el-table-column prop="goldWage" align="center" label="金币工资" />
|
||||
<el-table-column prop="agentWage" align="center" label="代理工资" />
|
||||
<el-table-column prop="diamondRemain" align="center" label="当前钻石余额">
|
||||
<el-table v-loading="loading"
|
||||
:data="tableData"
|
||||
border
|
||||
style="width: 100%; margin-top: 25px">
|
||||
<el-table-column prop="ownerErbanNo"
|
||||
align="center"
|
||||
label="会长ID" />
|
||||
<el-table-column prop="name"
|
||||
align="center"
|
||||
label="公会名称" />
|
||||
<el-table-column prop="ownerPartitionName"
|
||||
align="center"
|
||||
label="会长分区" />
|
||||
<el-table-column prop="enable"
|
||||
align="center"
|
||||
label="是否有效状态">
|
||||
<template v-slot="scope">{{ scope.row.enable? '是': '否' }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="memberNum"
|
||||
align="center"
|
||||
label="成员数" />
|
||||
<el-table-column prop="goldIncome"
|
||||
align="center"
|
||||
label="月金币收入(流水)" />
|
||||
<el-table-column prop="goldWage"
|
||||
align="center"
|
||||
label="金币工资" />
|
||||
<el-table-column prop="agentWage"
|
||||
align="center"
|
||||
label="代理工资" />
|
||||
<el-table-column prop="diamondRemain"
|
||||
align="center"
|
||||
label="当前钻石余额">
|
||||
<template v-slot="scope">{{ scope.row.diamondRemain }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="操作" width="260">
|
||||
<el-table-column align="center"
|
||||
label="操作"
|
||||
width="260">
|
||||
<template v-slot="scope">
|
||||
<el-button
|
||||
@click="ediClick(scope.row)"
|
||||
class="primary"
|
||||
type="primary"
|
||||
size="default"
|
||||
>查看详情</el-button
|
||||
>
|
||||
<el-button
|
||||
@click="deriveFun2(scope.row)"
|
||||
class="primary"
|
||||
type="primary"
|
||||
size="default"
|
||||
>导出</el-button
|
||||
>
|
||||
<el-button @click="ediClick(scope.row)"
|
||||
class="primary"
|
||||
type="primary"
|
||||
size="default">查看详情</el-button>
|
||||
<el-button @click="deriveFun2(scope.row)"
|
||||
class="primary"
|
||||
type="primary"
|
||||
size="default">导出</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<!-- 内嵌单个工会详情 -->
|
||||
<el-dialog :title="detailsTitle" v-model="detailsDialog">
|
||||
<el-table
|
||||
v-loading="loading"
|
||||
:data="tableDataDetails"
|
||||
border
|
||||
style="width: 100%; margin-top: 25px"
|
||||
>
|
||||
<el-table-column prop="erbanNo" align="center" label="用户平台ID">
|
||||
<el-dialog :title="detailsTitle"
|
||||
v-model="detailsDialog">
|
||||
<el-table v-loading="loading"
|
||||
:data="tableDataDetails"
|
||||
border
|
||||
style="width: 100%; margin-top: 25px">
|
||||
<el-table-column prop="erbanNo"
|
||||
align="center"
|
||||
label="用户平台ID">
|
||||
<template v-slot="scope">
|
||||
{{
|
||||
scope.row.erbanNo == scope.row.familyOwnerErbanNo
|
||||
@@ -110,84 +113,78 @@
|
||||
}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="nick" align="center" label="用户昵称" />
|
||||
<el-table-column
|
||||
prop="micRemainTime"
|
||||
align="center"
|
||||
label="本月直播时长"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="micVaildDays"
|
||||
align="center"
|
||||
label="本月有效天数"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="goldIncome"
|
||||
align="center"
|
||||
label="月金币收入(流水)"
|
||||
/>
|
||||
<el-table-column prop="goldWage" align="center" label="金币工资" />
|
||||
<el-table-column prop="agentWage" align="center" label="代理工资" />
|
||||
<el-table-column
|
||||
prop="diamondRemain"
|
||||
align="center"
|
||||
label="当前钻石余额"
|
||||
/>
|
||||
<el-table-column align="center" label="操作">
|
||||
<el-table-column prop="nick"
|
||||
align="center"
|
||||
label="用户昵称" />
|
||||
<el-table-column prop="micRemainTime"
|
||||
align="center"
|
||||
label="本月直播时长" />
|
||||
<el-table-column prop="micVaildDays"
|
||||
align="center"
|
||||
label="本月有效天数" />
|
||||
<el-table-column prop="goldIncome"
|
||||
align="center"
|
||||
label="月金币收入(流水)" />
|
||||
<el-table-column prop="goldWage"
|
||||
align="center"
|
||||
label="金币工资" />
|
||||
<el-table-column prop="agentWage"
|
||||
align="center"
|
||||
label="代理工资" />
|
||||
<el-table-column prop="diamondRemain"
|
||||
align="center"
|
||||
label="当前钻石余额" />
|
||||
<el-table-column align="center"
|
||||
label="操作">
|
||||
<template v-slot="scope">
|
||||
<el-button
|
||||
@click="detailsClick(scope.row)"
|
||||
class="primary"
|
||||
type="primary"
|
||||
size="default"
|
||||
>查看详情</el-button
|
||||
>
|
||||
<el-button @click="detailsClick(scope.row)"
|
||||
class="primary"
|
||||
type="primary"
|
||||
size="default">查看详情</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<template #footer>
|
||||
<div class="dialog-footer">
|
||||
<el-button @click="detailsDialog = false">关闭</el-button>
|
||||
<el-button type="primary" @click="detailsClickOut()">导出</el-button>
|
||||
</div></template
|
||||
>
|
||||
<el-button type="primary"
|
||||
@click="detailsClickOut()">导出</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-dialog>
|
||||
|
||||
<!-- 内嵌单个成员明细 -->
|
||||
<el-dialog :title="detailsTitle2" v-model="detailsDialog2">
|
||||
<el-table
|
||||
v-loading="loading"
|
||||
:data="tableDataDetails2"
|
||||
border
|
||||
style="width: 100%; margin-top: 25px"
|
||||
>
|
||||
<el-table-column prop="date" align="center" label="日期" />
|
||||
<el-table-column prop="micRemainTime" align="center" label="直播时长" />
|
||||
<el-table-column prop="micVaild" align="center" label="是否有效天">
|
||||
<el-dialog :title="detailsTitle2"
|
||||
v-model="detailsDialog2">
|
||||
<el-table v-loading="loading"
|
||||
:data="tableDataDetails2"
|
||||
border
|
||||
style="width: 100%; margin-top: 25px">
|
||||
<el-table-column prop="date"
|
||||
align="center"
|
||||
label="日期" />
|
||||
<el-table-column prop="micRemainTime"
|
||||
align="center"
|
||||
label="直播时长" />
|
||||
<el-table-column prop="micVaild"
|
||||
align="center"
|
||||
label="是否有效天">
|
||||
<template v-slot="scope">
|
||||
{{ scope.row.micVaild ? "是" : "否" }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="goldIncome"
|
||||
align="center"
|
||||
label="当日金币收入"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="savedGoldIncome"
|
||||
align="center"
|
||||
label="月累计金币收入"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="saveedGoldWage"
|
||||
align="center"
|
||||
label="月金币工资"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="diamondRemain"
|
||||
align="center"
|
||||
label="当日钻石余额"
|
||||
/>
|
||||
<el-table-column prop="goldIncome"
|
||||
align="center"
|
||||
label="当日金币收入" />
|
||||
<el-table-column prop="savedGoldIncome"
|
||||
align="center"
|
||||
label="月累计金币收入" />
|
||||
<el-table-column prop="saveedGoldWage"
|
||||
align="center"
|
||||
label="月金币工资" />
|
||||
<el-table-column prop="diamondRemain"
|
||||
align="center"
|
||||
label="当日钻石余额" />
|
||||
<!-- <el-table-column align="center" label="操作">
|
||||
<template v-slot="scope">
|
||||
<el-button
|
||||
@@ -204,22 +201,21 @@
|
||||
<template #footer>
|
||||
<div class="dialog-footer">
|
||||
<el-button @click="detailsDialog2 = false">关闭</el-button>
|
||||
<el-button type="primary" @click="detailsClickOut2()">导出</el-button>
|
||||
</div></template
|
||||
>
|
||||
<el-button type="primary"
|
||||
@click="detailsClickOut2()">导出</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-dialog>
|
||||
<!-- 分页 -->
|
||||
<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"
|
||||
/>
|
||||
<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>
|
||||
@@ -238,7 +234,7 @@ import { dateFormat } from "@/utils/system-helper";
|
||||
import { ElMessage } from "element-plus";
|
||||
export default {
|
||||
name: "WagesCount",
|
||||
data() {
|
||||
data () {
|
||||
return {
|
||||
zhCn,
|
||||
loading: false,
|
||||
@@ -271,12 +267,12 @@ export default {
|
||||
detailsClickOutObj2: {},
|
||||
};
|
||||
},
|
||||
created() {
|
||||
created () {
|
||||
// this.getData();
|
||||
},
|
||||
methods: {
|
||||
// 查询接口
|
||||
getData() {
|
||||
getData () {
|
||||
// this.loading = true;
|
||||
let time = this.inquire.time;
|
||||
if (time) {
|
||||
@@ -295,7 +291,7 @@ export default {
|
||||
});
|
||||
},
|
||||
// 导出总外列表
|
||||
deriveFun(val) {
|
||||
deriveFun (val) {
|
||||
let time = this.inquire.time;
|
||||
if (time) {
|
||||
time = dateFormat(this.inquire.time, "yyyy-MM");
|
||||
@@ -304,10 +300,10 @@ export default {
|
||||
erbanNo: this.inquire.nick,
|
||||
month: time,
|
||||
partitionId: this.inquire.partitionId,
|
||||
}).then((res) => {});
|
||||
}).then((res) => { });
|
||||
},
|
||||
// 导出列表最外层
|
||||
deriveFun2(val) {
|
||||
deriveFun2 (val) {
|
||||
statExportFamilyMember({
|
||||
familyId: val.id,
|
||||
month: dateFormat(this.inquire.time, "yyyy-MM"),
|
||||
@@ -315,7 +311,7 @@ export default {
|
||||
this.detailsDialog = false;
|
||||
},
|
||||
// 1层查看详情按钮
|
||||
ediClick(val) {
|
||||
ediClick (val) {
|
||||
console.log(val);
|
||||
var than = this;
|
||||
this.detailsClickOutObj = val;
|
||||
@@ -332,7 +328,7 @@ export default {
|
||||
});
|
||||
},
|
||||
// 导出最外层数据按钮
|
||||
detailsClickOut() {
|
||||
detailsClickOut () {
|
||||
statExportFamilyMember({
|
||||
familyId: this.detailsClickOutObj.id,
|
||||
month: dateFormat(this.inquire.time, "yyyy-MM"),
|
||||
@@ -340,15 +336,14 @@ export default {
|
||||
this.detailsDialog = false;
|
||||
},
|
||||
// 嵌套详情按钮
|
||||
detailsClick(val) {
|
||||
detailsClick (val) {
|
||||
var than = this;
|
||||
this.detailsClickOutObj2 = val;
|
||||
than.detailsTitle2 = `公会名称:${val.familyName} 成员名称:${
|
||||
val.nick
|
||||
}(ID:${val.erbanNo}) ${dateFormat(
|
||||
than.inquire.time,
|
||||
"yyyy-MM"
|
||||
)} 结算明细`;
|
||||
than.detailsTitle2 = `公会名称:${val.familyName} 成员名称:${val.nick
|
||||
}(ID:${val.erbanNo}) ${dateFormat(
|
||||
than.inquire.time,
|
||||
"yyyy-MM"
|
||||
)} 结算明细`;
|
||||
listFamilyMemberDaily({
|
||||
familyId: val.familyId,
|
||||
month: dateFormat(than.inquire.time, "yyyy-MM"),
|
||||
@@ -359,7 +354,7 @@ export default {
|
||||
});
|
||||
},
|
||||
// 导出每日成员数据
|
||||
detailsClickOut2() {
|
||||
detailsClickOut2 () {
|
||||
exportFamilyMemberDaily({
|
||||
familyId: this.detailsClickOutObj2.id,
|
||||
month: dateFormat(this.inquire.time, "yyyy-MM"),
|
||||
@@ -368,10 +363,10 @@ export default {
|
||||
this.detailsDialog2 = false;
|
||||
},
|
||||
// 分页导航
|
||||
handleSizeChange() {
|
||||
handleSizeChange () {
|
||||
this.getData();
|
||||
},
|
||||
handleCurrentChange() {
|
||||
handleCurrentChange () {
|
||||
this.getData();
|
||||
},
|
||||
},
|
||||
|
Reference in New Issue
Block a user