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
fea73b76
Commit
fea73b76
authored
Dec 30, 2024
by
1650842865
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
成本中心领料需在bpm增加用途
parent
e92a7b35
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
51 additions
and
3 deletions
+51
-3
nonProducePickDetail.js
...app/biz/topsun/sap/nonProducePick/nonProducePickDetail.js
+28
-2
nonProducePickList.js
...ebapp/biz/topsun/sap/nonProducePick/nonProducePickList.js
+1
-1
NonProducePickApplicationImpl.java
...ePick/application/impl/NonProducePickApplicationImpl.java
+2
-0
NonProducePickController.java
...p/nonProducePick/controller/NonProducePickController.java
+9
-0
NonProducePickItemVo.java
...ou/topsun/sap/nonProducePick/vo/NonProducePickItemVo.java
+11
-0
No files found.
topsun-xt/src/main/webapp/biz/topsun/sap/nonProducePick/nonProducePickDetail.js
View file @
fea73b76
...
@@ -4,6 +4,7 @@ $(document).ready(function () {
...
@@ -4,6 +4,7 @@ $(document).ready(function () {
initialize
();
initialize
();
loadGrid
();
loadGrid
();
bindEvent
();
bindEvent
();
initUsed
(
$
(
'#kostl'
).
val
());
});
});
function
initialize
(){
function
initialize
(){
UICtrl
.
layout
(
"#layout"
,
{
leftWidth
:
3
});
UICtrl
.
layout
(
"#layout"
,
{
leftWidth
:
3
});
...
@@ -47,6 +48,7 @@ function bindEvent(){
...
@@ -47,6 +48,7 @@ function bindEvent(){
$
(
'#aufnrName'
).
val
(
null
);
$
(
'#aufnrName'
).
val
(
null
);
Public
.
tip
(
"选择成本中心,不能选择内部订单"
);
Public
.
tip
(
"选择成本中心,不能选择内部订单"
);
}
}
initUsed
(
data
.
KOSTL
);
}
}
});
});
$
(
'#aufnrName'
).
searchbox
({
$
(
'#aufnrName'
).
searchbox
({
...
@@ -64,6 +66,7 @@ function bindEvent(){
...
@@ -64,6 +66,7 @@ function bindEvent(){
$
(
'#kostlName'
).
val
(
null
);
$
(
'#kostlName'
).
val
(
null
);
Public
.
tip
(
"选择内部订单,不能选择成本中心"
);
Public
.
tip
(
"选择内部订单,不能选择成本中心"
);
}
}
initUsed
(
""
);
}
}
});
});
}
}
...
@@ -156,8 +159,17 @@ function loadGrid() {
...
@@ -156,8 +159,17 @@ function loadGrid() {
editor
:
{
type
:
"text"
,
maxLength
:
500
}
editor
:
{
type
:
"text"
,
maxLength
:
500
}
},
},
{
{
display
:
"备注用途"
,
name
:
"used"
,
width
:
200
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
display
:
"备注用途"
,
name
:
"usedTextView"
,
width
:
200
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
type
:
"text"
,
maxLength
:
500
}
editor
:
{
type
:
'dictionary'
,
data
:
{
name
:
'used'
},
textField
:
'usedTextView'
,
valueField
:
'used'
,
required
:
true
,
render
:
function
(
item
)
{
return
item
.
usedTextView
;
}
},
},
},
// {
// {
// display: "", name: "remark", width: 300, minWidth: 60, type: "string", align: "left",
// display: "", name: "remark", width: 300, minWidth: 60, type: "string", align: "left",
...
@@ -188,6 +200,20 @@ function loadGrid() {
...
@@ -188,6 +200,20 @@ function loadGrid() {
UICtrl
.
setSearchAreaToggle
(
gridManager
);
UICtrl
.
setSearchAreaToggle
(
gridManager
);
}
}
function
initUsed
(
kostl
){
var
columns
=
gridManager
.
columns
;
columns
.
some
(
column
=>
{
if
(
column
.
name
==
"used"
){
column
.
editor
.
required
=
Public
.
isNotBlank
(
kostl
)?
true
:
false
;
return
true
;
}
return
false
;
})
columns
.
splice
(
0
,
1
)
UICtrl
.
setGridColumns
(
gridManager
,
columns
);
}
/**
/**
* 流程引擎回调设置打样的id
* 流程引擎回调设置打样的id
* @param value 打样申请的id
* @param value 打样申请的id
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/nonProducePick/nonProducePickList.js
View file @
fea73b76
...
@@ -35,7 +35,7 @@ function loadGrid() {
...
@@ -35,7 +35,7 @@ function loadGrid() {
{
display
:
"数量"
,
name
:
"erfmg"
,
width
:
100
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,},
{
display
:
"数量"
,
name
:
"erfmg"
,
width
:
100
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,},
{
display
:
"计量单位"
,
name
:
"msehl"
,
width
:
90
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,},
{
display
:
"计量单位"
,
name
:
"msehl"
,
width
:
90
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,},
{
display
:
"领料方"
,
name
:
"wempf"
,
width
:
200
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,},
{
display
:
"领料方"
,
name
:
"wempf"
,
width
:
200
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,},
{
display
:
"备注用途"
,
name
:
"used"
,
width
:
200
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,},
{
display
:
"备注用途"
,
name
:
"used
TextView
"
,
width
:
200
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,},
{
display
:
"审批状态"
,
name
:
"statusTextView"
,
width
:
100
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"审批状态"
,
name
:
"statusTextView"
,
width
:
100
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"消息类型"
,
name
:
"typeTextView"
,
width
:
100
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"消息类型"
,
name
:
"typeTextView"
,
width
:
100
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
],
],
...
...
topsun/src/main/java/com/huigou/topsun/sap/nonProducePick/application/impl/NonProducePickApplicationImpl.java
View file @
fea73b76
...
@@ -2,6 +2,7 @@ package com.huigou.topsun.sap.nonProducePick.application.impl;
...
@@ -2,6 +2,7 @@ package com.huigou.topsun.sap.nonProducePick.application.impl;
import
cn.hutool.core.util.ObjectUtil
;
import
cn.hutool.core.util.ObjectUtil
;
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
;
...
@@ -106,6 +107,7 @@ public class NonProducePickApplicationImpl extends FlowBroker implements NonProd
...
@@ -106,6 +107,7 @@ public class NonProducePickApplicationImpl extends FlowBroker implements NonProd
nonProducePickItemVo
.
setWerks
(
nonProducePick
.
getWerks
());
nonProducePickItemVo
.
setWerks
(
nonProducePick
.
getWerks
());
nonProducePickItemVo
.
setErfme
(
pickItem
.
getMeins
());
nonProducePickItemVo
.
setErfme
(
pickItem
.
getMeins
());
nonProducePickItemVo
.
setResItem
(
pickItem
.
getRspos
());
nonProducePickItemVo
.
setResItem
(
pickItem
.
getRspos
());
nonProducePickItemVo
.
setZtext
(
DictUtil
.
getDictionaryDetailText
(
"used"
,
pickItem
.
getUsed
()));
return
nonProducePickItemVo
;
return
nonProducePickItemVo
;
}).
collect
(
Collectors
.
toList
());
}).
collect
(
Collectors
.
toList
());
nonProducePickVo
.
setItems
(
pickItemVoList
);
nonProducePickVo
.
setItems
(
pickItemVoList
);
...
...
topsun/src/main/java/com/huigou/topsun/sap/nonProducePick/controller/NonProducePickController.java
View file @
fea73b76
package
com
.
huigou
.
topsun
.
sap
.
nonProducePick
.
controller
;
package
com
.
huigou
.
topsun
.
sap
.
nonProducePick
.
controller
;
import
com.huigou.cache.DictUtil
;
import
com.huigou.context.Operator
;
import
com.huigou.context.Operator
;
import
com.huigou.context.OrgUnit
;
import
com.huigou.context.OrgUnit
;
import
com.huigou.data.domain.query.QueryPageRequest
;
import
com.huigou.data.domain.query.QueryPageRequest
;
...
@@ -28,6 +29,7 @@ import java.time.format.DateTimeFormatter;
...
@@ -28,6 +29,7 @@ import java.time.format.DateTimeFormatter;
import
java.util.Arrays
;
import
java.util.Arrays
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.Set
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
/**
/**
...
@@ -95,6 +97,13 @@ public class NonProducePickController extends CommonController {
...
@@ -95,6 +97,13 @@ public class NonProducePickController extends CommonController {
map
.
put
(
"itemList"
,
itemList
);
map
.
put
(
"itemList"
,
itemList
);
BigDecimal
bigDecimal
=
itemList
.
stream
().
map
(
NonProducePickItem:
:
getErfmg
).
reduce
(
BigDecimal
.
ZERO
,
BigDecimal:
:
add
);
BigDecimal
bigDecimal
=
itemList
.
stream
().
map
(
NonProducePickItem:
:
getErfmg
).
reduce
(
BigDecimal
.
ZERO
,
BigDecimal:
:
add
);
map
.
put
(
"count"
,
bigDecimal
);
map
.
put
(
"count"
,
bigDecimal
);
Set
<
String
>
usedSet
=
itemList
.
stream
()
.
map
(
nonProducePickItem
->
{
return
DictUtil
.
getDictionaryDetailText
(
"used"
,
nonProducePickItem
.
getUsed
());
})
.
collect
(
Collectors
.
toSet
());
String
used
=
String
.
join
(
","
,
usedSet
);
map
.
put
(
"used"
,
used
);
File
file
=
new
File
(
nonProducePick
.
getMessage
()+
".png"
);
File
file
=
new
File
(
nonProducePick
.
getMessage
()+
".png"
);
if
(!
file
.
exists
())
{
if
(!
file
.
exists
())
{
String
IMG_TYPE_PNG
=
"image/png"
;
String
IMG_TYPE_PNG
=
"image/png"
;
...
...
topsun/src/main/java/com/huigou/topsun/sap/nonProducePick/vo/NonProducePickItemVo.java
View file @
fea73b76
...
@@ -61,4 +61,15 @@ public class NonProducePickItemVo implements Serializable {
...
@@ -61,4 +61,15 @@ public class NonProducePickItemVo implements Serializable {
@JsonProperty
(
"RES_ITEM"
)
@JsonProperty
(
"RES_ITEM"
)
private
String
resItem
;
private
String
resItem
;
/**
* 用途
*/
@JsonProperty
(
"ZYTBM"
)
private
String
used
;
/**
* 用途描述
*/
@JsonProperty
(
"ZTEXT"
)
private
String
ztext
;
}
}
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