Commit 6da752d1 authored by 黄奎's avatar 黄奎

页面权限修改

parent c32eb5f7
...@@ -6,5 +6,8 @@ var AuthCode = { ...@@ -6,5 +6,8 @@ var AuthCode = {
EidtCoupon:"IsEidtCoupon",//优惠券修改权限 EidtCoupon:"IsEidtCoupon",//优惠券修改权限
LeaderAudit:'IsLeaderAudit', //领队报账审核权限 LeaderAudit:'IsLeaderAudit', //领队报账审核权限
EditOrderCreateBy:"EditOrderCreateBy",//修改业务员 EditOrderCreateBy:"EditOrderCreateBy",//修改业务员
EditRoomDinnerTIcket:"EditRoomDinnerTIcket",//房餐景点修改权限
EditQuotation:"EditQuotation",//报价单修改权限
}; };
export default AuthCode; export default AuthCode;
\ No newline at end of file
...@@ -310,10 +310,7 @@ ...@@ -310,10 +310,7 @@
this.IsOperation = res.data.data.IsOperation; this.IsOperation = res.data.data.IsOperation;
this.IsEditHotel = res.data.data.IsEditHotel; this.IsEditHotel = res.data.data.IsEditHotel;
this.IsEditHotelPeople = res.data.data.IsEditHotelPeople; this.IsEditHotelPeople = res.data.data.IsEditHotelPeople;
if (this.CurrentUserInfo.EmployeeId == 615||this.CurrentUserInfo.EmployeeId==46) {
this.IsEditHotel = 1;
this.IsEditHotelPeople = 1;
}
let list = res.data.data.HotelOrderListReport; let list = res.data.data.HotelOrderListReport;
this.CreateBy = res.data.data.CreateBy; this.CreateBy = res.data.data.CreateBy;
this.CreateByPhoto = res.data.data.CreateByPhoto; this.CreateByPhoto = res.data.data.CreateByPhoto;
...@@ -431,7 +428,7 @@ ...@@ -431,7 +428,7 @@
var str=""; var str="";
this.list.forEach(item => { this.list.forEach(item => {
item.HotelOrderList.forEach(subItem => { item.HotelOrderList.forEach(subItem => {
if(isUpload&&subItem.PayStyle==1&&subItem.ContractUrl==''&&this.CurrentUserInfo.EmployeeId!=615){ if(isUpload&&subItem.PayStyle==1&&subItem.ContractUrl==''){
str+=`请上传${item.UseTimeStr}的手配书` str+=`请上传${item.UseTimeStr}的手配书`
isUpload=false; isUpload=false;
} }
...@@ -486,7 +483,7 @@ ...@@ -486,7 +483,7 @@
var str=""; var str="";
this.list.forEach(item => { this.list.forEach(item => {
item.HotelOrderList.forEach(subItem => { item.HotelOrderList.forEach(subItem => {
if(isUpload&&subItem.PayStyle==1&&subItem.ContractUrl==''&&this.CurrentUserInfo.EmployeeId!=615){ if(isUpload&&subItem.PayStyle==1&&subItem.ContractUrl==''){
str+=`请上传${item.UseTimeStr}的手配书` str+=`请上传${item.UseTimeStr}的手配书`
isUpload=false; isUpload=false;
} }
......
...@@ -37,8 +37,8 @@ ...@@ -37,8 +37,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&&(CurrentUserInfo.EmployeeId==615||CurrentUserInfo.EmployeeId==46)" type="button" <input v-if="IsOperation==1&& EditBtn" type="button" class="fr normalBtn mb30" :value="$t('pub.saveBtn')"
class="fr normalBtn mb30" :value="$t('pub.saveBtn')" @click="saveList(1)" /> @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>
...@@ -123,7 +123,7 @@ ...@@ -123,7 +123,7 @@
</tr> </tr>
</table> </table>
<el-button slot="reference" style="background:#E95252; border-color:#E95252;" type="primary" <el-button slot="reference" style="background:#E95252; border-color:#E95252;" type="primary"
v-if="CurrentUserInfo.EmployeeId == 615" @click="IsShowMoreUpdate=true"> v-if="EditBtn" @click="IsShowMoreUpdate=true">
批量修改酒店 批量修改酒店
</el-button> </el-button>
</el-popover> </el-popover>
...@@ -306,7 +306,7 @@ ...@@ -306,7 +306,7 @@
<!-- 单价/每人 --> <!-- 单价/每人 -->
<td> <td>
<template v-if="childIndex==1"> <template v-if="childIndex==1">
<template v-if="CurrentUserInfo.EmployeeId == 615||CurrentUserInfo.EmployeeId==46"> <template v-if="EditBtn">
<el-input @keyup.native="checkInteger(childItem,'UnitPrice')" class='w60 tcenter' <el-input @keyup.native="checkInteger(childItem,'UnitPrice')" class='w60 tcenter'
@input="calculationPrice(subItem)" v-model='childItem.UnitPrice'></el-input> @input="calculationPrice(subItem)" v-model='childItem.UnitPrice'></el-input>
</template> </template>
...@@ -529,7 +529,7 @@ ...@@ -529,7 +529,7 @@
</el-select> </el-select>
</td> </td>
</tr> </tr>
<tr > <tr>
<td colspan="2" style="height:5px;"> <td colspan="2" style="height:5px;">
</td> </td>
</tr> </tr>
...@@ -548,7 +548,7 @@ ...@@ -548,7 +548,7 @@
</span> </span>
</td> </td>
</tr> </tr>
<tr v-if="CurrentUserInfo.EmployeeId == 615"> <tr v-if="EditBtn">
<td width="70" style="text-align:right;">{{$t('ground.shifoutbgxfj')}}:</td> <td width="70" style="text-align:right;">{{$t('ground.shifoutbgxfj')}}:</td>
<td> <td>
<el-select class='w135 sel' v-model='subItem.IsSyncHotelCount'> <el-select class='w135 sel' v-model='subItem.IsSyncHotelCount'>
...@@ -603,6 +603,7 @@ ...@@ -603,6 +603,7 @@
export default { export default {
data() { data() {
return { return {
EditBtn: false, //房餐景点修改权限
//当前登录用户 //当前登录用户
CurrentUserInfo: {}, CurrentUserInfo: {},
defaultSelectValue: 0, defaultSelectValue: 0,
...@@ -935,12 +936,13 @@ ...@@ -935,12 +936,13 @@
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.IsOperation = res.data.data.IsOperation; this.IsOperation = res.data.data.IsOperation;
if (this.IsEditHotel == 0) {
this.IsEditHotel = res.data.data.IsEditHotel; this.IsEditHotel = res.data.data.IsEditHotel;
}
if (this.IsEditHotelPeople == 0) {
this.IsEditHotelPeople = res.data.data.IsEditHotelPeople; this.IsEditHotelPeople = res.data.data.IsEditHotelPeople;
if (this.CurrentUserInfo.EmployeeId == 615 || this.CurrentUserInfo.EmployeeId == 46) {
this.IsEditHotel = 1;
this.IsEditHotelPeople = 1;
} }
let list = res.data.data.HotelOrderListReport; let list = res.data.data.HotelOrderListReport;
this.CreateBy = res.data.data.CreateBy; this.CreateBy = res.data.data.CreateBy;
this.CreateByPhoto = res.data.data.CreateByPhoto; this.CreateByPhoto = res.data.data.CreateByPhoto;
...@@ -1058,8 +1060,7 @@ ...@@ -1058,8 +1060,7 @@
var str = ""; var str = "";
this.list.forEach(item => { this.list.forEach(item => {
item.HotelOrderList.forEach(subItem => { item.HotelOrderList.forEach(subItem => {
if (isUpload && subItem.PayStyle == 1 && subItem.ContractUrl == '' && this.CurrentUserInfo if (isUpload && subItem.PayStyle == 1 && subItem.ContractUrl == '' && !EditBtn) {
.EmployeeId != 615) {
str += `请上传${item.UseTimeStr}的手配书` str += `请上传${item.UseTimeStr}的手配书`
isUpload = false; isUpload = false;
} }
...@@ -1114,8 +1115,7 @@ ...@@ -1114,8 +1115,7 @@
var str = ""; var str = "";
this.list.forEach(item => { this.list.forEach(item => {
item.HotelOrderList.forEach(subItem => { item.HotelOrderList.forEach(subItem => {
if (isUpload && subItem.PayStyle == 1 && subItem.ContractUrl == '' && this.CurrentUserInfo if (isUpload && subItem.PayStyle == 1 && subItem.ContractUrl == '' && !EditBtn) {
.EmployeeId != 615) {
str += `请上传${item.UseTimeStr}的手配书` str += `请上传${item.UseTimeStr}的手配书`
isUpload = false; isUpload = false;
} }
...@@ -1193,9 +1193,20 @@ ...@@ -1193,9 +1193,20 @@
this.allCurrencyList = res.data.data; this.allCurrencyList = res.data.data;
} }
}, err => {}); }, err => {});
},
GetAuth() {
var actionCode = this.$AuthCode.EditRoomDinnerTIcket;
this.CheckUserAuth(actionCode, res => {
if (res.data.resultCode == 1 && res.data.data == 1) {
this.EditBtn = true;
this.IsEditHotel = 1;
this.IsEditHotelPeople = 1;
} }
});
},
}, },
mounted() { mounted() {
this.GetAuth();
this.getAllCurrency(); this.getAllCurrency();
let userInfo = this.getLocalStorage() let userInfo = this.getLocalStorage()
this.CurrentUserInfo = userInfo; this.CurrentUserInfo = userInfo;
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
</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="CurrentUserInfo.EmployeeId==615" type="button" class="fr normalBtn mb30" :value="$t('pub.saveBtn')" <input v-if="EditBtn" type="button" class="fr normalBtn mb30" :value="$t('pub.saveBtn')"
@click="saveList(1)" /> @click="saveList(1)" />
</template> </template>
</li> </li>
...@@ -230,6 +230,7 @@ ...@@ -230,6 +230,7 @@
export default { export default {
data() { data() {
return { return {
EditBtn:false,//房餐景点修改权限
IsEditDinner: 0, //1有权限操作餐配 IsEditDinner: 0, //1有权限操作餐配
defaultSelectValue: 0, defaultSelectValue: 0,
list: [], list: [],
...@@ -470,9 +471,18 @@ ...@@ -470,9 +471,18 @@
this.$message.error(res.data.message); this.$message.error(res.data.message);
} }
}, err => {}) }, err => {})
},
CheckAuth() {
var actionCode = this.$AuthCode.EditRoomDinnerTIcket;
this.CheckUserAuth(actionCode, res => {
if (res.data.resultCode == 1 && res.data.data == 1) {
this.EditBtn = true;
} }
});
},
}, },
mounted() { mounted() {
this.CheckAuth();
this.GetAuth(); this.GetAuth();
let userInfo = this.getLocalStorage(); let userInfo = this.getLocalStorage();
this.CurrentUserInfo = userInfo; this.CurrentUserInfo = userInfo;
......
...@@ -2635,7 +2635,7 @@ ...@@ -2635,7 +2635,7 @@
</td> </td>
<td class="RL-BTNlist" rowspan="2"> <td class="RL-BTNlist" rowspan="2">
<!--恢复订单--> <!--恢复订单-->
<el-button type="primary" v-if="userId==615" style='background:#00C6FF; border-color:#00C6FF' <el-button type="primary" v-if="EditBtn" style='background:#00C6FF; border-color:#00C6FF'
icon="iconfont icon-bianji-smal" @click='RecoverOrder(item)'></el-button> icon="iconfont icon-bianji-smal" @click='RecoverOrder(item)'></el-button>
<el-button-group> <el-button-group>
<el-tooltip class="item" effect="dark" :content="$t('pub.updateMsg')" placement="top-start" <el-tooltip class="item" effect="dark" :content="$t('pub.updateMsg')" placement="top-start"
...@@ -3159,6 +3159,7 @@ ...@@ -3159,6 +3159,7 @@
export default { export default {
data() { data() {
return { return {
EditBtn:false,//恢复订单
//修改订单业务员応 //修改订单业务员応
isEditOrderCreate: 0, isEditOrderCreate: 0,
importFileUrl2: '', importFileUrl2: '',
...@@ -5741,8 +5742,17 @@ ...@@ -5741,8 +5742,17 @@
}) })
}, },
GetAuth() {
var actionCode = this.$AuthCode.EidtCoupon;
this.CheckUserAuth(actionCode, res => {
if (res.data.resultCode == 1 && res.data.data == 1) {
this.EditBtn = true;
}
});
},
}, },
mounted() { mounted() {
this.GetAuth();
this.GetEditOrderCreateByAuth(); this.GetEditOrderCreateByAuth();
let userInfo = this.getLocalStorage(); let userInfo = this.getLocalStorage();
this.RBBranchId = userInfo.RB_Branch_id this.RBBranchId = userInfo.RB_Branch_id
......
...@@ -223,7 +223,7 @@ ...@@ -223,7 +223,7 @@
<i class="iconfont icon-nav-hangzheng"></i> <i class="iconfont icon-nav-hangzheng"></i>
</el-tooltip> </el-tooltip>
</span> </span>
<span v-if="userInfo.EmployeeId==615" class="bianji newAopbdd" <span v-if="EditBtn" class="bianji newAopbdd"
@click="goMakeQuo('QuotationNewPrice',item.ID)"> @click="goMakeQuo('QuotationNewPrice',item.ID)">
<el-tooltip class="item" effect="dark" :content="$t('pub.updateMsg')" placement="top-start" <el-tooltip class="item" effect="dark" :content="$t('pub.updateMsg')" placement="top-start"
popper-class="max-w250"> popper-class="max-w250">
...@@ -325,6 +325,7 @@ ...@@ -325,6 +325,7 @@
export default { export default {
data() { data() {
return { return {
EditBtn:false,//报价单修改权限
userInfo: {}, userInfo: {},
queryData: { queryData: {
LineId: 0, LineId: 0,
...@@ -636,8 +637,17 @@ ...@@ -636,8 +637,17 @@
this.loading = false; this.loading = false;
}); });
}, },
GetAuth() {
var actionCode = this.$AuthCode.EditQuotation;
this.CheckUserAuth(actionCode, res => {
if (res.data.resultCode == 1 && res.data.data == 1) {
this.EditBtn = true;
}
});
},
}, },
mounted() { mounted() {
this.GetAuth();
var routeName = this.$route.name; var routeName = this.$route.name;
if (routeName == 'newQuotation') { if (routeName == 'newQuotation') {
this.queryData.TeamType = 3; this.queryData.TeamType = 3;
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<div class="query-box"> <div class="query-box">
<ul> <ul>
<li> <li>
<input v-if="IsAuth==1 || CurrentUserInfo.EmployeeId==5|| CurrentUserInfo.EmployeeId==615" type="button" class="normalBtn" @click="CreateAirticketCommission()" value="生成提成报表" :disabled="isDisable" /> <input v-if="IsAuth==1" type="button" class="normalBtn" @click="CreateAirticketCommission()" value="生成提成报表" :disabled="isDisable" />
</li> </li>
</ul> </ul>
</div> </div>
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<div class="query-box"> <div class="query-box">
<ul> <ul>
<li> <li>
<input v-if="IsAuth==1 || CurrentUserInfo.EmployeeId==5|| CurrentUserInfo.EmployeeId==615" type="button" class="normalBtn" @click="CreateAirticketCommission()" value="生成提成报表" :disabled="isDisable" /> <input v-if="IsAuth==1" type="button" class="normalBtn" @click="CreateAirticketCommission()" value="生成提成报表" :disabled="isDisable" />
</li> </li>
</ul> </ul>
</div> </div>
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
</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="保存" <input v-if="EditBtn" type="button" class="fr normalBtn mb30" value="保存"
@click="saveList(1)" /> @click="saveList(1)" />
</template> </template>
</li> </li>
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
@input='calculationPrice(subItem)' @keyup.native="checkInteger(childItem,'Discount')"></el-input> @input='calculationPrice(subItem)' @keyup.native="checkInteger(childItem,'Discount')"></el-input>
</td> </td>
<td> <td>
<template v-if="CurrentUserInfo.EmployeeId==615"> <template v-if="EditBtn">
<el-input class='w135' v-model='childItem.PeoplePrice' <el-input class='w135' v-model='childItem.PeoplePrice'
@keyup.native="checkPrice(childItem,'PeoplePrice')" type="text"></el-input> @keyup.native="checkPrice(childItem,'PeoplePrice')" type="text"></el-input>
</template> </template>
...@@ -107,7 +107,7 @@ ...@@ -107,7 +107,7 @@
{{(childItem.UsePeopleNum-childItem.Discount)*childItem.PeoplePrice}} {{(childItem.UsePeopleNum-childItem.Discount)*childItem.PeoplePrice}}
</td> </td>
<td> <td>
<template v-if="CurrentUserInfo.EmployeeId==615"> <template v-if="EditBtn">
<el-input class='w135' v-model='childItem.DiscountPrice' <el-input class='w135' v-model='childItem.DiscountPrice'
@keyup.native="checkPrice(childItem,'DiscountPrice')" type="text"></el-input> @keyup.native="checkPrice(childItem,'DiscountPrice')" type="text"></el-input>
</template> </template>
...@@ -161,6 +161,7 @@ ...@@ -161,6 +161,7 @@
export default { export default {
data() { data() {
return { return {
EditBtn:false,//房餐景点修改权限
defaultSelectValue: 0, defaultSelectValue: 0,
DataList: [], DataList: [],
roomList: [], roomList: [],
...@@ -268,8 +269,17 @@ ...@@ -268,8 +269,17 @@
}, err => {}) }, err => {})
}, },
CheckAuth() {
var actionCode = this.$AuthCode.EditRoomDinnerTIcket;
this.CheckUserAuth(actionCode, res => {
if (res.data.resultCode == 1 && res.data.data == 1) {
this.EditBtn = true;
}
});
},
}, },
mounted() { mounted() {
this.CheckAuth();
let userInfo = this.getLocalStorage(); let userInfo = this.getLocalStorage();
this.CurrentUserInfo = userInfo; this.CurrentUserInfo = userInfo;
this.TCNUM = this.$route.query.TCNUM; this.TCNUM = this.$route.query.TCNUM;
......
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