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
451c6e9b
Commit
451c6e9b
authored
Sep 17, 2025
by
1650842865
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
功能优化
parent
aec81dd7
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
7 deletions
+14
-7
processOuter.ftl
...xt/src/main/webapp/template/print/topsun/processOuter.ftl
+3
-3
processOuter2.ftl
...t/src/main/webapp/template/print/topsun/processOuter2.ftl
+3
-3
SapPurchaseOrderApplicationImpl.java
...der/application/impl/SapPurchaseOrderApplicationImpl.java
+5
-1
processOutsource.xml
...s/config/topsun/sap/processOutsource/processOutsource.xml
+1
-0
sapPurchaseInfoRecordItem.xml
...n/sap/sapPurchaseInfoRecord/sapPurchaseInfoRecordItem.xml
+2
-0
No files found.
topsun-xt/src/main/webapp/template/print/topsun/processOuter.ftl
View file @
451c6e9b
...
@@ -124,10 +124,10 @@
...
@@ -124,10 +124,10 @@
<td
class=
"center"
>
单位
</td>
<td
class=
"center"
>
单位
</td>
<td
class=
"center"
>
数量
</td>
<td
class=
"center"
>
数量
</td>
<td
class=
"center"
>
单价
</td>
<td
class=
"center"
>
单价
</td>
<td
class=
"center"
>
运输费用
</td>
<td
class=
"center"
>
运输
<br/>
费用
</td>
<td
class=
"center"
>
包装费用
</td>
<td
class=
"center"
>
包装
<br/>
费用
</td>
<td
class=
"center"
>
总金额
</td>
<td
class=
"center"
>
总金额
</td>
<td
class=
"center"
>
外发工序
</td>
<td
class=
"center"
>
外发
<br/>
工序
</td>
<td
class=
"center"
>
仓库
</td>
<td
class=
"center"
>
仓库
</td>
</tr>
</tr>
<
#
list
materialList
as
detail
>
<
#
list
materialList
as
detail
>
...
...
topsun-xt/src/main/webapp/template/print/topsun/processOuter2.ftl
View file @
451c6e9b
...
@@ -124,10 +124,10 @@
...
@@ -124,10 +124,10 @@
<td
class=
"center"
>
单位
</td>
<td
class=
"center"
>
单位
</td>
<td
class=
"center"
>
数量
</td>
<td
class=
"center"
>
数量
</td>
<td
class=
"center"
>
单价
</td>
<td
class=
"center"
>
单价
</td>
<td
class=
"center"
>
运输费用
</td>
<td
class=
"center"
>
运输
<br/>
费用
</td>
<td
class=
"center"
>
包装费用
</td>
<td
class=
"center"
>
包装
<br/>
费用
</td>
<td
class=
"center"
>
总金额
</td>
<td
class=
"center"
>
总金额
</td>
<td
class=
"center"
>
外发工序
</td>
<td
class=
"center"
>
外发
<br/>
工序
</td>
<td
class=
"center"
>
仓库
</td>
<td
class=
"center"
>
仓库
</td>
</tr>
</tr>
<
#
list
materialList
as
detail
>
<
#
list
materialList
as
detail
>
...
...
topsun/src/main/java/com/huigou/topsun/sap/purchaseOrder/application/impl/SapPurchaseOrderApplicationImpl.java
View file @
451c6e9b
...
@@ -55,6 +55,7 @@ import com.huigou.uasp.bpm.engine.repository.RuntimeTaskExtensionRepository;
...
@@ -55,6 +55,7 @@ import com.huigou.uasp.bpm.engine.repository.RuntimeTaskExtensionRepository;
import
com.huigou.util.*
;
import
com.huigou.util.*
;
import
org.activiti.engine.delegate.DelegateExecution
;
import
org.activiti.engine.delegate.DelegateExecution
;
import
org.activiti.engine.delegate.DelegateTask
;
import
org.activiti.engine.delegate.DelegateTask
;
import
org.apache.commons.lang3.StringUtils
;
import
org.krysalis.barcode4j.HumanReadablePlacement
;
import
org.krysalis.barcode4j.HumanReadablePlacement
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.core.task.TaskExecutor
;
import
org.springframework.core.task.TaskExecutor
;
...
@@ -764,12 +765,15 @@ public class SapPurchaseOrderApplicationImpl extends FlowBroker implements SapPu
...
@@ -764,12 +765,15 @@ public class SapPurchaseOrderApplicationImpl extends FlowBroker implements SapPu
detailMap
.
put
(
"maktx"
,
outsourceOrderItem
.
getProductName
());
detailMap
.
put
(
"maktx"
,
outsourceOrderItem
.
getProductName
());
detailMap
.
put
(
"msehl"
,
outsourceOrderItem
.
getMeinsName
());
detailMap
.
put
(
"msehl"
,
outsourceOrderItem
.
getMeinsName
());
detailMap
.
put
(
"outProcess01"
,
outsourceOrderItem
.
get
Wempf
());
detailMap
.
put
(
"outProcess01"
,
outsourceOrderItem
.
get
Txz01
());
//改成工序描述
//临时工序外发,计算印张数;实际送货数量,LOSS数
//临时工序外发,计算印张数;实际送货数量,LOSS数
number
=
number
.
add
(
outsourceOrderItem
.
getMenge
());
//成品数量
number
=
number
.
add
(
outsourceOrderItem
.
getMenge
());
//成品数量
loss
=
loss
.
add
(
outsourceOrderItem
.
getPrintLoss
()
!=
null
?
outsourceOrderItem
.
getPrintLoss
()
:
BigDecimal
.
ZERO
);
//印张LOSS数改为LOSS数
loss
=
loss
.
add
(
outsourceOrderItem
.
getPrintLoss
()
!=
null
?
outsourceOrderItem
.
getPrintLoss
()
:
BigDecimal
.
ZERO
);
//印张LOSS数改为LOSS数
//查询工序报价
//查询工序报价
ProcessQuotedPriceItemNumber
quotedPriceItemNumber
=
processQuotedPriceItemApplication
.
findQuotedPriceByProductAndProcess
(
outsourceOrderItem
.
getProductCode
(),
outsourceOrderItem
.
getWempf
(),
outsourceOrderItem
.
getMenge
(),
outsourceOrderItem
.
getLifnr
());
ProcessQuotedPriceItemNumber
quotedPriceItemNumber
=
processQuotedPriceItemApplication
.
findQuotedPriceByProductAndProcess
(
outsourceOrderItem
.
getProductCode
(),
outsourceOrderItem
.
getWempf
(),
outsourceOrderItem
.
getMenge
(),
outsourceOrderItem
.
getLifnr
());
if
(
StringUtils
.
isBlank
(
quotedPriceItemNumber
.
getId
())){
quotedPriceItemNumber
=
processQuotedPriceItemApplication
.
findQuotedPriceByProductAndProcess
(
outsourceOrderItem
.
getProductCode
().
replaceAll
(
"^(0+)"
,
""
),
outsourceOrderItem
.
getWempf
(),
outsourceOrderItem
.
getMenge
(),
outsourceOrderItem
.
getLifnr
());
}
BigDecimal
freight
=
quotedPriceItemNumber
.
getFreight
();
//运输费
BigDecimal
freight
=
quotedPriceItemNumber
.
getFreight
();
//运输费
BigDecimal
packMoney
=
quotedPriceItemNumber
.
getPackMoney
();
//包装费
BigDecimal
packMoney
=
quotedPriceItemNumber
.
getPackMoney
();
//包装费
BigDecimal
priceAmount
=
productKey
.
getKbetr
();
BigDecimal
priceAmount
=
productKey
.
getKbetr
();
...
...
topsun/src/main/resources/config/topsun/sap/processOutsource/processOutsource.xml
View file @
451c6e9b
...
@@ -69,6 +69,7 @@
...
@@ -69,6 +69,7 @@
t.PRODUCT_NAME,
t.PRODUCT_NAME,
t.PRODUCT_TYPE,
t.PRODUCT_TYPE,
t.PRODUCT_TYPE_NAME,
t.PRODUCT_TYPE_NAME,
t.uebtk,
t.remark from sap_process_outsource_order_item t where 1=1
t.remark from sap_process_outsource_order_item t where 1=1
</sql-query>
</sql-query>
<condition
column=
"process_outsource_id"
name=
"processOutsourceId"
type=
"java.lang.String"
symbol=
"="
alias=
"t"
/>
<condition
column=
"process_outsource_id"
name=
"processOutsourceId"
type=
"java.lang.String"
symbol=
"="
alias=
"t"
/>
...
...
topsun/src/main/resources/config/topsun/sap/sapPurchaseInfoRecord/sapPurchaseInfoRecordItem.xml
View file @
451c6e9b
...
@@ -144,6 +144,8 @@
...
@@ -144,6 +144,8 @@
t.LTSBZ,
t.LTSBZ,
t.REMARK,
t.REMARK,
t.CANCEL_FLAG,
t.CANCEL_FLAG,
t.UNTTO,
t.UEBTO,
t.KNUMH from sap_purchase_info_record_item t where 1=1
t.KNUMH from sap_purchase_info_record_item t where 1=1
</sql-query>
</sql-query>
<condition
column=
"id"
name=
"ids"
symbol=
"in"
alias=
"t"
/>
<condition
column=
"id"
name=
"ids"
symbol=
"in"
alias=
"t"
/>
...
...
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