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
769a2e11
Commit
769a2e11
authored
Nov 15, 2019
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增可售机票展示
parent
9cb320c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
3 deletions
+47
-3
TravelControlList.vue
...components/TravelManager/TravelList/TravelControlList.vue
+47
-3
No files found.
src/components/TravelManager/TravelList/TravelControlList.vue
View file @
769a2e11
...
...
@@ -106,7 +106,7 @@
<span
:class=
"
{'TC_checked':queryCommonData.checkCompanyAll}"
@click="getCompanyCheckAll()">
{{
$t
(
'advmanager.v_all'
)
}}
</span>
<span
v-for=
"(item,bindex) in queryCommonData.BranchList"
:class=
"
{'TC_checked':item.isShow}"
@click="getCompanyCheck(item)">
{{
item
.
BName
}}
</span>
@click="getCompanyCheck(item)"
:key="bindex"
>
{{
item
.
BName
}}
</span>
</div>
<ul>
<li>
...
...
@@ -670,7 +670,7 @@
<th
width=
"130"
style=
"text-align:center;"
>
{{$t('op.CenterPNR')}}
</th>
<th
width=
"100"
style=
"text-align:center;"
>
{{$t('op.Tickets')}}
</th>
</tr>
<tr
v-for=
"
subItem in item.TicketList
"
>
<tr
v-for=
"
(subItem,subIndex) in item.TicketList"
:key=
"subIndex
"
>
<td
style=
"text-align:center;"
>
{{subItem.BindNum}}
</td>
<td
style=
"text-align:center;"
>
{{subItem.TicketNum}}
</td>
<td
style=
"text-align:center;"
>
{{subItem.TicketPrice}}
</td>
...
...
@@ -683,6 +683,14 @@
style=
"cursor:pointer;color:red;text-decoration: underline;"
>
{{$t('op.FlightToNum')}}: {{item.TicketNum}}
</span>
</el-popover>
</div>
<div
class=
"TC_SeatList"
>
<
template
v-if=
"item.CanSellTicketNum>0"
>
<span
style=
"color:rgb(71, 191, 140)"
>
可售散客机票
<span
style=
"color:red;font-size:12px;font-weight:700;"
>
{{
item
.
CanSellTicketNum
}}
</span>
张
</span>
<a
@
click=
"closeAirticket(item.TCID)"
style=
"cursor:pointer;color:red;text-decoration: underline;"
>
关闭
</a></
template
>
<
template
v-if=
"item.CanSellTicketNum==0"
><span
style=
"color:red;"
>
已关闭散客机票
</span>
<a
@
click=
"openAirticket(item.TCID)"
style=
"cursor:pointer;color:rgb(71, 191, 140);text-decoration: underline;"
>
开启
</a></
template
>
</div>
</div>
</div>
<div
class=
"el-col"
style=
"width:200px;"
>
...
...
@@ -845,7 +853,6 @@
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</div>
</div>
</div>
...
...
@@ -1149,6 +1156,43 @@
commonHotelInfo
},
methods
:
{
//开启散客机票
openAirticket
(
TCID
)
{
var
tempMsg
=
{
TCID
:
TCID
,
CanSellTicketNum
:
2
};
this
.
apipost
(
"travel_post_SetCanSellTicketNumService"
,
tempMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
Success
(
'开启成功!'
);
this
.
getControlList
();
}
else
{
this
.
Error
(
res
.
data
.
data
);
}
},
null
);
},
//关闭散客机票
closeAirticket
(
TCID
)
{
var
that
=
this
;
this
.
Confirm
(
"是否要关闭可售机票?"
,
function
()
{
var
tempMsg
=
{
TCID
:
TCID
,
CanSellTicketNum
:
0
};
that
.
apipost
(
"travel_post_SetCanSellTicketNumService"
,
tempMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
that
.
Success
(
'关闭成功!'
);
that
.
getControlList
();
}
else
{
that
.
Error
(
res
.
data
.
data
);
}
},
null
);
});
},
// 跳转调查列表
goInvetig
:
function
(
path
,
tcid
,
orderId
)
{
this
.
$router
.
push
({
...
...
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