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
3525ae4d
Commit
3525ae4d
authored
Oct 25, 2023
by
王晓倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
借支申请修改、审批功能bug修复
parent
6417f417
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
9 deletions
+30
-9
TBorrowingApplyForController.java
.../controller/transaction/TBorrowingApplyForController.java
+16
-5
for.js
precision-effect-web/src/api/system/for.js
+10
-1
index.vue
precision-effect-web/src/views/for/index.vue
+4
-3
No files found.
precision-effect-admin/src/main/java/com/zehong/web/controller/transaction/TBorrowingApplyForController.java
View file @
3525ae4d
...
...
@@ -149,11 +149,11 @@ public class TBorrowingApplyForController extends BaseController
/**
*
修改
借支申请
*
审批
借支申请
*/
@Log
(
title
=
"借支申请"
,
businessType
=
BusinessType
.
UPDATE
)
@Log
(
title
=
"
审批
借支申请"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
int
edit
(
@RequestBody
TBorrowingApplyFor
tBorrowingApplyFor
)
public
int
update
(
@RequestBody
TBorrowingApplyFor
tBorrowingApplyFor
)
{
tBorrowingApplyFor
.
setApprovalTime
(
new
Date
());
SysUser
user
=
tokenService
.
getLoginUser
(
ServletUtils
.
getRequest
()).
getUser
();
...
...
@@ -174,10 +174,11 @@ public class TBorrowingApplyForController extends BaseController
tBorrowingApplyForService
.
updateTBorrowingApplyFor
(
tBorrowingApplyFor
);
TCashOperate
tCashOperate
=
new
TCashOperate
();
tCashOperate
.
setOperateDeptId
(
tBorrowingApplyFor
.
getBorrowingDeptId
());
tCashOperate
.
setOperateType
(
"2"
);
tCashOperate
.
setOperatePersonId
(
tBorrowingApplyFor
.
getHandledByUserId
());
//借支经办人记作操作人
tCashOperate
.
setOperateType
(
"9"
);
//操作类型
tCashOperate
.
setOperateAmount
(
tBorrowingApplyFor
.
getTotalFigures
());
tCashOperate
.
setIsDel
(
"0"
);
tCashOperate
.
setDocumentType
(
"
9"
);
tCashOperate
.
setDocumentType
(
"
2"
);
//单据类型
tCashOperate
.
setRelationDoc
(
String
.
valueOf
(
tBorrowingApplyFor
.
getBorrowing
()));
tCashOperate
.
setOperateTime
(
new
Date
());
//增加资金操作记录
...
...
@@ -192,6 +193,16 @@ public class TBorrowingApplyForController extends BaseController
}
/**
* 修改借支申请
*/
@Log
(
title
=
"修改借支申请"
)
@PutMapping
(
"/edit"
)
public
AjaxResult
edit
(
@RequestBody
TBorrowingApplyFor
tBorrowingApplyFor
)
{
return
toAjax
(
tBorrowingApplyForService
.
updateTBorrowingApplyFor
(
tBorrowingApplyFor
));
}
/**
* 删除借支申请
*/
...
...
precision-effect-web/src/api/system/for.js
View file @
3525ae4d
...
...
@@ -43,7 +43,7 @@ export function addFor(data) {
})
}
//
修改
借支申请
//
审批
借支申请
export
function
updateFor
(
data
)
{
return
request
({
url
:
'/system/for'
,
...
...
@@ -52,6 +52,15 @@ export function updateFor(data) {
})
}
// 修改借支申请
export
function
editFor
(
data
)
{
return
request
({
url
:
'/system/for/edit'
,
method
:
'put'
,
data
:
data
})
}
// 删除借支申请
export
function
delFor
(
borrowing
)
{
return
request
({
...
...
precision-effect-web/src/views/for/index.vue
View file @
3525ae4d
...
...
@@ -593,7 +593,7 @@
</template>
<
script
>
import
{
listFor
,
getFor
,
delFor
,
addFor
,
updateFor
,
exportFor
,
getDepartmentBalance
}
from
"@/api/system/for"
;
import
{
listFor
,
getFor
,
delFor
,
addFor
,
updateFor
,
e
ditFor
,
e
xportFor
,
getDepartmentBalance
}
from
"@/api/system/for"
;
import
{
selectTransactorByDeptId
,
listUser
,
listpersonnel
}
from
"@/api/system/user"
;
import
Treeselect
from
"@riophae/vue-treeselect"
;
import
{
treeselect
}
from
"@/api/system/dept"
;
...
...
@@ -898,7 +898,7 @@ export default {
});
},
/** 提交按钮 */
/** 提交按钮
(新增、审批)
*/
submitForm
(
row
)
{
this
.
$refs
[
"form"
].
validate
(
valid
=>
{
if
(
valid
)
{
...
...
@@ -937,10 +937,11 @@ export default {
}
});
},
/** 修改借支申请 */
editSubmitForm
()
{
this
.
$refs
[
"form"
].
validate
(
valid
=>
{
if
(
valid
)
{
update
For
(
this
.
form
).
then
(
response
=>
{
edit
For
(
this
.
form
).
then
(
response
=>
{
this
.
msgSuccess
(
"修改成功"
);
this
.
editOpen
=
false
;
this
.
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