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
0aaeb724
Commit
0aaeb724
authored
Nov 02, 2024
by
鲁鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
品质异常报告增加单价和异常数量
parent
c2f7a9b1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
8 deletions
+36
-8
exceptionReportDetail.js
...p/biz/topsun/sap/exceptionReport/exceptionReportDetail.js
+30
-8
ExceptionReportItem.java
...opsun/sap/exceptionReport/domain/ExceptionReportItem.java
+6
-0
No files found.
topsun-xt/src/main/webapp/biz/topsun/sap/exceptionReport/exceptionReportDetail.js
View file @
0aaeb724
...
...
@@ -335,6 +335,7 @@ function initClientGrid() {
unitName
:
row
.
MEINS
,
currencyName
:
row
.
KOEIN
,
money
:
row
.
KWERT
,
price
:
row
.
NETWR
,
sendDate
:
row
.
LFDAT
});
}
...
...
@@ -377,10 +378,19 @@ function initClientGrid() {
//autoApplyNextEditor:false,
toolbar
:
clientToolbarOptions
,
onAfterEdit
:
function
(
item
)
{
if
(
item
.
column
.
name
==
'rmbMoney'
)
{
// if (item.column.name == 'rmbMoney') {
// countSum(clientGridManager.rows);
// var money = MathUtil.add(item.record.money, item.value);
// clientGridManager.updateRow(item.record, {totalMoney:money });
// }
//异常金额 = 异常数量 * 单价
if
(
item
.
column
.
name
==
"exceptionNumber"
||
item
.
column
.
name
==
"price"
){
if
(
Public
.
isNotBlank
(
item
.
record
.
exceptionNumber
)
&&
Public
.
isNotBlank
(
item
.
record
.
price
)){
clientGridManager
.
updateRow
(
item
.
record
,
{
money
:
MathUtil
.
mul
(
item
.
record
.
exceptionNumber
,
item
.
record
.
price
)
});
//损失金额 = 行项目异常金额总和 + 赔付金额
countSum
(
clientGridManager
.
rows
);
var
money
=
MathUtil
.
add
(
item
.
record
.
money
,
item
.
value
);
clientGridManager
.
updateRow
(
item
.
record
,
{
totalMoney
:
money
});
}
}
},
onAfterShowData
()
{
...
...
@@ -441,6 +451,9 @@ function getExceptionClientColumns(){
columns
.
push
(
{
display
:
"数量"
,
name
:
"PSMNG"
,
width
:
"60"
,
align
:
"left"
,
type
:
"string"
}
);
columns
.
push
(
{
display
:
"单价"
,
name
:
"NETWR"
,
width
:
"60"
,
align
:
"left"
,
type
:
"string"
}
);
columns
.
push
(
{
display
:
"单位"
,
name
:
"MEINS"
,
width
:
"60"
,
align
:
"left"
,
type
:
"string"
}
);
...
...
@@ -507,7 +520,8 @@ function getClientGridColumns() {
MEINS
:
"unitName"
,
KOEIN
:
"currencyName"
,
KWERT
:
"money"
,
LFDAT
:
"sendDate"
LFDAT
:
"sendDate"
,
NETWR
:
"price"
}
}
}
...
...
@@ -525,6 +539,14 @@ function getClientGridColumns() {
{
display
:
"数量"
,
name
:
"number"
,
width
:
"100"
,
align
:
"left"
,
type
:
"string"
,
editor
:
{
type
:
"text"
,
mask
:
'9999999.999'
}
}
);
columns
.
push
(
{
display
:
"异常数量"
,
name
:
"exceptionNumber"
,
width
:
"100"
,
align
:
"left"
,
type
:
"string"
,
editor
:
{
type
:
"text"
,
mask
:
'9999999.999'
}
}
);
columns
.
push
(
{
display
:
"单价"
,
name
:
"price"
,
width
:
"100"
,
align
:
"left"
,
type
:
"string"
,
editor
:
{
type
:
"text"
,
mask
:
'9999999.999'
}
}
);
columns
.
push
(
{
display
:
"单位"
,
name
:
"unitName"
,
width
:
"80"
,
align
:
"left"
,
type
:
"string"
,
editor
:
{
type
:
"text"
}
...
...
@@ -548,7 +570,7 @@ function getClientGridColumns() {
}
}
);
columns
.
push
(
{
display
:
"金额"
,
name
:
"money"
,
width
:
"100"
,
align
:
"left"
,
type
:
"string"
{
display
:
"
异常
金额"
,
name
:
"money"
,
width
:
"100"
,
align
:
"left"
,
type
:
"string"
,
editor
:
{
type
:
"text"
,
mask
:
'9999999.999'
}
}
);
columns
.
push
(
...
...
@@ -834,7 +856,7 @@ function getPurchaseGridColumns() {
editor
:
{
type
:
"text"
,
mask
:
'9999999.999'
}
},
{
display
:
"损失金额"
,
name
:
"totalMoney"
,
width
:
"100"
,
align
:
"left"
,
type
:
"string"
display
:
"损失
总
金额"
,
name
:
"totalMoney"
,
width
:
"100"
,
align
:
"left"
,
type
:
"string"
}
// {
// display: "出货日期", name: "sendDate", width: "140", align: "left", type: "date"
...
...
@@ -850,7 +872,7 @@ function countSum(zrow) {
// var zrow=itemGridManager.rows;
var
money
=
0
;
for
(
var
r
=
0
;
r
<
zrow
.
length
;
r
++
)
{
money
=
MathUtil
.
add
(
zrow
[
r
].
rmbM
oney
,
money
);
money
=
MathUtil
.
add
(
zrow
[
r
].
m
oney
,
money
);
}
money
=
MathUtil
.
add
(
$
(
'#payMoney'
).
val
(),
money
);
// for (var x=0;x<row.length;x++){
...
...
topsun/src/main/java/com/huigou/topsun/sap/exceptionReport/domain/ExceptionReportItem.java
View file @
0aaeb724
...
...
@@ -105,4 +105,10 @@ public class ExceptionReportItem extends AbstractEntity {
//异常原因类型 用于区分是生产 2 还是供应商原材料的明细 1
@Column
(
name
=
"reason_type"
)
private
String
reasonType
;
/**
* 异常数量
*/
@Column
(
name
=
"exception_number"
)
private
BigDecimal
exceptionNumber
;
}
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