Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
P
precision-effect
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
耿迪迪
precision-effect
Commits
96f52008
Commit
96f52008
authored
Jun 20, 2023
by
耿迪迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
采购查询权限
parent
0d4ed904
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
4 deletions
+8
-4
TPurchaseController.java
...ehong/web/controller/transaction/TPurchaseController.java
+5
-1
OperatorButton.vue
...fect-web/src/views/purchase/components/OperatorButton.vue
+1
-1
index.vue
precision-effect-web/src/views/purchase/index.vue
+1
-1
OperatorButton.vue
...-effect-web/src/views/trade/components/OperatorButton.vue
+1
-1
No files found.
precision-effect-admin/src/main/java/com/zehong/web/controller/transaction/TPurchaseController.java
View file @
96f52008
...
...
@@ -3,6 +3,7 @@ package com.zehong.web.controller.transaction;
import
com.zehong.common.annotation.Log
;
import
com.zehong.common.core.controller.BaseController
;
import
com.zehong.common.core.domain.AjaxResult
;
import
com.zehong.common.core.domain.entity.SysRole
;
import
com.zehong.common.core.domain.entity.SysUser
;
import
com.zehong.common.core.exception.BusinessException
;
import
com.zehong.common.core.page.TableDataInfo
;
...
...
@@ -22,7 +23,9 @@ import org.springframework.security.access.prepost.PreAuthorize;
import
org.springframework.util.CollectionUtils
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.Collection
;
import
java.util.List
;
import
java.util.stream.Collectors
;
/**
* 外部采购(报销)申请Controller
...
...
@@ -49,7 +52,8 @@ public class TPurchaseController extends BaseController
{
// 获取当前用户
SysUser
user
=
tokenService
.
getLoginUser
(
ServletUtils
.
getRequest
()).
getUser
();
if
(
StringUtils
.
isNotNull
(
user
)
&&
!
user
.
isAdmin
())
{
List
<
SysRole
>
calculator
=
user
.
getRoles
().
stream
().
filter
(
item
->
item
.
getRoleKey
()
==
"calculator"
).
collect
(
Collectors
.
toList
());
if
(
StringUtils
.
isNotNull
(
user
)
&&
!
user
.
isAdmin
()
&&
!
CollectionUtils
.
isEmpty
(
calculator
))
{
tPurchase
.
setPurchaseDeptId
(
user
.
getDeptId
());
}
startPage
();
...
...
precision-effect-web/src/views/purchase/components/OperatorButton.vue
View file @
96f52008
<
template
>
<div>
<div
style=
"display: inline-block;width: 50px"
>
<el-button
type=
"text"
@
click=
"open=true"
size=
"mini"
>
{{
getOperatorName
()
}}
</el-button>
<el-dialog
:title=
"getOperatorName()"
:visible
.
sync=
"open"
width=
"800px"
append-to-body
:close-on-click-modal=
"false"
destroy-on-close
>
<component
:is=
"currentTabComponent"
:purchaseData=
"purchaseData"
ref=
"currentCom"
v-if=
"open"
></component>
...
...
precision-effect-web/src/views/purchase/index.vue
View file @
96f52008
...
...
@@ -141,7 +141,7 @@
<
span
>
{{
parseTime
(
scope
.
row
.
approvedTime
,
'{y
}
-{m
}
-{d
}
{h
}
:{i
}
:{s
}
'
)
}}
<
/span
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"操作"
align
=
"center"
class
-
name
=
"small-padding fixed-width"
>
<
el
-
table
-
column
label
=
"操作"
align
=
"center"
class
-
name
=
"small-padding fixed-width"
width
=
"220"
>
<
template
slot
-
scope
=
"scope"
>
<!--
<
el
-
button
-->
<!--
size
=
"mini"
-->
...
...
precision-effect-web/src/views/trade/components/OperatorButton.vue
View file @
96f52008
<
template
>
<div>
<div
style=
"display: inline-block;width: 50px"
>
<el-button
type=
"text"
@
click=
"open=true"
size=
"mini"
>
{{
getOperatorName
()
}}
</el-button>
<el-dialog
:title=
"getOperatorName()"
:visible
.
sync=
"open"
width=
"800px"
append-to-body
:close-on-click-modal=
"false"
destroy-on-close
>
<component
:is=
"currentTabComponent"
:tradeData=
"tradeData"
ref=
"currentCom"
v-if=
"open"
></component>
...
...
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