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
50def612
Commit
50def612
authored
May 27, 2019
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
机票查询新增出发地
parent
790c336a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
131 additions
and
98 deletions
+131
-98
TicketManager.vue
src/components/Ticketing/TicketManager.vue
+131
-98
No files found.
src/components/Ticketing/TicketManager.vue
View file @
50def612
...
@@ -1256,8 +1256,8 @@
...
@@ -1256,8 +1256,8 @@
<li>
<li>
<span>
<span>
<em>
航班日期
</em>
<em>
航班日期
</em>
<el-date-picker
class=
"w135"
v-model=
"msg.QFlightDateStart"
type=
"date
"
<el-date-picker
class=
"w135"
v-model=
"msg.QFlightDateStart"
type=
"date"
:picker-options=
"beforeCheck
"
:picker-options=
"beforeCheck"
value-format=
"yyyy-MM-dd"
:placeholder=
"$t('admin.admin_choDate')"
>
value-format=
"yyyy-MM-dd"
:placeholder=
"$t('admin.admin_choDate')"
>
</el-date-picker>
</el-date-picker>
<span
class=
"_ln"
>
-
</span>
<span
class=
"_ln"
>
-
</span>
<el-date-picker
class=
"w135"
v-model=
"msg.QFlightDateEnd"
type=
"date"
:picker-options=
"afterCheck"
<el-date-picker
class=
"w135"
v-model=
"msg.QFlightDateEnd"
type=
"date"
:picker-options=
"afterCheck"
...
@@ -1290,6 +1290,16 @@
...
@@ -1290,6 +1290,16 @@
</el-select>
</el-select>
</span>
</span>
</li>
</li>
<li>
<span>
<em>
出发地
</em>
<el-select
v-model=
"msg.Departure_city"
filterable
:placeholder=
"$t('system.ph_in')"
class=
"w120"
>
<el-option
:label=
"$t('pub.unlimitedSel')"
:value=
"defaultSelectValue"
></el-option>
<el-option
v-for=
"item in ChinaCityList"
:label=
"item.Name"
:value=
"item.ID"
:key=
"item.ID"
>
</el-option>
</el-select>
</span>
</li>
<li
style=
"margin-right:50px;"
>
<li
style=
"margin-right:50px;"
>
<button
class=
"normalBtn"
type=
"button"
@
click=
"resetPageIndex(),getList()"
>
{{
$t
(
'pub.searchBtn'
)
}}
</button>
<button
class=
"normalBtn"
type=
"button"
@
click=
"resetPageIndex(),getList()"
>
{{
$t
(
'pub.searchBtn'
)
}}
</button>
<button
class=
"normalBtn"
type=
"button"
@
click=
"addShow=true,command=false,sanmai=false,initAddMsg()"
>
<button
class=
"normalBtn"
type=
"button"
@
click=
"addShow=true,command=false,sanmai=false,initAddMsg()"
>
...
@@ -1340,15 +1350,15 @@
...
@@ -1340,15 +1350,15 @@
{{
$t
(
'Airticket.Air_EconomyClass'
)
}}
{{
$t
(
'Airticket.Air_EconomyClass'
)
}}
</li>
</li>
<li>
<span
style=
"color:#4BCA81 ;"
>
√:
</span>
<li>
<span
style=
"color:#4BCA81 ;"
>
√:
</span>
<span
>
全部出票
</span>
<span>
全部出票
</span>
</li>
</li>
<li>
<li>
<span
style=
"color: #E95252;"
>
O:
</span>
<span
style=
"color: #E95252;"
>
O:
</span>
<span
>
已出中段/部分出票
</span>
<span
>
已出中段/部分出票
</span>
</li>
</li>
<li>
<li>
<span
style=
"color:#E95252 ;"
>
X:
</span>
<span
style=
"color:#E95252 ;"
>
X:
</span>
<span
>
未处理
</span>
<span
>
未处理
</span>
</li>
</li>
</ul>
</ul>
<div
class=
"_ol_info"
:class=
"addShow==true||command==true?'_edHeight':''"
>
<div
class=
"_ol_info"
:class=
"addShow==true||command==true?'_edHeight':''"
>
...
@@ -1468,13 +1478,15 @@
...
@@ -1468,13 +1478,15 @@
</div>
</div>
</el-col>
</el-col>
<el-col
:span=
"1"
>
<el-col
:span=
"1"
>
<div><ul>
<div>
<ul>
<!--出票状态-->
<!--出票状态-->
<li
style=
"font-size:18px;"
>
<li
style=
"font-size:18px;"
>
<span
style=
"color: #4BCA81;"
v-if=
"item.TicketState==1"
>
√
</span>
<span
style=
"color: #4BCA81;"
v-if=
"item.TicketState==1"
>
√
</span>
<span
class=
"colorE95252"
v-else
>
{{
item
.
TicketState
==
'0'
?
"x"
:
"O"
}}
</span>
<span
class=
"colorE95252"
v-else
>
{{
item
.
TicketState
==
'0'
?
"x"
:
"O"
}}
</span>
</li>
</li>
</ul></div>
</ul>
</div>
</el-col>
</el-col>
<el-col
:span=
"4"
class=
"vmiddle"
>
<el-col
:span=
"4"
class=
"vmiddle"
>
<div
class=
"TK_raduis"
>
<div
class=
"TK_raduis"
>
...
@@ -1551,7 +1563,8 @@
...
@@ -1551,7 +1563,8 @@
</div>
</div>
</li>
-->
</li>
-->
<li
v-else-if=
"item.FinalPayment!=''"
>
<li
v-else-if=
"item.FinalPayment!=''"
>
<div
@
click=
"goCustomList('PassengerList',item, 5,'旅客名单')"
:class=
"getClass(item.FinalPaymentStatus)"
>
<div
@
click=
"goCustomList('PassengerList',item, 5,'旅客名单')"
:class=
"getClass(item.FinalPaymentStatus)"
>
<el-tooltip
effect=
"dark"
:content=
"item.FinalPayment"
placement=
"top"
popper-class=
"max-w250"
>
<el-tooltip
effect=
"dark"
:content=
"item.FinalPayment"
placement=
"top"
popper-class=
"max-w250"
>
<span>
尾
</span>
<span>
尾
</span>
</el-tooltip>
</el-tooltip>
...
@@ -1636,18 +1649,22 @@
...
@@ -1636,18 +1649,22 @@
</el-tooltip>
</el-tooltip>
</el-button-group>
</el-button-group>
</div>
</div>
<div
style=
"margin-top:5px;"
>
<div
style=
"margin-top:5px;"
>
<el-button-group
size=
"mini"
>
<el-button-group
size=
"mini"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"部分出票"
placement=
"top-start"
v-show=
"item.TicketState==0"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"部分出票"
placement=
"top-start"
v-show=
"item.TicketState==0"
>
<el-button
type=
"primary"
class=
"iconfont icon-icon_status-half-dot"
<el-button
type=
"primary"
class=
"iconfont icon-icon_status-half-dot"
@
click=
"UpdateTicketState(item.ID,3)"
></el-button>
@
click=
"UpdateTicketState(item.ID,3)"
></el-button>
</el-tooltip>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"已出中段"
placement=
"top-start"
v-show=
"item.TicketState==0"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"已出中段"
placement=
"top-start"
v-show=
"item.TicketState==0"
>
<el-button
type=
"primary"
class=
"iconfont icon-zhongzhuan"
@
click=
"UpdateTicketState(item.ID,2)"
>
<el-button
type=
"primary"
class=
"iconfont icon-zhongzhuan"
@
click=
"UpdateTicketState(item.ID,2)"
>
</el-button>
</el-button>
</el-tooltip>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"出票完成"
placement=
"top-start"
v-show=
"item.TicketState!=1"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"出票完成"
placement=
"top-start"
<el-button
type=
"primary"
class=
"iconfont icon-duigou"
@
click=
"UpdateTicketState(item.ID,1)"
></el-button>
v-show=
"item.TicketState!=1"
>
<el-button
type=
"primary"
class=
"iconfont icon-duigou"
@
click=
"UpdateTicketState(item.ID,1)"
>
</el-button>
</el-tooltip>
</el-tooltip>
</el-button-group>
</el-button-group>
</div>
</div>
...
@@ -2210,7 +2227,8 @@
...
@@ -2210,7 +2227,8 @@
LineId
:
0
,
//线路编号
LineId
:
0
,
//线路编号
ID
:
0
,
ID
:
0
,
TicketType
:
0
,
//定金类型(1定,2定等)
TicketType
:
0
,
//定金类型(1定,2定等)
IsLimit
:
1
IsLimit
:
1
,
Departure_city
:
0
//出发地
},
},
addMsg
:
{
addMsg
:
{
ID
:
"0"
,
ID
:
"0"
,
...
@@ -2288,6 +2306,8 @@
...
@@ -2288,6 +2306,8 @@
AirportNameList
:
[],
AirportNameList
:
[],
//回程航班列表
//回程航班列表
BackAirportNameList
:
[],
BackAirportNameList
:
[],
//国内城市列表
ChinaCityList
:[],
//线路列表
//线路列表
LineList
:
[],
LineList
:
[],
returnTrip
:
[],
returnTrip
:
[],
...
@@ -2324,9 +2344,8 @@
...
@@ -2324,9 +2344,8 @@
disabledDate
:
time
=>
{
disabledDate
:
time
=>
{
if
(
this
.
msg
.
QFlightDateEnd
)
{
if
(
this
.
msg
.
QFlightDateEnd
)
{
let
endTime
=
new
Date
(
this
.
msg
.
QFlightDateEnd
);
let
endTime
=
new
Date
(
this
.
msg
.
QFlightDateEnd
);
return
time
&&
endTime
.
getTime
()
<
time
.
getTime
();
return
time
&&
endTime
.
getTime
()
<
time
.
getTime
();
}
else
}
else
{
{
return
false
;
return
false
;
}
}
}
}
...
@@ -2337,9 +2356,7 @@
...
@@ -2337,9 +2356,7 @@
let
startTime
=
new
Date
(
this
.
msg
.
QFlightDateStart
);
let
startTime
=
new
Date
(
this
.
msg
.
QFlightDateStart
);
//可以选择当天
//可以选择当天
return
time
&&
time
.
getTime
()
<
startTime
.
getTime
()
-
1
*
24
*
60
*
60
*
1000
;
return
time
&&
time
.
getTime
()
<
startTime
.
getTime
()
-
1
*
24
*
60
*
60
*
1000
;
}
}
else
{
else
{
return
false
;
return
false
;
}
}
}
}
...
@@ -2555,12 +2572,12 @@
...
@@ -2555,12 +2572,12 @@
});
});
},
},
//跳转至旅客名单
//跳转至旅客名单
goCustomList
(
path
,
obj
,
type
,
title
){
goCustomList
(
path
,
obj
,
type
,
title
)
{
this
.
$router
.
push
({
this
.
$router
.
push
({
name
:
path
,
name
:
path
,
query
:
{
query
:
{
blank
:
'y'
,
blank
:
'y'
,
isFromTk
:
true
,
isFromTk
:
true
,
id
:
obj
.
ID
,
id
:
obj
.
ID
,
Obj
:
JSON
.
stringify
({
Obj
:
JSON
.
stringify
({
Type
:
type
Type
:
type
...
@@ -2828,11 +2845,11 @@
...
@@ -2828,11 +2845,11 @@
err
=>
{}
err
=>
{}
);
);
},
// 修改 根据ID获取信息
},
// 修改 根据ID获取信息
UpdateTicketState
(
ID
,
TicketState
)
{
UpdateTicketState
(
ID
,
TicketState
)
{
this
.
apipost
(
this
.
apipost
(
"AirTicket_get_UpdateTicketState"
,
{
"AirTicket_get_UpdateTicketState"
,
{
ID
:
ID
,
ID
:
ID
,
TicketState
:
TicketState
TicketState
:
TicketState
},
},
res
=>
{
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
...
@@ -3226,7 +3243,22 @@
...
@@ -3226,7 +3243,22 @@
},
},
err
=>
{}
err
=>
{}
);
);
},
//获取中国下面的所有城市
GetChinaCityList
()
{
this
.
apipost
(
"Destination_get_GetCityListByCountryId"
,
{
Id
:
2
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
ChinaCityList
=
res
.
data
.
data
;
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
err
=>
{}
);
}
}
},
},
mounted
()
{
mounted
()
{
...
@@ -3234,6 +3266,7 @@
...
@@ -3234,6 +3266,7 @@
if
(
id
)
{
if
(
id
)
{
this
.
msg
.
ID
=
id
;
this
.
msg
.
ID
=
id
;
}
}
this
.
GetChinaCityList
();
this
.
GetLineList
();
this
.
GetLineList
();
this
.
getList
();
this
.
getList
();
this
.
initAirlines
();
this
.
initAirlines
();
...
...
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