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
1ea0d2e9
Commit
1ea0d2e9
authored
Dec 19, 2019
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
景点页面修改
parent
78cdb044
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
20 deletions
+30
-20
admissionStatisticsDetails.vue
src/components/scenicSpot/admissionStatisticsDetails.vue
+30
-20
No files found.
src/components/scenicSpot/admissionStatisticsDetails.vue
View file @
1ea0d2e9
...
...
@@ -9,7 +9,8 @@
</
template
>
<
template
v-else
>
<span
style=
"color:red;font-size:14px;"
>
已制单,不能在修改!
</span>
<input
v-if=
"CurrentUserInfo.EmployeeId == 615"
type=
"button"
class=
"fr normalBtn mb30"
value=
"保存"
@
click=
"saveList(1)"
/>
<input
v-if=
"CurrentUserInfo.EmployeeId == 615"
type=
"button"
class=
"fr normalBtn mb30"
value=
"保存"
@
click=
"saveList(1)"
/>
</
template
>
</li>
</ul>
...
...
@@ -49,7 +50,9 @@
<table
class=
"scenicTable"
>
<tr>
<td
colspan=
"2"
style=
"text-align:left;padding-left:8px;"
>
{{
subItem
.
ScenicName
}}
<span
class=
"spanlink"
@
click=
"goUrl('ticketManagement',subItem,'门票管理')"
>
{{
subItem
.
ScenicName
}}
</span>
</td>
</tr>
<tr>
...
...
@@ -88,24 +91,31 @@
@
input=
'calculationPrice(subItem)'
@
keyup
.
native=
"checkInteger(childItem,'Discount')"
></el-input>
</td>
<td>
<span
class=
"spanlink"
v-if=
'childItem.PeoplePrice==0'
@
click=
"goUrl('ticketManagement',subItem,'门票管理')"
>
设置
</span>
<span
v-else
>
<template
v-if=
"CurrentUserInfo.EmployeeId==615"
>
<el-input
class=
'w135'
v-model=
'childItem.PeoplePrice'
@
keyup
.
native=
"checkPrice(childItem,'PeoplePrice')"
type=
"text"
></el-input>
</
template
>
<
template
v-else
>
{{
childItem
.
PeoplePrice
}}
</
template
>
</span>
<template
v-if=
"CurrentUserInfo.EmployeeId==615"
>
<el-input
class=
'w135'
v-model=
'childItem.PeoplePrice'
@
keyup
.
native=
"checkPrice(childItem,'PeoplePrice')"
type=
"text"
></el-input>
</
template
>
<
template
v-else
>
<span
class=
"spanlink"
v-if=
'childItem.PeoplePrice==0'
@
click=
"goUrl('ticketManagement',subItem,'门票管理')"
>
设置
</span>
<span
v-else
>
{{
childItem
.
PeoplePrice
}}
</span>
</
template
>
</td>
<td>
{{(childItem.UsePeopleNum-childItem.Discount)*childItem.PeoplePrice}}
</td>
<td>
<span
class=
"spanlink"
v-if=
'childItem.DiscountPrice==0'
@
click=
"goUrl('scenicSpotInfoManage',subItem,'景区列表')"
>
设置
</span>
<span
v-if=
'childItem.DiscountPrice!=0'
>
{{childItem.DiscountPrice}}%
</span>
<
template
v-if=
"CurrentUserInfo.EmployeeId==615"
>
<el-input
class=
'w135'
v-model=
'childItem.DiscountPrice'
@
keyup
.
native=
"checkPrice(childItem,'DiscountPrice')"
type=
"text"
></el-input>
</
template
>
<
template
v-else
>
<span
class=
"spanlink"
v-if=
'childItem.DiscountPrice==0'
@
click=
"goUrl('scenicSpotInfoManage',subItem,'景区列表')"
>
设置
</span>
<span
v-if=
'childItem.DiscountPrice!=0'
>
{{
childItem
.
DiscountPrice
}}
%
</span>
</
template
>
</td>
<td
v-if=
"childIndex==0"
:rowspan=
"3"
>
{{subItem.TotalPrice}}
...
...
@@ -160,9 +170,9 @@
loading
:
false
,
IsOperation
:
''
,
//当前登录人信息
CurrentUserInfo
:{},
CurrentUserInfo
:
{},
//是否禁用按钮
IsDisabled
:
false
,
IsDisabled
:
false
,
}
},
methods
:
{
...
...
@@ -215,7 +225,7 @@
},
err
=>
{})
},
saveList
(
type
)
{
this
.
IsDisabled
=
true
;
this
.
IsDisabled
=
true
;
if
(
type
==
0
)
{
this
.
DataList
.
forEach
(
item
=>
{
item
.
ScenicStatisticsList
.
forEach
(
insideItem
=>
{
...
...
@@ -250,9 +260,9 @@
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
$message
.
success
(
res
.
data
.
message
);
this
.
getList
();
this
.
IsDisabled
=
false
;
this
.
IsDisabled
=
false
;
}
else
{
this
.
IsDisabled
=
false
;
this
.
IsDisabled
=
false
;
this
.
$message
.
error
(
res
.
data
.
message
);
}
},
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