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
6da752d1
Commit
6da752d1
authored
Mar 09, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面权限修改
parent
c32eb5f7
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
83 additions
and
32 deletions
+83
-32
AuthCode.js
src/assets/utils/AuthCode.js
+3
-0
HotelContract.vue
src/components/Hotel/HotelContract.vue
+3
-6
roomReservationsDetails.vue
src/components/Hotel/roomReservationsDetails.vue
+28
-17
bookDinnerStatisticsDetails.vue
src/components/Restaurant/bookDinnerStatisticsDetails.vue
+12
-2
RegistrationList.vue
src/components/TravelManager/TravelList/RegistrationList.vue
+11
-1
newQuotation.vue
...ponents/TravelManager/TravelNewQuotation/newQuotation.vue
+11
-1
AirticketCommission.vue
src/components/administrative/AirticketCommission.vue
+1
-1
ViittoCommission.vue
src/components/administrative/ViittoCommission.vue
+1
-1
admissionStatisticsDetails.vue
src/components/scenicSpot/admissionStatisticsDetails.vue
+13
-3
No files found.
src/assets/utils/AuthCode.js
View file @
6da752d1
...
...
@@ -6,5 +6,8 @@ var AuthCode = {
EidtCoupon
:
"IsEidtCoupon"
,
//优惠券修改权限
LeaderAudit
:
'IsLeaderAudit'
,
//领队报账审核权限
EditOrderCreateBy
:
"EditOrderCreateBy"
,
//修改业务员
EditRoomDinnerTIcket
:
"EditRoomDinnerTIcket"
,
//房餐景点修改权限
EditQuotation
:
"EditQuotation"
,
//报价单修改权限
};
export
default
AuthCode
;
\ No newline at end of file
src/components/Hotel/HotelContract.vue
View file @
6da752d1
...
...
@@ -310,10 +310,7 @@
this
.
IsOperation
=
res
.
data
.
data
.
IsOperation
;
this
.
IsEditHotel
=
res
.
data
.
data
.
IsEditHotel
;
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
;
this
.
CreateBy
=
res
.
data
.
data
.
CreateBy
;
this
.
CreateByPhoto
=
res
.
data
.
data
.
CreateByPhoto
;
...
...
@@ -431,7 +428,7 @@
var
str
=
""
;
this
.
list
.
forEach
(
item
=>
{
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
}
的手配书`
isUpload
=
false
;
}
...
...
@@ -486,7 +483,7 @@
var
str
=
""
;
this
.
list
.
forEach
(
item
=>
{
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
}
的手配书`
isUpload
=
false
;
}
...
...
src/components/Hotel/roomReservationsDetails.vue
View file @
6da752d1
...
...
@@ -37,8 +37,8 @@
<li>
<input
v-if=
"IsOperation!=1"
type=
"button"
class=
"fr normalBtn mb30"
:value=
"$t('pub.saveBtn')"
@
click=
"saveList(1)"
/>
<input
v-if=
"IsOperation==1&&
(CurrentUserInfo.EmployeeId==615||CurrentUserInfo.EmployeeId==46)"
type=
"button
"
class=
"fr normalBtn mb30"
:value=
"$t('pub.saveBtn')"
@
click=
"saveList(1)"
/>
<input
v-if=
"IsOperation==1&&
EditBtn"
type=
"button"
class=
"fr normalBtn mb30"
:value=
"$t('pub.saveBtn')
"
@
click=
"saveList(1)"
/>
<span
v-if=
"IsOperation==1"
style=
"color:red;font-size:14px;"
>
{{
$t
(
'ground.yizhidanbng'
)
}}
</span>
</li>
</ul>
...
...
@@ -123,7 +123,7 @@
</tr>
</table>
<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-popover>
...
...
@@ -306,7 +306,7 @@
<!-- 单价/每人 -->
<td>
<
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'
@
input=
"calculationPrice(subItem)"
v-model=
'childItem.UnitPrice'
></el-input>
</
template
>
...
...
@@ -529,11 +529,11 @@
</el-select>
</td>
</tr>
<tr
>
<tr>
<td
colspan=
"2"
style=
"height:5px;"
>
</td>
</tr>
<tr>
<tr>
<td
width=
"70"
style=
"text-align:right;"
>
{{$t('ground.duigysbz')}}:
</td>
<td>
<el-input
type=
'textarea'
class=
'w135'
v-model=
'subItem.Remarks'
></el-input>
...
...
@@ -548,7 +548,7 @@
</span>
</td>
</tr>
<tr
v-if=
"
CurrentUserInfo.EmployeeId == 615
"
>
<tr
v-if=
"
EditBtn
"
>
<td
width=
"70"
style=
"text-align:right;"
>
{{$t('ground.shifoutbgxfj')}}:
</td>
<td>
<el-select
class=
'w135 sel'
v-model=
'subItem.IsSyncHotelCount'
>
...
...
@@ -603,6 +603,7 @@
export
default
{
data
()
{
return
{
EditBtn
:
false
,
//房餐景点修改权限
//当前登录用户
CurrentUserInfo
:
{},
defaultSelectValue
:
0
,
...
...
@@ -935,12 +936,13 @@
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
IsOperation
=
res
.
data
.
data
.
IsOperation
;
this
.
IsEditHotel
=
res
.
data
.
data
.
IsEditHotel
;
this
.
IsEditHotelPeople
=
res
.
data
.
data
.
IsEditHotelPeople
;
if
(
this
.
CurrentUserInfo
.
EmployeeId
==
615
||
this
.
CurrentUserInfo
.
EmployeeId
==
46
)
{
this
.
IsEditHotel
=
1
;
this
.
IsEditHotelPeople
=
1
;
if
(
this
.
IsEditHotel
==
0
)
{
this
.
IsEditHotel
=
res
.
data
.
data
.
IsEditHotel
;
}
if
(
this
.
IsEditHotelPeople
==
0
)
{
this
.
IsEditHotelPeople
=
res
.
data
.
data
.
IsEditHotelPeople
;
}
let
list
=
res
.
data
.
data
.
HotelOrderListReport
;
this
.
CreateBy
=
res
.
data
.
data
.
CreateBy
;
this
.
CreateByPhoto
=
res
.
data
.
data
.
CreateByPhoto
;
...
...
@@ -1058,8 +1060,7 @@
var
str
=
""
;
this
.
list
.
forEach
(
item
=>
{
item
.
HotelOrderList
.
forEach
(
subItem
=>
{
if
(
isUpload
&&
subItem
.
PayStyle
==
1
&&
subItem
.
ContractUrl
==
''
&&
this
.
CurrentUserInfo
.
EmployeeId
!=
615
)
{
if
(
isUpload
&&
subItem
.
PayStyle
==
1
&&
subItem
.
ContractUrl
==
''
&&
!
EditBtn
)
{
str
+=
`请上传
${
item
.
UseTimeStr
}
的手配书`
isUpload
=
false
;
}
...
...
@@ -1114,8 +1115,7 @@
var
str
=
""
;
this
.
list
.
forEach
(
item
=>
{
item
.
HotelOrderList
.
forEach
(
subItem
=>
{
if
(
isUpload
&&
subItem
.
PayStyle
==
1
&&
subItem
.
ContractUrl
==
''
&&
this
.
CurrentUserInfo
.
EmployeeId
!=
615
)
{
if
(
isUpload
&&
subItem
.
PayStyle
==
1
&&
subItem
.
ContractUrl
==
''
&&
!
EditBtn
)
{
str
+=
`请上传
${
item
.
UseTimeStr
}
的手配书`
isUpload
=
false
;
}
...
...
@@ -1193,9 +1193,20 @@
this
.
allCurrencyList
=
res
.
data
.
data
;
}
},
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
()
{
this
.
GetAuth
();
this
.
getAllCurrency
();
let
userInfo
=
this
.
getLocalStorage
()
this
.
CurrentUserInfo
=
userInfo
;
...
...
src/components/Restaurant/bookDinnerStatisticsDetails.vue
View file @
6da752d1
...
...
@@ -9,7 +9,7 @@
</
template
>
<
template
v-else
>
<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)"
/>
</
template
>
</li>
...
...
@@ -230,6 +230,7 @@
export
default
{
data
()
{
return
{
EditBtn
:
false
,
//房餐景点修改权限
IsEditDinner
:
0
,
//1有权限操作餐配
defaultSelectValue
:
0
,
list
:
[],
...
...
@@ -470,9 +471,18 @@
this
.
$message
.
error
(
res
.
data
.
message
);
}
},
err
=>
{})
}
},
CheckAuth
()
{
var
actionCode
=
this
.
$AuthCode
.
EditRoomDinnerTIcket
;
this
.
CheckUserAuth
(
actionCode
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
&&
res
.
data
.
data
==
1
)
{
this
.
EditBtn
=
true
;
}
});
},
},
mounted
()
{
this
.
CheckAuth
();
this
.
GetAuth
();
let
userInfo
=
this
.
getLocalStorage
();
this
.
CurrentUserInfo
=
userInfo
;
...
...
src/components/TravelManager/TravelList/RegistrationList.vue
View file @
6da752d1
...
...
@@ -2635,7 +2635,7 @@
</td>
<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>
<el-button-group>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"$t('pub.updateMsg')"
placement=
"top-start"
...
...
@@ -3159,6 +3159,7 @@
export
default
{
data
()
{
return
{
EditBtn
:
false
,
//恢复订单
//修改订单业务员応
isEditOrderCreate
:
0
,
importFileUrl2
:
''
,
...
...
@@ -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
()
{
this
.
GetAuth
();
this
.
GetEditOrderCreateByAuth
();
let
userInfo
=
this
.
getLocalStorage
();
this
.
RBBranchId
=
userInfo
.
RB_Branch_id
...
...
src/components/TravelManager/TravelNewQuotation/newQuotation.vue
View file @
6da752d1
...
...
@@ -223,7 +223,7 @@
<i
class=
"iconfont icon-nav-hangzheng"
></i>
</el-tooltip>
</span>
<span
v-if=
"
userInfo.EmployeeId==615
"
class=
"bianji newAopbdd"
<span
v-if=
"
EditBtn
"
class=
"bianji newAopbdd"
@
click=
"goMakeQuo('QuotationNewPrice',item.ID)"
>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"$t('pub.updateMsg')"
placement=
"top-start"
popper-class=
"max-w250"
>
...
...
@@ -325,6 +325,7 @@
export
default
{
data
()
{
return
{
EditBtn
:
false
,
//报价单修改权限
userInfo
:
{},
queryData
:
{
LineId
:
0
,
...
...
@@ -636,8 +637,17 @@
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
()
{
this
.
GetAuth
();
var
routeName
=
this
.
$route
.
name
;
if
(
routeName
==
'newQuotation'
)
{
this
.
queryData
.
TeamType
=
3
;
...
...
src/components/administrative/AirticketCommission.vue
View file @
6da752d1
...
...
@@ -11,7 +11,7 @@
<div
class=
"query-box"
>
<ul>
<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>
</ul>
</div>
...
...
src/components/administrative/ViittoCommission.vue
View file @
6da752d1
...
...
@@ -11,7 +11,7 @@
<div
class=
"query-box"
>
<ul>
<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>
</ul>
</div>
...
...
src/components/scenicSpot/admissionStatisticsDetails.vue
View file @
6da752d1
...
...
@@ -9,7 +9,7 @@
</
template
>
<
template
v-else
>
<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)"
/>
</
template
>
</li>
...
...
@@ -91,7 +91,7 @@
@
input=
'calculationPrice(subItem)'
@
keyup
.
native=
"checkInteger(childItem,'Discount')"
></el-input>
</td>
<td>
<template
v-if=
"
CurrentUserInfo.EmployeeId==615
"
>
<template
v-if=
"
EditBtn
"
>
<el-input
class=
'w135'
v-model=
'childItem.PeoplePrice'
@
keyup
.
native=
"checkPrice(childItem,'PeoplePrice')"
type=
"text"
></el-input>
</
template
>
...
...
@@ -107,7 +107,7 @@
{{(childItem.UsePeopleNum-childItem.Discount)*childItem.PeoplePrice}}
</td>
<td>
<
template
v-if=
"
CurrentUserInfo.EmployeeId==615
"
>
<
template
v-if=
"
EditBtn
"
>
<el-input
class=
'w135'
v-model=
'childItem.DiscountPrice'
@
keyup
.
native=
"checkPrice(childItem,'DiscountPrice')"
type=
"text"
></el-input>
</
template
>
...
...
@@ -161,6 +161,7 @@
export
default
{
data
()
{
return
{
EditBtn
:
false
,
//房餐景点修改权限
defaultSelectValue
:
0
,
DataList
:
[],
roomList
:
[],
...
...
@@ -268,8 +269,17 @@
},
err
=>
{})
},
CheckAuth
()
{
var
actionCode
=
this
.
$AuthCode
.
EditRoomDinnerTIcket
;
this
.
CheckUserAuth
(
actionCode
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
&&
res
.
data
.
data
==
1
)
{
this
.
EditBtn
=
true
;
}
});
},
},
mounted
()
{
this
.
CheckAuth
();
let
userInfo
=
this
.
getLocalStorage
();
this
.
CurrentUserInfo
=
userInfo
;
this
.
TCNUM
=
this
.
$route
.
query
.
TCNUM
;
...
...
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