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
55c95d51
Commit
55c95d51
authored
May 21, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
a435876d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
846 additions
and
364 deletions
+846
-364
domesticTicketManagement.vue
src/components/scenicSpot/domesticTicketManagement.vue
+846
-364
No files found.
src/components/scenicSpot/domesticTicketManagement.vue
View file @
55c95d51
<
style
>
.ticketManagement
.singeRowTable
tr
:nth-child
(
n
+
2
)
:hover
{
.ticketManagement
.singeRowTable
tr
:nth-child
(
n
+
2
)
:hover
{
background-color
:
white
;
box-shadow
:
0px
0px
14px
0px
#adadad
;
z-index
:
10
;
position
:
relative
;
}
}
.ticketManagement
.DaysInfo
span
{
.ticketManagement
.DaysInfo
span
{
display
:
inline-block
;
background-color
:
#2aaef2
;
color
:
white
;
...
...
@@ -14,58 +14,58 @@
padding
:
0
10px
;
height
:
30px
;
line-height
:
30px
;
}
}
.ticketManagement
.DaysInfo
span
i
{
.ticketManagement
.DaysInfo
span
i
{
margin-right
:
10px
;
}
}
.ticketManagement
.singeRowTable
tr
:nth-child
(
n
+
2
)
{
.ticketManagement
.singeRowTable
tr
:nth-child
(
n
+
2
)
{
height
:
80px
;
text-align
:
center
;
}
}
.ticketManagement
.detailsIT
.singeRowTable
tr
:nth-child
(
n
+
2
)
:hover
{
.ticketManagement
.detailsIT
.singeRowTable
tr
:nth-child
(
n
+
2
)
:hover
{
background-color
:
white
;
box-shadow
:
0px
0px
14px
0px
#adadad
;
z-index
:
10
;
position
:
relative
;
}
}
.ticketManagement
.Ldata
{
.ticketManagement
.Ldata
{
color
:
#333333
;
margin-top
:
5px
;
}
}
.ticketManagement
.LP
{
.ticketManagement
.LP
{
color
:
#e95252
;
}
}
.ticketManagement
.HP
{
.ticketManagement
.HP
{
color
:
#2aaef2
;
text-align
:
left
;
font-size
:
14px
;
font-weight
:
bold
;
padding-left
:
5px
;
display
:
inline-block
;
}
}
.ticketManagement
.T1
{
.ticketManagement
.T1
{
text-align
:
right
;
color
:
#666666
;
display
:
inline-block
;
}
}
.ticketManagement
.T2
{
.ticketManagement
.T2
{
text-align
:
left
;
color
:
#e95252
;
font-size
:
14px
;
font-weight
:
bold
;
padding-left
:
5px
;
display
:
inline-block
;
}
}
.ticketManagement
.descripTion
{
.ticketManagement
.descripTion
{
border-radius
:
4px
;
width
:
266px
;
text-align
:
left
;
...
...
@@ -77,13 +77,13 @@
-webkit-box-orient
:
vertical
;
/* autoprefixer: on */
-webkit-line-clamp
:
2
;
}
}
.ticketManagement
.singeRowTable
tr
:nth-child
(
n
+
2
)
:hover
.descripTion
{
.ticketManagement
.singeRowTable
tr
:nth-child
(
n
+
2
)
:hover
.descripTion
{
background-color
:
#ededed
;
}
}
.ticketManagement
.roomName
{
.ticketManagement
.roomName
{
display
:
inline-block
;
width
:
200px
;
overflow
:
hidden
;
...
...
@@ -91,105 +91,201 @@
white-space
:
nowrap
;
text-align
:
left
;
padding-left
:
20px
;
}
}
.ticketManagement
.w300
.el-textarea__inner
{
.ticketManagement
.w300
.el-textarea__inner
{
height
:
140px
;
}
}
.ticketManagement
.el-dialog--center
.el-dialog__body
{
.ticketManagement
.el-dialog--center
.el-dialog__body
{
padding
:
25px
25px
0
;
}
}
.ticketinfo_title
{
font-size
:
16px
;
}
</
style
>
<
template
>
<div
class=
'flexOne ticketManagement'
>
<div
class=
"flexOne ticketManagement"
>
<div
class=
"query-box"
>
<ul>
<li>
<label
class=
""
>
{{
$t
(
'scen.sc_name'
)
}}
</label>
<el-input
v-model=
"msg.TicketName"
maxlength=
"30"
@
keyup
.
native
.
enter=
"getList"
></el-input>
<label
class=
""
>
{{
$t
(
"scen.sc_name"
)
}}
</label>
<el-input
v-model=
"msg.TicketName"
maxlength=
"30"
@
keyup
.
native
.
enter=
"getList"
></el-input>
</li>
<li>
<input
type=
"button"
class=
"hollowFixedBtn"
:value=
"$t('pub.searchBtn')"
@
click=
"getList(),resetPageIndex()"
/>
<input
type=
"button"
class=
"normalBtn"
@
click=
"outerVisible = true,dialogTitle='添加门票'"
:value=
"$t('pub.addBtn')"
/>
<input
type=
"button"
class=
"hollowFixedBtn"
:value=
"$t('pub.searchBtn')"
@
click=
"getList(), resetPageIndex()"
/>
<input
type=
"button"
class=
"normalBtn"
@
click=
"(outerVisible = true), (dialogTitle = '添加门票')"
:value=
"$t('pub.addBtn')"
/>
</li>
</ul>
</div>
<table
class=
"singeRowTable centerTable"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
v-loading=
"loading"
style=
"border-collapse:separate;border-spacing:0px 10px;table-layout:fixed;"
>
<table
class=
"singeRowTable centerTable"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
v-loading=
"loading"
style=
"
border-collapse: separate;
border-spacing: 0px 10px;
table-layout: fixed;
"
>
<tr>
<th
width=
"200"
>
{{
$t
(
'scen.sc_name'
)
}}
</th>
<th
width=
"200"
>
{{
$t
(
'scen.sc_bjts'
)
}}
</th>
<th>
{{
$t
(
'scen.sc_dj'
)
}}
</th>
<th>
{{
$t
(
'scen.sc_gj'
)
}}
</th>
<th
width=
"300"
>
{{
$t
(
'hotel.hotel_remark'
)
}}
</th>
<th>
{{
$t
(
'system.table_operation'
)
}}
</th>
<th
width=
"200"
>
{{
$t
(
"scen.sc_name"
)
}}
</th>
<th
width=
"200"
>
{{
$t
(
"scen.sc_bjts"
)
}}
</th>
<th>
{{
$t
(
"scen.sc_dj"
)
}}
</th>
<th>
{{
$t
(
"scen.sc_gj"
)
}}
</th>
<th
width=
"300"
>
{{
$t
(
"hotel.hotel_remark"
)
}}
</th>
<th>
{{
$t
(
"system.table_operation"
)
}}
</th>
</tr>
<tr
v-for=
"item in DataList"
:key=
"item.subCode"
>
<td>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"item.TicketName"
placement=
"top-start"
popper-class=
"max-w250"
>
<span
class=
"roomName"
>
{{
item
.
TicketName
}}
</span>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"item.TicketName"
placement=
"top-start"
popper-class=
"max-w250"
>
<span
class=
"roomName"
>
{{
item
.
TicketName
}}
</span>
</el-tooltip>
</td>
<td
class=
"DaysInfo"
>
<span><i
class=
"iconfont icon-kaoqintongji"
></i>
{{
item
.
Days
}}{{
$t
(
'hotel.hotel_item'
)
}}
</span>
<span
><i
class=
"iconfont icon-kaoqintongji"
></i>
{{
item
.
Days
}}{{
$t
(
"hotel.hotel_item"
)
}}
</span
>
</td>
<td>
<p
class=
"clearfix"
>
<span
class=
"tit_name T1"
>
{{
getCurrencyCode
(
item
.
CurrencyId
)
}}
</span><span
class=
'tit_name T2'
>
{{
item
.
LPrice
}}
</span>
<span
class=
"tit_name T1"
>
{{
getCurrencyCode
(
item
.
CurrencyId
)
}}
</span
><span
class=
"tit_name T2"
>
{{
item
.
LPrice
}}
</span>
</p>
<p
class=
"Ldata"
>
{{
item
.
LDate
}}
</p>
<p
class=
"Ldata"
>
{{
item
.
LDate
}}
</p>
</td>
<td>
<p
class=
"clearfix"
>
<span
class=
"tit_name T1"
>
{{
getCurrencyCode
(
item
.
CurrencyId
)
}}
</span><span
class=
'tit_name HP'
>
{{
item
.
HPrice
}}
</span>
<span
class=
"tit_name T1"
>
{{
getCurrencyCode
(
item
.
CurrencyId
)
}}
</span
><span
class=
"tit_name HP"
>
{{
item
.
HPrice
}}
</span>
</p>
<p
class=
"Ldata"
>
{{
item
.
HDate
}}
</p>
<p
class=
"Ldata"
>
{{
item
.
HDate
}}
</p>
</td>
<td>
<el-tooltip
class=
"item"
effect=
"dark"
v-if=
"item.TicketDesc"
:content=
"item.TicketDesc"
placement=
"top-start"
popper-class=
"max-w250"
>
<span
class=
"descripTion"
>
{{
item
.
TicketDesc
}}
</span>
<el-tooltip
class=
"item"
effect=
"dark"
v-if=
"item.TicketDesc"
:content=
"item.TicketDesc"
placement=
"top-start"
popper-class=
"max-w250"
>
<span
class=
"descripTion"
>
{{
item
.
TicketDesc
}}
</span>
</el-tooltip>
</td>
<td>
<el-button-group>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"修改"
placement=
"top-start"
>
<el-button
type=
"primary"
icon=
"iconfont icon-Edit"
@
click=
"outerVisible = true,dialogTitle='修改门票',updateResturant(item.Id)"
></el-button>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"修改"
placement=
"top-start"
>
<el-button
type=
"primary"
icon=
"iconfont icon-Edit"
@
click=
"
(outerVisible = true),
(dialogTitle = '修改门票'),
updateResturant(item.Id)
"
></el-button>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"报价管理"
placement=
"top-start"
>
<el-button
type=
"primary"
icon=
"iconfont icon-ico_shezhi"
@
click=
"goUrl('scenicSpotPackagePrice',item.Id)"
></el-button>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"报价管理"
placement=
"top-start"
>
<el-button
type=
"primary"
icon=
"iconfont icon-ico_shezhi"
@
click=
"goUrl('scenicSpotPackagePrice', item.Id)"
></el-button>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"$t('system.table_delete')"
placement=
"top-start"
>
<el-button
type=
"danger"
icon=
"el-icon-delete"
@
click=
"isDelete(item.Id)"
></el-button>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"$t('system.table_delete')"
placement=
"top-start"
>
<el-button
type=
"danger"
icon=
"el-icon-delete"
@
click=
"isDelete(item.Id)"
></el-button>
</el-tooltip>
</el-button-group>
</td>
</tr>
</table>
<el-dialog
custom-class=
'w500'
:visible
.
sync=
"outerVisible"
:title=
"dialogTitle"
center
:before-close=
"closeChangeMachie"
>
<el-dialog
custom-class=
"w500"
:visible
.
sync=
"outerVisible"
:title=
"dialogTitle"
center
:before-close=
"closeChangeMachie"
>
<el-form
:model=
"addMsg"
:rules=
"rules"
ref=
"addMsg"
label-width=
"110px"
>
<el-form-item
:label=
"$t('scen.sc_mpzy')"
prop=
"CouponsId"
>
<el-select
:placeholder=
"$t('pub.pleaseSel')"
class=
"w300"
disabled
v-model=
"addMsg.CouponsId"
>
<el-option
v-for=
"item in TicketCouponsList"
:key=
"item.ID"
:label=
"item.Name"
:value=
"item.ID"
>
<el-select
:placeholder=
"$t('pub.pleaseSel')"
class=
"w300"
filterable
v-model=
"addMsg.CouponsId"
>
<el-option
v-for=
"item in TicketCouponsList"
:key=
"item.ID"
:label=
"item.Name"
:value=
"item.ID"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item
:label=
"$t('scen.sc_name')"
prop=
"TicketName"
>
<el-input
class=
"w300"
type=
"text"
v-model=
"addMsg.TicketName"
maxlength=
"20"
></el-input>
<el-input
class=
"w300"
type=
"text"
v-model=
"addMsg.TicketName"
maxlength=
"20"
></el-input>
</el-form-item>
<el-form-item
label=
"门票副标题"
prop=
"TicketSubName"
>
<el-input
class=
"w300"
type=
"text"
v-model=
"addMsg.TicketSubName"
maxlength=
"200"
></el-input>
<el-input
class=
"w300"
type=
"text"
v-model=
"addMsg.TicketSubName"
maxlength=
"200"
></el-input>
</el-form-item>
<!--
<el-form-item
:label=
"$t('scen.sc_type_name')"
prop=
"TicketCouponsType"
>
<el-select
filterable
v-model=
'addMsg.TicketCouponsType'
:placeholder=
"$t('pub.pleaseSel')"
class=
"w300"
>
...
...
@@ -212,43 +308,361 @@
</el-date-picker>
</el-form-item>
<el-form-item
label=
"是否无忧退款"
prop=
"IsWorryFreeRefund"
>
<el-radio
v-model=
"addMsg.IsWorryFreeRefund"
:label=
"1"
>
有条件退
</el-radio>
<el-radio
v-model=
"addMsg.IsWorryFreeRefund"
:label=
"1"
>
有条件退
</el-radio
>
<el-radio
v-model=
"addMsg.IsWorryFreeRefund"
:label=
"0"
>
是
</el-radio>
</el-form-item>
<el-form-item
label=
"可定时间"
prop=
"SubscribeTime"
>
<el-input
class=
"w300"
type=
"text"
v-model=
"addMsg.AllTime"
maxlength=
"200"
></el-input>
<el-input
class=
"w300"
type=
"text"
v-model=
"addMsg.AllTime"
maxlength=
"200"
></el-input>
</el-form-item>
<el-form-item
label=
"随买随用"
prop=
"AllTime"
>
<el-input
class=
"w300"
type=
"text"
v-model=
"addMsg.SubscribeTime"
maxlength=
"200"
></el-input>
<el-input
class=
"w300"
type=
"text"
v-model=
"addMsg.SubscribeTime"
maxlength=
"200"
></el-input>
</el-form-item>
<el-form-item
label=
"出票速度"
prop=
"OutTicket"
>
<el-input
class=
"w300"
type=
"text"
v-model=
"addMsg.OutTicket"
maxlength=
"200"
></el-input>
<el-input
class=
"w300"
type=
"text"
v-model=
"addMsg.OutTicket"
maxlength=
"200"
></el-input>
</el-form-item>
<el-form-item
label=
"无需换票"
prop=
"ChangeTickets"
>
<el-input
class=
"w300"
type=
"text"
v-model=
"addMsg.ChangeTickets"
maxlength=
"200"
></el-input>
<el-input
class=
"w300"
type=
"text"
v-model=
"addMsg.ChangeTickets"
maxlength=
"200"
></el-input>
</el-form-item>
<div
class=
"ticketinfo_title"
>
无忧退票-退票政策
</div>
<template>
<div
v-for=
"(item,index) in addMsg.ReturnPriceList"
>
<el-form-item
prop=
"title"
>
<div
slot=
"label"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"新增无忧退票"
placement=
"top-end"
style=
"margin-left: 10px"
v-if=
"index===0"
>
<el-button
type=
"primary"
@
click=
"addTicketInfo('ReturnPriceList')"
icon=
"el-icon-plus"
circle
size=
"mini"
></el-button>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"删除无忧退票"
placement=
"top-end"
style=
"margin-left: 10px"
v-if=
"index!=0"
>
<el-button
type=
"danger"
@
click=
"delTicketInfo(index,'ReturnPriceList')"
icon=
"el-icon-delete"
circle
size=
"mini"
></el-button>
</el-tooltip>
标题
</div>
<el-input
class=
"w300"
type=
"text"
v-model=
"item.title"
maxlength=
"200"
></el-input>
</el-form-item>
<el-form-item
label=
"内容"
prop=
"Dec"
>
<el-input
class=
"w300"
type=
"textarea"
v-model=
"item.Dec"
maxlength=
"200"
></el-input>
</el-form-item>
</div>
</
template
>
<div
class=
"ticketinfo_title"
>
条件退款
</div>
<
template
>
<div
v-for=
"(item,index) in addMsg.ConditionPriceList"
>
<el-form-item
prop=
"title"
>
<div
slot=
"label"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"新增条件退款"
placement=
"top-end"
style=
"margin-left: 10px"
v-if=
"index===0"
>
<el-button
type=
"primary"
@
click=
"addTicketInfo('ConditionPriceList')"
icon=
"el-icon-plus"
circle
size=
"mini"
></el-button>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"删除条件退款"
placement=
"top-end"
style=
"margin-left: 10px"
v-if=
"index!=0"
>
<el-button
type=
"danger"
@
click=
"delTicketInfo(index,'ConditionPriceList')"
icon=
"el-icon-delete"
circle
size=
"mini"
></el-button>
</el-tooltip>
标题
</div>
<el-input
class=
"w300"
type=
"text"
v-model=
"item.title"
maxlength=
"200"
></el-input>
</el-form-item>
<el-form-item
label=
"内容"
prop=
"Dec"
>
<el-input
class=
"w300"
type=
"textarea"
v-model=
"item.Dec"
maxlength=
"200"
></el-input>
</el-form-item>
</div>
</
template
>
<div
class=
"ticketinfo_title"
>
使用说明
</div>
<
template
>
<div
v-for=
"(item,index) in addMsg.UseInstructionsList"
>
<el-form-item
prop=
"title"
>
<div
slot=
"label"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"新增使用说明"
placement=
"top-end"
style=
"margin-left: 10px"
v-if=
"index===0"
>
<el-button
type=
"primary"
@
click=
"addTicketInfo('UseInstructionsList')"
icon=
"el-icon-plus"
circle
size=
"mini"
></el-button>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"删除使用说明"
placement=
"top-end"
style=
"margin-left: 10px"
v-if=
"index!=0"
>
<el-button
type=
"danger"
@
click=
"delTicketInfo(index,'UseInstructionsList')"
icon=
"el-icon-delete"
circle
size=
"mini"
></el-button>
</el-tooltip>
标题
</div>
<el-input
class=
"w300"
type=
"text"
v-model=
"item.title"
maxlength=
"200"
></el-input>
</el-form-item>
<el-form-item
label=
"内容"
prop=
"Dec"
>
<el-input
class=
"w300"
type=
"textarea"
v-model=
"item.Dec"
maxlength=
"200"
></el-input>
</el-form-item>
</div>
</
template
>
<div
class=
"ticketinfo_title"
>
费用说明
</div>
<
template
>
<div
v-for=
"(item,index) in addMsg.PriceInstructionsList"
>
<el-form-item
prop=
"title"
>
<div
slot=
"label"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"新增费用说明"
placement=
"top-end"
style=
"margin-left: 10px"
v-if=
"index===0"
>
<el-button
type=
"primary"
@
click=
"addTicketInfo('PriceInstructionsList')"
icon=
"el-icon-plus"
circle
size=
"mini"
></el-button>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"删除费用说明"
placement=
"top-end"
style=
"margin-left: 10px"
v-if=
"index!=0"
>
<el-button
type=
"danger"
@
click=
"delTicketInfo(index,'PriceInstructionsList')"
icon=
"el-icon-delete"
circle
size=
"mini"
></el-button>
</el-tooltip>
标题
</div>
<el-input
class=
"w300"
type=
"text"
v-model=
"item.title"
maxlength=
"200"
></el-input>
</el-form-item>
<el-form-item
label=
"内容"
prop=
"Dec"
>
<el-input
class=
"w300"
type=
"textarea"
v-model=
"item.Dec"
maxlength=
"200"
></el-input>
</el-form-item>
</div>
</
template
>
<div
class=
"ticketinfo_title"
>
其他信息
</div>
<
template
>
<div
v-for=
"(item,index) in addMsg.OtherDescList"
>
<el-form-item
prop=
"title"
>
<div
slot=
"label"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"新增其他信息"
placement=
"top-end"
style=
"margin-left: 10px"
v-if=
"index===0"
>
<el-button
type=
"primary"
@
click=
"addTicketInfo('OtherDescList')"
icon=
"el-icon-plus"
circle
size=
"mini"
></el-button>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"删除其他信息"
placement=
"top-end"
style=
"margin-left: 10px"
v-if=
"index!=0"
>
<el-button
type=
"danger"
@
click=
"delTicketInfo(index,'OtherDescList')"
icon=
"el-icon-delete"
circle
size=
"mini"
></el-button>
</el-tooltip>
标题
</div>
<el-input
class=
"w300"
type=
"text"
v-model=
"item.title"
maxlength=
"200"
></el-input>
</el-form-item>
<el-form-item
label=
"内容"
prop=
"Dec"
>
<el-input
class=
"w300"
type=
"textarea"
v-model=
"item.Dec"
maxlength=
"200"
></el-input>
</el-form-item>
</div>
</
template
>
<el-form-item
:label=
"$t('hotel.hotel_produceDes')"
prop=
"TicketDesc"
>
<el-input
class=
"w300"
type=
"textarea"
v-model=
"addMsg.TicketDesc"
maxlength=
"200"
></el-input>
<el-input
class=
"w300"
type=
"textarea"
v-model=
"addMsg.TicketDesc"
maxlength=
"200"
></el-input>
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<button
class=
"hollowFixedBtn"
@
click=
"resetForm('addMsg'),outerVisible = false"
>
{{
$t
(
'pub.cancelBtn'
)
}}
</button>
<button
class=
"hollowFixedBtn"
@
click=
"resetForm('addMsg'), (outerVisible = false)"
>
{{ $t("pub.cancelBtn") }}
</button>
<button
class=
"normalBtn"
type=
"primary"
@
click=
"submitForm('addMsg')"
>
{{
$t
(
'pub.saveBtn'
)
}}
</button>
<button
class=
"normalBtn"
type=
"primary"
@
click=
"submitForm('addMsg')"
>
{{ $t("pub.saveBtn") }}
</button>
</div>
</el-dialog>
<div
class=
"noData"
v-show=
"noData"
>
{{
$t
(
'system.content_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=
'msg.total'
>
<el-pagination
background
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"currentPage"
layout=
"total,prev, pager, next, jumper"
:page-size=
"msg.pageSize"
:total=
"msg.total"
>
</el-pagination>
</div>
</template>
<
script
>
export
default
{
export
default
{
data
()
{
return
{
msg
:
{
...
...
@@ -256,7 +670,7 @@
pageSize
:
6
,
CouponsId
:
""
,
TicketName
:
""
,
Status
:
"-1"
Status
:
"-1"
,
},
addMsg
:
{
Id
:
"0"
,
...
...
@@ -264,6 +678,19 @@
TicketName
:
""
,
TicketDesc
:
""
,
TicketCouponsType
:
""
,
TicketSubName
:
""
,
//门票副标题
IsSameDayBuy
:
0
,
// 是否闪入园
DayBuyTime
:
""
,
//闪入园最晚购买时间
IsWorryFreeRefund
:
0
,
//是否无忧退款
SubscribeTime
:
""
,
//可定时间
AllTime
:
""
,
//随买随用
OutTicke
:
""
,
//出票速度
ChangeTickets
:
""
,
//无需换票
ReturnPriceList
:[{
title
:
""
,
Dec
:
""
}],
//无忧退票-退票政策
ConditionPriceList
:[{
title
:
""
,
Dec
:
""
}],
//条件退款
UseInstructionsList
:[{
title
:
""
,
Dec
:
""
}],
//使用说明
PriceInstructionsList
:[{
title
:
""
,
Dec
:
""
}],
//费用说明
OtherDescList
:[{
title
:
""
,
Dec
:
""
}],
//其他信息
},
TicketID
:
""
,
TickettTypeList
:
[],
...
...
@@ -277,16 +704,32 @@
TicketCouponsList
:
""
,
rules
:
{
//表单必填验证
CouponsId
:
[{
CouponsId
:
[
{
required
:
true
,
message
:
"请选择门票资源"
}],
TicketCouponsType
:
[{
message
:
"请选择门票资源"
,
},
],
TicketName
:
[
{
required
:
true
,
message
:
"请输入门票标题"
,
},
],
TicketSubName
:
[
{
required
:
true
,
message
:
"请选择门票类型"
}]
message
:
"请输入门票副标题"
,
},
],
TicketCouponsType
:
[
{
required
:
true
,
message
:
"请选择门票类型"
,
},
],
},
allCurrencyList
:
[]
allCurrencyList
:
[],
};
},
methods
:
{
...
...
@@ -295,7 +738,7 @@
this
.
apipost
(
"appletsticketcouponsticket_post_GetPageList"
,
this
.
msg
,
res
=>
{
(
res
)
=>
{
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
total
=
res
.
data
.
data
.
count
;
...
...
@@ -310,7 +753,7 @@
this
.
apipost
(
"appletsticketcouponsticket_post_Set"
,
this
.
addMsg
,
res
=>
{
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
getList
();
this
.
Success
(
"保存成功!"
);
...
...
@@ -325,13 +768,13 @@
},
updateResturant
(
Id
)
{
let
msg
=
{
ID
:
Id
ID
:
Id
,
};
this
.
addMsg
.
Id
=
Id
;
this
.
apipost
(
"appletsticketcouponsticket_post_Get"
,
msg
,
res
=>
{
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
addMsg
=
res
.
data
.
data
;
}
else
{
...
...
@@ -342,26 +785,34 @@
);
},
isDelete
(
ID
)
{
this
.
$confirm
(
'是否删除?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
this
.
$confirm
(
"是否删除?"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
,
})
.
then
(()
=>
{
this
.
$message
({
type
:
'success'
,
message
:
'删除成功!'
type
:
"success"
,
message
:
"删除成功!"
,
});
this
.
apipost
(
'appletsticketcouponsticket_post_Remove'
,
{
ID
:
ID
},
res
=>
{
this
.
apipost
(
"appletsticketcouponsticket_post_Remove"
,
{
ID
:
ID
,
},
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
getList
()
}
else
{}
},
err
=>
{})
}).
catch
(()
=>
{
this
.
getList
();
}
else
{
}
},
(
err
)
=>
{}
);
})
.
catch
(()
=>
{
this
.
$message
({
type
:
'info'
,
message
:
'已取消删除'
type
:
"info"
,
message
:
"已取消删除"
,
});
});
},
...
...
@@ -371,17 +822,22 @@
query
:
{
TicketID
:
id
,
CouponsId
:
this
.
TicketID
,
blank
:
'y'
,
tab
:
'报价管理'
}
blank
:
"y"
,
tab
:
"报价管理"
,
},
});
},
GetTicketType
()
{
this
.
apipost
(
'ticketcouponsprice_post_GetTicketType'
,
{},
res
=>
{
this
.
apipost
(
"ticketcouponsprice_post_GetTicketType"
,
{},
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
TickettTypeList
=
res
.
data
.
data
this
.
TickettTypeList
=
res
.
data
.
data
;
}
},
err
=>
{})
},
(
err
)
=>
{}
);
},
//翻页功能按钮
handleCurrentChange
(
val
)
{
...
...
@@ -399,7 +855,7 @@
this
.
apipost
(
"ticketcoupons_post_GetList"
,
msg
,
res
=>
{
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
TicketCouponsList
=
res
.
data
.
data
;
}
...
...
@@ -409,14 +865,14 @@
},
submitForm
(
addMsg
)
{
//提交创建、修改表单
this
.
TickettTypeList
.
forEach
(
item
=>
{
this
.
TickettTypeList
.
forEach
((
item
)
=>
{
if
(
this
.
addMsg
.
TicketCouponsType
==
item
.
ID
)
{
// HK 2020-05-06注释
//this.addMsg.TicketName = item.Name
}
})
});
let
that
=
this
;
that
.
$refs
[
addMsg
].
validate
(
valid
=>
{
that
.
$refs
[
addMsg
].
validate
((
valid
)
=>
{
if
(
valid
)
{
that
.
saveResource
();
}
else
{
...
...
@@ -430,7 +886,20 @@
CouponsId
:
""
,
TicketName
:
""
,
TicketDesc
:
""
,
TicketCouponsType
:
''
TicketCouponsType
:
""
,
TicketSubName
:
""
,
//门票副标题
IsSameDayBuy
:
0
,
// 是否闪入园
DayBuyTime
:
""
,
//闪入园最晚购买时间
IsWorryFreeRefund
:
0
,
//是否无忧退款
SubscribeTime
:
""
,
//可定时间
AllTime
:
""
,
//随买随用
OutTicke
:
""
,
//出票速度
ChangeTickets
:
""
,
//无需换票
ReturnPriceList
:[{
title
:
""
,
Dec
:
""
}],
//无忧退票-退票政策
ConditionPriceList
:[{
title
:
""
,
Dec
:
""
}],
//条件退款
UseInstructionsList
:[{
title
:
""
,
Dec
:
""
}],
//使用说明
PriceInstructionsList
:[{
title
:
""
,
Dec
:
""
}],
//费用说明
OtherDescList
:[{
title
:
""
,
Dec
:
""
}],
//其他信息
};
this
.
addMsg
=
newMsg
;
},
...
...
@@ -447,25 +916,38 @@
//获取所有币种
getAllCurrency
()
{
this
.
apipost
(
"financeinfo_post_GetList"
,
{},
res
=>
{
"financeinfo_post_GetList"
,
{},
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
allCurrencyList
=
res
.
data
.
data
;
}
},
err
=>
{}
(
err
)
=>
{}
);
},
//获取币种编码
getCurrencyCode
(
currencyId
)
{
let
currencyCode
=
"CNY"
;
this
.
allCurrencyList
.
forEach
(
x
=>
{
this
.
allCurrencyList
.
forEach
((
x
)
=>
{
if
(
x
.
ID
==
currencyId
)
{
currencyCode
=
x
.
Code
;
}
});
return
currencyCode
;
}
},
//新增门票信息
addTicketInfo
(
field
)
{
let
obj
=
{
title
:
""
,
Dec
:
""
,
};
this
.
addMsg
[
field
].
push
(
obj
);
},
//删除门票信息
delTicketInfo
(
index
,
field
)
{
this
.
addMsg
[
field
].
splice
(
index
,
1
);
},
},
mounted
()
{
this
.
msg
.
CouponsId
=
this
.
$route
.
query
.
id
;
...
...
@@ -475,6 +957,6 @@
this
.
getAllCurrency
();
this
.
getList
();
this
.
GetTicketType
();
}
};
},
};
</
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