Commit c6156334 authored by 黄奎's avatar 黄奎

房、餐、车、景点,制单后不能在修改数据

parent bc2d1f60
...@@ -48,8 +48,8 @@ ...@@ -48,8 +48,8 @@
<li> <li>
<input v-if="IsOperation!=1" type="button" class="fr normalBtn mb30" :value="$t('pub.saveBtn')" <input v-if="IsOperation!=1" type="button" class="fr normalBtn mb30" :value="$t('pub.saveBtn')"
@click="saveList(1)" /> @click="saveList(1)" />
<input v-if="IsOperation==1&& EditBtn" type="button" class="fr normalBtn mb30" :value="$t('pub.saveBtn')" <input v-if="IsOperation==1&& EditBtn &&currentUserInfo.EmployeeId==615" type="button"
@click="saveList(1)" /> class="fr normalBtn mb30" :value="$t('pub.saveBtn')" @click="saveList(1)" />
<span v-if="IsOperation==1" style="color:red;font-size:14px;">{{$t('ground.yizhidanbng')}}</span> <span v-if="IsOperation==1" style="color:red;font-size:14px;">{{$t('ground.yizhidanbng')}}</span>
</li> </li>
</ul> </ul>
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
<table border="0" cellspacing="1" cellpadding="0" class="roomReservationsDetailsTalbe"> <table border="0" cellspacing="1" cellpadding="0" class="roomReservationsDetailsTalbe">
<thead> <thead>
<tr> <tr>
<th class="fz14" style="border:none;" > <th class="fz14" style="border:none;">
{{$t('visa.v_teaminfo')}}&nbsp;&nbsp;{{$t('leader.leader_Leader')}}:{{LeaderName}} {{$t('visa.v_teaminfo')}}&nbsp;&nbsp;{{$t('leader.leader_Leader')}}:{{LeaderName}}
&nbsp;&nbsp;{{$t('leader.leader_Guide')}}: {{GuideName}} </th> &nbsp;&nbsp;{{$t('leader.leader_Guide')}}: {{GuideName}} </th>
<th class="fz14" style="border:none;"> <th class="fz14" style="border:none;">
...@@ -556,7 +556,8 @@ ...@@ -556,7 +556,8 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td width="70" style="text-align:right;">{{$t('pub.yes')}}{{$t('pub.no')}}{{$t('fnc.fukuan')}}:</td> <td width="70" style="text-align:right;">{{$t('pub.yes')}}{{$t('pub.no')}}{{$t('fnc.fukuan')}}:
</td>
<td> <td>
<el-select class='w135 sel' v-model='subItem.IsPay' :placeholder="$t('pub.pleaseSel')" <el-select class='w135 sel' v-model='subItem.IsPay' :placeholder="$t('pub.pleaseSel')"
:disabled="IsEditHotel==0?true:false"> :disabled="IsEditHotel==0?true:false">
...@@ -720,7 +721,8 @@ ...@@ -720,7 +721,8 @@
BookNum: 0 BookNum: 0
}, },
], ],
ChooseCountry: "651" ChooseCountry: "651",
currentUserInfo: {},
} }
}, },
components: { components: {
...@@ -784,7 +786,6 @@ ...@@ -784,7 +786,6 @@
childHotelList(ckedObj) { childHotelList(ckedObj) {
//使用时间 //使用时间
var oldData = JSON.parse(JSON.stringify(this.list[this.findex].HotelOrderList[this.childIndex])); var oldData = JSON.parse(JSON.stringify(this.list[this.findex].HotelOrderList[this.childIndex]));
var useTime = oldData.CheckInDateStr; var useTime = oldData.CheckInDateStr;
var hotelId = ckedObj.ID; var hotelId = ckedObj.ID;
var TCID = oldData.TCID; var TCID = oldData.TCID;
...@@ -1255,6 +1256,7 @@ ...@@ -1255,6 +1256,7 @@
}, },
}, },
mounted() { mounted() {
this.currentUserInfo = this.getLocalStorage();
if (this.$route.query.LineId) { if (this.$route.query.LineId) {
this.LineId = this.$route.query.LineId; this.LineId = this.$route.query.LineId;
} }
......
...@@ -4,15 +4,16 @@ ...@@ -4,15 +4,16 @@
<ul> <ul>
<li> <li>
<template v-if="IsOperation != 1"> <template v-if="IsOperation != 1">
<input v-if="IsEditDinner==1" type="button" class="fr normalBtn mb30" :value="$t('pub.saveBtn')" <!--v-if="IsEditDinner==1"-->
@click="saveList(1)" :disabled="IsDisabled" /> <input type="button" class="fr normalBtn mb30" :value="$t('pub.saveBtn')" @click="saveList(1)"
<input v-if="IsEditDinner==0" type="button" class="fr normalBtn mb30" :value="$t('ground.baocuncaogao')" :disabled="IsDisabled" />
@click="saveList(1)" :disabled="IsDisabled" /> <input v-if="IsEditDinner==0" type="button" class="fr normalBtn mb30" style="display:none;"
:value="$t('ground.baocuncaogao')" @click="saveList(1)" :disabled="IsDisabled" />
</template> </template>
<template v-else> <template v-else>
<span style="color:red;font-size:14px;">{{$t('ground.yizhidbnxg')}}!</span> <span style="color:red;font-size:14px;">{{$t('ground.yizhidbnxg')}}!</span>
<input v-if="EditBtn" type="button" class="fr normalBtn mb30" :value="$t('pub.saveBtn')" <input v-if="EditBtn&&currentUserInfo.EmployeeId==615" type="button" class="fr normalBtn mb30"
@click="saveList(1)" /> :value="$t('pub.saveBtn')" @click="saveList(1)" />
</template> </template>
</li> </li>
</ul> </ul>
...@@ -278,6 +279,7 @@ ...@@ -278,6 +279,7 @@
findex: 0, findex: 0,
childIndex: 0, childIndex: 0,
LineId: 0, LineId: 0,
currentUserInfo: {}
}; };
}, },
components: { components: {
...@@ -515,6 +517,7 @@ ...@@ -515,6 +517,7 @@
}, },
}, },
mounted() { mounted() {
this.currentUserInfo = this.getLocalStorage();
this.CheckAuth(); this.CheckAuth();
this.GetAuth(); this.GetAuth();
this.TCNUM = this.$route.query.TCNUM; this.TCNUM = this.$route.query.TCNUM;
......
...@@ -437,10 +437,12 @@ ...@@ -437,10 +437,12 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
<div class="upBtnList"> <div class="upBtnList">
<input v-if="IsEditBus==0" type="button" class="normalBtn" :class="{'disClick':!isSubmit}"
@click="SaveList(1)" :disabled="disButton" :value="$t('ground.baocuncaogao')" /> <input v-if="isShowBtn==0" type="button" class="normalBtn" :class="{'disClick':!isSubmit}"
<input v-if="IsEditBus==1" type="button" class="normalBtn" :class="{'disClick':!isSubmit}"
@click="SaveList(1)" :disabled="disButton" :value="$t('pub.saveBtn')" /> @click="SaveList(1)" :disabled="disButton" :value="$t('pub.saveBtn')" />
<input v-if="isShowBtn==1&&currentUserInfo.EmployeeId==615" type="button" class="normalBtn"
:class="{'disClick':!isSubmit}" @click="SaveList(1)" :disabled="disButton" :value="$t('pub.saveBtn')" />
<span v-if="isShowBtn==1" style="color:red;margin-left:10px;"> <span v-if="isShowBtn==1" style="color:red;margin-left:10px;">
{{$t('ground.xzdanbuneng')}} {{$t('ground.xzdanbuneng')}}
</span> </span>
...@@ -575,6 +577,7 @@ ...@@ -575,6 +577,7 @@
isSubmit: true, isSubmit: true,
isShowBtn: 1, //1禁用高速费,成本费,高速付款方式文本框 isShowBtn: 1, //1禁用高速费,成本费,高速付款方式文本框
IsEditBus: 0, //车辆修改权限 IsEditBus: 0, //车辆修改权限
currentUserInfo: {},
}; };
}, },
methods: { methods: {
...@@ -642,7 +645,6 @@ ...@@ -642,7 +645,6 @@
Id: obj.BusType, Id: obj.BusType,
}, },
response => { response => {
if (response.data.resultCode == 1) { if (response.data.resultCode == 1) {
let busTypeObj = response.data.data; let busTypeObj = response.data.data;
if (busTypeObj) { if (busTypeObj) {
...@@ -672,7 +674,6 @@ ...@@ -672,7 +674,6 @@
}, },
null null
); );
} }
}, },
AddSubItem(item) { AddSubItem(item) {
...@@ -888,6 +889,7 @@ ...@@ -888,6 +889,7 @@
}, },
mounted() { mounted() {
this.currentUserInfo = this.getLocalStorage();
this.GetAuth(); this.GetAuth();
this.GetUseTypeList(); this.GetUseTypeList();
this.GetAirportPickUpList(); this.GetAirportPickUpList();
......
...@@ -4,12 +4,14 @@ ...@@ -4,12 +4,14 @@
<ul> <ul>
<li> <li>
<template v-if="IsOperation !=1"> <template v-if="IsOperation !=1">
<input type="button" class="fr normalBtn mb30" :value="$t('pub.saveBtn')" @click="saveList(1)" :disabled="IsDisabled" /> <input type="button" class="fr normalBtn mb30" :value="$t('pub.saveBtn')" @click="saveList(1)"
<input type="button" class="fr normalBtn mb30" value="保存草稿" @click="saveList(1)" :disabled="IsDisabled" /> :disabled="IsDisabled" />
<!-- <input type="button" class="fr normalBtn mb30" value="保存草稿" @click="saveList(1)" :disabled="IsDisabled" /> -->
</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="EditBtn" type="button" class="fr normalBtn mb30" :value="$t('pub.saveBtn')" @click="saveList(1)" /> <input v-if="EditBtn&&currentUserInfo.EmployeeId==615" type="button" class="fr normalBtn mb30"
:value="$t('pub.saveBtn')" @click="saveList(1)" />
</template> </template>
</li> </li>
</ul> </ul>
...@@ -100,7 +102,8 @@ ...@@ -100,7 +102,8 @@
<td> <td>
<template v-if="EditBtn||LineId==90"> <template v-if="EditBtn||LineId==90">
<el-input class='w135' v-model='childItem.PeoplePrice' <el-input class='w135' v-model='childItem.PeoplePrice'
@keyup.native="checkPrice(childItem,'PeoplePrice')" @input='calculationPrice(subItem)' type="text"></el-input> @keyup.native="checkPrice(childItem,'PeoplePrice')" @input='calculationPrice(subItem)' type="text">
</el-input>
</template> </template>
<template v-else> <template v-else>
<span class="spanlink" v-if='childItem.PeoplePrice==0' <span class="spanlink" v-if='childItem.PeoplePrice==0'
...@@ -116,7 +119,8 @@ ...@@ -116,7 +119,8 @@
<td> <td>
<template v-if="EditBtn||LineId==90"> <template v-if="EditBtn||LineId==90">
<el-input class='w135' v-model='childItem.DiscountPrice' <el-input class='w135' v-model='childItem.DiscountPrice'
@keyup.native="checkPrice(childItem,'DiscountPrice')" @input='calculationPrice(subItem)' type="text"></el-input> @keyup.native="checkPrice(childItem,'DiscountPrice')" @input='calculationPrice(subItem)'
type="text"></el-input>
</template> </template>
<template v-else> <template v-else>
<span class="spanlink" v-if='childItem.DiscountPrice==0' <span class="spanlink" v-if='childItem.DiscountPrice==0'
...@@ -192,6 +196,7 @@ ...@@ -192,6 +196,7 @@
//是否禁用按钮 //是否禁用按钮
IsDisabled: false, IsDisabled: false,
LineId: 0, //线路编号 LineId: 0, //线路编号
currentUserInfo: {}
} }
}, },
methods: { methods: {
...@@ -307,6 +312,7 @@ ...@@ -307,6 +312,7 @@
}, },
}, },
mounted() { mounted() {
this.currentUserInfo = this.getLocalStorage();
this.CheckAuth(); this.CheckAuth();
this.TCNUM = this.$route.query.TCNUM; this.TCNUM = this.$route.query.TCNUM;
this.flightTotal = this.$route.query.flightTotal; this.flightTotal = this.$route.query.flightTotal;
......
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