Commit bdfc7d2b authored by 华国豪's avatar 华国豪 🙄

合并代码

parents 58819207 994ab4ed
This diff is collapsed.
......@@ -62,7 +62,7 @@
}
.guidPerformance .leftTop {
width: 810px;
width: 1010px;
height: 360px;
border: 1px solid #E6E6E6;
background-color: #fff;
......@@ -83,7 +83,7 @@
.guidPerformance .bottomList {
float: left;
width: 399px;
width: 495px;
height: 230px;
border: 1px solid #E6E6E6;
border-radius: 4px;
......@@ -329,6 +329,14 @@
<el-option label="回佣人均" :value='5'></el-option>
<el-option label="人均低于1W" :value='7'></el-option>
</el-option>
<el-option label="带团次数" :value='8'></el-option>
</el-option>
<el-option label="自费总金额" :value='9'></el-option>
</el-option>
<el-option label="自费人均" :value='10'></el-option>
</el-option>
<el-option label="自费次数" :value='11'></el-option>
</el-option>
</el-select>
</span>
</li>
......@@ -374,9 +382,25 @@
人均低于1W
<i></i>
</li>
<li :class="msg.Type==8?'Day_active':''" @click="msg.Type=8,getStatis()" title="带团次数">
带团次数
<i></i>
</li>
<li :class="msg.Type==9?'Day_active':''" @click="msg.Type=9,getStatis()" title="自费总金额">
自费总金额
<i></i>
</li>
<li :class="msg.Type==10?'Day_active':''" @click="msg.Type=10,getStatis()" title="自费人均">
自费人均
<i></i>
</li>
<li :class="msg.Type==11?'Day_active':''" @click="msg.Type=11,getStatis()" title="自费次数">
自费次数
<i></i>
</li>
</ul>
<div class="ChampionsLeague clearfix">
<template v-if="msg.Type!=7">
<template v-if="msg.Type<7">
<div class="championList" v-for="item in yajun" :key="item.subCode">
<div class="runnderUp">
<img v-if="!item.EmPhoto" src="../../assets/img/default_head_img.jpg">
......@@ -411,26 +435,48 @@
<template v-else>
<table class="singeRowTable" style="margin-top:5px;">
<tr>
<th width="100">编号</th>
<th width="100">姓名</th>
<th width="200">人均回佣金额</th>
<th width="100">编号</th>
<th width="100">姓名</th>
<th width="200">
<template v-if="msg.Type==7">
人均回佣金额
</template>
<template v-if="msg.Type==8">
带团次数
</template>
<template v-if="msg.Type==9">
自费总金额
</template>
<template v-if="msg.Type==10">
自费人均
</template>
<template v-if="msg.Type==11">
自费次数
</template>
</th>
</tr>
<tr v-for="(item,index) in DataList">
<td>
{{index+1}}
{{index+1}}
</td>
<td>
{{item.Name}}
</td>
<td>
{{item.LeaderExtract}}
<template v-if="msg.Type==7">
</template>
{{item.LeaderExtract}}
<template v-if="msg.Type==8">
</template>
</td>
</tr>
</table>
</template>
</div>
</div>
<template v-if="msg.Type!=7">
<template v-if="msg.Type<7">
<div class="leftBottom clearfix">
<div class="bottomList">
<div class="btLittle" v-for="(item,index) in fourToSeven" :key="item.subCode">
......@@ -461,7 +507,7 @@
</div>
</template>
</div>
<template v-if="msg.Type!=7">
<template v-if="msg.Type<7">
<div class="rightDiv">
<div class="_btTitle" v-for="(item,index) in twelveToTwenty" :key="item.subCode">
<div class="tweleindex">{{12+index}}</div>
......@@ -539,7 +585,7 @@
this.apipost("LeaderSchedule_get_GetLeaderList", msg, res => {
this.loading = false;
if (res.data.resultCode == 1) {
this.DataList =JSON.parse(JSON.stringify(res.data.data));
this.DataList = JSON.parse(JSON.stringify(res.data.data));
var nArray = JSON.parse(JSON.stringify(res.data.data));
if (nArray && nArray.length > 0) {
this.Champion = nArray.splice(0, 1);
......
<template>
<div class="commonPriceHotelInfo">
<table v-loading="changeLoading">
<tr>
<th width="60" style="text-align:center;">
选择
</th>
<th width="145" style="text-align:center;">
团号
</th>
<th width="140" style="text-align:center;">
地接团号
</th>
<th width="120" style="text-align:center;">
酒店
</th>
<th width="120" style="text-align:center;">
更换酒店
</th>
<th width="100" style="text-align:center;">
OP状态
</th>
<th width="100" style="text-align:center;">
地接状态
</th>
</tr>
<tr v-for="(hItem,hIndex) in MyDataList">
<td style="text-align:center;">
<el-checkbox :checked="hItem.IsChecked" @change="ChangeStatus(hItem)"></el-checkbox>
</td>
<td style="text-align:center;">
{{hItem.TCNUM}}<br />({{hItem.TCID}})
</td>
<td style="text-align:center;">
{{hItem.DMCNum}}
</td>
<td style="text-align:left;">
{{hItem.OldHotelName}}
</td>
<td style="text-align:left;">
{{hItem.NewHotelName}}
</td>
<td style="text-align:center;">
<template v-if="hItem.OPState==1">
<a style="color:green">OP-指定</a>
</template>
<template v-else-if="hItem.OPState==2">
<a style="color:red">OP-暂定</a>
</template>
</td>
<td style="text-align:center;">
<template v-if="hItem.DMCState==1">
<a style="color:green">地接-OK</a>
</template>
<template v-else-if="hItem.DMCState==2">
<a style="color:red">地接-暂定</a>
</template>
<template v-else-if="hItem.DMCState==0">
<a style="color:red">地接-未操作</a>
</template>
</td>
</tr>
<tfoot>
<tr>
<td colspan="6" style="text-align:center;">
<input type="button" class="normalBtn" value="保存" @click="SaveHotelOrder()" />
</td>
</tr>
</tfoot>
</table>
</div>
</template>
<script>
export default {
props: ["TCID", "HotelId", "DateStr"],
data() {
return {
changeLoading: false,
MyDataList: [],
};
},
methods: {
ChangeStatus(item) {
item.IsChecked = !item.IsChecked;
},
//获取可以改变的酒店列表
GetChangeHotelList() {
this.changeLoading = true;
this.MyDataList = [];
var that = this;
this.apipost("journeyorder_post_GetCanChangeHotelListService", {
UseTime: this.DateStr
},
res => {
that.changeLoading = false;
if (res.data.resultCode == 1) {
that.MyDataList = res.data.data;
} else {
that.Error(res.data.message);
}
},
err => {}
);
},
//保存酒店订单
SaveHotelOrder() {
var that = this;
this.Confirm("是否要替换选中的酒店?", function () {
var newList = [];
if (that.ChangeHotelList && that.ChangeHotelList.length > 0) {
that.ChangeHotelList.forEach(item => {
if (item.IsChecked) {
var Nitem = JSON.parse(JSON.stringify(item));
Nitem.NewHotelID = this.HotelId;
newList.push(Nitem);
}
});
}
if (newList && newList.length > 0) {
that.apipost("journeyorder_post_SaveWorkHotelOrderService", newList,
res => {
if (res.data.resultCode == 1) {
that.Success(res.data.message);
//that.getList();
} else {
that.Error(res.data.message);
}
},
err => {}
);
} else {
that.Info("请选择团期!");
}
});
}
},
mounted() {
},
created() {
}
};
</script>
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