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
00c27e7f
Commit
00c27e7f
authored
Mar 29, 2024
by
刘学辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
物料主数据修改
parent
829730ef
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
53 additions
and
11 deletions
+53
-11
sapDullDetail.js
...n-xt/src/main/webapp/biz/topsun/sap/dull/sapDullDetail.js
+6
-3
nonProdApplyList.js
...in/webapp/biz/topsun/sap/nonProdApply/nonProdApplyList.js
+9
-1
nonProdApplyNext.js
...in/webapp/biz/topsun/sap/nonProdApply/nonProdApplyNext.js
+13
-3
sapStockTransfersDetail.js
...ebapp/biz/topsun/sap/transfers/sapStockTransfersDetail.js
+2
-2
BsnMessageApplicationImpl.java
...bsnMessage/appliction/impl/BsnMessageApplicationImpl.java
+6
-1
NonProdApplyDeptApplicationImpl.java
...ply/application/impl/NonProdApplyDeptApplicationImpl.java
+5
-1
NonProdApplyNextController.java
...p/nonProdApply/controller/NonProdApplyNextController.java
+6
-0
NonProdApplyBaseInfo.java
.../topsun/sap/nonProdApply/domain/NonProdApplyBaseInfo.java
+4
-0
SapNonProdApplyDept.java
...u/topsun/sap/nonProdApply/domain/SapNonProdApplyDept.java
+2
-0
No files found.
topsun-xt/src/main/webapp/biz/topsun/sap/dull/sapDullDetail.js
View file @
00c27e7f
...
@@ -14,7 +14,7 @@ function bindEvent(){
...
@@ -14,7 +14,7 @@ function bindEvent(){
$
(
'#werksName'
).
searchbox
({
$
(
'#werksName'
).
searchbox
({
type
:
"system"
,
name
:
"dictionary"
,
type
:
"system"
,
name
:
"dictionary"
,
getParam
:
function
(
item
)
{
getParam
:
function
(
item
)
{
return
{
fieldName
:
"
werks
"
}
return
{
fieldName
:
"
WERKS
"
}
},
},
onChange
:
function
(
value
,
data
)
{
onChange
:
function
(
value
,
data
)
{
$
(
'#werks'
).
val
(
data
.
WERKS
);
$
(
'#werks'
).
val
(
data
.
WERKS
);
...
@@ -22,9 +22,12 @@ function bindEvent(){
...
@@ -22,9 +22,12 @@ function bindEvent(){
}
}
});
});
$
(
'#matnrName'
).
searchbox
({
$
(
'#matnrName'
).
searchbox
({
type
:
"system"
,
name
:
"
dictionary
"
,
type
:
"system"
,
name
:
"
sapMaterialSelect
"
,
getParam
:
function
(
item
)
{
getParam
:
function
(
item
)
{
return
{
fieldName
:
"sapMaterialSelect"
}
return
{
/// fieldName: "sapMaterialSelect",
filterValue
:
$
(
'#werks'
).
val
()
}
},
},
onChange
:
function
(
value
,
data
)
{
onChange
:
function
(
value
,
data
)
{
$
(
'#matnr'
).
val
(
data
.
matnr
);
$
(
'#matnr'
).
val
(
data
.
matnr
);
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/nonProdApply/nonProdApplyList.js
View file @
00c27e7f
...
@@ -102,7 +102,15 @@ function loadNonProdApplyListGrid() {
...
@@ -102,7 +102,15 @@ function loadNonProdApplyListGrid() {
{
display
:
"物品属性"
,
name
:
"itemAttributesTextView"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"物品属性"
,
name
:
"itemAttributesTextView"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"业务用途"
,
name
:
"businessUsageTextView"
,
width
:
300
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"业务用途"
,
name
:
"businessUsageTextView"
,
width
:
300
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"文本说明"
,
name
:
"textDescription"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"文本说明"
,
name
:
"textDescription"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"是否分发"
,
name
:
"distribute"
,
width
:
80
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
render
:
function
(
item
){
var
result
=
"未分发"
;
if
(
item
.
distribute
===
"1"
){
result
=
"已分发"
;
}
return
result
;
}
},
],
],
dataAction
:
"server"
,
dataAction
:
"server"
,
url
:
web_app
.
name
+
'/sapNonProdApply/slicedNonProdApplyList.ajax'
,
url
:
web_app
.
name
+
'/sapNonProdApply/slicedNonProdApplyList.ajax'
,
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/nonProdApply/nonProdApplyNext.js
View file @
00c27e7f
...
@@ -29,8 +29,9 @@ function initializate() {
...
@@ -29,8 +29,9 @@ function initializate() {
$
(
"#showChart"
).
remove
();
$
(
"#showChart"
).
remove
();
}
}
break
;
break
;
case
'1'
:
//
完成/审核
case
'1'
:
//
已分发
// $("#auditForm").show();
// $("#auditForm").show();
$
(
"#buttonBox"
).
remove
();
break
;
break
;
case
'2'
:
//保存未分发
case
'2'
:
//保存未分发
$
(
"#buttonBox"
).
show
();
$
(
"#buttonBox"
).
show
();
...
@@ -119,7 +120,7 @@ function loadGrid() {
...
@@ -119,7 +120,7 @@ function loadGrid() {
gridManager
=
UICtrl
.
grid
(
"#businessPersonnelListGrid"
,
{
gridManager
=
UICtrl
.
grid
(
"#businessPersonnelListGrid"
,
{
columns
:
[
columns
:
[
{
display
:
"部门"
,
name
:
"deptName"
,
width
:
200
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"部门"
,
name
:
"deptName"
,
width
:
200
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"部门人员"
,
name
:
"userName"
,
width
:
2
0
0
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
{
display
:
"部门人员"
,
name
:
"userName"
,
width
:
2
8
0
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
editor
:
{
type
:
'tree'
,
type
:
'tree'
,
required
:
true
,
required
:
true
,
...
@@ -134,6 +135,15 @@ function loadGrid() {
...
@@ -134,6 +135,15 @@ function loadGrid() {
},
},
{
display
:
"人员Id"
,
name
:
"userCode"
,
width
:
260
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
hide
:
true
{
display
:
"人员Id"
,
name
:
"userCode"
,
width
:
260
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
hide
:
true
},
},
{
display
:
"是否处理"
,
name
:
"active"
,
width
:
160
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
disable
:
"true"
,
render
:
function
(
item
){
var
result
=
"否"
;
if
(
item
.
active
===
"1"
){
result
=
"是"
;
}
return
result
;
}
},
],
],
dataAction
:
"server"
,
dataAction
:
"server"
,
url
:
web_app
.
name
+
'/sapNonProdApplyNext/slicedDeptList.ajax'
,
url
:
web_app
.
name
+
'/sapNonProdApplyNext/slicedDeptList.ajax'
,
...
@@ -219,7 +229,7 @@ function distributeForm() {
...
@@ -219,7 +229,7 @@ function distributeForm() {
let
extendedData
=
getExtendedData
();
let
extendedData
=
getExtendedData
();
if
(
!
extendedData
)
return
false
;
if
(
!
extendedData
)
return
false
;
$
(
'#submitForm'
).
ajaxSubmit
({
$
(
'#submitForm'
).
ajaxSubmit
({
url
:
web_app
.
name
+
'/sapNonProdApplyNext/distributeSapNonProdApplyDept.ajax'
,
url
:
web_app
.
name
+
'/sapNonProdApplyNext/distributeSapNonProdApplyDept.ajax
?distribute=1
'
,
param
:
extendedData
,
param
:
extendedData
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
Public
.
successTip
(
"分发成功!"
);
Public
.
successTip
(
"分发成功!"
);
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/transfers/sapStockTransfersDetail.js
View file @
00c27e7f
...
@@ -16,7 +16,7 @@ function bindEvent(){
...
@@ -16,7 +16,7 @@ function bindEvent(){
$
(
'#lifnrName'
).
searchbox
({
$
(
'#lifnrName'
).
searchbox
({
type
:
"system"
,
name
:
"dictionary"
,
type
:
"system"
,
name
:
"dictionary"
,
getParam
:
function
(
item
)
{
getParam
:
function
(
item
)
{
return
{
fieldName
:
"
lifnr
"
}
return
{
fieldName
:
"
WERKS
"
}
},
},
onChange
:
function
(
value
,
data
)
{
onChange
:
function
(
value
,
data
)
{
$
(
'#lifnr'
).
val
(
data
.
WERKS
);
$
(
'#lifnr'
).
val
(
data
.
WERKS
);
...
@@ -49,7 +49,7 @@ function bindEvent(){
...
@@ -49,7 +49,7 @@ function bindEvent(){
$
(
'#burksName'
).
searchbox
({
$
(
'#burksName'
).
searchbox
({
type
:
"system"
,
name
:
"dictionary"
,
type
:
"system"
,
name
:
"dictionary"
,
getParam
:
function
(
item
)
{
getParam
:
function
(
item
)
{
return
{
fieldName
:
"BU
RK
S"
}
return
{
fieldName
:
"BU
KR
S"
}
},
},
onChange
:
function
(
value
,
data
)
{
onChange
:
function
(
value
,
data
)
{
$
(
'#burks'
).
val
(
data
.
BURKS
);
$
(
'#burks'
).
val
(
data
.
BURKS
);
...
...
topsun/src/main/java/com/huigou/topsun/base/bsnMessage/appliction/impl/BsnMessageApplicationImpl.java
View file @
00c27e7f
...
@@ -212,7 +212,12 @@ public class BsnMessageApplicationImpl extends BaseApplication implements BsnMes
...
@@ -212,7 +212,12 @@ public class BsnMessageApplicationImpl extends BaseApplication implements BsnMes
public
void
deleteBsnMessageSponsor
(
BsnMessageSponsor
entity
)
{
public
void
deleteBsnMessageSponsor
(
BsnMessageSponsor
entity
)
{
if
(
isNotEmpty
(
entity
.
getExecutes
()))
{
if
(
isNotEmpty
(
entity
.
getExecutes
()))
{
messageExecuteRepository
.
delete
(
entity
.
getExecutes
());
List
<
BsnMessageExecute
>
list
=
entity
.
getExecutes
();
for
(
BsnMessageExecute
bsnMessageExecute:
list
)
{
if
(
bsnMessageExecute
!=
null
){
messageExecuteRepository
.
delete
(
bsnMessageExecute
);
}
}
}
}
messageSponsorRepository
.
delete
(
entity
);
messageSponsorRepository
.
delete
(
entity
);
}
}
...
...
topsun/src/main/java/com/huigou/topsun/sap/nonProdApply/application/impl/NonProdApplyDeptApplicationImpl.java
View file @
00c27e7f
...
@@ -42,8 +42,12 @@ public class NonProdApplyDeptApplicationImpl extends BaseApplication implements
...
@@ -42,8 +42,12 @@ public class NonProdApplyDeptApplicationImpl extends BaseApplication implements
Integer
active
=
sdo
.
getInteger
(
"active"
);
Integer
active
=
sdo
.
getInteger
(
"active"
);
String
meId
=
sdo
.
getString
(
"meId"
);
String
meId
=
sdo
.
getString
(
"meId"
);
NonProdApplyBaseInfo
nonProdApplyBaseInfo
=
nonProdApplyBaseInfoRepository
.
findOne
(
sdo
.
getString
(
"id"
));
NonProdApplyBaseInfo
nonProdApplyBaseInfo
=
nonProdApplyBaseInfoRepository
.
findOne
(
sdo
.
getString
(
"id"
));
nonProdApplyBaseInfo
.
setBusinessUsage
(
sdo
.
getString
(
"businessUsage"
));
nonProdApplyBaseInfo
.
setBusinessUsage
(
sdo
.
getString
(
"businessUsage"
));
if
(
StringUtil
.
isNotBlank
(
sdo
.
getString
(
"distribute"
))){
//是否已分发
nonProdApplyBaseInfo
.
setDistribute
(
1
);
}
nonProdApplyBaseInfoRepository
.
save
(
nonProdApplyBaseInfo
);
nonProdApplyBaseInfoRepository
.
save
(
nonProdApplyBaseInfo
);
NonProdApplyDeptVo
deptVo
=
null
;
NonProdApplyDeptVo
deptVo
=
null
;
...
@@ -110,7 +114,7 @@ public class NonProdApplyDeptApplicationImpl extends BaseApplication implements
...
@@ -110,7 +114,7 @@ public class NonProdApplyDeptApplicationImpl extends BaseApplication implements
}
}
saveDeptStaff
(
deptStaffList
,
nonProdApplyDept
.
getApplyDeptId
(),
genericName
);
saveDeptStaff
(
deptStaffList
,
nonProdApplyDept
.
getApplyDeptId
(),
genericName
);
}
}
if
(
active
==
1
){
//各部门提交后,隐藏消息
if
(
active
!=
null
&&
active
==
1
){
//各部门提交后,隐藏消息
bsnMessageApplication
.
submitTask
(
meId
);
bsnMessageApplication
.
submitTask
(
meId
);
}
}
map
.
put
(
"applyDeptId"
,
nonProdApplyDept
.
getApplyDeptId
());
map
.
put
(
"applyDeptId"
,
nonProdApplyDept
.
getApplyDeptId
());
...
...
topsun/src/main/java/com/huigou/topsun/sap/nonProdApply/controller/NonProdApplyNextController.java
View file @
00c27e7f
...
@@ -114,6 +114,9 @@ public class NonProdApplyNextController extends CommonController {
...
@@ -114,6 +114,9 @@ public class NonProdApplyNextController extends CommonController {
}
}
if
(
nonProdApplyDept
!=
null
)
{
if
(
nonProdApplyDept
!=
null
)
{
getBaseInfoAttrs
(
nonProdApplyBaseInfo
,
nonProdApplyDept
);
getBaseInfoAttrs
(
nonProdApplyBaseInfo
,
nonProdApplyDept
);
if
(
nonProdApplyBaseInfo
.
getDistribute
()!=
null
&&
nonProdApplyBaseInfo
.
getDistribute
()==
1
){
this
.
putAttribute
(
"active"
,
1
);
}
return
forward
(
"nonProdApplyNext"
,
nonProdApplyDept
);
return
forward
(
"nonProdApplyNext"
,
nonProdApplyDept
);
}
else
{
}
else
{
this
.
putAttribute
(
"active"
,
0
);
this
.
putAttribute
(
"active"
,
0
);
...
@@ -150,11 +153,13 @@ public class NonProdApplyNextController extends CommonController {
...
@@ -150,11 +153,13 @@ public class NonProdApplyNextController extends CommonController {
String
value
=
serviceusage
.
get
(
key
);
String
value
=
serviceusage
.
get
(
key
);
resultMap
.
put
(
"deptCode"
,
key
);
resultMap
.
put
(
"deptCode"
,
key
);
resultMap
.
put
(
"deptName"
,
value
);
resultMap
.
put
(
"deptName"
,
value
);
for
(
BsnMessageExecute
executor
:
executeLists
)
{
for
(
BsnMessageExecute
executor
:
executeLists
)
{
if
(
key
.
equals
(
executor
.
getBusinessCode
()))
{
if
(
key
.
equals
(
executor
.
getBusinessCode
()))
{
resultMap
.
put
(
"userCode"
,
executor
.
getTaskExecute
());
resultMap
.
put
(
"userCode"
,
executor
.
getTaskExecute
());
Org
org
=
orgApplication
.
loadMainOrgByPersonId
(
executor
.
getTaskExecute
());
Org
org
=
orgApplication
.
loadMainOrgByPersonId
(
executor
.
getTaskExecute
());
resultMap
.
put
(
"userName"
,
org
.
getName
());
resultMap
.
put
(
"userName"
,
org
.
getName
());
resultMap
.
put
(
"active"
,
executor
.
getActive
().
toString
());
break
;
break
;
}
}
}
}
...
@@ -267,6 +272,7 @@ public void getBaseInfoAttrs(NonProdApplyBaseInfo baseInfo,SapNonProdApplyDept n
...
@@ -267,6 +272,7 @@ public void getBaseInfoAttrs(NonProdApplyBaseInfo baseInfo,SapNonProdApplyDept n
nonProdApplyDept
.
setBrand
(
baseInfo
.
getBrand
());
nonProdApplyDept
.
setBrand
(
baseInfo
.
getBrand
());
nonProdApplyDept
.
setMaterialUsage
(
baseInfo
.
getMaterialUsage
());
nonProdApplyDept
.
setMaterialUsage
(
baseInfo
.
getMaterialUsage
());
nonProdApplyDept
.
setItemAttributes
(
baseInfo
.
getItemAttributes
());
nonProdApplyDept
.
setItemAttributes
(
baseInfo
.
getItemAttributes
());
nonProdApplyDept
.
setDistribute
(
baseInfo
.
getDistribute
());
}
}
// @EasySearch(queryName = "userNameSelect")
// @EasySearch(queryName = "userNameSelect")
...
...
topsun/src/main/java/com/huigou/topsun/sap/nonProdApply/domain/NonProdApplyBaseInfo.java
View file @
00c27e7f
...
@@ -120,6 +120,10 @@ public class NonProdApplyBaseInfo extends FlowBillAbstractEntity {
...
@@ -120,6 +120,10 @@ public class NonProdApplyBaseInfo extends FlowBillAbstractEntity {
@Column
(
name
=
"kind"
)
@Column
(
name
=
"kind"
)
private
String
kind
;
private
String
kind
;
//是否分发 1表示已分发
@Column
(
name
=
"distribute"
)
private
Integer
distribute
;
@Transient
@Transient
private
String
applyType
;
private
String
applyType
;
...
...
topsun/src/main/java/com/huigou/topsun/sap/nonProdApply/domain/SapNonProdApplyDept.java
View file @
00c27e7f
...
@@ -864,6 +864,8 @@ public class SapNonProdApplyDept implements Serializable {
...
@@ -864,6 +864,8 @@ public class SapNonProdApplyDept implements Serializable {
private
String
materialUsage
;
private
String
materialUsage
;
@Transient
@Transient
private
String
itemAttributes
;
private
String
itemAttributes
;
@Transient
private
Integer
distribute
;
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
}
}
\ No newline at end of file
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