Commit 834ae066 authored by 黄奎's avatar 黄奎

领队导游业绩修改

parent 0e99484e
......@@ -296,34 +296,55 @@
</span>
</li>
<li>
<span v-if="msg.Type==2">
<span v-if="msg.Type==3||msg.Type==1">
<em>年份:</em>
<el-date-picker v-model="msg.MonthStr" type="year" placeholder="选择年">
</el-date-picker>
</span>
<span v-else-if="msg.Type==2">
<em>月份:</em>
<el-date-picker v-model="msg.MonthStr" type="month" placeholder="选择月">
</el-date-picker>
</span>
<span v-else>
<em>年份:</em>
<el-date-picker v-model="msg.MonthStr" type="year" placeholder="选择年">
</el-date-picker>
<em>时间:</em>
<el-select v-model="msg.Year">
<el-option :key="-1" label="全部" :value="-1"></el-option>
<el-option v-for="item in yearList" :key="item" :label="item" :value="item"></el-option>
</el-select>
<el-select v-model="msg.Month" >
<el-option :key="-1" label="全部" :value="-1"></el-option>
<el-option v-for="item in monthList" :key="item" :label="item" :value="item"></el-option>
</el-select>
</span>
</li>
<li>
<li style="display:none;">
<span>
<em>类型:</em>
<el-select v-model="msg.Type" :placeholder="$t('system.ph_choice')">
<el-option label="月榜" :value='2'></el-option>
<el-option label="年榜" :value='3'></el-option>
<el-option label="总榜" :value='1'></el-option>
<el-option label="人均" :value='4'></el-option>
</el-option>
</el-select>
</span>
</li>
<li>
<span>
<em>购物店:</em>
<el-select v-model="msg.ShoppingID" filterable :placeholder="$t('system.ph_choice')">
<el-option label="请选择" :value='0' :key="0"></el-option>
<el-option v-for="item in ShopList" :key="item.ID" :label="item.Name" :value="item.ID"></el-option>
</el-select>
</span>
</li>
<li>
<input type="button" class="hollowFixedBtn" :value="$t('pub.searchBtn')" @click="getStatis()" />
</li>
</ul>
</div>
<div class="statistical clearfix" style="display:block">
<div class="statistical clearfix" style="display:block" v-loading="loading">
<div class="mainLeftdiv">
<div class="leftTop">
<ul class="dataList clearfix">
......@@ -339,6 +360,10 @@
{{$t('leader.leader_All')}}
<i></i>
</li>
<li :class="msg.Type==4?'Day_active':''" @click="msg.Type=4,getStatis()">
人均
<i></i>
</li>
</ul>
<div class="ChampionsLeague clearfix">
<div class="championList" v-for="item in yajun" :key="item.subCode">
......@@ -416,7 +441,6 @@
</div>
</div>
</div>
</div>
</template>
<script>
......@@ -426,11 +450,13 @@
msg: {
pageIndex: 1,
pageSize: 10,
ShoppingID: "",
Type: 2,
MonthStr: "",
//领队类型
QLeaderType: 0,
Year: new Date().getFullYear(),
Month: new Date().getMonth() + 1,
ShoppingID: 0, //购物店编号
},
//工作类型
workTypeList: [],
......@@ -447,19 +473,27 @@
eightToeleven: '',
//12-20名
twelveToTwenty: '',
monthList: true,
yearList: false,
allList: false,
//购物店名称
ShopList: [],
monthList: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],
yearList: [],
loading: false,
defaultImg: 'this.src="' + require('../../assets/img/default_head_img.jpg') + '"',
};
},
methods: {
getStatis() {
this.loading = true;
let msg = {
Type: this.msg.Type,
QLeaderType:this.msg.QLeaderType,
QMonthStr:this.msg.MonthStr
QLeaderType: this.msg.QLeaderType,
QMonthStr: this.msg.MonthStr,
ShoppingID:this.msg.ShoppingID
};
if(msg.Type==4)
{
msg.QMonthStr=this.msg.Year+","+this.msg.Month;
}
this.Champion = [];
this.yajun = [];
this.jijun = [];
......@@ -467,6 +501,7 @@
this.eightToeleven = [];
this.twelveToTwenty = [];
this.apipost("LeaderSchedule_get_GetLeaderList", msg, res => {
this.loading = false;
if (res.data.resultCode == 1) {
if (res.data.data.length > 0) {
this.Champion = res.data.data.splice(0, 1);
......@@ -481,23 +516,7 @@
err => {}
);
},
goUrl(path, ID) {
this.$router.push({
path: path,
query: {
"id": ID
}
})
},
goUrl(path, ID, Type) {
this.$router.push({
path: path,
query: {
"id": ID,
"Type": Type
}
})
},
//获取工作类型(值获取领兼地和导游)
getWorkType() {
this.apipost(
......@@ -512,9 +531,27 @@
err => {}
);
},
//获取购物店
GetShopList() {
this.apipost(
"Shopping_Post_GetList", {},
res => {
if (res.data.resultCode == 1) {
this.ShopList = res.data.data;
}
},
err => {}
);
},
},
mounted() {
var Year = new Date().getFullYear();
let count = Year - (Year - 8);
for (let i = 0; i <= count; i++) {
this.yearList.push(Year - i);
}
this.getWorkType();
this.GetShopList();
this.getStatis();
}
};
......
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