Commit 433a40c3 authored by youjie's avatar youjie

查看订单权限优化

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