Commit 34ecc7d0 authored by Mac's avatar Mac

1

parent cdf965a9
...@@ -117,9 +117,9 @@ ...@@ -117,9 +117,9 @@
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.PeriodsList = res.data.data; this.PeriodsList = res.data.data;
if(this.PeriodsList && this.PeriodsList.length>0){ // if(this.PeriodsList && this.PeriodsList.length>0){
this.msg.Periods = Number(this.PeriodsList[0].Id) // this.msg.Periods = Number(this.PeriodsList[0].Id)
} // }
this.getList(); this.getList();
......
...@@ -134,7 +134,7 @@ ...@@ -134,7 +134,7 @@
this.msg.PeriodId = this.$route.query.PeriodId this.msg.PeriodId = this.$route.query.PeriodId
} }
this.getList(); this.getList();
this.getqishilist() // this.getqishilist()
this.getCompanyList()//获取公司 this.getCompanyList()//获取公司
this.getEmployee()//人员 this.getEmployee()//人员
this.getDerpartMent()//部门 this.getDerpartMent()//部门
......
...@@ -42,6 +42,10 @@ ...@@ -42,6 +42,10 @@
</ul> </ul>
</div> </div>
<div style="display: flex;align-items: center;height: 50px;">
<span>总金额:{{TotalMoney}}</span>
<span style="margin-left: 15px;">总人数:{{TotalNum}}</span>
</div>
<table v-loading="loading" class="singeRowTable" border="0" cellspacing="0" cellpadding="0" style="margin-top: 10px;"> <table v-loading="loading" class="singeRowTable" border="0" cellspacing="0" cellpadding="0" style="margin-top: 10px;">
<tr> <tr>
<th>期数</th> <th>期数</th>
...@@ -117,6 +121,9 @@ ...@@ -117,6 +121,9 @@
BranchList: [], BranchList: [],
searchList: [], searchList: [],
departMentList:[], departMentList:[],
TotalMoney:0,
TotalNum:0,
} }
}, },
mounted() { mounted() {
...@@ -126,7 +133,6 @@ ...@@ -126,7 +133,6 @@
this.btnShow = true; this.btnShow = true;
} }
if (this.$route.query ) { if (this.$route.query ) {
console.log(this.$route.query)
if(this.$route.query.PeriodId){ if(this.$route.query.PeriodId){
this.msg.PeriodId = this.$route.query.PeriodId this.msg.PeriodId = this.$route.query.PeriodId
} }
...@@ -141,10 +147,10 @@ ...@@ -141,10 +147,10 @@
} }
} }
this.getList(); this.getList();
this.getqishilist() // this.getqishilist()
this.getCompanyList()//获取公司 // this.getCompanyList()//获取公司
this.getEmployee()//人员 // this.getEmployee()//人员
this.getDerpartMent()//部门 // this.getDerpartMent()//部门
}, },
methods: { methods: {
getDerpartMent() { getDerpartMent() {
...@@ -235,15 +241,21 @@ ...@@ -235,15 +241,21 @@
}, },
//获取数据 //获取数据
getList() { getList() {
let msg = JSON.parse(JSON.stringify(this.msg))
if(msg.OrderId==''){
msg.OrderId = 0
}
this.loading = true; this.loading = true;
this.apipost( this.apipost(
"sellcommission_GetGNCommissionSingleDetailsList", "sellcommission_GetGNCommissionSingleDetailsList",
this.msg, msg,
res => { res => {
this.loading = false; this.loading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.dataList = res.data.data.pageData; this.TotalMoney = res.data.data.TotalMoney?res.data.data.TotalMoney:0
this.total = res.data.data.count; this.TotalNum = res.data.data.TotalNum?res.data.data.TotalNum:0
this.dataList = res.data.data.pmodel.pageData;
this.total = res.data.data.pmodel.count;
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
...@@ -252,7 +264,10 @@ ...@@ -252,7 +264,10 @@
); );
}, },
exportExcel(){//导出 exportExcel(){//导出
let msg=this.msg; let msg = JSON.parse(JSON.stringify(this.msg))
if(msg.OrderId==''){
msg.OrderId = 0
}
var fileName = "国内提成明细.xls"; var fileName = "国内提成明细.xls";
this.GetLocalFile("sellcommission_post_GetGNCommissionSingleDetailsListToExcel", msg, fileName); this.GetLocalFile("sellcommission_post_GetGNCommissionSingleDetailsListToExcel", msg, fileName);
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment