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
0b5887c3
Commit
0b5887c3
authored
Jun 16, 2023
by
吴卿华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
借支申请修改
parent
1089c7cb
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
62 additions
and
41 deletions
+62
-41
SysUserController.java
...a/com/zehong/web/controller/system/SysUserController.java
+13
-0
TBorrowingApplyForController.java
.../controller/transaction/TBorrowingApplyForController.java
+1
-0
TTradeProjectController.java
...g/web/controller/transaction/TTradeProjectController.java
+1
-1
user.js
precision-effect-web/src/api/system/user.js
+9
-0
index.vue
precision-effect-web/src/views/for/index.vue
+38
-40
No files found.
precision-effect-admin/src/main/java/com/zehong/web/controller/system/SysUserController.java
View file @
0b5887c3
...
@@ -4,6 +4,7 @@ import java.util.List;
...
@@ -4,6 +4,7 @@ import java.util.List;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
import
com.zehong.framework.systemsetting.SystemSetting
;
import
com.zehong.framework.systemsetting.SystemSetting
;
import
org.apache.catalina.User
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.validation.annotation.Validated
;
...
@@ -212,6 +213,18 @@ public class SysUserController extends BaseController
...
@@ -212,6 +213,18 @@ public class SysUserController extends BaseController
}
}
/**
* 查询当前部门名下人员
* @return
*/
@GetMapping
(
"/selectPersonnel"
)
public
TableDataInfo
selectPersonnel
(){
SysUser
usern
=
tokenService
.
getLoginUser
(
ServletUtils
.
getRequest
()).
getUser
();
SysUser
user
=
new
SysUser
();
user
.
setDeptId
(
usern
.
getDeptId
());
List
<
SysUser
>
list
=
userService
.
selectUserList
(
user
);
return
getDataTable
(
list
);
}
}
}
precision-effect-admin/src/main/java/com/zehong/web/controller/transaction/TBorrowingApplyForController.java
View file @
0b5887c3
...
@@ -90,6 +90,7 @@ public class TBorrowingApplyForController extends BaseController
...
@@ -90,6 +90,7 @@ public class TBorrowingApplyForController extends BaseController
if
(
StringUtils
.
isNotNull
(
user
))
{
if
(
StringUtils
.
isNotNull
(
user
))
{
tBorrowingApplyFor
.
setHandledByUserId
(
user
.
getUserId
());
tBorrowingApplyFor
.
setHandledByUserId
(
user
.
getUserId
());
}
}
tBorrowingApplyFor
.
setRegistrationDate
(
new
Date
());
return
toAjax
(
tBorrowingApplyForService
.
insertTBorrowingApplyFor
(
tBorrowingApplyFor
));
return
toAjax
(
tBorrowingApplyForService
.
insertTBorrowingApplyFor
(
tBorrowingApplyFor
));
}
}
...
...
precision-effect-admin/src/main/java/com/zehong/web/controller/transaction/TTradeProjectController.java
View file @
0b5887c3
...
@@ -16,7 +16,7 @@ import java.util.List;
...
@@ -16,7 +16,7 @@ import java.util.List;
/**
/**
* 交易项目Controller
* 交易项目Controller
*
*
* @author zehong
* @author zehong
* @date 2023-06-08
* @date 2023-06-08
*/
*/
...
...
precision-effect-web/src/api/system/user.js
View file @
0b5887c3
...
@@ -10,6 +10,15 @@ export function listUser(query) {
...
@@ -10,6 +10,15 @@ export function listUser(query) {
})
})
}
}
// 查询用户列表 (下拉)
export
function
listpersonnel
()
{
return
request
({
url
:
'/system/user/selectPersonnel'
,
method
:
'get'
,
})
}
// 查询用户详细
// 查询用户详细
export
function
getUser
(
userId
)
{
export
function
getUser
(
userId
)
{
return
request
({
return
request
({
...
...
precision-effect-web/src/views/for/index.vue
View file @
0b5887c3
...
@@ -133,57 +133,55 @@
...
@@ -133,57 +133,55 @@
<
el
-
input
v
-
model
=
"form.feeName"
placeholder
=
"请输入费用名称"
/>
<
el
-
input
v
-
model
=
"form.feeName"
placeholder
=
"请输入费用名称"
/>
<
/el-form-item
>
<
/el-form-item
>
<
/el-col
>
<
/el-col
>
<
el
-
col
:
span
=
"12"
>
<
el
-
col
:
span
=
"12"
>
<
el
-
form
-
item
label
=
"
借支部门"
prop
=
"borrowingDept
Id"
>
<
el
-
form
-
item
label
=
"
使用人"
prop
=
"user
Id"
>
<
treeselect
<
el
-
select
v
-
model
=
"form.userId"
placeholder
=
"请选择使用人"
style
=
"width: 100%"
>
v
-
model
=
"form.borrowingDeptId
"
<
el
-
option
v
-
for
=
"item in transactorList
"
:
options
=
"formDeptOptions
"
:
key
=
"item.userId
"
:
show
-
count
=
"tru
e"
:
label
=
"item.nickNam
e"
placeholder
=
"请选择部门"
:
value
=
"item.userId"
/>
/
>
<
/el-select
>
<
/el-form-item
>
<
/el-form-item
>
<
/el-col
>
<
/el-col
>
<!--
<
el
-
col
:
span
=
"12"
>-->
<!--
<
el
-
form
-
item
label
=
"借支部门"
prop
=
"borrowingDeptId"
>-->
<!--
<
treeselect
-->
<!--
v
-
model
=
"form.borrowingDeptId"
-->
<!--
:
options
=
"formDeptOptions"
-->
<!--
:
show
-
count
=
"true"
-->
<!--
placeholder
=
"请选择部门"
-->
<!--
/>--
>
<!--
<
/el-form-item>--
>
<!--
<
/el-col>--
>
<
/el-row
>
<
/el-row
>
<
el
-
row
>
<
el
-
row
>
<
el
-
col
:
span
=
"12"
>
<!--
<
el
-
col
:
span
=
"12"
>-->
<
el
-
form
-
item
label
=
"使用人"
prop
=
"userId"
>
<!--
<
el
-
form
-
item
label
=
"登记日期"
prop
=
"registrationDate"
>-->
<
el
-
select
v
-
model
=
"form.userId"
placeholder
=
"请选择使用人"
style
=
"width: 100%"
>
<!--
<
el
-
date
-
picker
clearable
-->
<
el
-
option
v
-
for
=
"item in transactorList"
<!--
v
-
model
=
"form.registrationDate"
-->
:
key
=
"item.userId"
<!--
type
=
"date"
-->
:
label
=
"item.nickName"
<!--
value
-
format
=
"yyyy-MM-dd"
-->
:
value
=
"item.userId"
/>
<!--
placeholder
=
"选择登记日期"
-->
<
/el-select
>
<!--
style
=
"width: 100%;"
>-->
<
/el-form-item
>
<!--
<
/el-date-picker>--
>
<
/el-col
>
<!--
<
/el-form-item>--
>
<!--
<
/el-col>--
>
<
el
-
col
:
span
=
"12"
>
<
el
-
col
:
span
=
"24"
>
<
el
-
form
-
item
label
=
"登记日期"
prop
=
"registrationDate"
>
<
el
-
form
-
item
label
=
"小写合计"
prop
=
"totalFigures"
>
<
el
-
date
-
picker
clearable
<
el
-
input
v
-
model
=
"form.totalFigures"
placeholder
=
"请输入小写合计"
/>
v
-
model
=
"form.registrationDate"
type
=
"date"
value
-
format
=
"yyyy-MM-dd"
placeholder
=
"选择登记日期"
style
=
"width: 100%;"
>
<
/el-date-picker
>
<
/el-form-item
>
<
/el-form-item
>
<
/el-col
>
<
/el-col
>
<
/el-row
>
<
/el-row
>
<
el
-
row
>
<!--
<
el
-
row
>--
>
<!--
<
el
-
col
:
span
=
"12"
>-->
<!--
<
el
-
col
:
span
=
"12"
>-->
<!--
<
el
-
form
-
item
label
=
"大写合计"
prop
=
"totalWords"
>-->
<!--
<
el
-
form
-
item
label
=
"大写合计"
prop
=
"totalWords"
>-->
<!--
<
el
-
input
v
-
model
=
"form.totalWords"
placeholder
=
"请输入大写合计"
/>-->
<!--
<
el
-
input
v
-
model
=
"form.totalWords"
placeholder
=
"请输入大写合计"
/>-->
<!--
<
/el-form-item>--
>
<!--
<
/el-form-item>--
>
<!--
<
/el-col>--
>
<!--
<
/el-col>--
>
<!--
<
/el-row>--
>
<
el
-
col
:
span
=
"24"
>
<
el
-
form
-
item
label
=
"小写合计"
prop
=
"totalFigures"
>
<
el
-
input
v
-
model
=
"form.totalFigures"
placeholder
=
"请输入小写合计"
/>
<
/el-form-item
>
<
/el-col
>
<
/el-row
>
...
@@ -257,7 +255,7 @@
...
@@ -257,7 +255,7 @@
<
script
>
<
script
>
import
{
listFor
,
getFor
,
delFor
,
addFor
,
updateFor
,
exportFor
}
from
"@/api/system/for"
;
import
{
listFor
,
getFor
,
delFor
,
addFor
,
updateFor
,
exportFor
}
from
"@/api/system/for"
;
import
{
selectTransactorByDeptId
,
listUser
}
from
"@/api/system/user"
;
import
{
selectTransactorByDeptId
,
listUser
,
listpersonnel
}
from
"@/api/system/user"
;
import
Treeselect
from
"@riophae/vue-treeselect"
;
import
Treeselect
from
"@riophae/vue-treeselect"
;
import
{
treeselect
}
from
"@/api/system/dept"
;
import
{
treeselect
}
from
"@/api/system/dept"
;
import
FileUpload
from
"@/components/FileUpload"
;
import
FileUpload
from
"@/components/FileUpload"
;
...
@@ -373,14 +371,14 @@ export default {
...
@@ -373,14 +371,14 @@ export default {
}
,
}
,
getTransactor
()
{
getTransactor
()
{
this
.
form
.
tradeTransactor
=
null
;
this
.
form
.
tradeTransactor
=
null
;
if
(
this
.
form
.
borrowingDeptId
&&
this
.
form
.
borrowingDeptId
!=
null
)
{
//
if (this.form.borrowingDeptId && this.form.borrowingDeptId != null)
{
this
.
form
.
deptId
=
this
.
form
.
borrowingDeptId
;
//
this.form.deptId=this.form.borrowingDeptId;
listUser
(
this
.
form
).
then
(
listpersonnel
(
).
then
(
(
res
)
=>
{
(
res
)
=>
{
this
.
transactorList
=
res
.
rows
;
this
.
transactorList
=
res
.
rows
;
}
}
);
);
}
//
}
}
,
}
,
/** 查询借支申请列表 */
/** 查询借支申请列表 */
getList
()
{
getList
()
{
...
...
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