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
940d7e3b
Commit
940d7e3b
authored
Apr 03, 2019
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
时间选择修改
parent
d77fe838
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
267 additions
and
277 deletions
+267
-277
TicketManager.vue
src/components/Ticketing/TicketManager.vue
+267
-277
No files found.
src/components/Ticketing/TicketManager.vue
View file @
940d7e3b
...
...
@@ -9,8 +9,6 @@
.TicketManager
._ol_info
{
font-size
:
12px
;
/* width: 100%;
overflow-x: auto; */
height
:
100%
;
}
...
...
@@ -68,19 +66,17 @@
min-height
:
500px
;
}
.TicketManager
._ol_list
>
li
{
/* height: 107px; */
.TicketManager
._ol_list
>
li
{
margin
:
20px
0
0px
0px
;
transition
:
linear
all
0.5s
;
background-color
:
#fff
;
border
:
1px
solid
#dddddd
;
border-left
:
0
;
/* overflow: hidden; */
position
:
relative
;
padding-top
:
10px
;
padding-top
:
10px
;
}
.TicketManager
._ol_list
>
li
:hover
{
.TicketManager
._ol_list
>
li
:hover
{
box-shadow
:
0px
0px
20px
rgba
(
191
,
191
,
191
,
1
);
transition
:
all
linear
0.5s
;
}
...
...
@@ -125,8 +121,6 @@
}
.TicketManager
._oll_info
{
/* padding-left: 20px;
width: 200px; */
max-width
:
100%
;
}
...
...
@@ -268,24 +262,22 @@
}
.TicketManager
.TK_SeatList
{
/* width: 245px; */
height
:
60px
;
background-color
:
#f9f9f9
;
/* margin-top: 9px; */
padding-right
:
3px
;
}
.TicketManager
.TK_SeatList
>
ul
>
li
:nth-child
(
1
)
{
.TicketManager
.TK_SeatList
>
ul
>
li
:nth-child
(
1
)
{
margin-left
:
5px
;
}
.TicketManager
.TK_SeatList
>
ul
>
li
{
.TicketManager
.TK_SeatList
>
ul
>
li
{
float
:
left
;
text-align
:
center
;
margin
:
5px
4px
0
0
;
}
.TicketManager
.TK_SeatList
>
ul
>
li
:last-child
{
.TicketManager
.TK_SeatList
>
ul
>
li
:last-child
{
margin-right
:
0
;
}
...
...
@@ -327,32 +319,26 @@
text-decoration
:
underline
;
}
.TMA_raduis
>
ul
{
.TMA_raduis
>
ul
{
display
:
-webkit-box
;
align-items
:
center
;
}
.TMA_raduis
>
ul
>
li
{
.TMA_raduis
>
ul
>
li
{}
}
/* .TMA_raduis > ul > li:not(._head) {
background-color: #bcbcbc;
color: #909090;
} */
.TMA_raduis
>
ul
>
li
._head
{
.TMA_raduis
>
ul
>
li
._head
{
display
:
flex
;
align-items
:
center
;
}
.TMA_raduis
>
ul
>
li
._head
img
{
.TMA_raduis
>
ul
>
li
._head
img
{
height
:
26px
;
width
:
26px
;
border-radius
:
50%
;
margin-left
:
15px
;
}
.TMA_raduis
>
ul
>
li
._head
span
{
.TMA_raduis
>
ul
>
li
._head
span
{
padding-left
:
7px
;
display
:
inline-block
;
margin-right
:
25px
;
...
...
@@ -422,17 +408,17 @@
border
:
none
!important
;
}
._add_sel
>
ul
>
li
{
._add_sel
>
ul
>
li
{
margin-right
:
15px
;
float
:
left
;
}
._add_sel
>
ul
>
li
input
,
._add_ret
>
ul
>
li
input
{
._add_sel
>
ul
>
li
input
,
._add_ret
>
ul
>
li
input
{
height
:
30px
;
}
._add_ret
>
ul
>
li
{
._add_ret
>
ul
>
li
{
margin-bottom
:
20px
;
}
...
...
@@ -447,18 +433,18 @@
border-bottom
:
1px
dashed
#dadada
;
}
._add_hangban
>
li
{
._add_hangban
>
li
{
float
:
left
;
display
:
-webkit-box
;
padding
:
20px
0
;
overflow
:
auto
;
}
._add_hangban
>
li
>
div
{
._add_hangban
>
li
>
div
{
margin-right
:
20px
;
}
._add_hangban
>
li
:nth-child
(
2
)
{
._add_hangban
>
li
:nth-child
(
2
)
{
border-left
:
1px
dashed
#dadada
;
padding-left
:
10px
;
}
...
...
@@ -467,13 +453,13 @@
display
:
flex
;
}
._add_go
>
span
{
._add_go
>
span
{
font-size
:
14px
;
color
:
#000000
;
padding-right
:
15px
;
}
._add_go
>
div
{
._add_go
>
div
{
font-size
:
12px
;
color
:
#666666
;
background-color
:
#e0f4ff
;
...
...
@@ -482,7 +468,7 @@
border-radius
:
4px
;
}
._add_go
>
div
>
p
:nth-child
(
1
)
{
._add_go
>
div
>
p
:nth-child
(
1
)
{
padding
:
0
13px
;
color
:
#387ea5
;
background-color
:
#cbe9fa
;
...
...
@@ -490,14 +476,14 @@
line-height
:
34px
;
}
._add_go
>
div
>
p
:nth-child
(
1
)
.icon-xingzhuang
{
._add_go
>
div
>
p
:nth-child
(
1
)
.icon-xingzhuang
{
float
:
right
;
font-size
:
12px
;
margin-top
:
2px
;
cursor
:
pointer
;
}
._add_go
>
div
>
p
:nth-child
(
1
)
.icon-xingzhuang
:hover
{
._add_go
>
div
>
p
:nth-child
(
1
)
.icon-xingzhuang
:hover
{
color
:
#e95252
;
}
...
...
@@ -537,7 +523,8 @@
font-size
:
12px
;
border-color
:
#5395b9
!important
;
}
._add_go
.el-input
.el-input__inner
{
._add_go
.el-input
.el-input__inner
{
height
:
30px
;
}
...
...
@@ -603,12 +590,6 @@
margin-top
:
8px
;
}
._command_box
{
}
._command_tb
{
}
._command_tb
{
width
:
-webkit-fill-available
;
margin-top
:
10px
;
...
...
@@ -646,9 +627,6 @@
table-layout
:
fixed
;
}
._command_tb
tbody
{
}
._tripDetails
{
padding
:
0
;
box-shadow
:
0px
1px
3px
0px
#dedede
;
...
...
@@ -751,7 +729,7 @@
font-size
:
14px
;
}
._allWidth
>
span
{
._allWidth
>
span
{
padding-right
:
10px
;
}
...
...
@@ -829,17 +807,16 @@
.TicketManager
.InfoChangeLog
.changLog
::-webkit-scrollbar
,
.TicketManager
._ol_info
::-webkit-scrollbar
,
.addTicketManager
::-webkit-scrollbar
,
._add_hangban
>
li
::-webkit-scrollbar
,
._add_hangban
>
li
::-webkit-scrollbar
,
.Journal
.changLogList
::-webkit-scrollbar
{
/*滚动条整体样式*/
width
:
4px
;
/*高宽分别对应横竖滚动条的尺寸*/
width
:
4px
;
height
:
8px
;
}
.TicketManager
.InfoChangeLog
.changLog
::-webkit-scrollbar-thumb
,
.TicketManager
._ol_info
::-webkit-scrollbar-thumb
,
.addTicketManager
::-webkit-scrollbar-thumb
,
._add_hangban
>
li
::-webkit-scrollbar-thumb
,
._add_hangban
>
li
::-webkit-scrollbar-thumb
,
.Journal
.changLogList
::-webkit-scrollbar-thumb
{
/*滚动条里面小方块*/
border-radius
:
4px
;
...
...
@@ -850,7 +827,7 @@
.TicketManager
.InfoChangeLog
.changLog
::-webkit-scrollbar-track
,
.TicketManager
._ol_info
::-webkit-scrollbar-track
,
.addTicketManager
::-webkit-scrollbar-track
,
._add_hangban
>
li
::-webkit-scrollbar-track
,
._add_hangban
>
li
::-webkit-scrollbar-track
,
.Journal
.changLogList
::-webkit-scrollbar-track
{
/*滚动条里面轨道*/
-webkit-box-shadow
:
inset
0
0
2px
rgba
(
0
,
0
,
0
,
0.2
);
...
...
@@ -897,7 +874,7 @@
}
._pingtai
.el-form-item
,
._add_ret
>
ul
>
li
.el-form-item
{
._add_ret
>
ul
>
li
.el-form-item
{
display
:
flex
;
}
...
...
@@ -1051,7 +1028,8 @@
.TicketManager
.addTicketManager
::-webkit-scrollbar
{
/*滚动条整体样式*/
width
:
4px
;
/*高宽分别对应横竖滚动条的尺寸*/
width
:
4px
;
/*高宽分别对应横竖滚动条的尺寸*/
height
:
8px
;
}
...
...
@@ -1129,7 +1107,6 @@
.TicketManager
.vmiddle
{
display
:
flex
;
align-items
:
Center
;
/* height: 78px; */
}
.Plan_Query
.el-button--primary
{
...
...
@@ -1189,14 +1166,13 @@
}
.Ticket_TCID
{
margin
:
5px
25px
5px
0
;
margin
:
5px
25px
5px
0
;
display
:
inline-block
;
}
/*航班详情*/
.TicketManager
.FlightDivDetails
{
width
:
100%
;
/* height: 65px; */
overflow
:
auto
;
}
...
...
@@ -1228,19 +1204,21 @@
}
.TicketManager
.TK_raduis
ul
li
{
margin-left
:
10px
;
margin-left
:
10px
;
float
:
left
;
}
.FinaceDanList
{
cursor
:
pointer
;
}
.teamTitle
{
text-indent
:
10px
;
min-height
:
28px
;
border-top
:
1px
solid
#ccc
;
line-height
:
28px
;
.teamTitle
{
text-indent
:
10px
;
min-height
:
28px
;
border-top
:
1px
solid
#ccc
;
line-height
:
28px
;
}
</
style
>
<
template
>
<div
class=
"flexOne TicketManager"
>
...
...
@@ -1260,8 +1238,8 @@
<em>
线路
</em>
<el-select
v-model=
"msg.LineId"
:placeholder=
"$t('pub.pleaseSel')"
class=
"w120"
>
<el-option
:label=
"$t('pub.unlimitedSel')"
:value=
"defaultSelectValue"
></el-option>
<el-option
v-for=
"item in LineList"
:key=
"item.LineID"
:label=
"item.LineName"
:value=
"item.LineID"
>
</el-option>
<el-option
v-for=
"item in LineList"
:key=
"item.LineID"
:label=
"item.LineName"
:value=
"item.LineID"
>
</el-option>
</el-select>
</span>
</li>
...
...
@@ -1270,19 +1248,19 @@
<em>
航空公司
</em>
<el-select
v-model=
"msg.AirLineID"
filterable
:placeholder=
"$t('system.ph_in')"
class=
"w120"
>
<el-option
:label=
"$t('pub.unlimitedSel')"
:value=
"defaultSelectValue"
></el-option>
<el-option
v-for=
"item in airlineList"
:label=
"item.AlName"
:value=
"item.AirLineId"
:key=
"item.AirLineId"
>
</el-option>
<el-option
v-for=
"item in airlineList"
:label=
"item.AlName"
:value=
"item.AirLineId"
:key=
"item.AirLineId"
>
</el-option>
</el-select>
</span>
</li>
<li>
<span>
<em>
航班日期
</em>
<el-date-picker
clearable
class=
"w135"
v-model=
"msg.QFlightDateStart"
type=
"date"
:picker-options=
"beforeCheck"
value-format=
"yyyy-MM-dd"
:placeholder=
"$t('admin.admin_choDate')"
>
</el-date-picker>
<el-date-picker
class=
"w135"
v-model=
"msg.QFlightDateStart"
type=
"date"
:picker-options=
"beforeCheck"
value-format=
"yyyy-MM-dd"
:placeholder=
"$t('admin.admin_choDate')"
>
</el-date-picker>
<span
class=
"_ln"
>
-
</span>
<el-date-picker
clearable
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"
value-format=
"yyyy-MM-dd"
:placeholder=
"$t('admin.admin_choDate')"
></el-date-picker>
</span>
</li>
...
...
@@ -1307,8 +1285,8 @@
<em>
定金类型
</em>
<el-select
v-model=
"msg.DepositType"
filterable
:placeholder=
"$t('system.ph_in')"
class=
"w120"
>
<el-option
:label=
"$t('pub.unlimitedSel')"
:value=
"defaultSelectValue"
></el-option>
<el-option
v-for=
"item in DepositTypeArray"
:label=
"item.Name"
:value=
"item.Id"
:key=
"item.Id"
>
</el-option>
<el-option
v-for=
"item in DepositTypeArray"
:label=
"item.Name"
:value=
"item.Id"
:key=
"item.Id"
>
</el-option>
</el-select>
</span>
</li>
...
...
@@ -1490,7 +1468,8 @@
</div>
<div
class=
"FinaDetailContent"
>
<span
v-if=
"item.FirstAuditList!=null"
v-for=
"childItem in item.FirstAuditList"
>
<span
class=
"FinaceDanList"
@
click=
"goFinaceDetails(childItem.FinaceId)"
>
{{
childItem
.
FinaceId
}}
</span>
<span
class=
"FinaceDanList"
@
click=
"goFinaceDetails(childItem.FinaceId)"
>
{{
childItem
.
FinaceId
}}
</span>
</span>
</div>
</li>
...
...
@@ -1503,7 +1482,8 @@
</div>
<div
class=
"FinaDetailContent"
>
<span
v-if=
"item.SecondAuditList!=null"
v-for=
"childItem in item.SecondAuditList"
>
<span
class=
"FinaceDanList"
@
click=
"goFinaceDetails(childItem.FinaceId)"
>
{{
childItem
.
FinaceId
}}
</span>
<span
class=
"FinaceDanList"
@
click=
"goFinaceDetails(childItem.FinaceId)"
>
{{
childItem
.
FinaceId
}}
</span>
</span>
</div>
</li>
...
...
@@ -1516,7 +1496,8 @@
</div>
<div
class=
"FinaDetailContent"
>
<span
v-if=
"item.ThirdAuditList!=null"
v-for=
"childItem in item.ThirdAuditList"
>
<span
class=
"FinaceDanList"
@
click=
"goFinaceDetails(childItem.FinaceId)"
>
{{
childItem
.
FinaceId
}}
</span>
<span
class=
"FinaceDanList"
@
click=
"goFinaceDetails(childItem.FinaceId)"
>
{{
childItem
.
FinaceId
}}
</span>
</span>
</div>
</li>
...
...
@@ -1529,7 +1510,8 @@
</div>
<div
class=
"FinaDetailContent"
>
<span
v-if=
"item.FourthAuditList!=null"
v-for=
"childItem in item.FourthAuditList"
>
<span
class=
"FinaceDanList"
@
click=
"goFinaceDetails(childItem.FinaceId)"
>
{{
childItem
.
FinaceId
}}
</span>
<span
class=
"FinaceDanList"
@
click=
"goFinaceDetails(childItem.FinaceId)"
>
{{
childItem
.
FinaceId
}}
</span>
</span>
</div>
</li>
...
...
@@ -1542,7 +1524,8 @@
</div>
<div
class=
"FinaDetailContent"
>
<span
v-if=
"item.FinalAuditList!=null"
v-for=
"childItem in item.FinalAuditList"
>
<span
class=
"FinaceDanList"
@
click=
"goFinaceDetails(childItem.FinaceId)"
>
{{
childItem
.
FinaceId
}}
</span>
<span
class=
"FinaceDanList"
@
click=
"goFinaceDetails(childItem.FinaceId)"
>
{{
childItem
.
FinaceId
}}
</span>
</span>
</div>
</li>
...
...
@@ -1572,13 +1555,12 @@
<el-button
type=
"primary"
icon=
"iconfont icon-Edit"
@
click=
"getEntityExtend(item.ID)"
></el-button>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"旅客名单"
placement=
"top-start"
>
<el-button
type=
"primary"
icon=
"iconfont icon-lists"
@
click=
"goUrl('PassengerList',item,'旅客名单')"
>
</el-button>
<el-button
type=
"primary"
icon=
"iconfont icon-lists"
@
click=
"goUrl('PassengerList',item,'旅客名单')"
>
</el-button>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"联运设置"
placement=
"top-start"
style=
"display:none;"
>
<el-button
type=
"primary"
icon=
"iconfont icon-ico_shezhi"
@
click=
"goUrl('ThroughSetting',item,'联运设置')"
style=
"margin-left:0;"
></el-button>
@
click=
"goUrl('ThroughSetting',item,'联运设置')"
style=
"margin-left:0;"
></el-button>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"删除"
placement=
"top-start"
>
<el-button
type=
"primary"
icon=
"iconfont icon-img_delete_small"
@
click=
"DeleteAirticket(item.ID)"
...
...
@@ -1587,8 +1569,7 @@
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"item.TripItinerary==''?'行程单上传':'行程单下载'"
placement=
"top-start"
>
<el-button
v-if=
"item.TripItinerary==''"
type=
"primary"
icon=
"iconfont icon-upload"
style=
"margin-left:0;"
@
click=
"outerVisible1=true,UploadItineraryMsg.ID=item.ID"
></el-button>
style=
"margin-left:0;"
@
click=
"outerVisible1=true,UploadItineraryMsg.ID=item.ID"
></el-button>
<el-button
v-else
type=
"primary"
icon=
"iconfont icon-xiazai2"
style=
"margin-left:0;"
@
click=
"DownLoad(3,item.TripItinerary)"
></el-button>
</el-tooltip>
...
...
@@ -1630,7 +1611,8 @@
<div
class=
"TCID_cont PingFangSC"
>
<span
v-show=
"item.PriceList==null ||item.PriceList.length==0"
>
暂无
</span>
<span
class=
"Ticket_TCID"
v-for=
"subItem in item.PriceList"
>
<a
style=
"color:blue;cursor:pointer"
@
click=
'goUrlT("RegistrationList",subItem.TCID,"报名清单")'
>
(
{{
subItem
.
TCID
}}
)
{{
subItem
.
TCNUM
}}
</a>
<a
style=
"color:blue;cursor:pointer"
@
click=
'goUrlT("RegistrationList",subItem.TCID,"报名清单")'
>
(
{{
subItem
.
TCID
}}
)
{{
subItem
.
TCNUM
}}
</a>
<a
style=
"color:red;cursor:pointer;"
@
click=
"goUrlTicketUnion(subItem.TCID,item.ID)"
>
设置联运
</a>
</span>
</div>
...
...
@@ -1643,8 +1625,7 @@
</ul>
<div
class=
"noData"
v-show=
"noData"
>
{{
$t
(
'system.content_noData'
)
}}
</div>
<el-pagination
background
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"currentPage"
layout=
"total,prev, pager, next, jumper"
:page-size=
"msg.pageSize"
:total=
"total"
></el-pagination>
layout=
"total,prev, pager, next, jumper"
:page-size=
"msg.pageSize"
:total=
"total"
></el-pagination>
</div>
</div>
<el-form
class=
"addTicketManager"
:class=
"addShow==true?'edHeight':''"
:model=
"addMsg"
:rules=
"rules"
ref=
"addMsg"
...
...
@@ -1655,16 +1636,16 @@
<el-col
:span=
"5"
>
<el-form-item
:label=
"$t('Airticket.Air_positions')"
prop=
"FreightSpace"
>
<el-select
v-model=
"addMsg.FreightSpace"
filterable
:placeholder=
"$t('pub.pleaseSel')"
>
<el-option
v-for=
"item in FreightSpaceList"
:key=
"item.Id"
:label=
"item.Name"
:value=
"item.Id"
>
</el-option>
<el-option
v-for=
"item in FreightSpaceList"
:key=
"item.Id"
:label=
"item.Name"
:value=
"item.Id"
>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"5"
>
<el-form-item
:label=
"$t('Airticket.Air_TicketType')"
prop=
"TicketType"
>
<el-select
v-model=
"addMsg.TicketType"
filterable
:placeholder=
"$t('pub.pleaseSel')"
>
<el-option
v-for=
"item in TicketTypeList"
:key=
"item.Id"
:label=
"item.Name"
:value=
"item.Id"
>
</el-option>
<el-option
v-for=
"item in TicketTypeList"
:key=
"item.Id"
:label=
"item.Name"
:value=
"item.Id"
>
</el-option>
</el-select>
</el-form-item>
</el-col>
...
...
@@ -1681,30 +1662,31 @@
</el-col>
<el-col
:span=
"5"
>
<el-form-item
:label=
"$t('Airticket.Air_unitPrice')"
prop=
"CostPrice"
>
<el-input
v-model=
"addMsg.CostPrice"
placeholder=
"0.0"
@
keyup
.
native=
"checkPrice(addMsg,'CostPrice')"
>
</el-input>
<el-input
v-model=
"addMsg.CostPrice"
placeholder=
"0.0"
@
keyup
.
native=
"checkPrice(addMsg,'CostPrice')"
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"5"
>
<el-form-item
:label=
"$t('Airticket.Air_salesPrice')"
prop=
"SalePrice"
>
<el-input
v-model=
"addMsg.SalePrice"
placeholder=
"0.0"
@
keyup
.
native=
"checkPrice(addMsg,'SalePrice')"
>
</el-input>
<el-input
v-model=
"addMsg.SalePrice"
placeholder=
"0.0"
@
keyup
.
native=
"checkPrice(addMsg,'SalePrice')"
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"5"
>
<el-form-item
:label=
"$t('Airticket.Air_b2bPrice')"
prop=
"B2BPrice"
>
<el-input
v-model=
"addMsg.B2BPrice"
placeholder=
"0.0"
@
keyup
.
native=
"checkPrice(addMsg,'B2BPrice')"
>
</el-input>
<el-input
v-model=
"addMsg.B2BPrice"
placeholder=
"0.0"
@
keyup
.
native=
"checkPrice(addMsg,'B2BPrice')"
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"5"
>
<el-form-item
:label=
"$t('Airticket.Air_b2cPrice')"
prop=
"B2CPrice"
>
<el-input
v-model=
"addMsg.B2CPrice"
placeholder=
"0.0"
@
keyup
.
native=
"checkPrice(addMsg,'B2CPrice')"
>
</el-input>
<el-input
v-model=
"addMsg.B2CPrice"
placeholder=
"0.0"
@
keyup
.
native=
"checkPrice(addMsg,'B2CPrice')"
>
</el-input>
</el-form-item>
</el-col>
</ul>
</div>
<!--添加修改航班-->
<ul
class=
"_add_hangban clearfix"
>
<li
v-if=
"addMsg.TicketType"
:class=
"addMsg.TicketType==1?'_allWidth':''"
>
<span
class=
"_add_go_label"
>
{{
$t
(
'Airticket.Air_go'
)
}}
</span>
...
...
@@ -1735,10 +1717,12 @@
</p>
</el-tooltip>
<div
style=
"margin:10px 0 0 12px;"
>
<el-input
type=
"text"
class=
"w80"
v-model=
"item.TicketDepartureTime"
@
keyup
.
native=
"checkTime(item,'TicketDepartureTime')"
maxlength=
"5"
<el-input
type=
"text"
class=
"w80"
v-model=
"item.TicketDepartureTime"
@
keyup
.
native=
"checkTime(item,'TicketDepartureTime')"
maxlength=
"5"
:placeholder=
"$t('system.ph_time')"
></el-input>
-
<el-input
type=
"text"
class=
"w80"
v-model=
"item.TicketArrivalTime"
@
keyup
.
native=
"checkTime(item,'TicketArrivalTime')"
maxlength=
"5"
:placeholder=
"$t('system.ph_time')"
></el-input>
<el-input
type=
"text"
class=
"w80"
v-model=
"item.TicketArrivalTime"
@
keyup
.
native=
"checkTime(item,'TicketArrivalTime')"
maxlength=
"5"
:placeholder=
"$t('system.ph_time')"
>
</el-input>
</div>
</div>
</div>
...
...
@@ -1751,8 +1735,7 @@
<span
class=
"_add_hbh"
>
<em
class
>
航空公司
</em>
<el-select
v-model=
"addGoFlight.AirLineID"
filterable
:placeholder=
"$t('pub.pleaseSel')"
@
change=
"getAirportNameList(addGoFlight.AirLineID,1)"
class=
"w150"
>
@
change=
"getAirportNameList(addGoFlight.AirLineID,1)"
class=
"w150"
>
<el-option
:label=
"$t('pub.unlimitedSel')"
:value=
"defaultSelectValue"
></el-option>
<el-option
v-for=
"item in airlineList"
:label=
"item.AlName"
:value=
"item.AirLineId"
:key=
"item.AirLineId"
></el-option>
...
...
@@ -1768,8 +1751,8 @@
<span
class=
"_add_hbh"
>
<em
class=
"demonstration"
>
{{
$t
(
'pub.date'
)
}}
</em>
<el-date-picker
class=
"w150 _add_date"
v-model=
"addGoFlight.FlightDate"
type=
"date"
:placeholder=
"$t('admin.admin_choDate')"
value-format=
"yyyy-MM-dd"
:picker-options=
"pickerOptions1"
>
</el-date-picker>
:placeholder=
"$t('admin.admin_choDate')"
value-format=
"yyyy-MM-dd"
:picker-options=
"pickerOptions1"
>
</el-date-picker>
</span>
</div>
</div>
...
...
@@ -1803,10 +1786,12 @@
</p>
</el-tooltip>
<div
style=
"margin:10px 0 0 12px;"
>
<el-input
type=
"text"
class=
"w80"
v-model=
"item.TicketDepartureTime"
@
keyup
.
native=
"checkTime(item,'TicketDepartureTime')"
maxlength=
"5"
<el-input
type=
"text"
class=
"w80"
v-model=
"item.TicketDepartureTime"
@
keyup
.
native=
"checkTime(item,'TicketDepartureTime')"
maxlength=
"5"
:placeholder=
"$t('system.ph_time')"
></el-input>
-
<el-input
type=
"text"
class=
"w80"
v-model=
"item.TicketArrivalTime"
@
keyup
.
native=
"checkTime(item,'TicketArrivalTime')"
maxlength=
"5"
:placeholder=
"$t('system.ph_time')"
></el-input>
<el-input
type=
"text"
class=
"w80"
v-model=
"item.TicketArrivalTime"
@
keyup
.
native=
"checkTime(item,'TicketArrivalTime')"
maxlength=
"5"
:placeholder=
"$t('system.ph_time')"
>
</el-input>
</div>
</div>
</div>
...
...
@@ -1819,8 +1804,7 @@
<span
class=
"_add_hbh"
>
<em
class
>
航空公司
</em>
<el-select
v-model=
"returnTripData.AirLineID"
filterable
:placeholder=
"$t('pub.pleaseSel')"
@
change=
"getAirportNameList(returnTripData.AirLineID,2)"
class=
"w150"
>
@
change=
"getAirportNameList(returnTripData.AirLineID,2)"
class=
"w150"
>
<el-option
:label=
"$t('pub.unlimitedSel')"
:value=
"defaultSelectValue"
></el-option>
<el-option
v-for=
"item in airlineList"
:label=
"item.AlName"
:value=
"item.AirLineId"
:key=
"item.AirLineId"
></el-option>
...
...
@@ -1837,8 +1821,8 @@
<span
class=
"_add_hbh"
>
<em
class=
"demonstration"
>
{{
$t
(
'pub.date'
)
}}
</em>
<el-date-picker
class=
"w150 _add_date"
v-model=
"returnTripData.FlightDate"
type=
"date"
:placeholder=
"$t('admin.admin_choDate')"
value-format=
"yyyy-MM-dd"
:picker-options=
"pickerOptions1"
>
</el-date-picker>
:placeholder=
"$t('admin.admin_choDate')"
value-format=
"yyyy-MM-dd"
:picker-options=
"pickerOptions1"
>
</el-date-picker>
</span>
</div>
</div>
...
...
@@ -1891,8 +1875,8 @@
<el-form-item
label=
"线路"
prop=
"LineId"
>
<el-select
v-model=
"addMsg.LineId"
:placeholder=
"$t('pub.pleaseSel')"
class=
"multiple_input"
>
<el-option
label=
'不限'
:value=
'comdefaultSelect'
></el-option>
<el-option
v-for=
"item in LineList"
:key=
"item.LineID"
:label=
"item.LineName"
:value=
"item.LineID"
>
</el-option>
<el-option
v-for=
"item in LineList"
:key=
"item.LineID"
:label=
"item.LineName"
:value=
"item.LineID"
>
</el-option>
</el-select>
</el-form-item>
</el-col>
...
...
@@ -1905,8 +1889,8 @@
</div>
</div>
</el-form>
<el-form
class=
"addTicketManager"
:class=
"command==true?'edHeight':''"
:model=
"addMsg"
:rules=
"rules"
ref=
"addMsgCmd"
label-width=
"100px"
>
<el-form
class=
"addTicketManager"
:class=
"command==true?'edHeight':''"
:model=
"addMsg"
:rules=
"rules"
ref=
"addMsgCmd"
label-width=
"100px"
>
<div
class=
"combottomTitle"
>
{{
$t
(
'Airticket.Air_orderImport'
)
}}
</div>
<div
class=
"_command_box"
>
<table
class=
"_command_tb"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
>
...
...
@@ -1988,26 +1972,26 @@
</el-col>
<el-col
:span=
"5"
>
<el-form-item
:label=
"$t('Airticket.Air_unitPrice')"
prop=
"CostPrice"
>
<el-input
v-model=
"addMsg.CostPrice"
placeholder=
"0.0"
@
keyup
.
native=
"checkPrice(addMsg,'CostPrice')"
>
</el-input>
<el-input
v-model=
"addMsg.CostPrice"
placeholder=
"0.0"
@
keyup
.
native=
"checkPrice(addMsg,'CostPrice')"
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"5"
>
<el-form-item
:label=
"$t('Airticket.Air_salesPrice')"
prop=
"SalePrice"
>
<el-input
v-model=
"addMsg.SalePrice"
placeholder=
"0.0"
@
keyup
.
native=
"checkPrice(addMsg,'SalePrice')"
>
</el-input>
<el-input
v-model=
"addMsg.SalePrice"
placeholder=
"0.0"
@
keyup
.
native=
"checkPrice(addMsg,'SalePrice')"
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"5"
>
<el-form-item
:label=
"$t('Airticket.Air_b2bPrice')"
prop=
"B2BPrice"
>
<el-input
v-model=
"addMsg.B2BPrice"
placeholder=
"0.0"
@
keyup
.
native=
"checkPrice(addMsg,'B2BPrice')"
>
</el-input>
<el-input
v-model=
"addMsg.B2BPrice"
placeholder=
"0.0"
@
keyup
.
native=
"checkPrice(addMsg,'B2BPrice')"
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"5"
>
<el-form-item
:label=
"$t('Airticket.Air_b2cPrice')"
prop=
"B2CPrice"
>
<el-input
v-model=
"addMsg.B2CPrice"
placeholder=
"0.0"
@
keyup
.
native=
"checkPrice(addMsg,'B2CPrice')"
>
</el-input>
<el-input
v-model=
"addMsg.B2CPrice"
placeholder=
"0.0"
@
keyup
.
native=
"checkPrice(addMsg,'B2CPrice')"
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"5"
>
...
...
@@ -2025,8 +2009,8 @@
<el-col
:span=
"5"
>
<el-form-item
label=
"线路"
>
<el-select
v-model=
"addMsg.LineId"
:placeholder=
"$t('pub.pleaseSel')"
>
<el-option
v-for=
"item in LineList"
:key=
"item.LineID"
:label=
"item.LineName"
:value=
"item.LineID"
>
</el-option>
<el-option
v-for=
"item in LineList"
:key=
"item.LineID"
:label=
"item.LineName"
:value=
"item.LineID"
>
</el-option>
</el-select>
</el-form-item>
</el-col>
...
...
@@ -2036,8 +2020,8 @@
<i
class=
"iconfont icon-arrow1"
></i>
</span>
<el-input
type=
"textarea"
:autosize=
"
{minRows: 1, maxRows: 8 }" resize="none"
:placeholder="$t('Airticket.Air_inputOrder')
"
v-model="TicketOrder" class="cmd_input"
@keyup.enter.native="getPostTicketOrder()">
</el-input>
:placeholder="$t('Airticket.Air_inputOrder')" v-model="TicketOrder" class="cmd_input
"
@keyup.enter.native="getPostTicketOrder()">
</el-input>
</div>
<div
class=
"TM_OrderRemind"
>
输入完成后回车即可导入
</div>
</el-col>
...
...
@@ -2057,16 +2041,9 @@
<p
class=
"_add_t"
>
散卖机票
</p>
</el-col>
<el-col
:span=
"4"
>
<button
type=
"button"
class=
"normalBtn"
@
click=
"saveSales()"
>
{{
$t
(
'pub.saveBtn'
)
}}
</button>
<button
class=
"hollowFixedBtn"
type=
"button"
@
click=
"resetForm('addMsg'),sanmai=false"
>
{{
$t
(
'pub.cancelBtn'
)
}}
</button>
<button
type=
"button"
class=
"normalBtn"
@
click=
"saveSales()"
>
{{
$t
(
'pub.saveBtn'
)
}}
</button>
<button
class=
"hollowFixedBtn"
type=
"button"
@
click=
"resetForm('addMsg'),sanmai=false"
>
{{
$t
(
'pub.cancelBtn'
)
}}
</button>
</el-col>
</el-row>
<div
class=
"_add_sel"
>
...
...
@@ -2271,17 +2248,17 @@
dataList
:
[],
addShow
:
false
,
command
:
false
,
sanmai
:
false
,
sanmai
:
false
,
uploadDoc
:
true
,
//散卖obj
sales
:{
AirTicketId
:
0
,
AirTicketNum
:
0
,
B2BPrice
:
''
,
B2CPrice
:
''
,
IsDiscounts
:
'0'
sales
:
{
AirTicketId
:
0
,
AirTicketNum
:
0
,
B2BPrice
:
''
,
B2CPrice
:
''
,
IsDiscounts
:
'0'
},
//1-一般导入,2-多航段导入
...
...
@@ -2293,14 +2270,26 @@
},
beforeCheck
:
{
disabledDate
:
time
=>
{
if
(
this
.
msg
.
QFlightDateEnd
!=
''
)
{
let
endTime
=
new
Date
(
this
.
msg
.
QFlightDateEnd
);
return
endTime
.
getTime
()
<
time
.
getTime
();
return
time
&&
endTime
.
getTime
()
<
time
.
getTime
();
}
else
{
return
false
;
}
}
},
afterCheck
:
{
disabledDate
:
time
=>
{
if
(
this
.
msg
.
QFlightDateStart
!=
''
)
{
let
startTime
=
new
Date
(
this
.
msg
.
QFlightDateStart
);
return
startTime
.
getTime
()
>=
time
.
getTime
();
//可以选择当天
return
time
&&
time
.
getTime
()
<
startTime
.
getTime
()
-
1
*
24
*
60
*
60
*
1000
;
}
else
{
return
false
;
}
}
},
rules
:
{
...
...
@@ -2361,7 +2350,7 @@
required
:
true
,
}],
},
salerules
:{
salerules
:
{
AirTicketNum
:
[{
required
:
true
,
message
:
"请填写人数"
,
...
...
@@ -2383,12 +2372,26 @@
methods
:
{
//页面跳转
goUrlT
(
path
,
obj
,
title
)
{
this
.
$router
.
push
({
name
:
path
,
query
:
{
"id"
:
obj
,
blank
:
'y'
,
tab
:
title
}})
this
.
$router
.
push
({
name
:
path
,
query
:
{
"id"
:
obj
,
blank
:
'y'
,
tab
:
title
}
})
},
//联运跳转
goUrlTicketUnion
(
TCID
,
AirticketId
)
{
this
.
$router
.
push
({
name
:
"TicketTransport"
,
query
:
{
"tcid"
:
TCID
,
"AirticketId"
:
AirticketId
,
blank
:
'y'
,
tab
:
"设置联运"
}})
goUrlTicketUnion
(
TCID
,
AirticketId
)
{
this
.
$router
.
push
({
name
:
"TicketTransport"
,
query
:
{
"tcid"
:
TCID
,
"AirticketId"
:
AirticketId
,
blank
:
'y'
,
tab
:
"设置联运"
}
})
},
//上传行程单
uploadItinerary
(
item
)
{
...
...
@@ -2505,8 +2508,7 @@
this
.
outerVisible
=
true
;
},
//下载(不要删除)
getDownLoad
()
{
},
getDownLoad
()
{},
//下载文件
DownLoad
(
Type
,
str
)
{
if
(
Type
==
1
)
{
...
...
@@ -2545,8 +2547,7 @@
this
.
msg
.
ID
=
""
;
}
},
err
=>
{
}
err
=>
{}
);
},
//初始化航空公司下拉
...
...
@@ -2558,8 +2559,7 @@
this
.
airlineList
=
res
.
data
.
data
;
}
},
err
=>
{
}
err
=>
{}
);
},
//获取舱位列表
...
...
@@ -2571,8 +2571,7 @@
this
.
FreightSpaceList
=
res
.
data
.
data
;
}
},
err
=>
{
}
err
=>
{}
);
},
//获取机票类型
...
...
@@ -2584,8 +2583,7 @@
this
.
TicketTypeList
=
res
.
data
.
data
;
}
},
err
=>
{
}
err
=>
{}
);
},
//新增去程
...
...
@@ -2617,6 +2615,8 @@
newList
.
AirLineTicketId
=
this
.
addGoFlight
.
AirLineTicketId
;
newList
.
AirLineID
=
this
.
addGoFlight
.
AirLineID
;
newList
.
FlightSubType
=
this
.
addGoFlight
.
FlightSubType
;
newList
.
TicketDepartureTime
=
x
.
DepartureTime
;
newList
.
TicketArrivalTime
=
x
.
ArrivalTime
;
newList
.
ID
=
this
.
addGoFlight
.
ID
;
this
.
addMsg
.
flightList
.
push
(
newList
);
}
...
...
@@ -2656,6 +2656,8 @@
newList
.
AirLineTicketId
=
this
.
returnTripData
.
AirLineTicketId
;
newList
.
FlightSubType
=
this
.
returnTripData
.
FlightSubType
;
newList
.
AirLineID
=
this
.
returnTripData
.
AirLineID
;
newList
.
TicketDepartureTime
=
x
.
DepartureTime
;
newList
.
TicketArrivalTime
=
x
.
ArrivalTime
;
newList
.
ID
=
this
.
returnTripData
.
ID
;
this
.
addMsg
.
flightList
.
push
(
newList
);
}
...
...
@@ -2733,7 +2735,7 @@
this
.
chengeDelIdList
=
[];
this
.
apipost
(
"ticket_get_GetEntityExtend"
,
{
ID
:
ID
ID
:
ID
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
...
...
@@ -2754,8 +2756,7 @@
this
.
Warning
(
res
.
data
.
message
);
}
},
err
=>
{
}
err
=>
{}
);
},
//根据航空公司ID 获取机场列表
...
...
@@ -2782,8 +2783,7 @@
}
}
},
err
=>
{
}
err
=>
{}
);
},
...
...
@@ -2842,8 +2842,7 @@
this
.
Warning
(
res
.
data
.
message
);
}
},
err
=>
{
}
err
=>
{}
);
},
//删除
...
...
@@ -2862,10 +2861,8 @@
"AirticketFlight_Post_RemoveByIds"
,
{
TicketFlightId
:
chengeDelIdList
.
toString
()
},
res
=>
{
},
err
=>
{
}
res
=>
{},
err
=>
{}
);
});
},
...
...
@@ -2878,10 +2875,8 @@
"AirticketFlight_Post_Remove"
,
{
TicketFlightId
:
id
},
res
=>
{
},
err
=>
{
}
res
=>
{},
err
=>
{}
);
});
},
...
...
@@ -2915,7 +2910,8 @@
delete
x
.
aName
;
delete
x
.
dName
;
});
if
(
newList
.
flightList
!=
null
&&
newList
.
flightList
.
length
>
0
&&
newList
.
flightList
[
0
].
AirLineID
!=
undefined
)
{
if
(
newList
.
flightList
!=
null
&&
newList
.
flightList
.
length
>
0
&&
newList
.
flightList
[
0
].
AirLineID
!=
undefined
)
{
this
.
addMsg
.
AirLineID
=
newList
.
flightList
[
0
].
AirLineID
;
}
// if (!this.addMsg.AirLineID) {
...
...
@@ -2938,8 +2934,7 @@
this
.
command
=
false
;
this
.
isSubmit
=
true
;
},
err
=>
{
}
err
=>
{}
);
}
},
...
...
@@ -2973,8 +2968,7 @@
res
=>
{
this
.
orderlogList
=
res
.
data
.
data
;
},
err
=>
{
}
err
=>
{}
);
},
//获取开放平台
...
...
@@ -3051,8 +3045,7 @@
this
.
Error
(
res
.
data
.
message
);
}
},
err
=>
{
}
err
=>
{}
);
},
goUrl
(
path
,
obj
,
name
)
{
...
...
@@ -3102,8 +3095,7 @@
this
.
EmployeeList
=
res
.
data
.
data
;
}
},
err
=>
{
}
err
=>
{}
);
},
//获取线路列表
...
...
@@ -3115,12 +3107,11 @@
this
.
LineList
=
res
.
data
.
data
;
}
},
err
=>
{
}
err
=>
{}
);
},
//散卖机票
sanSale
(
item
){
sanSale
(
item
)
{
this
.
sanmai
=
true
;
this
.
addShow
=
false
;
this
.
command
=
false
;
...
...
@@ -3128,14 +3119,14 @@
this
.
sales
.
AirTicketNum
=
item
.
AirTicketScatterNum
;
this
.
sales
.
B2BPrice
=
item
.
ScatterB2BPrice
;
this
.
sales
.
B2CPrice
=
item
.
ScatterB2CPrice
;
if
(
item
.
IsDiscounts
!=
null
)
{
this
.
sales
.
IsDiscounts
=
item
.
IsDiscounts
.
toString
();
}
else
{
this
.
sales
.
IsDiscounts
=
'0'
;
if
(
item
.
IsDiscounts
!=
null
)
{
this
.
sales
.
IsDiscounts
=
item
.
IsDiscounts
.
toString
();
}
else
{
this
.
sales
.
IsDiscounts
=
'0'
;
}
},
//保存
saveSales
(){
saveSales
()
{
this
.
apipost
(
"ticket_post_SetAirTicketScattering"
,
this
.
sales
,
res
=>
{
...
...
@@ -3143,12 +3134,11 @@
this
.
Success
(
res
.
data
.
message
);
this
.
getList
();
this
.
sanmai
=
false
;
}
else
{
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
err
=>
{
}
err
=>
{}
);
}
...
...
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