Commit b52a7f8d authored by 黄奎's avatar 黄奎

简易行程表统计修改

parent 4d4713eb
......@@ -111,6 +111,15 @@
</el-select>
</span>
</li>
<li>
<span>
<em>团队类型</em>
<el-select filterable :placeholder="$t('sm.company')" v-model="queryMsg.TeamType">
<el-option v-for='item in teamTypeList' :key="item.Id" :label="item.Name" :value="item.Id">
</el-option>
</el-select>
</span>
</li>
<li>
<span>
<em>{{$t('system.table_ssLine')}}</em>
......@@ -189,11 +198,11 @@
<th width="80">机票状态</th>
<th width="100">{{$t('leader.leader_Leader')}}</th>
<th width="100">{{$t('leader.leader_Guide')}}</th>
</tr>
<tbody v-for="(item,index) in DataList" :key="index">
<tr>
<td rowspan="2" :data-TCID="item.TCID" :data-AirTicketId="item.AirTicketId">{{item.Num}}</td>
<td rowspan="2" :data-TCID="item.TCID" :data-AirTicketId="item.AirTicketId">{{item.Num}}
</td>
<td
:class="{'Rs_Start1':item.StartCityNum==1,'Rs_Start2':item.StartCityNum==2,'Rs_Start3':item.StartCityNum==3,
'Rs_Start4':item.StartCityNum==4,'Rs_Start5':item.StartCityNum==5,'Rs_Start6':item.StartCityNum==6,
......@@ -204,7 +213,17 @@
<td>{{item.StartDateStr}} {{item.AlCode}}</td>
<td>
<span title="点击跳转到团控列表" :class="item.TCID>0?'RS_RedType PingFangSC Order_RS':'Order_RS'"
@click="goUrlTCList('TravelControlList',item.TCNUM,'团控列表')">{{item.TCID}}</span>
@click="goUrlTCList(item)">{{item.TCID}}</span>
<br />
<template v-if="item.TeamType==0">
<span style="font-weight:blod;">散拼</span>
</template>
<template v-if="item.TeamType==1">
<span style="font-weight:blod;">小包团</span>
</template>
<template v-if="item.TeamType==2">
<span style="font-weight:blod;">当地游</span>
</template>
</td>
<td>{{item.InOut}}</td>
<td>{{item.InOutTime}}</td>
......@@ -292,8 +311,26 @@
QEndDate: "",
TicketStartNum: "",
TicketEndNum: "",
uid: "0"
uid: "0",
TeamType: -1, //0-常规团,1-小包团,2-当地游
},
teamTypeList: [{
Id: -1,
Name: "全部"
},
{
Id: 0,
Name: "散拼"
},
{
Id: 1,
Name: "小包团"
},
{
Id: 2,
Name: "当地游"
},
],
//数据列表
DataList: [],
currentPage: 0,
......@@ -301,11 +338,23 @@
};
},
methods: {
goUrlTCList(path, TCNUMS, title) {
goUrlTCList(item) {
var title = "";
var path = "";
if (item.TeamType == 0) {
title = "团控列表";
path = "TravelControlList";
} else if (item.TeamType == 1) {
title = "小包团列表";
path = "TravelControlListSale";
} else if (item.TeamType == 2) {
title = "当地游列表";
path = "oneDayTrip";
}
this.$router.push({
name: path,
query: {
tcmun: TCNUMS,
tcmun: item.TCNUM,
blank: "y",
tab: title
}
......@@ -414,13 +463,13 @@
case "武汉":
item.StartCityNum = 5;
break;
case "贵阳":
case "郑州":
item.StartCityNum = 6;
break;
case "南昌":
case "上海":
item.StartCityNum = 7;
break;
case "兰州":
case "南宁":
item.StartCityNum = 8;
break;
case "票务":
......
......@@ -114,6 +114,15 @@
</el-select>
</span>
</li>
<li>
<span>
<em>团队类型</em>
<el-select filterable :placeholder="$t('sm.company')" v-model="queryMsg.TeamType">
<el-option v-for='item in teamTypeList' :key="item.Id" :label="item.Name" :value="item.Id">
</el-option>
</el-select>
</span>
</li>
<li>
<span>
<em>{{$t('advmanager.v_line')}}</em>
......@@ -159,8 +168,10 @@
<tr>
<th width="50">{{$t('salesModule.Xu')}}</th>
<th width="80">{{$t('Operation.Op_chutuan')}}</th>
<th width='200'>系列</th>
<th width="80">{{$t('fnc.tuanqi')}}</th>
<th width="80">{{$t('fnc.tuanqi')}}</th>
<th width="80">{{$t('Operation.Op_jinchudian')}}</th>
<th width="100">{{$t('Operation.Op_ArriveTime')}}</th>
<th width="50">{{$t('Operation.Op_price')}}</th>
......@@ -179,7 +190,21 @@
'Rs_Start7':item.StartCityNum==7,'Rs_Start8':item.StartCityNum==8,'Rs_Start9':item.StartCityNum==9,
'Rs_Start10':item.StartCityNum==10,'Rs_Start11':item.StartCityNum==11,'Rs_Start12':item.StartCityNum==12,'Rs_Start13':item.StartCityNum==13}">
{{item.StartCityName}} ({{item.OutBranchName}})</td>
<td>{{item.LtName}}</td>
<td>
<span>{{item.TCNUM}}({{item.TCID}})</span>
<br />
<template v-if="item.TeamType==0">
<span style="font-weight:blod;">散拼</span>
</template>
<template v-if="item.TeamType==1">
<span style="font-weight:blod;">小包团</span>
</template>
<template v-if="item.TeamType==2">
<span style="font-weight:blod;">当地游</span>
</template>
</td>
<td>{{item.StartDateStr}}</td>
<td>{{item.InOut}}</td>
<td>{{item.InOutTime}}</td>
......@@ -252,8 +277,26 @@
OutBranchId: -1,
QStartDate: "",
QEndDate: "",
uid: "0"
uid: "0",
TeamType: -1, //0-常规团,1-小包团,2-当地游
},
teamTypeList: [{
Id: -1,
Name: "全部"
},
{
Id: 0,
Name: "散拼"
},
{
Id: 1,
Name: "小包团"
},
{
Id: 2,
Name: "当地游"
},
],
//数据列表
DataList: [],
currentPage: 0,
......@@ -314,44 +357,44 @@
this.DataList = res.data.data.pageData;
this.DataList.forEach(item => {
switch (item.StartCityName) {
case '成都':
item.StartCityNum = 1
case "成都":
item.StartCityNum = 1;
break;
case '昆明':
item.StartCityNum = 2
case "昆明":
item.StartCityNum = 2;
break;
case '重庆':
item.StartCityNum = 3
case "重庆":
item.StartCityNum = 3;
break;
case '西安':
item.StartCityNum = 4
case "西安":
item.StartCityNum = 4;
break;
case '武汉':
item.StartCityNum = 5
case "武汉":
item.StartCityNum = 5;
break;
case '贵阳':
item.StartCityNum = 6
case "郑州":
item.StartCityNum = 6;
break;
case '南昌':
item.StartCityNum = 7
case "上海":
item.StartCityNum = 7;
break;
case '兰州':
item.StartCityNum = 8
case "南宁":
item.StartCityNum = 8;
break;
case '票务':
item.StartCityNum = 9
case "票务":
item.StartCityNum = 9;
break;
case '长沙':
item.StartCityNum = 10
case "长沙":
item.StartCityNum = 10;
break;
case '微途':
item.StartCityNum = 11
case "微途":
item.StartCityNum = 11;
break;
case '厦门':
item.StartCityNum = 12
case "厦门":
item.StartCityNum = 12;
break;
case '南京':
item.StartCityNum = 13
case "南京":
item.StartCityNum = 13;
break;
}
})
......
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