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
78d590d0
Commit
78d590d0
authored
Feb 21, 2019
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加机票散卖
parent
06ca0b1b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
116 additions
and
11 deletions
+116
-11
TicketManager.vue
src/components/Ticketing/TicketManager.vue
+116
-11
No files found.
src/components/Ticketing/TicketManager.vue
View file @
78d590d0
...
...
@@ -281,7 +281,7 @@
.TK_SeatList
>
ul
>
li
{
float
:
left
;
text-align
:
center
;
margin
:
5px
1
3
px
0
0
;
margin
:
5px
1
0
px
0
0
;
}
.TK_SeatList
>
ul
>
li
:last-child
{
...
...
@@ -310,7 +310,7 @@
}
.TK_SeatList
._num3
{
font-size
:
1
8
px
;
font-size
:
1
7
px
;
color
:
#e95252
;
height
:
28px
;
font-family
:
PingFangSC-Semibold
,
sans-serif
;
...
...
@@ -1223,7 +1223,7 @@
}
.TK_raduis
ul
li
{
margin-right
:
1
4
px
;
margin-right
:
1
2
px
;
float
:
left
;
}
...
...
@@ -1309,10 +1309,10 @@
</li>
<li
style=
"margin-right:50px;"
>
<button
class=
"normalBtn"
type=
"button"
@
click=
"resetPageIndex(),getList()"
>
{{
$t
(
'pub.searchBtn'
)
}}
</button>
<button
class=
"normalBtn"
type=
"button"
@
click=
"addShow=true,command=false,initAddMsg()"
>
<button
class=
"normalBtn"
type=
"button"
@
click=
"addShow=true,command=false,
sanmai=false,
initAddMsg()"
>
{{
$t
(
'pub.addBtn'
)
}}
</button>
<button
class=
"hollowFixedBtn"
type=
"button"
@
click=
"command=true,addShow=false,initAddMsg()"
>
<button
class=
"hollowFixedBtn"
type=
"button"
@
click=
"command=true,addShow=false,
sanmai=false,
initAddMsg()"
>
{{
$t
(
'Airticket.Air_orderImport'
)
}}
</button>
<el-dropdown
@
command=
"getImport"
>
...
...
@@ -1457,6 +1457,10 @@
<p
class=
"_num3"
>
{{
item
.
OrderTotalNum
}}
</p>
<p
class=
"_wz"
>
报名人数
</p>
</li>
<li>
<p
class=
"_num3"
>
{{
item
.
UseScatterNum
}}
/
{{
item
.
AirTicketScatterNum
}}
</p>
<p
class=
"_wz"
>
已卖/总数
</p>
</li>
<li>
<p
class=
"_num3"
>
{{
item
.
OutTicketPercent
}}
%
</p>
<p
class=
"_wz"
>
出票百分比
</p>
...
...
@@ -1579,7 +1583,12 @@
<el-button
v-else
type=
"primary"
icon=
"iconfont icon-xiazai2"
style=
"margin-left:0;"
@
click=
"DownLoad(3,item.TripItinerary)"
></el-button>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"日志"
placement=
"top-start"
style=
"float:right;"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"散卖"
placement=
"top-start"
>
<el-button
type=
"primary"
icon=
"iconfont icon-maichu"
@
click=
"sanSale(item)"
></el-button>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"日志"
placement=
"top-start"
>
<el-popover
popper-class=
"Journal"
width=
"400"
trigger=
"click"
>
<div
class=
"InfoChangeLog"
>
<div
class=
"changLog"
>
...
...
@@ -2021,6 +2030,46 @@
</div>
</div>
</el-form>
<el-form
class=
"combottomDiv"
v-if=
"sanmai"
label-width=
"100px"
:model=
"sales"
:rules=
"salerules"
>
<el-row>
<el-col
:span=
"20"
>
<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>
</el-col>
</el-row>
<div
class=
"_add_sel"
>
<ul
class=
"clearfix"
>
<el-col
:span=
"5"
>
<el-form-item
label=
"人数"
prop=
"AirTicketNum"
>
<el-input
v-model=
"sales.AirTicketNum"
@
keyup
.
native=
"checkInteger(sales,'AirTicketScatterNum')"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"5"
>
<el-form-item
label=
"B2B单价"
prop=
"B2BPrice"
>
<el-input
v-model=
"sales.B2BPrice"
@
keyup
.
native=
"checkPrice(sales,'ScatterB2BPrice')"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"5"
>
<el-form-item
label=
"B2C单价"
prop=
"B2CPrice"
>
<el-input
v-model=
"sales.B2CPrice"
@
keyup
.
native=
"checkPrice(sales,'ScatterB2CPrice')"
></el-input>
</el-form-item>
</el-col>
</ul>
</div>
</el-form>
<el-dialog
custom-class=
"w700"
:title=
"importFileTitle"
:visible
.
sync=
"outerVisible"
center
>
<el-upload
v-if=
"uploadDoc"
ref=
"ticketUpload"
drag
class=
"upload-demo"
:action=
"getImportFileUrl()"
:on-success=
"handleAvatarSuccess"
>
...
...
@@ -2071,9 +2120,9 @@
},
//机票定金类型
DepositTypeArray
:
[{
Id
:
1
,
Name
:
"一定"
},
Id
:
1
,
Name
:
"一定"
},
{
Id
:
2
,
Name
:
"二定"
...
...
@@ -2193,8 +2242,18 @@
dataList
:
[],
addShow
:
false
,
command
:
false
,
sanmai
:
false
,
uploadDoc
:
true
,
//散卖obj
sales
:{
AirTicketId
:
0
,
AirTicketNum
:
0
,
B2BPrice
:
''
,
B2CPrice
:
''
},
//1-一般导入,2-多航段导入
importType
:
1
,
pickerOptions1
:
{
...
...
@@ -2270,7 +2329,24 @@
validator
:
validateLineId
,
trigger
:
'change'
,
required
:
true
,
}]
}],
},
salerules
:{
AirTicketNum
:
[{
required
:
true
,
message
:
"请填写人数"
,
trigger
:
"change"
}],
B2BPrice
:
[{
required
:
true
,
message
:
"请填写B2B单价"
,
trigger
:
"change"
}],
B2CPrice
:
[{
required
:
true
,
message
:
"请填写B2C单价"
,
trigger
:
"change"
}],
}
};
},
...
...
@@ -2435,6 +2511,7 @@
this
.
total
=
res
.
data
.
data
.
count
;
this
.
dataList
=
res
.
data
.
data
.
pageData
;
this
.
noData
=
!
this
.
total
>
0
;
console
.
log
(
this
.
dataList
,
'dataList'
);
}
if
(
this
.
msg
.
ID
==
0
)
{
this
.
msg
.
ID
=
""
;
...
...
@@ -2623,6 +2700,7 @@
getEntityExtend
(
ID
)
{
this
.
addShow
=
true
;
this
.
command
=
false
;
this
.
sanmai
=
false
;
this
.
initAddMsg
();
this
.
chengeDelIdList
=
[];
this
.
apipost
(
...
...
@@ -3013,8 +3091,35 @@
err
=>
{
}
);
}
},
//散卖机票
sanSale
(
item
){
this
.
sanmai
=
true
;
this
.
addShow
=
false
;
this
.
command
=
false
;
this
.
sales
.
AirTicketId
=
item
.
ID
;
this
.
sales
.
AirTicketNum
=
item
.
AirTicketScatterNum
;
this
.
sales
.
B2BPrice
=
item
.
ScatterB2BPrice
;
this
.
sales
.
B2CPrice
=
item
.
ScatterB2CPrice
;
},
//保存
saveSales
(){
this
.
apipost
(
"ticket_post_SetAirTicketScattering"
,
this
.
sales
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
Success
(
res
.
data
.
message
);
this
.
getList
();
this
.
sanmai
=
false
;
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
err
=>
{
}
);
}
},
mounted
()
{
var
id
=
this
.
$route
.
query
.
id
;
...
...
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