|
|
@@ -1,6 +1,12 @@
|
|
|
<template>
|
|
|
<basicContainer :visible="visible">
|
|
|
|
|
|
+ <el-dialog @close="closeOrderCommission" append-to-body :close-on-click-modal="false" :visible.sync="orderstaticVisible"
|
|
|
+ title="佣金结算" width="70%">
|
|
|
+ <orderstatic ref="orderstaticRef" :tableData="orderCommissionDetailList" :total="total" :agenter="agenter"
|
|
|
+ :startTime="selectDate[0]" :endTime="selectDate[1]" :query="query"></orderstatic>
|
|
|
+ </el-dialog>
|
|
|
+
|
|
|
<avue-tabs :option="tabsOption" @change="changeTab" :visible="visible"></avue-tabs>
|
|
|
|
|
|
<el-form :visible="visible">
|
|
|
@@ -32,7 +38,7 @@
|
|
|
</el-button-group>
|
|
|
<el-button-group>
|
|
|
<el-col :span="12">
|
|
|
- <el-button size="small" icon="el-icon-wallet" v-if="type.prop === 'paying'">结算
|
|
|
+ <el-button size="small" icon="el-icon-wallet" v-if="type.prop === 'paying'" @click="handleCommission">结算
|
|
|
</el-button>
|
|
|
</el-col>
|
|
|
</el-button-group>
|
|
|
@@ -54,25 +60,35 @@
|
|
|
|
|
|
<script>
|
|
|
import echarts from "echarts";
|
|
|
+ import orderstatic from "./orderstatic";
|
|
|
import {
|
|
|
getList,
|
|
|
getDetail,
|
|
|
add,
|
|
|
update,
|
|
|
remove,
|
|
|
- getByAgenterAndTime
|
|
|
+ getByAgenterAndTime,
|
|
|
+ getListDetailByAgenterAndTime
|
|
|
} from "@/api/guosen/ordercommission";
|
|
|
export default {
|
|
|
+ components: {
|
|
|
+ orderstatic
|
|
|
+ },
|
|
|
props: {
|
|
|
- agenterId: {
|
|
|
+
|
|
|
+ agenter: {
|
|
|
|
|
|
},
|
|
|
- visible:{
|
|
|
+ visible: {
|
|
|
|
|
|
}
|
|
|
},
|
|
|
data() {
|
|
|
+
|
|
|
return {
|
|
|
+ orderCommissionDetailList: [],
|
|
|
+ total: 0.00,
|
|
|
+ orderstaticVisible: false,
|
|
|
type: {},
|
|
|
query: {
|
|
|
status: 0,
|
|
|
@@ -86,7 +102,7 @@
|
|
|
buttonChart: "primary", //默认图形不显示
|
|
|
buttonDay: "primary", //默认显示按日
|
|
|
buttonMonth: "", //默认图形不显示
|
|
|
- legendData: ['正向有功实时需量', '反向有功实时需量', '正向无功实时需量', '反向无功实时需量'],
|
|
|
+
|
|
|
tableData: [],
|
|
|
tabsOption: {
|
|
|
column: [{
|
|
|
@@ -182,6 +198,16 @@
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
+ handleCommission() {
|
|
|
+ this.orderstaticVisible = true;
|
|
|
+ getListDetailByAgenterAndTime(this.query).then(res => {
|
|
|
+ this.orderCommissionDetailList = res.data.data.orderCommissions;
|
|
|
+ this.total = res.data.data.total;
|
|
|
+ })
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.orderstaticRef.init();
|
|
|
+ })
|
|
|
+ },
|
|
|
changeTab(column) {
|
|
|
this.type = column;
|
|
|
if (this.type.prop === "paying") {
|
|
|
@@ -199,7 +225,8 @@
|
|
|
let startTime = `${byear}-${bmonth}-${bday}`;
|
|
|
this.selectDate = [startTime, startTime];
|
|
|
this.query.agenterId = this.agenterId;
|
|
|
- this.query.status = 1; //默认已结算
|
|
|
+ this.query.status = 0; //默认待结算
|
|
|
+ this.loadData()
|
|
|
|
|
|
},
|
|
|
//按日
|
|
|
@@ -236,7 +263,7 @@
|
|
|
|
|
|
},
|
|
|
loadData() {
|
|
|
- this.query.agenterId = this.agenterId;
|
|
|
+ this.query.agenterId = this.agenter.id;
|
|
|
this.query.beginDate = this.selectDate[0];
|
|
|
this.query.endDate = this.selectDate[1];
|
|
|
|
|
|
@@ -268,8 +295,8 @@
|
|
|
type: "slider",
|
|
|
realtime: true, //拖动滚动条时是否动态的更新图表数据
|
|
|
height: 25, //滚动条高度
|
|
|
- start: 40, //滚动条开始位置(共100等份)
|
|
|
- end: 65 //结束位置(共100等份)
|
|
|
+ start: 0, //滚动条开始位置(共100等份)
|
|
|
+ end: 100 //结束位置(共100等份)
|
|
|
}],
|
|
|
|
|
|
xAxis: {
|