Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
SuperMan
Commits
70774bf8
Commit
70774bf8
authored
Mar 14, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
e819344a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
89 additions
and
15 deletions
+89
-15
AuthCode.js
src/assets/utils/AuthCode.js
+8
-1
TravelControlList.vue
...components/TravelManager/TravelList/TravelControlList.vue
+81
-14
No files found.
src/assets/utils/AuthCode.js
View file @
70774bf8
...
@@ -18,6 +18,13 @@ var AuthCode = {
...
@@ -18,6 +18,13 @@ var AuthCode = {
F_PayMoney_CapitalPool
:
'F_PayMoney_CapitalPool'
,
//账户类型
F_PayMoney_CapitalPool
:
'F_PayMoney_CapitalPool'
,
//账户类型
S_Travel_Share
:
'S_Travel_Share'
,
//广告分享
S_Travel_Share
:
'S_Travel_Share'
,
//广告分享
A_AppMenu_Allot
:
'A_AppMenu_Allot'
,
//APP菜单分配
A_AppMenu_Allot
:
'A_AppMenu_Allot'
,
//APP菜单分配
TeamShouZhi
:
"TeamShouZhi"
,
//团队收支明细权限
OutHotel
:
"OutHotel"
,
//酒店下架权限
FenXiaoLianYun
:
"FenXiaoLianYun"
,
//分销联运
ShangChuanFenFangbiao
:
"ShangChuanFenFangbiao"
,
//上传分房表
ChaKanGuest
:
"ChaKanGuest"
,
//查看旅客调查
FenFangBiaoXiaZai
:
"FenFangBiaoXiaZai"
,
//分房表下载
LookOPCommission
:
"LookOPCommission"
,
//查看OP提成
IsSanKeTicket
:
"IsSanKeTicket"
,
//是否有散客票权限
};
};
export
default
AuthCode
;
export
default
AuthCode
;
\ No newline at end of file
src/components/TravelManager/TravelList/TravelControlList.vue
View file @
70774bf8
...
@@ -732,7 +732,7 @@
...
@@ -732,7 +732,7 @@
{{item.TicketNum}}
</span>
{{item.TicketNum}}
</span>
</el-popover>
</el-popover>
</div>
</div>
<div
class=
"TC_SeatList"
>
<div
class=
"TC_SeatList"
v-if=
"CurrentUserInfo.RB_Group_id==2||IsSanKeTicket"
>
<
template
v-if=
"item.CanSellTicketNum>0"
>
<
template
v-if=
"item.CanSellTicketNum>0"
>
<span
style=
"color:rgb(71, 191, 140)"
>
可售散客机票
<span
style=
"color:rgb(71, 191, 140)"
>
可售散客机票
<span
style=
"color:red;font-size:14px;font-weight:700;"
>
{{
item
.
CanSellTicketNum
}}
</span>
张
<span
style=
"color:red;font-size:14px;font-weight:700;"
>
{{
item
.
CanSellTicketNum
}}
</span>
张
...
@@ -922,7 +922,7 @@
...
@@ -922,7 +922,7 @@
</el-dropdown-item>
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown-menu>
</el-dropdown>
</el-dropdown>
<el-button
@
click=
'goUrlMake("GroupAdvertising",item.LineID,item.TCID,"团期广告")'
type=
"primary"
<el-button
v-if=
"CurrentUserInfo.RB_Group_id==2"
@
click=
'goUrlMake("GroupAdvertising",item.LineID,item.TCID,"团期广告")'
type=
"primary"
style=
"background:#67c23a; border-color:#67c23a"
>
style=
"background:#67c23a; border-color:#67c23a"
>
{{$t('Operation.Op_advertising')}}
{{item.AdvertCount}}
{{$t('Operation.Op_advertising')}}
{{item.AdvertCount}}
</el-button>
</el-button>
...
@@ -935,14 +935,14 @@
...
@@ -935,14 +935,14 @@
</span>
</span>
<el-dropdown-menu
slot=
"dropdown"
class=
"TC-dropdown"
>
<el-dropdown-menu
slot=
"dropdown"
class=
"TC-dropdown"
>
<el-dropdown-item
@
click
.
native=
"SetGroupRecommendType(item,1)"
<el-dropdown-item
@
click
.
native=
"SetGroupRecommendType(item,1)"
v-if=
"item.b2b&&item.GroupRecommendType==0"
>
v-if=
"item.b2b&&item.GroupRecommendType==0
&&CurrentUserInfo.RB_Group_id==2
"
>
{{$t('op.Setjingpin')}}
{{$t('op.Setjingpin')}}
</el-dropdown-item>
</el-dropdown-item>
<el-dropdown-item
@
click
.
native=
"SetGroupRecommendType(item,0)"
<el-dropdown-item
@
click
.
native=
"SetGroupRecommendType(item,0)"
v-if=
"item.b2b&&item.GroupRecommendType==1"
>
v-if=
"item.b2b&&item.GroupRecommendType==1
&&CurrentUserInfo.RB_Group_id==2
"
>
{{$t('op.CancelSetjp')}}
{{$t('op.CancelSetjp')}}
</el-dropdown-item>
</el-dropdown-item>
<el-dropdown-item
@
click
.
native=
"goTeamBalance(item.TCID,item.OutBranchId)"
>
<el-dropdown-item
v-if=
"CurrentUserInfo.RB_Group_id==2||TeamShouZhi"
@
click
.
native=
"goTeamBalance(item.TCID,item.OutBranchId)"
>
{{$t('Operation.Op_shouzhiDetail')}}
{{$t('Operation.Op_shouzhiDetail')}}
</el-dropdown-item>
</el-dropdown-item>
<el-dropdown-item
@
click
.
native=
"goUrlR('confirmationOrderDownLoad',item)"
>
<el-dropdown-item
@
click
.
native=
"goUrlR('confirmationOrderDownLoad',item)"
>
...
@@ -956,7 +956,7 @@
...
@@ -956,7 +956,7 @@
{{$t('Operation.Op_xiajia')}}
{{$t('Operation.Op_xiajia')}}
</el-dropdown-item>
</el-dropdown-item>
<!--酒店下架-->
<!--酒店下架-->
<el-dropdown-item
v-if=
"item.LineID==14"
@
click
.
native=
"RemoveHotelJourneyOrder(item.TCID)"
>
<el-dropdown-item
v-if=
"item.LineID==14
&&(CurrentUserInfo.RB_Group_id==2||OutHotel)
"
@
click
.
native=
"RemoveHotelJourneyOrder(item.TCID)"
>
{{$t('op.HotelXJ')}}
{{$t('op.HotelXJ')}}
</el-dropdown-item>
</el-dropdown-item>
<el-dropdown-item
v-if=
"item.Status==1"
@
click
.
native=
"OutGroup(item.TCID,2)"
>
<el-dropdown-item
v-if=
"item.Status==1"
@
click
.
native=
"OutGroup(item.TCID,2)"
>
...
@@ -977,25 +977,25 @@
...
@@ -977,25 +977,25 @@
直客版预览
直客版预览
</el-dropdown-item>
</el-dropdown-item>
<el-dropdown-item
@
click
.
native=
'goUrl("DistributionTransport",item.ID,"分销联运")'
>
<el-dropdown-item
v-if=
"CurrentUserInfo.RB_Group_id==2||FenXiaoLianYun"
@
click
.
native=
'goUrl("DistributionTransport",item.ID,"分销联运")'
>
{{$t('Operation.Op_salelianyun')}}
{{$t('Operation.Op_salelianyun')}}
</el-dropdown-item>
</el-dropdown-item>
<el-dropdown-item
@
click
.
native=
'ckSellPoint(item)'
>
{{$t('Operation.Op_bentuanMaidian')}}
<el-dropdown-item
@
click
.
native=
'ckSellPoint(item)'
>
{{$t('Operation.Op_bentuanMaidian')}}
</el-dropdown-item>
</el-dropdown-item>
<el-dropdown-item
@
click
.
native=
'ShowUploadWord(item,1)'
>
{{$t('Operation.Op_wordTrip')}}
<el-dropdown-item
v-if=
"CurrentUserInfo.RB_Group_id==2||ShangChuanFenFangbiao"
@
click
.
native=
'ShowUploadWord(item,1)'
>
{{$t('Operation.Op_wordTrip')}}
</el-dropdown-item>
</el-dropdown-item>
<el-dropdown-item
@
click
.
native=
'ShowUploadWord(item,2)'
>
{{$t('op.UploadFFB')}}
<el-dropdown-item
v-if=
"CurrentUserInfo.RB_Group_id==2||ShangChuanFenFangbiao"
@
click
.
native=
'ShowUploadWord(item,2)'
>
{{$t('op.UploadFFB')}}
</el-dropdown-item>
</el-dropdown-item>
<el-dropdown-item>
<el-dropdown-item
v-if=
"CurrentUserInfo.RB_Group_id==2||ChaKanGuest"
>
<div
v-if=
"item.ScoreNum >= 0"
@
click=
'goInvetig("investigationList", item.TCID, 0)'
>
<div
v-if=
"item.ScoreNum >= 0"
@
click=
'goInvetig("investigationList", item.TCID, 0)'
>
{{$t('op.LookPassengerSurvey')}}
{{$t('op.LookPassengerSurvey')}}
</div>
</div>
</el-dropdown-item>
</el-dropdown-item>
<el-dropdown-item>
<el-dropdown-item
v-if=
"CurrentUserInfo.RB_Group_id==2||FenFangBiaoXiaZai"
>
<div
@
click=
'exportExcel_singleRoom(item)'
>
{{$t('op.FFBDowmLoad')}}
</div>
<div
@
click=
'exportExcel_singleRoom(item)'
>
{{$t('op.FFBDowmLoad')}}
</div>
</el-dropdown-item>
</el-dropdown-item>
<el-dropdown-item>
<el-dropdown-item
v-if=
"CurrentUserInfo.RB_Group_id==2||LookOPCommission"
>
<div
@
click=
'goOPCommissionInfo(item.TCID)'
>
查看OP提成
</div>
<div
@
click=
'goOPCommissionInfo(item.TCID)'
>
查看OP提成
</div>
</el-dropdown-item>
</el-dropdown-item>
<el-dropdown-item
v-if=
"item.IsSetOut==0"
>
<el-dropdown-item
v-if=
"item.IsSetOut==0"
>
...
@@ -1125,6 +1125,14 @@
...
@@ -1125,6 +1125,14 @@
},
},
data
()
{
data
()
{
return
{
return
{
TeamShouZhi
:
false
,
//团队收支明细权限
OutHotel
:
false
,
//酒店下架权限
FenXiaoLianYun
:
false
,
//分销联运
ShangChuanFenFangbiao
:
false
,
//上传分房表
ChaKanGuest
:
false
,
//查看旅客调查
FenFangBiaoXiaZai
:
false
,
//分房表下载
LookOPCommission
:
false
,
//查看OP提成
IsSanKeTicket
:
false
,
//是否有散客票权限
//查询数据列表
//查询数据列表
queryCommonData
:
{
queryCommonData
:
{
//线路列表
//线路列表
...
@@ -2298,6 +2306,64 @@
...
@@ -2298,6 +2306,64 @@
}
}
});
});
},
},
//权限验证
checkAuth
()
{
var
actionCode
=
this
.
$AuthCode
.
TeamShouZhi
;
this
.
CheckUserAuth
(
actionCode
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
&&
res
.
data
.
data
==
1
)
{
this
.
TeamShouZhi
=
true
;
}
});
//酒店下架
var
OutHotel_Code
=
this
.
$AuthCode
.
OutHotel
;
this
.
CheckUserAuth
(
OutHotel_Code
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
&&
res
.
data
.
data
==
1
)
{
this
.
OutHotel
=
true
;
}
});
//分销联运
var
FenXiaoLianYun_Code
=
this
.
$AuthCode
.
FenXiaoLianYun
;
this
.
CheckUserAuth
(
FenXiaoLianYun_Code
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
&&
res
.
data
.
data
==
1
)
{
this
.
FenXiaoLianYun
=
true
;
}
});
//上传分房表
var
ShangChuanFenFangbiao_Code
=
this
.
$AuthCode
.
ShangChuanFenFangbiao
;
this
.
CheckUserAuth
(
ShangChuanFenFangbiao_Code
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
&&
res
.
data
.
data
==
1
)
{
this
.
ShangChuanFenFangbiao
=
true
;
}
});
//查看旅客调查
var
ChaKanGuest_Code
=
this
.
$AuthCode
.
ChaKanGuest
;
this
.
CheckUserAuth
(
ChaKanGuest_Code
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
&&
res
.
data
.
data
==
1
)
{
this
.
ChaKanGuest
=
true
;
}
});
//分房表下载
var
FenFangBiaoXiaZai_Code
=
this
.
$AuthCode
.
FenFangBiaoXiaZai
;
this
.
CheckUserAuth
(
FenFangBiaoXiaZai_Code
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
&&
res
.
data
.
data
==
1
)
{
this
.
FenFangBiaoXiaZai
=
true
;
}
});
//查看OP提成
var
LookOPCommission_Code
=
this
.
$AuthCode
.
LookOPCommission
;
this
.
CheckUserAuth
(
LookOPCommission_Code
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
&&
res
.
data
.
data
==
1
)
{
this
.
LookOPCommission
=
true
;
}
});
//是否有散客票权限
var
IsSanKeTicket_Code
=
this
.
$AuthCode
.
IsSanKeTicket
;
this
.
CheckUserAuth
(
IsSanKeTicket_Code
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
&&
res
.
data
.
data
==
1
)
{
this
.
IsSanKeTicket
=
true
;
}
});
},
},
},
filters
:
{
filters
:
{
formatStartDate
(
value
)
{
formatStartDate
(
value
)
{
...
@@ -2321,6 +2387,7 @@
...
@@ -2321,6 +2387,7 @@
}
}
},
},
mounted
()
{
mounted
()
{
this
.
checkAuth
();
//销售公司
//销售公司
this
.
getSellorCompany
();
this
.
getSellorCompany
();
this
.
getCompanyList
();
this
.
getCompanyList
();
...
@@ -2328,7 +2395,7 @@
...
@@ -2328,7 +2395,7 @@
this
.
getAirlineList
();
this
.
getAirlineList
();
this
.
getEmployeeList
();
this
.
getEmployeeList
();
this
.
getCountryCity
();
this
.
getCountryCity
();
this
.
IsModifyTravelControl
=
0
;
this
.
IsModifyTravelControl
=
0
;
if
(
if
(
this
.
CurrentUserInfo
.
RB_Branch_id
==
0
||
this
.
CurrentUserInfo
.
RB_Branch_id
==
0
||
this
.
CurrentUserInfo
.
RB_Branch_id
==
1216
||
this
.
CurrentUserInfo
.
RB_Branch_id
==
1216
||
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment