Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
T
topsun-bpm
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
鲁鑫
topsun-bpm
Commits
72132bbc
Commit
72132bbc
authored
Feb 25, 2024
by
刘学辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
费用报销按类型分页面
parent
e2670a26
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1361 additions
and
11 deletions
+1361
-11
costReimbursementList.js
...biz/topsun/sap/costReimbursement/costReimbursementList.js
+56
-10
payApply.js
.../main/webapp/biz/topsun/sap/costReimbursement/payApply.js
+560
-0
payApply.jsp
...main/webapp/biz/topsun/sap/costReimbursement/payApply.jsp
+85
-0
refundApply.js
...in/webapp/biz/topsun/sap/costReimbursement/refundApply.js
+560
-0
refundApply.jsp
...n/webapp/biz/topsun/sap/costReimbursement/refundApply.jsp
+85
-0
SapCostReimbursementController.java
...mbursement/controller/SapCostReimbursementController.java
+15
-1
No files found.
topsun-xt/src/main/webapp/biz/topsun/sap/costReimbursement/costReimbursementList.js
View file @
72132bbc
...
...
@@ -12,9 +12,22 @@ function initializateUI() {
function
loadGrid
()
{
var
toolbarOptions
=
UICtrl
.
getDefaultToolbarOptions
({
addHandler
:
function
(){
addHandler
()
},
addCostReimbursement
:
{
id
:
'costReimbursement'
,
img
:
'fa-cog'
,
text
:
'添加费用报销申请'
,
click
:
function
(){
addCostReimbursement
();
}},
addBorrowApply
:
{
id
:
'borrowApply'
,
img
:
'fa-cog'
,
text
:
'添加员工借款申请'
,
click
:
function
(){
addBorrowApply
();
}},
addAdvancePayment
:
{
id
:
'advancePayment'
,
img
:
'fa-cog'
,
text
:
'添加预付款申请'
,
click
:
function
(){
addAdvancePayment
();
}},
addPayApply
:
{
id
:
'payApply'
,
img
:
'fa-cog'
,
text
:
'添加付款申请'
,
click
:
function
(){
addPayApply
();
}},
addRefundApply
:
{
id
:
'refundApply'
,
img
:
'fa-cog'
,
text
:
'添加客户退款申请'
,
click
:
function
(){
addRefundApply
();
}},
deleteHandler
:
deleteHandler
,
});
gridManager
=
UICtrl
.
grid
(
"#costReimbursementListGrid"
,
{
...
...
@@ -74,6 +87,45 @@ DataUtil.getUpdateRowId = function (gridManager) {
return
result
;
}
function
addCostReimbursement
()
{
UICtrl
.
addTabItem
({
tabid
:
'costReimbursement'
,
text
:
"费用报销申请单"
,
url
:
web_app
.
name
+
'/sapCostReimbursement/forwardCostReimbursement.job?type=cost'
});
}
function
addBorrowApply
(){
UICtrl
.
addTabItem
({
tabid
:
'borrowApply'
,
text
:
"借款申请单"
,
url
:
web_app
.
name
+
'/sapCostReimbursement/forwardCostReimbursement.job?type=borrow'
});
}
function
addAdvancePayment
(){
UICtrl
.
addTabItem
({
tabid
:
'advanceApply'
,
text
:
"预付款申请单"
,
url
:
web_app
.
name
+
'/sapCostReimbursement/forwardCostReimbursement.job?type=advance'
});
}
function
addPayApply
(){
UICtrl
.
addTabItem
({
tabid
:
'payApply'
,
text
:
"付款申请单"
,
url
:
web_app
.
name
+
'/sapCostReimbursement/forwardCostReimbursement.job?type=pay'
});
}
function
addRefundApply
(){
UICtrl
.
addTabItem
({
tabid
:
'refundApply'
,
text
:
"客户退款申请单"
,
url
:
web_app
.
name
+
'/sapCostReimbursement/forwardCostReimbursement.job?type=refund'
});
}
//删除按钮
function
deleteHandler
()
{
DataUtil
.
del
({
...
...
@@ -85,13 +137,7 @@ function deleteHandler() {
});
}
function
addHandler
()
{
UICtrl
.
addTabItem
({
tabid
:
'costReimbursement'
,
text
:
"费用报销申请单"
,
url
:
web_app
.
name
+
'/sapCostReimbursement/forwardCostReimbursement.job'
});
}
function
doView
(
id
)
{
UICtrl
.
addTabItem
({
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/costReimbursement/payApply.js
0 → 100644
View file @
72132bbc
This diff is collapsed.
Click to expand it.
topsun-xt/src/main/webapp/biz/topsun/sap/costReimbursement/payApply.jsp
0 → 100644
View file @
72132bbc
<%@ page
language=
"java"
contentType=
"text/html; charset=utf-8"
%>
<%@taglib
uri=
"/WEB-INF/taglib.tld"
prefix=
"x"
%>
<%@ taglib
uri=
"http://java.sun.com/jsp/jstl/core"
prefix=
"c"
%>
<html>
<head>
<x:base
include=
"layout,dialog,grid,tree,combox,commonTree,date"
/>
<x:script
src=
'/biz/topsun/sap/costReimbursement/payApply.js'
/>
</head>
<body>
<div
class=
"container-fluid"
style=
"padding: 10px;"
>
<x:billTitle
title=
"付款申请"
needStatus=
"false"
needPerson=
"true"
/>
<form
class=
"hg-form"
method=
"post"
action=
""
id=
"submitForm"
>
<x:hidden
name=
"id"
/>
<x:hidden
name=
"billCode"
/>
<x:hidden
name=
"fillinDate"
type=
"datetime"
/>
<x:hidden
name=
"fullId"
/>
<x:hidden
name=
"organId"
/>
<x:hidden
name=
"organName"
/>
<x:hidden
name=
"deptId"
/>
<x:hidden
name=
"deptName"
/>
<x:hidden
name=
"positionId"
/>
<x:hidden
name=
"positionName"
/>
<x:hidden
name=
"personMemberId"
/>
<x:hidden
name=
"personMemberName"
/>
<div
class=
"hg-form-cols"
>
<div
class=
"hg-form-row"
>
<x:inputC
name=
"zepNo"
required=
"false"
label=
"EP流程单号"
labelCol=
"2"
maxLength=
"64"
fieldCol=
"2"
/>
<x:inputC
name=
"zepFcrdate"
required=
"false"
wrapper=
"date"
label=
"付款申请创建日期"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"zepFtype"
required=
"false"
label=
"EP付款申请类别"
labelCol=
"2"
maxLength=
"64"
fieldCol=
"2"
/>
<x:inputC
name=
"zepFtypename"
required=
"false"
label=
"EP付款申请类别名称"
labelCol=
"2"
maxLength=
"64"
fieldCol=
"2"
/>
<x:inputC
name=
"bukrs"
required=
"false"
label=
"公司代码"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"butxt"
required=
"false"
label=
"公司代码名称"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"zepDepart"
required=
"false"
label=
"EP部门代码"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"zepDepartname"
required=
"false"
label=
"EP部门名称"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"zepAppli"
required=
"false"
label=
"EP流程申请人代码"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"zepAppliname"
required=
"false"
label=
"EP流程申请人"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"zepFcrdate"
wrapper=
"date"
required=
"false"
label=
"付款申请创建日期"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"zepTxt"
required=
"false"
label=
"付款申请内容"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"zepFtamount"
required=
"false"
label=
"申请总金额(本位币)"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"zepFttax"
required=
"false"
label=
"申请总税额(本位币)"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"zepFtamount1"
required=
"false"
label=
"申请总金额"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"zepFttax1"
required=
"false"
label=
"申请总税额"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"zepPtamount"
required=
"false"
label=
"审批总金额(本位币)"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"zepPttax"
required=
"false"
label=
" 审批总税额(本位币)"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"zepPtamount1"
required=
"false"
label=
"审批总金额"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"zepPttax1"
required=
"false"
label=
"审批总税额"
labelCol=
"2"
fieldCol=
"2"
/>
</div>
</div>
<div
class=
"blank_div clearfix"
></div>
<x:title
title=
"报销人填写"
name=
"group"
/>
<div
id=
"reimbursementApplierGrid"
style=
"margin: 2px;"
>
</div>
<div
class=
"blank_div clearfix"
></div>
<x:title
title=
"财务审核填写"
name=
"group"
/>
<div
id=
"financialAuditGrid"
style=
"margin: 2px;"
>
</div>
<div
class=
"blank_div clearfix"
></div>
<x:title
title=
"财务已审核、sap回执"
name=
"group"
/>
<div
id=
"financialAudit_sapReturnGrid"
style=
"margin: 2px;"
>
</div>
<div
class=
"blank_div clearfix"
></div>
<x:title
title=
"资金岗填写"
name=
"group"
/>
<div
id=
"capitalPostGrid"
style=
"margin: 2px;"
>
</div>
<div
class=
"blank_div clearfix"
></div>
<x:title
title=
"付款完成、sap回执"
name=
"group"
/>
<div
id=
"paymentAccomplish_sapReturnGrid"
style=
"margin: 2px;"
>
</div>
</div>
</form>
</body>
</html>
topsun-xt/src/main/webapp/biz/topsun/sap/costReimbursement/refundApply.js
0 → 100644
View file @
72132bbc
This diff is collapsed.
Click to expand it.
topsun-xt/src/main/webapp/biz/topsun/sap/costReimbursement/refundApply.jsp
0 → 100644
View file @
72132bbc
<%@ page
language=
"java"
contentType=
"text/html; charset=utf-8"
%>
<%@taglib
uri=
"/WEB-INF/taglib.tld"
prefix=
"x"
%>
<%@ taglib
uri=
"http://java.sun.com/jsp/jstl/core"
prefix=
"c"
%>
<html>
<head>
<x:base
include=
"layout,dialog,grid,tree,combox,commonTree,date"
/>
<x:script
src=
'/biz/topsun/sap/costReimbursement/refundApply.js'
/>
</head>
<body>
<div
class=
"container-fluid"
style=
"padding: 10px;"
>
<x:billTitle
title=
"客户退款申请"
needStatus=
"false"
needPerson=
"true"
/>
<form
class=
"hg-form"
method=
"post"
action=
""
id=
"submitForm"
>
<x:hidden
name=
"id"
/>
<x:hidden
name=
"billCode"
/>
<x:hidden
name=
"fillinDate"
type=
"datetime"
/>
<x:hidden
name=
"fullId"
/>
<x:hidden
name=
"organId"
/>
<x:hidden
name=
"organName"
/>
<x:hidden
name=
"deptId"
/>
<x:hidden
name=
"deptName"
/>
<x:hidden
name=
"positionId"
/>
<x:hidden
name=
"positionName"
/>
<x:hidden
name=
"personMemberId"
/>
<x:hidden
name=
"personMemberName"
/>
<div
class=
"hg-form-cols"
>
<div
class=
"hg-form-row"
>
<x:inputC
name=
"zepNo"
required=
"false"
label=
"EP流程单号"
labelCol=
"2"
maxLength=
"64"
fieldCol=
"2"
/>
<x:inputC
name=
"zepFcrdate"
required=
"false"
wrapper=
"date"
label=
"付款申请创建日期"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"zepFtype"
required=
"false"
label=
"EP付款申请类别"
labelCol=
"2"
maxLength=
"64"
fieldCol=
"2"
/>
<x:inputC
name=
"zepFtypename"
required=
"false"
label=
"EP付款申请类别名称"
labelCol=
"2"
maxLength=
"64"
fieldCol=
"2"
/>
<x:inputC
name=
"bukrs"
required=
"false"
label=
"公司代码"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"butxt"
required=
"false"
label=
"公司代码名称"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"zepDepart"
required=
"false"
label=
"EP部门代码"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"zepDepartname"
required=
"false"
label=
"EP部门名称"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"zepAppli"
required=
"false"
label=
"EP流程申请人代码"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"zepAppliname"
required=
"false"
label=
"EP流程申请人"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"zepFcrdate"
wrapper=
"date"
required=
"false"
label=
"付款申请创建日期"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"zepTxt"
required=
"false"
label=
"付款申请内容"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"zepFtamount"
required=
"false"
label=
"申请总金额(本位币)"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"zepFttax"
required=
"false"
label=
"申请总税额(本位币)"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"zepFtamount1"
required=
"false"
label=
"申请总金额"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"zepFttax1"
required=
"false"
label=
"申请总税额"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"zepPtamount"
required=
"false"
label=
"审批总金额(本位币)"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"zepPttax"
required=
"false"
label=
" 审批总税额(本位币)"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"zepPtamount1"
required=
"false"
label=
"审批总金额"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"zepPttax1"
required=
"false"
label=
"审批总税额"
labelCol=
"2"
fieldCol=
"2"
/>
</div>
</div>
<div
class=
"blank_div clearfix"
></div>
<x:title
title=
"报销人填写"
name=
"group"
/>
<div
id=
"reimbursementApplierGrid"
style=
"margin: 2px;"
>
</div>
<div
class=
"blank_div clearfix"
></div>
<x:title
title=
"财务审核填写"
name=
"group"
/>
<div
id=
"financialAuditGrid"
style=
"margin: 2px;"
>
</div>
<div
class=
"blank_div clearfix"
></div>
<x:title
title=
"财务已审核、sap回执"
name=
"group"
/>
<div
id=
"financialAudit_sapReturnGrid"
style=
"margin: 2px;"
>
</div>
<div
class=
"blank_div clearfix"
></div>
<x:title
title=
"资金岗填写"
name=
"group"
/>
<div
id=
"capitalPostGrid"
style=
"margin: 2px;"
>
</div>
<div
class=
"blank_div clearfix"
></div>
<x:title
title=
"付款完成、sap回执"
name=
"group"
/>
<div
id=
"paymentAccomplish_sapReturnGrid"
style=
"margin: 2px;"
>
</div>
</div>
</form>
</body>
</html>
topsun/src/main/java/com/huigou/topsun/sap/costReimbursement/controller/SapCostReimbursementController.java
View file @
72132bbc
...
...
@@ -47,13 +47,27 @@ public class SapCostReimbursementController extends CommonController {
//定义流程
this
.
putAttribute
(
"processDefinitionKey"
,
SapCostReimbursementApplication
.
PROCESS_DEFINITION_KEY
);
this
.
putAttribute
(
"procUnitId"
,
"Apply"
);
//定义流程环节的id
SDO
sdo
=
this
.
getSDO
();
String
type
=
sdo
.
getProperty
(
"type"
).
toString
();
SapCostReimbursement
sapCostReimbursement
=
new
SapCostReimbursement
();
sapCostReimbursement
.
setStatusId
(
BizBillStatus
.
APPLYING
.
getId
());
Operator
operator
=
getOperator
();
//获取当前操作员的详情信息
sapCostReimbursement
.
setDefaultValues
(
new
OrgUnit
(
operator
.
getFullId
(),
operator
.
getFullName
()));
sapCostReimbursement
.
setZepNo
(
sapCostReimbursement
.
getBillCode
());
return
forward
(
"costReimbursement"
,
sapCostReimbursement
);
switch
(
type
)
{
case
"cost"
:
return
forward
(
"costReimbursement"
,
sapCostReimbursement
);
case
"borrow"
:
return
forward
(
"costReimbursement"
,
sapCostReimbursement
);
case
"advance"
:
return
forward
(
"costReimbursement"
,
sapCostReimbursement
);
case
"pay"
:
return
forward
(
"payApply"
,
sapCostReimbursement
);
case
"refund"
:
return
forward
(
"refundApply"
,
sapCostReimbursement
);
}
return
null
;
}
...
...
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