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
339ef2e3
Commit
339ef2e3
authored
Jul 06, 2024
by
刘学辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
废品销售单修改
parent
cbb87e72
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
56 additions
and
30 deletions
+56
-30
wasteSaleDetail.js
...c/main/webapp/biz/topsun/sap/wasteSale/wasteSaleDetail.js
+41
-25
wasteSaleList.js
...src/main/webapp/biz/topsun/sap/wasteSale/wasteSaleList.js
+6
-5
SapPermitItemVo.java
...java/com/huigou/topsun/sap/permit/vo/SapPermitItemVo.java
+1
-0
WasteSaleApplicationImpl.java
.../wasteSale/application/impl/WasteSaleApplicationImpl.java
+8
-0
No files found.
topsun-xt/src/main/webapp/biz/topsun/sap/wasteSale/wasteSaleDetail.js
View file @
339ef2e3
...
@@ -61,7 +61,7 @@ function loadGrid() {
...
@@ -61,7 +61,7 @@ function loadGrid() {
function
getGridColumns
(){
function
getGridColumns
(){
var
columns
=
[];
var
columns
=
[];
columns
.
push
({
columns
.
push
({
display
:
"序号"
,
name
:
"sequence"
,
width
:
10
0
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
display
:
"序号"
,
name
:
"sequence"
,
width
:
6
0
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
},)
},)
columns
.
push
({
columns
.
push
({
display
:
"品类"
,
name
:
"wasteTypeTextView"
,
width
:
200
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
display
:
"品类"
,
name
:
"wasteTypeTextView"
,
width
:
200
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
...
@@ -83,13 +83,13 @@ function getGridColumns(){
...
@@ -83,13 +83,13 @@ function getGridColumns(){
}
}
},)
},)
columns
.
push
({
columns
.
push
({
display
:
"数量"
,
name
:
"quantity"
,
width
:
2
00
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
display
:
"数量"
,
name
:
"quantity"
,
width
:
1
00
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
editor
:
{
required
:
true
,
type
:
"text"
,
mask
:
'9999999.99'
required
:
true
,
type
:
"text"
,
mask
:
'9999999.99'
}
}
},)
},)
columns
.
push
({
columns
.
push
({
display
:
"计量单位"
,
name
:
"unitName"
,
width
:
20
0
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
display
:
"计量单位"
,
name
:
"unitName"
,
width
:
16
0
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
editor
:
{
required
:
true
,
type
:
"select"
,
required
:
true
,
type
:
"select"
,
data
:
{
data
:
{
...
@@ -105,45 +105,61 @@ function getGridColumns(){
...
@@ -105,45 +105,61 @@ function getGridColumns(){
},
},
}
}
},)
},)
columns
.
push
({
display
:
"毛重"
,
name
:
"grossWeight"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
required
:
false
,
type
:
"text"
,
mask
:
'9999999.99'
}
},)
columns
.
push
({
display
:
"车辆皮重"
,
name
:
"carWeight"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
required
:
false
,
type
:
"text"
,
mask
:
'9999999.99'
}
},)
var
subProcUnitId
=
getSubProcUnitId
();
var
subProcUnitId
=
getSubProcUnitId
();
var
statusId
=
$
(
"#statusId"
).
val
();
var
statusId
=
$
(
"#statusId"
).
val
();
if
(
subProcUnitId
===
"purchase"
||
statusId
>
0
){
if
(
subProcUnitId
===
"purchase"
||
statusId
>
0
){
//采购部专员录入回收单价,自动计算出总价,补充收款账户
//采购部专员录入回收单价,自动计算出总价,补充收款账户
columns
.
push
({
columns
.
push
({
display
:
"
单价"
,
name
:
"price"
,
width
:
20
0
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
display
:
"
扣减重量"
,
name
:
"deductWeight"
,
width
:
12
0
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
editor
:
{
required
:
true
,
type
:
"text"
,
mask
:
'9999999.99'
required
:
false
,
type
:
"text"
,
mask
:
'9999999.99'
},
render
:
function
(
item
)
{
if
(
Public
.
isNotBlank
(
item
.
deductWeight
))
{
var
amount
=
MathUtil
.
sub
(
item
.
grossWeight
,
item
.
carWeight
);
var
amount1
=
MathUtil
.
sub
(
amount
,
item
.
deductWeight
);
item
.
quantity
=
amount1
;
return
item
.
deductWeight
;
}
}
},)
if
(
Public
.
isNotBlank
(
item
.
quantity
)
&&
Public
.
isNotBlank
(
item
.
price
))
{
columns
.
push
({
var
amount
=
MathUtil
.
mul
(
item
.
quantity
,
item
.
price
)
display
:
"总价"
,
name
:
"amount"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
render
:
function
(
item
){
if
(
Public
.
isNotBlank
(
item
.
quantity
)
&&
Public
.
isNotBlank
(
item
.
price
)){
var
amount
=
MathUtil
.
mul
(
item
.
quantity
,
item
.
price
)
countTotalMoney
();
countTotalMoney
();
return
item
.
amount
=
amount
return
item
.
amount
=
amount
}
}
}
}
},)
},)
columns
.
push
({
columns
.
push
({
display
:
"
车辆皮重"
,
name
:
"carWeight"
,
width
:
15
0
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
display
:
"
单价"
,
name
:
"price"
,
width
:
12
0
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
editor
:
{
required
:
fals
e
,
type
:
"text"
,
mask
:
'9999999.99'
required
:
tru
e
,
type
:
"text"
,
mask
:
'9999999.99'
}
}
},)
},)
columns
.
push
({
columns
.
push
({
display
:
"毛重"
,
name
:
"grossWeight"
,
width
:
150
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
display
:
"总价"
,
name
:
"amount"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
render
:
function
(
item
){
required
:
false
,
type
:
"text"
,
mask
:
'9999999.99'
if
(
Public
.
isNotBlank
(
item
.
quantity
)
&&
Public
.
isNotBlank
(
item
.
price
)){
var
amount
=
MathUtil
.
mul
(
item
.
quantity
,
item
.
price
)
countTotalMoney
();
return
item
.
amount
=
amount
}
}
},)
columns
.
push
({
display
:
"扣减重量"
,
name
:
"deductWeight"
,
width
:
150
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
required
:
false
,
type
:
"text"
,
mask
:
'9999999.99'
}
}
},)
},)
columns
.
push
({
/*columns.push({
display: "净重", name: "netWeight", width: 150, minWidth: 60, type: "string", align: "left",
display: "净重", name: "netWeight", width: 150, minWidth: 60, type: "string", align: "left",
editor: {
editor: {
required: false, type: "text",mask: '9999999.99'
required: false, type: "text",mask: '9999999.99'
...
@@ -154,7 +170,7 @@ function getGridColumns(){
...
@@ -154,7 +170,7 @@ function getGridColumns(){
editor: {
editor: {
required: false, type: "text"
required: false, type: "text"
}
}
},)
},)
*/
}
}
return
columns
;
return
columns
;
}
}
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/wasteSale/wasteSaleList.js
View file @
339ef2e3
...
@@ -16,15 +16,16 @@ function loadGrid() {
...
@@ -16,15 +16,16 @@ function loadGrid() {
columns
:
[
columns
:
[
{
display
:
"单据编号"
,
name
:
"billCode"
,
width
:
150
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"单据编号"
,
name
:
"billCode"
,
width
:
150
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"创建日期"
,
name
:
"fillinDate"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"创建日期"
,
name
:
"fillinDate"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"申请状态"
,
name
:
"statusTextView"
,
width
:
60
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"申请人"
,
name
:
"personMemberName"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"申请人"
,
name
:
"personMemberName"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"申请部门"
,
name
:
"deptName"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"申请部门"
,
name
:
"deptName"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"公司代码"
,
name
:
"burks"
,
width
:
2
00
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"公司代码"
,
name
:
"burks"
,
width
:
1
00
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"回收商"
,
name
:
"bktxt"
,
width
:
200
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"回收商"
,
name
:
"bktxt"
,
width
:
200
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"回收日期"
,
name
:
"budat"
,
width
:
20
0
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"回收日期"
,
name
:
"budat"
,
width
:
14
0
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"收款方式"
,
name
:
"paymentMethodTextView"
,
width
:
200
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"收款方式"
,
name
:
"paymentMethodTextView"
,
width
:
200
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"合计
"
,
name
:
"totalMoney"
,
width
:
200
,
minWidth
:
60
,
type
:
"string"
,
align
:
"lef
t"
},
{
display
:
"合计
金额"
,
name
:
"totalMoney"
,
width
:
120
,
minWidth
:
60
,
type
:
"number"
,
align
:
"righ
t"
},
{
display
:
"车牌号"
,
name
:
"carNo"
,
width
:
20
0
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"车牌号"
,
name
:
"carNo"
,
width
:
16
0
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"备注"
,
name
:
"remark"
,
width
:
3
00
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"备注"
,
name
:
"remark"
,
width
:
2
00
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"消息类型"
,
name
:
"type"
,
width
:
100
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"消息类型"
,
name
:
"type"
,
width
:
100
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"会计凭证编号"
,
name
:
"messageV1"
,
width
:
200
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"会计凭证编号"
,
name
:
"messageV1"
,
width
:
200
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
],
],
...
...
topsun/src/main/java/com/huigou/topsun/sap/permit/vo/SapPermitItemVo.java
View file @
339ef2e3
...
@@ -27,6 +27,7 @@ public class SapPermitItemVo {
...
@@ -27,6 +27,7 @@ public class SapPermitItemVo {
*/
*/
private
String
unit
;
private
String
unit
;
private
String
unitName
;
/**
/**
* 备注
* 备注
...
...
topsun/src/main/java/com/huigou/topsun/sap/wasteSale/application/impl/WasteSaleApplicationImpl.java
View file @
339ef2e3
...
@@ -2,6 +2,7 @@ package com.huigou.topsun.sap.wasteSale.application.impl;
...
@@ -2,6 +2,7 @@ package com.huigou.topsun.sap.wasteSale.application.impl;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.bean.BeanUtil
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.huigou.cache.DictUtil
;
import
com.huigou.data.domain.model.CommonDomainConstants
;
import
com.huigou.data.domain.model.CommonDomainConstants
;
import
com.huigou.data.query.model.QueryDescriptor
;
import
com.huigou.data.query.model.QueryDescriptor
;
import
com.huigou.data.query.model.QueryModel
;
import
com.huigou.data.query.model.QueryModel
;
...
@@ -76,6 +77,8 @@ public class WasteSaleApplicationImpl extends FlowBroker implements WasteSaleApp
...
@@ -76,6 +77,8 @@ public class WasteSaleApplicationImpl extends FlowBroker implements WasteSaleApp
public
Map
<
String
,
Object
>
slicedWasteSaleList
(
WasteSaleQueryRequest
queryRequest
)
{
public
Map
<
String
,
Object
>
slicedWasteSaleList
(
WasteSaleQueryRequest
queryRequest
)
{
QueryDescriptor
queryDescriptor
=
this
.
sqlExecutorDao
.
getQuery
(
QUERY_XML_FILE_PATH
,
"wasteSale"
);
QueryDescriptor
queryDescriptor
=
this
.
sqlExecutorDao
.
getQuery
(
QUERY_XML_FILE_PATH
,
"wasteSale"
);
QueryModel
queryModel
=
this
.
sqlExecutorDao
.
getQueryModel
(
queryDescriptor
,
queryRequest
);
QueryModel
queryModel
=
this
.
sqlExecutorDao
.
getQueryModel
(
queryDescriptor
,
queryRequest
);
queryModel
.
putDictionary
(
"status"
,
DictUtil
.
getDictionary
(
"bizBillStatus"
));
queryModel
.
addCriteria
(
" order by bill_code desc "
);
Map
<
String
,
Object
>
map
=
this
.
sqlExecutorDao
.
executeSlicedQuery
(
queryModel
);
Map
<
String
,
Object
>
map
=
this
.
sqlExecutorDao
.
executeSlicedQuery
(
queryModel
);
return
map
;
return
map
;
}
}
...
@@ -153,7 +156,12 @@ public class WasteSaleApplicationImpl extends FlowBroker implements WasteSaleApp
...
@@ -153,7 +156,12 @@ public class WasteSaleApplicationImpl extends FlowBroker implements WasteSaleApp
SapPermitItemVo
sapPermitItemVo
=
new
SapPermitItemVo
();
SapPermitItemVo
sapPermitItemVo
=
new
SapPermitItemVo
();
sapPermitItemVo
.
setBelongings
(
wasteSaleItem
.
getSaleGoods
());
sapPermitItemVo
.
setBelongings
(
wasteSaleItem
.
getSaleGoods
());
sapPermitItemVo
.
setUnit
(
wasteSaleItem
.
getUnit
());
sapPermitItemVo
.
setUnit
(
wasteSaleItem
.
getUnit
());
String
remark
=
"车辆皮重:"
+
wasteSaleItem
.
getCarWeight
()+
" 毛重:"
+
wasteSaleItem
.
getGrossWeight
()+
" 扣减重量:"
+
wasteSaleItem
.
getDeductWeight
();
//+"净重:"+wasteSaleItem.getNetWeight();
sapPermitItemVo
.
setRemark
(
remark
);
sapPermitItemVo
.
setQuantity
(
wasteSaleItem
.
getQuantity
());
sapPermitItemVo
.
setQuantity
(
wasteSaleItem
.
getQuantity
());
sapPermitItemVo
.
setUnit
(
wasteSaleItem
.
getUnit
());
sapPermitItemVo
.
setUnitName
(
wasteSaleItem
.
getUnitName
());
sapPermitItemVos
.
add
(
sapPermitItemVo
);
sapPermitItemVos
.
add
(
sapPermitItemVo
);
}
}
sapPermitVo
.
setItemVos
(
sapPermitItemVos
);
sapPermitVo
.
setItemVos
(
sapPermitItemVos
);
...
...
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