Commit 61d6ec7e authored by liudong1993's avatar liudong1993

1

parent f97fd322
......@@ -327,7 +327,7 @@
<div class="query-box">
<ul>
<li>
<span v-if="msg.Type != 14">
<span v-if="msg.Type != 14 && msg.Type !=15">
<em>{{$t('system.query_workType')}}</em>
<el-select v-model="msg.QLeaderType" :placeholder="$t('system.ph_choice')">
<el-option :label="$t('system.ph_buxian')" :value='0'></el-option>
......@@ -343,7 +343,7 @@
:placeholder="$t('ground.xuanzenian')">
</el-date-picker>
</span>
<span v-else-if="msg.Type==2 || msg.Type == 14">
<span v-else-if="msg.Type==2 || msg.Type == 14 || msg.Type ==15">
<em>{{$t("ground.yuefen")}}</em>
<el-date-picker v-model="msg.MonthStr2" type="month" value-format="yyyy-MM"
:placeholder="$t('ground.xuanzeyue')">
......@@ -372,6 +372,7 @@
</li>
<li>
<input type="button" class="hollowFixedBtn" :value="$t('pub.searchBtn')" @click="getStatis()" />
<input type="button" v-if="msg.Type==14 || msg.Type==15" class="normalBtn" value="导出" @click="exportExcel">
</li>
</ul>
</div>
......@@ -383,7 +384,7 @@
</el-tab-pane>
</el-tabs>
<div class="ChampionsLeague clearfix">
<table v-if="msg.Type != 14" class="singeRowTable" style="margin-top:5px;">
<table v-if="msg.Type != 14 && msg.Type !=15" class="singeRowTable" style="margin-top:5px;">
<tr>
<th width="100">{{$t('hotel.hotel_SerialNumber')}}</th>
<th width="100">{{$t('system.query_name')}}</th>
......@@ -419,7 +420,7 @@
</td>
</tr>
</table>
<table v-else class="singeRowTable" style="margin-top:5px;">
<table v-else-if="msg.Type ==14" class="singeRowTable" style="margin-top:5px;">
<tr>
<th width="100">{{$t('hotel.hotel_SerialNumber')}}</th>
<th width="100">地接团号</th>
......@@ -457,6 +458,42 @@
<td><span>{{item.GuideName}}</span></td>
</tr>
</table>
<table v-else-if="msg.Type ==15" class="singeRowTable" style="margin-top:5px;">
<tr>
<th width="100">{{$t('hotel.hotel_SerialNumber')}}</th>
<th width="100">导游</th>
<th width="100">团数</th>
<th width="100">总购物金额</th>
<th width="100">总返佣金额</th>
<th width="100">人数</th>
<th width="100">人均</th>
</tr>
<tr v-for="(item,index) in DataList" :key="index">
<td>
<div style="width:45px;text-align:left;margin:auto;">
{{index+1}}
<template v-if="index+1==1">
<img style="width:25px;" src="../../assets/img/chamPion.png" alt=""/>
</template>
<template v-if="index+1==2">
<img style="width:25px;" src="../../assets/img/runnerUp.png" alt=""/>
</template>
<template v-if="index+1==3">
<img style="width:25px;" src="../../assets/img/bronze.png" alt=""/>
</template>
<template v-else>
<div style="width:25px;"></div>
</template>
</div>
</td>
<td><span>{{item.GuideName}}</span></td>
<td><span>{{item.TravelNum}}</span></td>
<td><span>{{item.TotalMoney}}</span></td>
<td><span>{{item.BackTotalMoney}}</span></td>
<td><span>{{item.EnterNum}}</span></td>
<td><span>{{item.AvgCommission}}</span></td>
</tr>
</table>
</div>
</div>
......@@ -480,6 +517,7 @@
Month: 0,
ShoppingID: 0, //购物店编号
},
userId:0,
//工作类型
workTypeList: [],
DataList: [],
......@@ -555,6 +593,11 @@
Type: "14",
titleName: "团队回佣排名",
},
{
Name: "人均回佣排名",
Type: "15",
titleName: "人均回佣排名",
},
],
};
},
......@@ -576,10 +619,10 @@
QMonthStr: this.msg.MonthStr,
ShoppingID: this.msg.ShoppingID
};
if (this.msg.Type == 2 || this.msg.Type == 14) {
if (this.msg.Type == 2 || this.msg.Type == 14 || this.msg.Type ==15) {
msg.QMonthStr = this.msg.MonthStr2;
}
if (this.msg.Type != 2 && this.msg.Type != 3 && this.msg.Type != 6 && this.msg.Type != 14) {
if (this.msg.Type != 2 && this.msg.Type != 3 && this.msg.Type != 6 && this.msg.Type != 14 && this.msg.Type !=15) {
if (this.msg.Month != -1) {
msg.QMonthStr = this.msg.Year + "-" + this.msg.Month;
} else {
......@@ -627,6 +670,30 @@
this.msg.Type = tab.name;
this.getStatis();
},
exportExcel() { //导出
var fileName = "团队回佣排名.xls";
if(this.msg.Type==15){
fileName = "人均回佣排名.xls";
}
let msg = {
Type: this.msg.Type,
QLeaderType: this.msg.QLeaderType,
QMonthStr: this.msg.MonthStr,
ShoppingID: this.msg.ShoppingID,
EmployeeId: this.userId
};
if (this.msg.Type == 2 || this.msg.Type == 14 || this.msg.Type ==15) {
msg.QMonthStr = this.msg.MonthStr2;
}
if (this.msg.Type != 2 && this.msg.Type != 3 && this.msg.Type != 6 && this.msg.Type != 14 && this.msg.Type !=15) {
if (this.msg.Month != -1) {
msg.QMonthStr = this.msg.Year + "-" + this.msg.Month;
} else {
msg.QMonthStr = this.msg.Year;
}
}
this.GetLocalFile("Leader_get_GetLeaderCommissionRankToExcel",msg,msg.QMonthStr+fileName);
},
},
mounted() {
var Year = new Date().getFullYear();
......@@ -636,6 +703,8 @@
for (let i = 0; i <= count; i++) {
this.yearList.push(Year - i);
}
let userInfo = this.getLocalStorage();
this.userId = userInfo.EmployeeId;
this.getWorkType();
this.GetShopList();
this.getStatis();
......
......@@ -773,8 +773,9 @@
<div slot="tip" class="el-upload__tip">{{$t("ground.znscexcel")}}</div>
</el-upload>
<div>--------------------------------------------------------------------------------------------------------------------</div>
<div style="text-align:center; margin-bottom:5px;color:tomato;">老板购物店模板数据导入</div>
<div style="text-align:center; margin-bottom:5px;color:tomato;">新版团队模式购物店模板数据导入</div>
<el-upload drag class="upload-demo" :action="importFileUrl3" :on-success="handleAvatarSuccess"
:before-upload="beforeAvatarUpload">
<i class="el-icon-upload"></i>
......
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