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
573e470f
Commit
573e470f
authored
May 16, 2019
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增权限验证
parent
ddf8ed79
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
24 deletions
+30
-24
TeamBalancePayment.vue
...omponents/TravelManager/TravelList/TeamBalancePayment.vue
+28
-23
TravelControlList.vue
...components/TravelManager/TravelList/TravelControlList.vue
+2
-1
No files found.
src/components/TravelManager/TravelList/TeamBalancePayment.vue
View file @
573e470f
...
...
@@ -264,8 +264,8 @@
<div
class=
"clearfix TB_PrintDiv"
>
<div
class=
"TB_comtitle TB-Title"
>
收入
</div>
<
template
v-if=
"IsHaveAuth"
>
<input
type=
"button"
value=
"新增"
class=
"hollowFixedBtn TeamAddBtn"
v-show=
"ishowBtn"
@
click=
"AddIncomeDetail"
/>
<input
type=
"button"
value=
"新增"
class=
"hollowFixedBtn TeamAddBtn"
v-show=
"ishowBtn"
@
click=
"AddIncomeDetail"
/>
</
template
>
</div>
<div
class=
"clearfix TB_PrintDiv"
>
...
...
@@ -578,7 +578,7 @@
<div
class=
"clearfix TB_PrintDiv"
>
<div
class=
"TB_comtitle TB-Title"
>
成本
</div>
<
template
v-if=
"IsHaveAuth"
>
<input
type=
"button"
value=
"新增"
class=
"hollowFixedBtn TeamAddBtn"
v-show=
"ishowBtn"
@
click=
"AddOutDetail"
/>
<input
type=
"button"
value=
"新增"
class=
"hollowFixedBtn TeamAddBtn"
v-show=
"ishowBtn"
@
click=
"AddOutDetail"
/>
</
template
>
</div>
<div
class=
"clearfix TB_PrintDiv"
>
...
...
@@ -1062,7 +1062,7 @@
<div
class=
"clearfix TB_PrintDiv"
>
<div
class=
"TB_comtitle TB-Title"
>
非成本
</div>
<
template
v-if=
"IsHaveAuth"
>
<input
type=
"button"
value=
"新增"
class=
"hollowFixedBtn TeamAddBtn"
v-show=
"ishowBtn"
@
click=
"AddOutDetail"
/>
<input
type=
"button"
value=
"新增"
class=
"hollowFixedBtn TeamAddBtn"
v-show=
"ishowBtn"
@
click=
"AddOutDetail"
/>
</
template
>
</div>
...
...
@@ -1269,11 +1269,11 @@
</div>
</div>
<div
class=
"Team_BtnList"
v-if=
"IsHaveAuth"
>
<input
type=
"button"
@
click=
"zhaunBox"
value=
"单据转团"
class=
"hollowFixedBtn"
/>
<input
type=
"button"
@
click=
"zhaunBox"
value=
"单据转团"
class=
"hollowFixedBtn"
/>
<input
type=
"button"
v-if=
"!CloseIncomeBtn"
@
click=
"UpdateBrakeAccountStatus"
:value=
"(DataList&&DataList.TeamBalance&&DataList.TeamBalance.BrakeAccountStatus === 0) ? '关闭收支操作' : '开启收支操作'"
class=
"hollowFixedBtn"
/>
<input
type=
"button"
value=
"导出"
@
click=
"ExportExcle"
class=
"normalBtn"
/>
class=
"hollowFixedBtn"
/>
<input
type=
"button"
value=
"导出"
@
click=
"ExportExcle"
class=
"normalBtn"
/>
<input
type=
"button"
value=
"打印"
@
click
.
prevent=
"doPrint"
class=
"normalBtn"
/>
</div>
<el-dialog
custom-class=
'w350'
title=
"合并单据"
:visible
.
sync=
"zhuanLoading"
center
:before-close=
"initZhuanMsg"
>
...
...
@@ -1306,7 +1306,7 @@
TCNUM
:
''
,
FrIds
:
''
,
},
IsHaveAuth
:
false
,
//权限判断按钮是否显示
IsHaveAuth
:
false
,
//权限判断按钮是否显示
zhuanLoading
:
false
,
moneyAll
:
{
Moneyall
:
0
,
...
...
@@ -1724,27 +1724,32 @@
},
//权限验证
checkHasAuth
()
{
this
.
apipost
(
'travel_get_CheckBalancePaymentAuth'
,
{
TCID
:
this
.
TCID
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
IsHaveAuth
=
true
;
}
else
{
this
.
IsHaveAuth
=
false
;
}
},
err
=>
{}
)
//
this.apipost(
//
'travel_get_CheckBalancePaymentAuth', {
//
TCID: this.TCID
//
},
//
res => {
//
if (res.data.resultCode == 1) {
//
this.IsHaveAuth=true;
//
}
//
else
//
{
//
this.IsHaveAuth=false;
//
}
//
},
//
err => {}
//
)
}
},
mounted
()
{
this
.
TCID
=
this
.
$route
.
query
.
id
;
this
.
OutBranchId
=
this
.
$route
.
query
.
OutBranchId
;
this
.
CloseIncomeBtn
=
this
.
$route
.
query
.
CloseIncomeBtn
;
if
(
this
.
$route
.
query
.
IsHaveAuth
)
{
this
.
IsHaveAuth
=
true
;
}
else
{
this
.
IsHaveAuth
=
false
;
}
this
.
checkHasAuth
();
this
.
getList
();
this
.
getAllCont
();
...
...
src/components/TravelManager/TravelList/TravelControlList.vue
View file @
573e470f
...
...
@@ -1473,7 +1473,8 @@
name
:
'TeamBalancePayment'
,
query
:
{
id
:
id
,
OutBranchId
:
OutBranchId
,
OutBranchId
:
OutBranchId
,
IsHaveAuth
:
true
,
blank
:
'y'
,
tab
:
'团队收支明细'
}
...
...
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