Commit 433a40c3 authored by youjie's avatar youjie

查看订单权限优化

parent 7d88f3cf
......@@ -196,7 +196,7 @@
<th>公司</th>
<th>部门</th>
<th>员工姓名</th>
<th></th>
<th>负责团</th>
<th>额外奖励</th>
<th>总提成</th>
<th>出团公司提成</th>
......
......@@ -353,7 +353,7 @@
clickUrl(row){
let name = ''
if (row.OrderType == 5) {//签证
if (!this.S_CheckBranchOrder && !this.S_CheckAllOrder) {
if (!this.S_CheckBranchOrder || !this.S_CheckAllOrder) {
name = 'VisaProductEditOrder'
} else {
name = 'VisaProductEditOrderOP'
......@@ -362,7 +362,7 @@
name: name,
});
} else if (row.OrderType == 1||row.OrderType == 6) { //跟团 一日游 团签
// if (!this.S_CheckBranchOrder && !this.S_CheckAllOrder) {}
if (!this.S_CheckBranchOrder || !this.S_CheckAllOrder) {
if (row.TravelType == 0) {//正规团
name = 'TravelControlList'
}else if (row.TravelType == 2) {//当地游
......@@ -370,15 +370,15 @@
}else if (row.TravelType == 1) {//小包团
name = 'TravelControlListSale'
}
}
} else if (row.OrderType == 2) { //酒店
if (!this.S_CheckBranchOrder && !this.S_CheckAllOrder) {
if (!this.S_CheckBranchOrder || !this.S_CheckAllOrder) {
name = 'singleProductHotelOrder'
} else {
name = 'singleProductHotelOrderOP'
}
} else if (row.OrderType == 3) { //门票
if (!this.S_CheckBranchOrder && !this.S_CheckAllOrder) {
if (!this.S_CheckBranchOrder || !this.S_CheckAllOrder) {
name = 'SingleticketOrderList'
} else {
name = 'SingleticketOrderListOP'
......@@ -387,7 +387,7 @@
if(row.CarType==''||row.CarType==null){
this.GetAdminCarOrderPageList(row,url,href,data)
}else{
if(!this.S_CheckBranchOrder && !this.S_CheckAllOrder){
if(!this.S_CheckBranchOrder || !this.S_CheckAllOrder){
name = 'CharterOrderList'
}else{
name= 'CharterOrderListOP'
......@@ -435,7 +435,7 @@
if (pageData && pageData.length > 0) {
OrderType = pageData[0].OrderType
}
if (!this.S_CheckBranchOrder && !this.S_CheckAllOrder) {
if (!this.S_CheckBranchOrder || !this.S_CheckAllOrder) {
name = 'CharterOrderList'
} else {
name = 'CharterOrderListOP'
......
......@@ -347,7 +347,7 @@
if (row.OrderType == 1) {
if (!this.S_CheckBranchOrder && !this.S_CheckAllOrder) {
if (!this.S_CheckBranchOrder || !this.S_CheckAllOrder) {
data[0].path = 'myCustomerOrderAllType'
} else {
data[0].path = 'customerOrderAllType'
......@@ -358,7 +358,7 @@
} else {
let name = ''
if (row.OrderType == 6) {
if (!this.S_CheckBranchOrder && !this.S_CheckAllOrder) {
if (!this.S_CheckBranchOrder || !this.S_CheckAllOrder) {
name = 'VisaProductEditOrder'
} else {
name = 'VisaProductEditOrderOP'
......@@ -367,7 +367,7 @@
name: name,
});
} else if (row.OrderType == 2) { //跟团 一日游
if (!this.S_CheckBranchOrder && !this.S_CheckAllOrder) {
if (!this.S_CheckBranchOrder || !this.S_CheckAllOrder) {
if (row.TravelType == 1) {
name = 'groupTourOrder'
} else {
......@@ -377,13 +377,13 @@
name = 'enrollTotal'
}
} else if (row.OrderType == 3) { //酒店
if (!this.S_CheckBranchOrder && !this.S_CheckAllOrder) {
if (!this.S_CheckBranchOrder || !this.S_CheckAllOrder) {
name = 'singleProductHotelOrder'
} else {
name = 'singleProductHotelOrderOP'
}
} else if (row.OrderType == 4) { //门票
if (!this.S_CheckBranchOrder && !this.S_CheckAllOrder) {
if (!this.S_CheckBranchOrder || !this.S_CheckAllOrder) {
name = 'SingleticketOrderList'
} else {
name = 'SingleticketOrderListOP'
......@@ -392,7 +392,7 @@
if(row.CarType==''||row.CarType==null){
this.GetAdminCarOrderPageList(row,url,href,data)
}else{
if(!this.S_CheckBranchOrder && !this.S_CheckAllOrder){
if(!this.S_CheckBranchOrder || !this.S_CheckAllOrder){
name = 'CharterOrderList'
}else{
name= 'CharterOrderListOP'
......@@ -401,7 +401,7 @@
}
} else if (row.OrderType == 7) { //jalan酒店
this.$message.info('jalan酒店暂不支持查看')
// if(!this.S_CheckBranchOrder && !this.S_CheckAllOrder){
// if(!this.S_CheckBranchOrder || !this.S_CheckAllOrder){
// name = 'CharterOrderList'
// }else{
// name = 'CharterOrderListOP'
......@@ -447,7 +447,7 @@
if (pageData && pageData.length > 0) {
OrderType = pageData[0].OrderType
}
if (!this.S_CheckBranchOrder && !this.S_CheckAllOrder) {
if (!this.S_CheckBranchOrder || !this.S_CheckAllOrder) {
name = 'CharterOrderList'
} else {
name = 'CharterOrderListOP'
......
......@@ -248,7 +248,7 @@
if (row.OrderType == 1) {
if (this.pagesTitle == '销售' || (!this.S_CheckBranchOrder && !this.S_CheckAllOrder)) {
if (this.pagesTitle == '销售' || (!this.S_CheckBranchOrder || !this.S_CheckAllOrder)) {
data[0].path = 'myCustomerOrderAllType'
} else {
data[0].path = 'customerOrderAllType'
......@@ -259,7 +259,7 @@
} else {
let name = ''
if (row.OrderType == 6) {
if (this.pagesTitle == '销售' || (!this.S_CheckBranchOrder && !this.S_CheckAllOrder)) {
if (this.pagesTitle == '销售' || (!this.S_CheckBranchOrder || !this.S_CheckAllOrder)) {
name = 'VisaProductEditOrder'
} else {
name = 'VisaProductEditOrderOP'
......@@ -268,7 +268,7 @@
name: name,
});
} else if (row.OrderType == 2) { //跟团 一日游
if (this.pagesTitle == '销售' || (!this.S_CheckBranchOrder && !this.S_CheckAllOrder)) {
if (this.pagesTitle == '销售' || (!this.S_CheckBranchOrder || !this.S_CheckAllOrder)) {
if (row.TravelType == 1) {
name = 'groupTourOrder'
} else {
......@@ -278,13 +278,13 @@
name = 'enrollTotal'
}
} else if (row.OrderType == 3) { //酒店
if (this.pagesTitle == '销售' || (!this.S_CheckBranchOrder && !this.S_CheckAllOrder)) {
if (this.pagesTitle == '销售' || (!this.S_CheckBranchOrder || !this.S_CheckAllOrder)) {
name = 'singleProductHotelOrder'
} else {
name = 'singleProductHotelOrderOP'
}
} else if (row.OrderType == 4) { //门票
if (this.pagesTitle == '销售' || (!this.S_CheckBranchOrder && !this.S_CheckAllOrder)) {
if (this.pagesTitle == '销售' || (!this.S_CheckBranchOrder || !this.S_CheckAllOrder)) {
name = 'SingleticketOrderList'
} else {
name = 'SingleticketOrderListOP'
......@@ -347,7 +347,7 @@
if (pageData && pageData.length > 0) {
OrderType = pageData[0].OrderType
}
if (this.pagesTitle == '销售' || (!this.S_CheckBranchOrder && !this.S_CheckAllOrder)) {
if (this.pagesTitle == '销售' || (!this.S_CheckBranchOrder || !this.S_CheckAllOrder)) {
name = 'CharterOrderList'
} else {
name = 'CharterOrderListOP'
......
......@@ -244,7 +244,7 @@
if (row.OrderType == 1) {
if (this.pagesTitle == '销售' || (!this.S_CheckBranchOrder && !this.S_CheckAllOrder)) {
if (this.pagesTitle == '销售' || (!this.S_CheckBranchOrder || !this.S_CheckAllOrder)) {
data[0].path = 'myCustomerOrderAllType'
} else {
data[0].path = 'customerOrderAllType'
......@@ -255,7 +255,7 @@
} else {
let name = ''
if (row.OrderType == 6) {
if (this.pagesTitle == '销售' || (!this.S_CheckBranchOrder && !this.S_CheckAllOrder)) {
if (this.pagesTitle == '销售' || (!this.S_CheckBranchOrder || !this.S_CheckAllOrder)) {
name = 'VisaProductEditOrder'
} else {
name = 'VisaProductEditOrderOP'
......@@ -264,7 +264,7 @@
name: name,
});
} else if (row.OrderType == 2) { //跟团 一日游
if (this.pagesTitle == '销售' || (!this.S_CheckBranchOrder && !this.S_CheckAllOrder)) {
if (this.pagesTitle == '销售' || (!this.S_CheckBranchOrder || !this.S_CheckAllOrder)) {
if (row.TravelType == 1) {
name = 'groupTourOrder'
} else {
......@@ -274,13 +274,13 @@
name = 'enrollTotal'
}
} else if (row.OrderType == 3) { //酒店
if (this.pagesTitle == '销售' || (!this.S_CheckBranchOrder && !this.S_CheckAllOrder)) {
if (this.pagesTitle == '销售' || (!this.S_CheckBranchOrder || !this.S_CheckAllOrder)) {
name = 'singleProductHotelOrder'
} else {
name = 'singleProductHotelOrderOP'
}
} else if (row.OrderType == 4) { //门票
if (this.pagesTitle == '销售' || (!this.S_CheckBranchOrder && !this.S_CheckAllOrder)) {
if (this.pagesTitle == '销售' || (!this.S_CheckBranchOrder || !this.S_CheckAllOrder)) {
name = 'SingleticketOrderList'
} else {
name = 'SingleticketOrderListOP'
......@@ -343,7 +343,7 @@
if (pageData && pageData.length > 0) {
OrderType = pageData[0].OrderType
}
if (this.pagesTitle == '销售' || (!this.S_CheckBranchOrder && !this.S_CheckAllOrder)) {
if (this.pagesTitle == '销售' || (!this.S_CheckBranchOrder || !this.S_CheckAllOrder)) {
name = 'CharterOrderList'
} else {
name = 'CharterOrderListOP'
......
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