Commit 1ea0d2e9 authored by 黄奎's avatar 黄奎

景点页面修改

parent 78cdb044
...@@ -9,7 +9,8 @@ ...@@ -9,7 +9,8 @@
</template> </template>
<template v-else> <template v-else>
<span style="color:red;font-size:14px;">已制单,不能在修改!</span> <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> </template>
</li> </li>
</ul> </ul>
...@@ -49,7 +50,9 @@ ...@@ -49,7 +50,9 @@
<table class="scenicTable"> <table class="scenicTable">
<tr> <tr>
<td colspan="2" style="text-align:left;padding-left:8px;"> <td colspan="2" style="text-align:left;padding-left:8px;">
{{subItem.ScenicName}} <span class="spanlink" @click="goUrl('ticketManagement',subItem,'门票管理')">
{{subItem.ScenicName}}
</span>
</td> </td>
</tr> </tr>
<tr> <tr>
...@@ -88,24 +91,31 @@ ...@@ -88,24 +91,31 @@
@input='calculationPrice(subItem)' @keyup.native="checkInteger(childItem,'Discount')"></el-input> @input='calculationPrice(subItem)' @keyup.native="checkInteger(childItem,'Discount')"></el-input>
</td> </td>
<td> <td>
<span class="spanlink" v-if='childItem.PeoplePrice==0' <template v-if="CurrentUserInfo.EmployeeId==615">
@click="goUrl('ticketManagement',subItem,'门票管理')">设置</span> <el-input class='w135' v-model='childItem.PeoplePrice'
<span v-else> @keyup.native="checkPrice(childItem,'PeoplePrice')" type="text"></el-input>
<template v-if="CurrentUserInfo.EmployeeId==615"> </template>
<el-input class='w135' v-model='childItem.PeoplePrice' @keyup.native="checkPrice(childItem,'PeoplePrice')" type="text"></el-input> <template v-else>
</template> <span class="spanlink" v-if='childItem.PeoplePrice==0'
<template v-else> @click="goUrl('ticketManagement',subItem,'门票管理')">设置</span>
{{childItem.PeoplePrice}} <span v-else>
</template> {{childItem.PeoplePrice}}
</span> </span>
</template>
</td> </td>
<td> <td>
{{(childItem.UsePeopleNum-childItem.Discount)*childItem.PeoplePrice}} {{(childItem.UsePeopleNum-childItem.Discount)*childItem.PeoplePrice}}
</td> </td>
<td> <td>
<span class="spanlink" v-if='childItem.DiscountPrice==0' <template v-if="CurrentUserInfo.EmployeeId==615">
@click="goUrl('scenicSpotInfoManage',subItem,'景区列表')">设置</span> <el-input class='w135' v-model='childItem.DiscountPrice'
<span v-if='childItem.DiscountPrice!=0'>{{childItem.DiscountPrice}}%</span> @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>
<td v-if="childIndex==0" :rowspan="3"> <td v-if="childIndex==0" :rowspan="3">
{{subItem.TotalPrice}} {{subItem.TotalPrice}}
...@@ -160,9 +170,9 @@ ...@@ -160,9 +170,9 @@
loading: false, loading: false,
IsOperation: '', IsOperation: '',
//当前登录人信息 //当前登录人信息
CurrentUserInfo:{}, CurrentUserInfo: {},
//是否禁用按钮 //是否禁用按钮
IsDisabled:false, IsDisabled: false,
} }
}, },
methods: { methods: {
...@@ -215,7 +225,7 @@ ...@@ -215,7 +225,7 @@
}, err => {}) }, err => {})
}, },
saveList(type) { saveList(type) {
this.IsDisabled=true; this.IsDisabled = true;
if (type == 0) { if (type == 0) {
this.DataList.forEach(item => { this.DataList.forEach(item => {
item.ScenicStatisticsList.forEach(insideItem => { item.ScenicStatisticsList.forEach(insideItem => {
...@@ -250,9 +260,9 @@ ...@@ -250,9 +260,9 @@
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.$message.success(res.data.message); this.$message.success(res.data.message);
this.getList(); this.getList();
this.IsDisabled=false; this.IsDisabled = false;
} else { } else {
this.IsDisabled=false; this.IsDisabled = false;
this.$message.error(res.data.message); this.$message.error(res.data.message);
} }
}, err => {}) }, err => {})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment