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
4ae37c28
Commit
4ae37c28
authored
Mar 01, 2024
by
鲁鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
采购申请
parent
37062678
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
sapPurchaseDetail.js
.../main/webapp/biz/topsun/sap/purchase/sapPurchaseDetail.js
+5
-5
SapPurchaseApplicationImpl.java
...purchase/application/impl/SapPurchaseApplicationImpl.java
+5
-2
No files found.
topsun-xt/src/main/webapp/biz/topsun/sap/purchase/sapPurchaseDetail.js
View file @
4ae37c28
...
...
@@ -115,7 +115,7 @@ function getGridColumns() {
},
{
display
:
"库存地点"
,
name
:
"lgort"
,
width
:
"100"
,
align
:
"left"
,
type
:
"string"
,
editor
:
{
required
:
tru
e
,
type
:
"select"
,
required
:
fals
e
,
type
:
"select"
,
data
:
{
type
:
'system'
,
name
:
"dictionary"
,
...
...
@@ -132,8 +132,8 @@ function getGridColumns() {
{
display
:
"库存地点名称"
,
name
:
"lgobe"
,
width
:
"200"
,
align
:
"left"
,
type
:
"string"
,
//editor: {required: false, type: "text"}
},
{
display
:
"短文本"
,
name
:
"txz01"
,
width
:
"
1
00"
,
align
:
"left"
,
type
:
"string"
,
editor
:
{
required
:
fals
e
,
type
:
"text"
}
{
display
:
"短文本"
,
name
:
"txz01"
,
width
:
"
2
00"
,
align
:
"left"
,
type
:
"string"
,
editor
:
{
required
:
tru
e
,
type
:
"text"
}
},
{
display
:
"物料组"
,
name
:
"matkl"
,
width
:
"100"
,
align
:
"left"
,
type
:
"string"
,
editor
:
{
...
...
@@ -151,7 +151,7 @@ function getGridColumns() {
}
},
{
display
:
"申购数量"
,
name
:
"menge"
,
width
:
150
,
minWidth
:
60
,
type
:
"string"
,
align
:
"center"
,
editor
:
{
required
:
fals
e
,
type
:
"text"
,
mask
:
'9999999.999'
}
editor
:
{
required
:
tru
e
,
type
:
"text"
,
mask
:
'9999999.999'
}
},
{
display
:
"申购数量单位"
,
name
:
"meins"
,
width
:
150
,
minWidth
:
60
,
type
:
"string"
,
align
:
"center"
,
/*editor: {
...
...
@@ -167,7 +167,7 @@ function getGridColumns() {
}
},
}*/
editor
:
{
required
:
fals
e
,
type
:
"text"
}
editor
:
{
required
:
tru
e
,
type
:
"text"
}
},
{
display
:
"采购组"
,
name
:
"ekgrp"
,
width
:
150
,
minWidth
:
60
,
type
:
"string"
,
align
:
"center"
,
editor
:
{
...
...
topsun/src/main/java/com/huigou/topsun/sap/purchase/application/impl/SapPurchaseApplicationImpl.java
View file @
4ae37c28
...
...
@@ -3,6 +3,7 @@ package com.huigou.topsun.sap.purchase.application.impl;
import
cn.hutool.core.bean.BeanUtil
;
import
com.fasterxml.jackson.core.JsonProcessingException
;
import
com.fasterxml.jackson.databind.ObjectMapper
;
import
com.huigou.cache.SystemCache
;
import
com.huigou.data.query.model.QueryDescriptor
;
import
com.huigou.data.query.model.QueryModel
;
import
com.huigou.topsun.sap.common.HttpClient
;
...
...
@@ -55,7 +56,8 @@ public class SapPurchaseApplicationImpl extends FlowBroker implements SapPurchas
List
<
SapPurchaseVo
>
purchaseVoList
=
this
.
getSapPurchaseVoJson
(
sapPurchase
);
try
{
String
execute
=
httpClient
.
execute
(
purchaseVoList
,
"sap.purchase.url"
);
String
url
=
SystemCache
.
getParameter
(
"sap.purchase.url"
,
String
.
class
);
String
execute
=
httpClient
.
execute
(
purchaseVoList
,
url
);
System
.
out
.
println
(
"返回结果:"
+
execute
);
}
catch
(
IOException
e
)
{
throw
new
RuntimeException
(
e
);
...
...
@@ -83,7 +85,8 @@ public class SapPurchaseApplicationImpl extends FlowBroker implements SapPurchas
List
<
SapPurchaseVo
>
sapPurchaseVoList
=
this
.
getSapPurchaseVoJson
(
sapPurchase
);
try
{
String
execute
=
httpClient
.
execute
(
sapPurchaseVoList
,
"sap.purchase.url"
);
String
url
=
SystemCache
.
getParameter
(
"sap.purchase.url"
,
String
.
class
);
String
execute
=
httpClient
.
execute
(
sapPurchaseVoList
,
url
);
System
.
out
.
println
(
"返回结果:"
+
execute
);
}
catch
(
IOException
e
)
{
throw
new
RuntimeException
(
e
);
...
...
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