Commit 6880a078 authored by 黄媛媛's avatar 黄媛媛
parents 99454e2a 583e7813
...@@ -4,5 +4,10 @@ ...@@ -4,5 +4,10 @@
var AuthCode = { var AuthCode = {
EidtCoupon:"IsEidtCoupon",//优惠券修改权限 EidtCoupon:"IsEidtCoupon",//优惠券修改权限
LeaderAudit:'IsLeaderAudit', //领队报账审核权限
EditOrderCreateBy:"EditOrderCreateBy",//修改业务员
EditRoomDinnerTIcket:"EditRoomDinnerTIcket",//房餐景点修改权限
EditQuotation:"EditQuotation",//报价单修改权限
}; };
export default AuthCode; export default AuthCode;
\ No newline at end of file
...@@ -64,14 +64,13 @@ ...@@ -64,14 +64,13 @@
export default { export default {
data() { data() {
return { return {
Year: new Date().getFullYear(), Year: new Date().getFullYear(),
Month: new Date().getMonth() + 1, Month: new Date().getMonth() + 1,
date: new Date().getDate(), date: new Date().getDate(),
IsInter:-1,//月统计[0-国内,1-国际] IsInter: -1, //月统计[0-国内,1-国际]
YearS: new Date().getFullYear(), YearS: new Date().getFullYear(),
MonthS: '', MonthS: '',
IsInters:-1,//年统计[0-国内,1-国际] IsInters: -1, //年统计[0-国内,1-国际]
clientHeight: '', clientHeight: '',
yearList: [], yearList: [],
MonthList: [], MonthList: [],
...@@ -266,7 +265,7 @@ ...@@ -266,7 +265,7 @@
let msg = { let msg = {
Year: this.YearS, Year: this.YearS,
Month: '', Month: '',
IsInter:this.IsInters IsInter: this.IsInters
} }
this.apipost('Domestic_Ticket_post_GetProfitList', msg, r => { this.apipost('Domestic_Ticket_post_GetProfitList', msg, r => {
if (r.data.resultCode == 1) { if (r.data.resultCode == 1) {
......
...@@ -146,7 +146,7 @@ ...@@ -146,7 +146,7 @@
<th>航班</th> <th>航班</th>
<th>航段</th> <th>航段</th>
</tr> </tr>
<tr v-for="(i,d) in item.FlightList"> <tr v-for="(i,d) in item.FlightList" :key="d">
<td>{{i.AirlineName}}</td> <td>{{i.AirlineName}}</td>
<td>{{i.FlightNo}}</td> <td>{{i.FlightNo}}</td>
<td>{{i.Leg}}</td> <td>{{i.Leg}}</td>
...@@ -337,4 +337,5 @@ ...@@ -337,4 +337,5 @@
}, },
} }
} }
</script> </script>
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
<th>操作人</th> <th>操作人</th>
<th>操作</th> <th>操作</th>
</tr> </tr>
<tr v-for="(item,index) in dataList"> <tr v-for="(item,index) in dataList" :key="index">
<td>{{item.IsInter==0?"国内机票":"国际机票"}}</td> <td>{{item.IsInter==0?"国内机票":"国际机票"}}</td>
<td>{{item.Term}}</td> <td>{{item.Term}}</td>
<td>¥{{item.Money}}</td> <td>¥{{item.Money}}</td>
...@@ -91,7 +91,6 @@ ...@@ -91,7 +91,6 @@
<span>{{item.PayMoney}}</span> <span>{{item.PayMoney}}</span>
</td> </td>
<td :class="Math.abs(item.Money-item.InCome)>0?'_color_red':''"> <td :class="Math.abs(item.Money-item.InCome)>0?'_color_red':''">
<!-- ¥{{Math.abs(item.Money-item.InCome)}} -->
<span v-if="item.Money > item.InCome">{{(item.Money- item.InCome).toFixed(2)}}</span> <span v-if="item.Money > item.InCome">{{(item.Money- item.InCome).toFixed(2)}}</span>
<span v-else>0</span> <span v-else>0</span>
</td> </td>
......
...@@ -216,7 +216,7 @@ ...@@ -216,7 +216,7 @@
<th width="80">{{$t('Operation.Op_platZaitu')}}</th> <th width="80">{{$t('Operation.Op_platZaitu')}}</th>
<th width="80">{{$t('Operation.Op_daishou')}}</th> <th width="80">{{$t('Operation.Op_daishou')}}</th>
<th width="60">{{$t('admin.admin_status')}}</th> <th width="60">{{$t('admin.admin_status')}}</th>
<th v-if="isEditOrderCreate==1 || userId==1" width="140">{{$t('admin.admin_operate')}}</th> <th v-if="isEditOrderCreate==1" width="140">{{$t('admin.admin_operate')}}</th>
</tr> </tr>
<tr> <tr>
<td v-show="list.length==0" colspan="15" align="center">{{$t('system.content_noData')}}</td> <td v-show="list.length==0" colspan="15" align="center">{{$t('system.content_noData')}}</td>
...@@ -364,12 +364,12 @@ ...@@ -364,12 +364,12 @@
<td><span :class="{color_red_order:item.dueInMoney!==item.preferPrice}">{{item.dueInMoney}}</span></td> <td><span :class="{color_red_order:item.dueInMoney!==item.preferPrice}">{{item.dueInMoney}}</span></td>
<td v-if="item.isChargeLossOrders==1" class="fz12" style="color: #e95252">{{$t('fnc.shousun')}}</td> <td v-if="item.isChargeLossOrders==1" class="fz12" style="color: #e95252">{{$t('fnc.shousun')}}</td>
<td v-else class="fz12" :style="item.orderState===3?'color: #e95252;':''">{{item.statsstr}}</td> <td v-else class="fz12" :style="item.orderState===3?'color: #e95252;':''">{{item.statsstr}}</td>
<td v-if="isEditOrderCreate==1||userId==1"> <td v-if="isEditOrderCreate==1">
<button class="normalBtn" style="margin-left:0;width:95px;padding:0" @click="getSalerInfo(item)">{{$t('salesModule.UpdateYWY')}}</button> <button class="normalBtn" style="margin-left:0;width:95px;padding:0" @click="getSalerInfo(item)">{{$t('salesModule.UpdateYWY')}}</button>
</td> </td>
</tr> </tr>
<tr style="height:20px"> <tr style="height:20px">
<td :colspan="isEditOrderCreate==1||userId==1 ?17:16" class="RL_Order" style="height:20px"> <td :colspan="isEditOrderCreate==1 ?17:16" class="RL_Order" style="height:20px">
<span style="font-size: 14px;color: #333333">{{$t('salesModule.MD')}}:</span> <span style="font-size: 14px;color: #333333">{{$t('salesModule.MD')}}:</span>
<span v-for="(childItem) in item.guestList" style="font-size: 14px;color: blue">{{childItem.userName}}&nbsp;&nbsp;</span> <span v-for="(childItem) in item.guestList" style="font-size: 14px;color: blue">{{childItem.userName}}&nbsp;&nbsp;</span>
<p v-if="item.cancelGuestList && item.cancelGuestList.length>0"> <p v-if="item.cancelGuestList && item.cancelGuestList.length>0">
...@@ -867,12 +867,12 @@ ...@@ -867,12 +867,12 @@
}, },
// 获取修改业务员权限 // 获取修改业务员权限
GetEditOrderCreateByAuth() { GetEditOrderCreateByAuth() {
this.apipost('sellorder_get_GetEditOrderCreateByAuth', {}, res => { var actionCode = this.$AuthCode.EditOrderCreateBy;
if (res.data.resultCode == 1) { this.CheckUserAuth(actionCode, res => {
this.isEditOrderCreate=res.data.data; if (res.data.resultCode == 1 && res.data.data == 1) {
this.isEditOrderCreate = 1;
} }
}, err => {}) });
}, },
}, },
created(){ created(){
......
...@@ -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;
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -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;
......
This diff is collapsed.
This diff is collapsed.
...@@ -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>
......
This diff is collapsed.
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