Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
SuperMan
Commits
e0a2625c
Commit
e0a2625c
authored
Jul 31, 2019
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
ad254db3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
165 additions
and
154 deletions
+165
-154
TravelpassengerList.vue
...mponents/TravelManager/TravelList/TravelpassengerList.vue
+165
-154
No files found.
src/components/TravelManager/TravelList/TravelpassengerList.vue
View file @
e0a2625c
<
style
>
<
style
>
.PT_teamTable
{
.PT_teamTable
{
width
:
800px
;
width
:
800px
;
border-collapse
:
collapse
;
border-collapse
:
collapse
;
}
}
.PT_teamTable
td
,
.PT_teamTable
th
{
.PT_teamTable
td
,
border
:
1px
solid
#dcdcdc
;
.PT_teamTable
th
{
padding
:
5px
;
border
:
1px
solid
#dcdcdc
;
height
:
30px
;
padding
:
5px
;
}
height
:
30px
;
.PT_teamTable
tr
th
{
}
background
:
#eee
;
height
:
30px
;
.PT_teamTable
tr
th
{
border
:
1px
solid
#dcdcdc
;
background
:
#eee
;
}
height
:
30px
;
.PT_teamTable
tr
td
{
background
:
#fff
;}
border
:
1px
solid
#dcdcdc
;
.travelpassengerlist
{
font-size
:
12px
;
background
:
#dcdcdc
;}
}
.travelpassengerlist
tr
th
{
height
:
30px
;
.PT_teamTable
tr
td
{
}
background
:
#fff
;
.travelpassengerlist
tr
td
{
background
:
#fff
;
text-align
:
center
;}
}
/*拒签人员*/
.travelpassengerlist
.redTr
td
{
.travelpassengerlist
{
font-size
:
12px
;
background
:
#dcdcdc
;
}
.travelpassengerlist
tr
th
{
height
:
30px
;
}
.travelpassengerlist
tr
td
{
background
:
#fff
;
text-align
:
center
;
}
/*拒签人员*/
.travelpassengerlist
.redTr
td
{
color
:
#E95252
;
color
:
#E95252
;
}
}
</
style
>
</
style
>
<
template
>
<
template
>
...
@@ -39,7 +55,8 @@
...
@@ -39,7 +55,8 @@
<th
width=
"120"
>
出发日期
</th>
<th
width=
"120"
>
出发日期
</th>
</tr>
</tr>
<tr
v-for=
"item in QueryMsg.TeamInfoData"
>
<tr
v-for=
"item in QueryMsg.TeamInfoData"
>
<td><a
@
click=
"goUrlTravelControl('团控列表','TravelControlList',item.TCID,item.TCNUM)"
style=
"cursor:pointer;color:blue;"
>
{{
item
.
TCNUM
}}
</a></td>
<td><a
@
click=
"goUrlTravelControl('团控列表','TravelControlList',item.TCID,item.TCNUM)"
style=
"cursor:pointer;color:blue;"
>
{{
item
.
TCNUM
}}
</a></td>
<td>
{{
item
.
Title
}}
</td>
<td>
{{
item
.
Title
}}
</td>
<td>
{{
item
.
Inventory
}}
人
</td>
<td>
{{
item
.
Inventory
}}
人
</td>
<td>
{{
item
.
StartDate
}}
{{
item
.
WeekStr
}}
</td>
<td>
{{
item
.
StartDate
}}
{{
item
.
WeekStr
}}
</td>
...
@@ -51,13 +68,7 @@
...
@@ -51,13 +68,7 @@
</li>
</li>
</ul>
</ul>
</div>
</div>
<table
<table
class=
"travelpassengerlist"
border=
"0"
cellspacing=
"1"
cellpadding=
"0"
v-loading=
"QueryMsg.loading"
>
class=
"travelpassengerlist"
border=
"0"
cellspacing=
"1"
cellpadding=
"0"
v-loading=
"QueryMsg.loading"
>
<tr>
<tr>
<th
width=
"50"
>
房间数
</th>
<th
width=
"50"
>
房间数
</th>
<th
width=
"50"
>
房号
</th>
<th
width=
"50"
>
房号
</th>
...
@@ -91,13 +102,13 @@
...
@@ -91,13 +102,13 @@
<td>
<td>
<!--自然单间 指定单间(单房差)-->
<!--自然单间 指定单间(单房差)-->
<template
v-if=
"subItem.SingleRoomType==subItem.HouseType"
>
<template
v-if=
"subItem.SingleRoomType==subItem.HouseType"
>
{{
getHouseTypeStr
(
subItem
.
HouseType
)
}}
{{
getHouseTypeStr
(
subItem
.
HouseType
)
}}
</
template
>
</
template
>
<
template
v-else
>
<
template
v-else
>
{{
getHouseTypeStr
(
subItem
.
SingleRoomType
)
}}
<br/><span
style=
"color:red;"
>
(指定)
</span>
{{
getHouseTypeStr
(
subItem
.
SingleRoomType
)
}}
<br
/><span
style=
"color:red;"
>
(指定)
</span>
</
template
>
</
template
>
<
template
v-if=
"subItem.IsBed==0"
><br/><span
style=
"color:red;"
>
(不占床)
</span></
template
>
<
template
v-if=
"subItem.IsBed==0"
><br
/><span
style=
"color:red;"
>
(不占床)
</span></
template
>
</td>
</td>
<td>
{{subItem.GuestName}}
</td>
<td>
{{subItem.GuestName}}
</td>
<td>
{{subItem.ESurName}}
</td>
<td>
{{subItem.ESurName}}
</td>
<td>
{{subItem.EName}}
</td>
<td>
{{subItem.EName}}
</td>
...
@@ -124,128 +135,128 @@
...
@@ -124,128 +135,128 @@
</div>
</div>
</template>
</template>
<
script
>
<
script
>
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
//请求数据
//请求数据
msg
:
{
msg
:
{
PageIndex
:
1
,
PageIndex
:
1
,
PageSize
:
100
,
PageSize
:
100
,
TCID
:
0
,
TCID
:
0
,
OrderId
:
0
,
OrderId
:
0
,
currentPage
:
1
currentPage
:
1
},
},
IsHaveLeader
:
1
,
//1-有领队,0-无领队
IsHaveLeader
:
1
,
//1-有领队,0-无领队
IsLeaderGuide
:
0
,
//1-领兼导,0-领队
IsLeaderGuide
:
0
,
//1-领兼导,0-领队
TCID
:
0
,
QueryMsg
:
{
loading
:
true
,
//返回数据
dataList
:
[],
TCID
:
0
,
TCID
:
0
,
OrderId
:
0
,
QueryMsg
:
{
//团期数据
loading
:
true
,
TeamInfoData
:
[]
//返回数据
}
dataList
:
[],
};
TCID
:
0
,
},
OrderId
:
0
,
methods
:
{
//团期数据
TeamInfoData
:
[]
goUrlTravelControl
(
name
,
path
,
id
,
tcmun
)
{
this
.
$router
.
push
({
name
:
path
,
query
:
{
id
:
id
,
tcmun
:
tcmun
,
blank
:
"y"
,
tab
:
name
}
}
});
};
},
//获取性别字符串
getSexStr
(
item
)
{
var
str
=
""
;
if
(
item
.
Sex
==
1
)
{
str
=
"男"
;
}
else
{
str
=
"女"
;
}
return
str
;
},
//获取房间类型
getHouseTypeStr
(
HouseType
)
{
var
str
=
""
;
if
(
HouseType
==
1
)
{
str
=
"自然单间"
;
}
else
if
(
HouseType
==
2
)
{
str
=
"标准双人间"
;
}
else
if
(
HouseType
==
3
)
{
str
=
"大床房"
;
}
else
if
(
HouseType
==
4
)
{
str
=
"三人间"
;
}
else
if
(
HouseType
==
5
)
{
str
=
"拼凑双人间"
;
}
else
{
str
=
"未分配"
;
}
return
str
;
},
},
//获取数据
methods
:
{
getList
()
{
goUrlTravelControl
(
name
,
path
,
id
,
tcmun
)
{
this
.
QueryMsg
.
loading
=
true
;
this
.
$router
.
push
({
this
.
apipost
(
name
:
path
,
"travel_get_GetTravelGuestPageList"
,
query
:
{
this
.
msg
,
id
:
id
,
res
=>
{
tcmun
:
tcmun
,
this
.
QueryMsg
.
loading
=
false
;
blank
:
"y"
,
if
(
res
.
data
.
resultCode
==
1
)
{
tab
:
name
this
.
QueryMsg
.
dataList
=
res
.
data
.
data
.
pageData
.
result
;
this
.
IsHaveLeader
=
res
.
data
.
data
.
pageData
.
IsHaveLeader
;
this
.
IsLeaderGuide
=
res
.
data
.
data
.
pageData
.
IsLeaderGuide
;
}
}
},
});
err
=>
{}
},
);
//获取性别字符串
},
getSexStr
(
item
)
{
exportExcel
()
{
var
str
=
""
;
//导出报表
if
(
item
.
Sex
==
1
)
{
let
msg
=
{
str
=
"男"
;
TCID
:
this
.
msg
.
TCID
}
else
{
};
str
=
"女"
;
var
fileName
=
"旅客名单.xls"
;
}
if
(
this
.
QueryMsg
.
TeamInfoData
!=
null
)
{
return
str
;
fileName
=
},
"【"
+
this
.
QueryMsg
.
TeamInfoData
[
0
].
TCNUM
+
"】旅客名单.xls"
;
//获取房间类型
getHouseTypeStr
(
HouseType
)
{
var
str
=
""
;
if
(
HouseType
==
1
)
{
str
=
"自然单间"
;
}
else
if
(
HouseType
==
2
)
{
str
=
"标准双人间"
;
}
else
if
(
HouseType
==
3
)
{
str
=
"大床房"
;
}
else
if
(
HouseType
==
4
)
{
str
=
"三人间"
;
}
else
if
(
HouseType
==
5
)
{
str
=
"拼凑双人间"
;
}
else
{
str
=
"未分配"
;
}
return
str
;
},
//获取数据
getList
()
{
this
.
QueryMsg
.
loading
=
true
;
this
.
apipost
(
"travel_get_GetTravelGuestPageList"
,
this
.
msg
,
res
=>
{
this
.
QueryMsg
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
QueryMsg
.
dataList
=
res
.
data
.
data
.
pageData
.
result
;
this
.
IsHaveLeader
=
res
.
data
.
data
.
pageData
.
IsHaveLeader
;
this
.
IsLeaderGuide
=
res
.
data
.
data
.
pageData
.
IsLeaderGuide
;
}
},
err
=>
{}
);
},
exportExcel
()
{
this
.
QueryMsg
.
loading
=
true
;
//导出报表
let
msg
=
{
TCID
:
this
.
msg
.
TCID
};
var
fileName
=
"旅客名单.xls"
;
if
(
this
.
QueryMsg
.
TeamInfoData
!=
null
)
{
fileName
=
"【"
+
this
.
QueryMsg
.
TeamInfoData
[
0
].
TCNUM
+
"】旅客名单.xls"
;
}
this
.
GetLocalFile
(
"travel_get_GetTravelGuestExport"
,
msg
,
fileName
,
res
=>
{
this
.
QueryMsg
.
loading
=
false
;
});
},
//获取团期信息
getTeamInfo
()
{
var
qmsg
=
{
TCID
:
this
.
TCID
};
this
.
apipost
(
"travel_get_GetTravelPriceReportInfo"
,
qmsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
QueryMsg
.
TeamInfoData
=
res
.
data
.
data
;
}
},
err
=>
{}
);
}
}
this
.
GetLocalFile
(
"travel_get_GetTravelGuestExport"
,
msg
,
fileName
);
},
},
mounted
()
{
//获取团期信息
this
.
TCID
=
this
.
$route
.
query
.
id
;
getTeamInfo
()
{
this
.
msg
.
TCID
=
this
.
TCID
;
var
qmsg
=
{
this
.
msg
.
OrderId
=
this
.
$route
.
query
.
OrderId
;
TCID
:
this
.
TCID
this
.
getTeamInfo
();
};
this
.
getList
();
this
.
apipost
(
"travel_get_GetTravelPriceReportInfo"
,
qmsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
QueryMsg
.
TeamInfoData
=
res
.
data
.
data
;
}
},
err
=>
{}
);
}
}
},
};
mounted
()
{
this
.
TCID
=
this
.
$route
.
query
.
id
;
</
script
>
this
.
msg
.
TCID
=
this
.
TCID
;
this
.
msg
.
OrderId
=
this
.
$route
.
query
.
OrderId
;
this
.
getTeamInfo
();
this
.
getList
();
}
};
</
script
>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment