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
36f5de29
Commit
36f5de29
authored
Jul 22, 2024
by
鲁鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
物品报废申请与过账
parent
ec31762d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
2 deletions
+23
-2
productScrapApplyDetail.js
...z/topsun/sap/productScrapApply/productScrapApplyDetail.js
+1
-0
productScrapApplyList.js
...biz/topsun/sap/productScrapApply/productScrapApplyList.js
+2
-1
ProductScrapApplyController.java
...uctScrapApply/controller/ProductScrapApplyController.java
+8
-1
ProductScrapApplyItem.java
...n/sap/productScrapApply/domain/ProductScrapApplyItem.java
+6
-0
ProductScrapApplyVo.java
.../topsun/sap/productScrapApply/vo/ProductScrapApplyVo.java
+6
-0
No files found.
topsun-xt/src/main/webapp/biz/topsun/sap/productScrapApply/productScrapApplyDetail.js
View file @
36f5de29
...
...
@@ -41,6 +41,7 @@ function getGridColumns() {
{
display
:
"报废申请号"
,
name
:
"zsanum"
,
width
:
150
,
minWidth
:
60
,
type
:
"string"
,
align
:
"center"
}
,
{
display
:
"项目"
,
name
:
"zsapos"
,
width
:
150
,
minWidth
:
60
,
type
:
"string"
,
align
:
"center"
}
,
{
display
:
"物料"
,
name
:
"matnr"
,
width
:
150
,
minWidth
:
60
,
type
:
"string"
,
align
:
"center"
}
,
{
display
:
"物料描述"
,
name
:
"maktx"
,
width
:
300
,
minWidth
:
60
,
type
:
"string"
,
align
:
"center"
}
,
{
display
:
"数量"
,
name
:
"erfmg"
,
width
:
150
,
minWidth
:
60
,
type
:
"string"
,
align
:
"center"
}
,
{
display
:
"单位"
,
name
:
"erfme"
,
width
:
150
,
minWidth
:
60
,
type
:
"string"
,
align
:
"center"
}
//, {display: "单位描述", name: "erfmeName", width: 150, minWidth: 60, type: "string", align: "center"}
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/productScrapApply/productScrapApplyList.js
View file @
36f5de29
...
...
@@ -20,6 +20,7 @@ function initPurchaseListGrid() {
,
{
display
:
"报废申请号"
,
name
:
"zsanum"
,
width
:
150
,
minWidth
:
60
,
type
:
"string"
,
align
:
"center"
}
,
{
display
:
"项目"
,
name
:
"zsapos"
,
width
:
150
,
minWidth
:
60
,
type
:
"string"
,
align
:
"center"
}
,
{
display
:
"物料"
,
name
:
"matnr"
,
width
:
150
,
minWidth
:
60
,
type
:
"string"
,
align
:
"center"
}
,
{
display
:
"物描述料"
,
name
:
"maktx"
,
width
:
300
,
minWidth
:
60
,
type
:
"string"
,
align
:
"center"
}
,
{
display
:
"数量"
,
name
:
"erfmg"
,
width
:
150
,
minWidth
:
60
,
type
:
"string"
,
align
:
"center"
}
,
{
display
:
"单位"
,
name
:
"erfme"
,
width
:
150
,
minWidth
:
60
,
type
:
"string"
,
align
:
"center"
}
//, {display: "单位描述", name: "erfmeName", width: 150, minWidth: 60, type: "string", align: "center"}
...
...
@@ -63,7 +64,7 @@ function initPurchaseListGrid() {
}
,
onDblClickRow
:
function
(
data
,
rowindex
,
rowobj
)
{
viewHandler
(
data
.
i
d
);
viewHandler
(
data
.
productScrapApplyI
d
);
},
onAfterShowData
:
function
(
currentData
)
{
...
...
topsun/src/main/java/com/huigou/topsun/sap/productScrapApply/controller/ProductScrapApplyController.java
View file @
36f5de29
...
...
@@ -18,6 +18,7 @@ import org.slf4j.Logger;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.util.CollectionUtils
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.ResponseBody
;
...
...
@@ -56,7 +57,13 @@ public class ProductScrapApplyController extends CommonController {
LOG
.
info
(
"物品报废申请与过账平台数据=={}"
,
JSONUtil
.
toString
(
productScrapApplyVoListVo
));
String
billCode
=
""
;
try
{
billCode
=
this
.
productScrapApplyApplication
.
saveProductScrapApplyVo
(
productScrapApplyVoListVo
);
if
(
CollectionUtils
.
isEmpty
(
productScrapApplyVoListVo
)){
messageMap
.
put
(
"Message_Status"
,
"E"
);
messageMap
.
put
(
"Message_Text"
,
"未接收到数据,请检查"
);
messageMap
.
put
(
"ZBPMID"
,
billCode
);
}
else
{
billCode
=
this
.
productScrapApplyApplication
.
saveProductScrapApplyVo
(
productScrapApplyVoListVo
);
}
messageMap
.
put
(
"ZBPMID"
,
billCode
);
}
catch
(
RuntimeException
e
){
messageMap
.
put
(
"Message_Status"
,
"E"
);
...
...
topsun/src/main/java/com/huigou/topsun/sap/productScrapApply/domain/ProductScrapApplyItem.java
View file @
36f5de29
...
...
@@ -39,6 +39,12 @@ public class ProductScrapApplyItem extends AbstractEntity {
@Column
(
name
=
"MATNR"
)
private
String
matnr
;
/**
* 物料描述
*/
@JsonProperty
(
"MAKTX"
)
private
String
maktx
;
/**
* 数量
*/
...
...
topsun/src/main/java/com/huigou/topsun/sap/productScrapApply/vo/ProductScrapApplyVo.java
View file @
36f5de29
...
...
@@ -30,6 +30,12 @@ public class ProductScrapApplyVo implements Serializable {
@JsonProperty
(
"MATNR"
)
private
String
matnr
;
/**
* 物料描述
*/
@JsonProperty
(
"MAKTX"
)
private
String
maktx
;
/**
* 数量
*/
...
...
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