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
dd2ff9f6
Commit
dd2ff9f6
authored
May 27, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
27c7066e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
489 additions
and
802 deletions
+489
-802
domesticTicketManagement.vue
src/components/scenicSpot/domesticTicketManagement.vue
+489
-802
No files found.
src/components/scenicSpot/domesticTicketManagement.vue
View file @
dd2ff9f6
<
style
>
.domesticticketManagement
.singeRowTable
tr
:nth-child
(
n
+
2
)
:hover
{
.domesticticketManagement
.singeRowTable
tr
:nth-child
(
n
+
2
)
:hover
{
background-color
:
white
;
box-shadow
:
0px
0px
14px
0px
#adadad
;
z-index
:
10
;
position
:
relative
;
}
}
.domesticticketManagement
.DaysInfo
span
{
.domesticticketManagement
.DaysInfo
span
{
display
:
inline-block
;
background-color
:
#2aaef2
;
color
:
white
;
...
...
@@ -14,58 +14,58 @@
padding
:
0
10px
;
height
:
30px
;
line-height
:
30px
;
}
}
.domesticticketManagement
.DaysInfo
span
i
{
.domesticticketManagement
.DaysInfo
span
i
{
margin-right
:
10px
;
}
}
.domesticticketManagement
.singeRowTable
tr
:nth-child
(
n
+
2
)
{
.domesticticketManagement
.singeRowTable
tr
:nth-child
(
n
+
2
)
{
height
:
80px
;
text-align
:
center
;
}
}
.domesticticketManagement
.detailsIT
.singeRowTable
tr
:nth-child
(
n
+
2
)
:hover
{
.domesticticketManagement
.detailsIT
.singeRowTable
tr
:nth-child
(
n
+
2
)
:hover
{
background-color
:
white
;
box-shadow
:
0px
0px
14px
0px
#adadad
;
z-index
:
10
;
position
:
relative
;
}
}
.domesticticketManagement
.Ldata
{
.domesticticketManagement
.Ldata
{
color
:
#333333
;
margin-top
:
5px
;
}
}
.domesticticketManagement
.LP
{
.domesticticketManagement
.LP
{
color
:
#e95252
;
}
}
.domesticticketManagement
.HP
{
.domesticticketManagement
.HP
{
color
:
#2aaef2
;
text-align
:
left
;
font-size
:
14px
;
font-weight
:
bold
;
padding-left
:
5px
;
display
:
inline-block
;
}
}
.domesticticketManagement
.T1
{
.domesticticketManagement
.T1
{
text-align
:
right
;
color
:
#666666
;
display
:
inline-block
;
}
}
.domesticticketManagement
.T2
{
.domesticticketManagement
.T2
{
text-align
:
left
;
color
:
#e95252
;
font-size
:
14px
;
font-weight
:
bold
;
padding-left
:
5px
;
display
:
inline-block
;
}
}
.domesticticketManagement
.descripTion
{
.domesticticketManagement
.descripTion
{
border-radius
:
4px
;
width
:
266px
;
text-align
:
left
;
...
...
@@ -77,13 +77,13 @@
-webkit-box-orient
:
vertical
;
/* autoprefixer: on */
-webkit-line-clamp
:
2
;
}
}
.domesticticketManagement
.singeRowTable
tr
:nth-child
(
n
+
2
)
:hover
.descripTion
{
.domesticticketManagement
.singeRowTable
tr
:nth-child
(
n
+
2
)
:hover
.descripTion
{
background-color
:
#ededed
;
}
}
.domesticticketManagement
.roomName
{
.domesticticketManagement
.roomName
{
display
:
inline-block
;
width
:
200px
;
overflow
:
hidden
;
...
...
@@ -91,18 +91,20 @@
white-space
:
nowrap
;
text-align
:
left
;
padding-left
:
20px
;
}
}
.domesticticketManagement
.el-dialog--center
.el-dialog__body
{
.domesticticketManagement
.el-dialog--center
.el-dialog__body
{
padding
:
25px
25px
0
;
}
.ticketinfo_title
{
}
.ticketinfo_title
{
font-size
:
16px
;
color
:
#333
;
padding-left
:
5px
;
border-left
:
5px
solid
#f00
;
}
}
</
style
>
<
template
>
<div
class=
"flexOne domesticticketManagement"
>
...
...
@@ -110,63 +112,35 @@
<ul>
<li>
<label
class=
""
>
{{
$t
(
"scen.sc_name"
)
}}
</label>
<el-input
v-model=
"msg.TicketName"
maxlength=
"30"
@
keyup
.
native
.
enter=
"getList"
></el-input>
<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=
"
<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
>
{{
$t
(
"scen.sc_name"
)
}}
</th>
<th
>
门票副标题
</th>
<th
>
是否闪入园
</th>
<!--
<th>
闪入园最晚购买时间
</th>
-->
<th
>
是否无忧退款
</th>
<!--
<th
>
可定时间
</th>
-->
<th>
{{
$t
(
"scen.sc_name"
)
}}
</th>
<th>
门票副标题
</th>
<th>
是否闪入园
</th>
<th>
是否无忧退款
</th>
<th
width=
"200"
>
{{
$t
(
"scen.sc_bjts"
)
}}
</th>
<th>
{{
$t
(
"scen.sc_dj"
)
}}
</th>
<th>
{{
$t
(
"scen.sc_gj"
)
}}
</th>
<th>
是否上架
</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"
>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"item.TicketName"
placement=
"top-start"
>
<span
class=
"roomName"
>
{{
item
.
TicketName
}}
</span>
</el-tooltip>
</td>
...
...
@@ -175,24 +149,19 @@
<div
v-if=
"item.IsSameDayBuy===0"
>
否
</div>
<div
v-if=
"item.IsSameDayBuy===1"
>
是
</div>
</td>
<!--
<td>
{{
item
.
DayBuyTime
}}
</td>
-->
<td>
<div
v-if=
"item.IsWorryFreeRefund===0"
>
是
</div>
<div
v-if=
"item.IsWorryFreeRefund===1"
>
有条件退
</div>
</td>
<!--
<td>
{{
item
.
AllTime
}}
</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><span
class=
"tit_name T2"
>
{{
item
.
LPrice
}}
</span>
</p>
<p
class=
"Ldata"
>
{{
item
.
LDate
}}
</p>
</td>
...
...
@@ -200,8 +169,7 @@
<p
class=
"clearfix"
>
<span
class=
"tit_name T1"
>
{{
getCurrencyCode
(
item
.
CurrencyId
)
}}
</span
><span
class=
"tit_name HP"
>
{{
item
.
HPrice
}}
</span>
}}
</span><span
class=
"tit_name HP"
>
{{
item
.
HPrice
}}
</span>
</p>
<p
class=
"Ldata"
>
{{
item
.
HDate
}}
</p>
</td>
...
...
@@ -209,105 +177,40 @@
<span
v-if=
"item.IsShelves===0"
>
上架
</span>
<span
v-if=
"item.IsShelves===1"
>
下架
</span>
</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>
</td>
-->
<td>
<el-button-group>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"修改"
placement=
"top-start"
>
<el-button
type=
"primary"
icon=
"iconfont icon-Edit"
@
click=
"
<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-button>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"报价管理"
placement=
"top-start"
>
<el-button
type=
"primary"
icon=
"iconfont icon-ico_shezhi"
@
click=
"goUrl('domesticScenicSpotPackagePrice', 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('domesticScenicSpotPackagePrice', 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"
filterable
v-model=
"addMsg.CouponsId"
disabled
>
<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"
disabled
>
<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"
>
...
...
@@ -324,373 +227,167 @@
<el-radio
v-model=
"addMsg.IsSameDayBuy"
:label=
"0"
>
否
</el-radio>
</el-form-item>
<el-form-item
label=
"购买时间"
prop=
"DayBuyTime"
>
<el-time-select
v-model=
"addMsg.DayBuyTime"
:picker-options=
"
{
<el-time-select
v-model=
"addMsg.DayBuyTime"
:picker-options=
"
{
start: '00:00',
step: '00:15',
end: '23:45',
}"
placeholder="购买时间"
>
}" placeholder="购买时间">
</el-time-select>
</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"
>
<div
v-for=
"(item,index) in addMsg.ReturnPriceList"
:key=
"index"
>
<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
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
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-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-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"
>
<div
v-for=
"(item,index) in addMsg.ConditionPriceList"
:key=
"index"
>
<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
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
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-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-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"
>
<div
v-for=
"(item,index) in addMsg.UseInstructionsList"
:key=
"index"
>
<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
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
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-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-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"
>
<div
v-for=
"(item,index) in addMsg.PriceInstructionsList"
:key=
"index"
>
<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
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
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-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-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"
>
<div
v-for=
"(item,index) in addMsg.OtherDescList"
:key=
"index"
>
<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
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
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-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-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-form-item> -->
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<button
class=
"hollowFixedBtn"
@
click=
"resetForm('addMsg'), (outerVisible = false)"
>
{{ $t("pub.cancelBtn") }}
</button>
<input
class=
"hollowFixedBtn"
type=
"button"
@
click=
"clearMsg(), (outerVisible = false)"
:value=
"$t('pub.cancelBtn')"
/>
<button
class=
"normalBtn"
type=
"primary"
@
click=
"submitForm('addMsg')"
>
{{ $t("pub.saveBtn") }}
</button>
<input
class=
"normalBtn"
type=
"button"
@
click=
"submitForm('addMsg')"
:value=
"$t('pub.saveBtn')"
/>
</div>
</el-dialog>
<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=
"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
:
{
...
...
@@ -706,20 +403,35 @@ export default {
TicketName
:
""
,
TicketDesc
:
""
,
TicketCouponsType
:
""
,
IsShelves
:
0
,
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
:
""
}],
//其他信息
IsShelves
:
0
,
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
:
[],
...
...
@@ -733,30 +445,18 @@ export default {
TicketCouponsList
:
""
,
rules
:
{
//表单必填验证
CouponsId
:
[
{
CouponsId
:
[{
required
:
true
,
message
:
"请选择门票资源"
,
},
],
TicketName
:
[
{
},
],
TicketName
:
[{
required
:
true
,
message
:
"请输入门票标题"
,
},
],
TicketSubName
:
[
{
},
],
TicketSubName
:
[{
required
:
true
,
message
:
"请输入门票副标题"
,
},
],
// TicketCouponsType: [
// {
// required: true,
// message: "请选择门票类型",
// },
// ],
},
],
},
allCurrencyList
:
[],
};
...
...
@@ -787,7 +487,7 @@ export default {
this
.
getList
();
this
.
Success
(
"保存成功!"
);
this
.
outerVisible
=
false
;
this
.
resetForm
(
"addMsg"
);
this
.
clearMsg
(
);
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
...
...
@@ -806,32 +506,31 @@ export default {
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
addMsg
=
res
.
data
.
data
;
if
(
this
.
addMsg
.
ConditionPriceList
.
length
===
0
){
if
(
this
.
addMsg
.
ConditionPriceList
.
length
===
0
)
{
this
.
addMsg
.
ConditionPriceList
.
push
({
title
:
""
,
Dec
:
""
})
}
if
(
this
.
addMsg
.
OtherDescList
.
length
===
0
)
{
if
(
this
.
addMsg
.
OtherDescList
.
length
===
0
)
{
this
.
addMsg
.
OtherDescList
.
push
({
title
:
""
,
Dec
:
""
})
}
if
(
this
.
addMsg
.
PriceInstructionsList
.
length
===
0
)
{
if
(
this
.
addMsg
.
PriceInstructionsList
.
length
===
0
)
{
this
.
addMsg
.
PriceInstructionsList
.
push
({
title
:
""
,
Dec
:
""
})
}
if
(
this
.
addMsg
.
ReturnPriceList
.
length
===
0
)
{
if
(
this
.
addMsg
.
ReturnPriceList
.
length
===
0
)
{
this
.
addMsg
.
ReturnPriceList
.
push
({
title
:
""
,
Dec
:
""
})
}
if
(
this
.
addMsg
.
UseInstructionsList
.
length
===
0
)
{
if
(
this
.
addMsg
.
UseInstructionsList
.
length
===
0
)
{
this
.
addMsg
.
UseInstructionsList
.
push
({
title
:
""
,
Dec
:
""
...
...
@@ -845,35 +544,20 @@ export default {
);
},
isDelete
(
ID
)
{
this
.
$confirm
(
"是否删除?"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
,
})
.
then
(()
=>
{
this
.
$message
({
type
:
"success"
,
message
:
"删除成功!"
,
});
this
.
apipost
(
"appletsticketcouponsticket_post_Remove"
,
{
var
that
=
this
that
.
Confirm
(
"是否删除此数据,删除后将不能恢复?"
,
function
()
{
that
.
apipost
(
"appletsticketcouponsticket_post_Remove"
,
{
ID
:
ID
,
},
(
res
)
=>
{
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
getList
();
that
.
Success
(
res
.
data
.
message
);
that
.
getList
();
}
else
{
that
.
Error
(
res
.
data
.
message
);
}
}
},
(
err
)
=>
{}
);
})
.
catch
(()
=>
{
this
.
$message
({
type
:
"info"
,
message
:
"已取消删除"
,
});
});
},
goUrl
(
path
,
id
)
{
...
...
@@ -889,8 +573,7 @@ export default {
},
GetTicketType
()
{
this
.
apipost
(
"ticketcouponsprice_post_GetTicketType"
,
{},
"ticketcouponsprice_post_GetTicketType"
,
{},
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
TickettTypeList
=
res
.
data
.
data
;
...
...
@@ -924,13 +607,6 @@ export default {
);
},
submitForm
(
addMsg
)
{
//提交创建、修改表单
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
)
=>
{
if
(
valid
)
{
...
...
@@ -947,38 +623,48 @@ export default {
TicketName
:
""
,
TicketDesc
:
""
,
TicketCouponsType
:
""
,
IsShelves
:
0
,
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
:
""
}],
//其他信息
IsShelves
:
0
,
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
;
},
closeChangeMachie
(
done
)
{
//弹出框关闭初始化弹框内表单
done
();
this
.
resetForm
(
"addMsg"
);
this
.
addMsg
.
CouponsId
=
parseInt
(
this
.
$route
.
query
.
id
);
},
resetForm
(
formName
)
{
this
.
clearMsg
();
this
.
$refs
[
formName
].
resetFields
(
);
this
.
addMsg
.
CouponsId
=
parseInt
(
this
.
$route
.
query
.
id
);
},
//获取所有币种
getAllCurrency
()
{
this
.
apipost
(
"financeinfo_post_GetList"
,
{},
"financeinfo_post_GetList"
,
{},
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
allCurrencyList
=
res
.
data
.
data
;
...
...
@@ -1006,8 +692,8 @@ export default {
this
.
addMsg
[
field
].
push
(
obj
);
},
//删除门票信息
delTicketInfo
(
index
,
field
)
{
this
.
addMsg
[
field
].
splice
(
index
,
1
);
delTicketInfo
(
index
,
field
)
{
this
.
addMsg
[
field
].
splice
(
index
,
1
);
},
},
mounted
()
{
...
...
@@ -1019,5 +705,6 @@ export default {
this
.
getList
();
this
.
GetTicketType
();
},
};
};
</
script
>
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