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
fe3adbd6
Commit
fe3adbd6
authored
Jun 17, 2025
by
1650842865
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
预付款选择供应商,一个PO带出汇总的金额
parent
b24e78e8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
330 additions
and
124 deletions
+330
-124
advancePayment.js
...webapp/biz/topsun/sap/costReimbursement/advancePayment.js
+192
-122
advancePayment.jsp
...ebapp/biz/topsun/sap/costReimbursement/advancePayment.jsp
+9
-0
advancePaymentDetail.js
.../biz/topsun/sap/costReimbursement/advancePaymentDetail.js
+92
-0
advancePaymentDetail.jsp
...biz/topsun/sap/costReimbursement/advancePaymentDetail.jsp
+19
-0
SapCostReimbursementController.java
...mbursement/controller/SapCostReimbursementController.java
+16
-0
SapPaymentApplication.java
...sap/sapApplication/application/SapPaymentApplication.java
+1
-1
SapPaymentApplicationImpl.java
...plication/application/impl/SapPaymentApplicationImpl.java
+1
-1
No files found.
topsun-xt/src/main/webapp/biz/topsun/sap/costReimbursement/advancePayment.js
View file @
fe3adbd6
This diff is collapsed.
Click to expand it.
topsun-xt/src/main/webapp/biz/topsun/sap/costReimbursement/advancePayment.jsp
View file @
fe3adbd6
...
@@ -58,6 +58,15 @@
...
@@ -58,6 +58,15 @@
<x:inputC
name=
"zepFtamount"
required=
"false"
readonly=
"true"
label=
"申请总金额(本位币)"
labelCol=
"2"
fieldCol=
"2"
mask=
"positiveMoney"
/>
<x:inputC
name=
"zepFtamount"
required=
"false"
readonly=
"true"
label=
"申请总金额(本位币)"
labelCol=
"2"
fieldCol=
"2"
mask=
"positiveMoney"
/>
<x:inputC
name=
"zepFtamount1"
required=
"false"
readonly=
"true"
label=
"申请总金额"
labelCol=
"2"
fieldCol=
"2"
mask=
"positiveMoney"
/>
<x:inputC
name=
"zepFtamount1"
required=
"false"
readonly=
"true"
label=
"申请总金额"
labelCol=
"2"
fieldCol=
"2"
mask=
"positiveMoney"
/>
</div>
</div>
<div
class=
"hg-form-row"
>
<x:inputC
name=
"partner"
required=
"true"
label=
"BP(合作伙伴)"
labelCol=
"2"
fieldCol=
"2"
wrapper=
"select"
/>
<x:inputC
name=
"koinh"
required=
"true"
readonly=
"true"
label=
"BP账号名称"
labelCol=
"2"
fieldCol=
"2"
/>
</div>
<div
class=
"hg-form-row"
>
<x:inputC
name=
"bankn"
required=
"true"
label=
"BP银行账号"
labelCol=
"2"
fieldCol=
"2"
wrapper=
"select"
/>
<x:hidden
name=
"swift"
/>
<x:inputC
name=
"bankl"
required=
"true"
readonly=
"true"
label=
"BP联行号"
labelCol=
"2"
fieldCol=
"2"
/>
</div>
<div
class=
"hg-form-row"
id=
"approvalMoney"
>
<div
class=
"hg-form-row"
id=
"approvalMoney"
>
<x:inputC
name=
"zepPtamount"
required=
"false"
readonly=
"true"
label=
"审批总金额(本位币)"
labelCol=
"2"
fieldCol=
"2"
mask=
"positiveMoney"
/>
<x:inputC
name=
"zepPtamount"
required=
"false"
readonly=
"true"
label=
"审批总金额(本位币)"
labelCol=
"2"
fieldCol=
"2"
mask=
"positiveMoney"
/>
<x:inputC
name=
"zepPtamount1"
required=
"false"
readonly=
"true"
label=
"审批总金额"
labelCol=
"2"
fieldCol=
"2"
mask=
"positiveMoney"
/>
<x:inputC
name=
"zepPtamount1"
required=
"false"
readonly=
"true"
label=
"审批总金额"
labelCol=
"2"
fieldCol=
"2"
mask=
"positiveMoney"
/>
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/costReimbursement/advancePaymentDetail.js
0 → 100644
View file @
fe3adbd6
var
gridManager
=
null
,
refreshFlag
=
false
;
$
(
document
).
ready
(
function
()
{
initUI
();
initGrid
();
}
);
function
initUI
()
{
UICtrl
.
initDefaultLayout
();
}
function
initGrid
()
{
var
toolbarOptions
=
UICtrl
.
getDefaultToolbarOptions
({
});
gridManager
=
UICtrl
.
grid
(
'#belnrgrid'
,
{
columns
:
[
{
display
:
"采购订单号"
,
name
:
"EBELN"
,
width
:
120
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
,
},
{
display
:
"采购订单行"
,
name
:
"EBELP"
,
width
:
120
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
,
},
{
display
:
"币别"
,
name
:
"WAERS"
,
width
:
120
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
,
},
{
display
:
"汇率"
,
name
:
"KURSF"
,
width
:
120
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
,
},
{
display
:
"不含税金额(本位币)"
,
name
:
"NETWR1"
,
width
:
120
,
minwidth
:
120
,
type
:
"money"
,
align
:
"left"
,
},
{
display
:
"税额(本位币)"
,
name
:
"KWETR1"
,
width
:
120
,
minwidth
:
120
,
type
:
"money"
,
align
:
"left"
,
},
{
display
:
"含税金额(本位币)"
,
name
:
"KZWI11"
,
width
:
120
,
minwidth
:
120
,
type
:
"money"
,
align
:
"left"
,
},
{
display
:
"税码"
,
name
:
"MWSKZ"
,
width
:
100
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
,
},
{
display
:
"不含税金额"
,
name
:
"NETWR"
,
width
:
120
,
minwidth
:
120
,
type
:
"money"
,
align
:
"left"
,
},
{
display
:
"税额"
,
name
:
"KWETR"
,
width
:
100
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
,
},
{
display
:
"含税金额"
,
name
:
"KZWI1"
,
width
:
120
,
minwidth
:
120
,
type
:
"money"
,
align
:
"left"
,
},
],
dataAction
:
'server'
,
url
:
web_app
.
name
+
'/sapCostReimbursement/getPurchaseOrders.ajax?'
,
parms
:
{
zepFtype
:
"D"
,
bukrs
:
$
(
"#bukrs"
).
val
(),
partner
:
$
(
"#partner"
).
val
()
},
toolbar
:
toolbarOptions
,
width
:
'99.8%'
,
height
:
400
,
pageSize
:
20
,
heightDiff
:
-
4
,
sortName
:
'num'
,
sortOrder
:
'asc'
,
checkbox
:
true
,
usePager
:
false
,
rownumbers
:
true
,
enabledEdit
:
true
,
fixedCellHeight
:
true
,
selectRowButtonOnly
:
true
,
enableObjectBag
:
true
,
}
);
UICtrl
.
setSearchAreaToggle
(
gridManager
);
}
function
reloadDetailGrid
()
{
gridManager
.
loadData
();
}
function
query
(
obj
)
{
var
param
=
$
(
obj
).
formToJSON
();
UICtrl
.
gridSearch
(
gridManager
,
param
);
}
function
resetForm
(
obj
)
{
$
(
obj
).
formClean
();
reloadDetailGrid
();
}
topsun-xt/src/main/webapp/biz/topsun/sap/costReimbursement/advancePaymentDetail.jsp
0 → 100644
View file @
fe3adbd6
<%@ page
contentType=
"text/html; charset=utf-8"
language=
"java"
%>
<%@ 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,dateTime,combox,attachment,commonTree,comboDialog"
/>
<script
src=
'
<c:url
value=
"/biz/topsun/sap/costReimbursement/advancePaymentDetail.js"
/>
'
type=
"text/javascript"
></script>
</head>
<body>
<div
class=
"container-fluid"
>
<div
position=
"center"
title=
""
>
<form
class=
"hg-form"
method=
"post"
action=
""
id=
"queryMainForm"
>
<x:hidden
name=
"partner"
/>
<x:hidden
name=
"bukrs"
/>
</form>
</div>
<div
id=
"belnrgrid"
></div>
</div>
</body>
\ No newline at end of file
topsun/src/main/java/com/huigou/topsun/sap/costReimbursement/controller/SapCostReimbursementController.java
View file @
fe3adbd6
...
@@ -246,6 +246,15 @@ public class SapCostReimbursementController extends CommonController {
...
@@ -246,6 +246,15 @@ public class SapCostReimbursementController extends CommonController {
return
forward
(
"payApplyDetail"
);
return
forward
(
"payApplyDetail"
);
}
}
public
String
showAddAdvancePaymentDetail
(){
SDO
sdo
=
this
.
getSDO
();
String
partner
=
sdo
.
getString
(
"partner"
);
String
bukrs
=
sdo
.
getString
(
"bukrs"
);
this
.
putAttribute
(
"partner"
,
partner
);
this
.
putAttribute
(
"bukrs"
,
bukrs
);
return
forward
(
"advancePaymentDetail"
);
}
public
String
getPartnerInvs
()
{
public
String
getPartnerInvs
()
{
SDO
sdo
=
this
.
getSDO
();
SDO
sdo
=
this
.
getSDO
();
SapCostReimbursementQueryRequest
queryRequest
=
sdo
.
toQueryRequest
(
SapCostReimbursementQueryRequest
.
class
);
SapCostReimbursementQueryRequest
queryRequest
=
sdo
.
toQueryRequest
(
SapCostReimbursementQueryRequest
.
class
);
...
@@ -260,4 +269,11 @@ public class SapCostReimbursementController extends CommonController {
...
@@ -260,4 +269,11 @@ public class SapCostReimbursementController extends CommonController {
});
});
return
packGridDataAndResult
(
mapList
);
return
packGridDataAndResult
(
mapList
);
}
}
public
String
getPurchaseOrders
()
{
SDO
sdo
=
this
.
getSDO
();
SapCostReimbursementQueryRequest
queryRequest
=
sdo
.
toQueryRequest
(
SapCostReimbursementQueryRequest
.
class
);
List
<
Map
<
String
,
String
>>
mapList
=
sapPaymentApplication
.
getPurchaseOrders
(
queryRequest
.
getBukrs
(),
queryRequest
.
getPartner
(),
queryRequest
.
getZepFtype
());
return
packGridDataAndResult
(
mapList
);
}
}
}
\ No newline at end of file
topsun/src/main/java/com/huigou/topsun/sap/sapApplication/application/SapPaymentApplication.java
View file @
fe3adbd6
...
@@ -51,7 +51,7 @@ public interface SapPaymentApplication {
...
@@ -51,7 +51,7 @@ public interface SapPaymentApplication {
* @return
* @return
* @throws IOException
* @throws IOException
*/
*/
List
<
Map
<
String
,
String
>>
getPurchaseOrders
(
String
BUKRS
,
String
PARTNER
,
String
ZEP_FTYPE
)
throws
IOException
;
List
<
Map
<
String
,
String
>>
getPurchaseOrders
(
String
BUKRS
,
String
PARTNER
,
String
ZEP_FTYPE
);
/**
/**
* 根据公司代码、BP(合作伙伴)、付款申请类别查询发票
* 根据公司代码、BP(合作伙伴)、付款申请类别查询发票
...
...
topsun/src/main/java/com/huigou/topsun/sap/sapApplication/application/impl/SapPaymentApplicationImpl.java
View file @
fe3adbd6
...
@@ -127,7 +127,7 @@ public class SapPaymentApplicationImpl implements SapPaymentApplication {
...
@@ -127,7 +127,7 @@ public class SapPaymentApplicationImpl implements SapPaymentApplication {
}
}
@Override
@Override
public
List
<
Map
<
String
,
String
>>
getPurchaseOrders
(
String
BUKRS
,
String
PARTNER
,
String
ZEP_FTYPE
)
throws
IOException
{
public
List
<
Map
<
String
,
String
>>
getPurchaseOrders
(
String
BUKRS
,
String
PARTNER
,
String
ZEP_FTYPE
)
{
Map
<
String
,
Object
>
param
=
new
HashMap
<>();
Map
<
String
,
Object
>
param
=
new
HashMap
<>();
param
.
put
(
"BUKRS"
,
BUKRS
);
param
.
put
(
"BUKRS"
,
BUKRS
);
param
.
put
(
"PARTNER"
,
PARTNER
);
param
.
put
(
"PARTNER"
,
PARTNER
);
...
...
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