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
dae15bfb
Commit
dae15bfb
authored
Nov 12, 2024
by
1650842865
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工序外协申请中的供应商需要在已完成工序报价的供应商中选择;工序外协增加发运状态;
parent
dfeee517
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
95 additions
and
15 deletions
+95
-15
taskExecutionList.ftl
...-xt/src/main/webapp/template/simple/taskExecutionList.ftl
+1
-1
application.properties
topsun-xt/src/main/resources/application.properties
+0
-6
数据库变更记录
topsun-xt/src/main/resources/数据库变更记录
+4
-0
exceptionReportDetail.js
...p/biz/topsun/sap/exceptionReport/exceptionReportDetail.js
+11
-0
exceptionReportDetail.jsp
.../biz/topsun/sap/exceptionReport/exceptionReportDetail.jsp
+1
-1
processOutsourceDetail.js
...biz/topsun/sap/processOutsource/processOutsourceDetail.js
+7
-3
processOutsourceList.js
...p/biz/topsun/sap/processOutsource/processOutsourceList.js
+28
-1
ProcessOutsourceApplication.java
...essOutsource/application/ProcessOutsourceApplication.java
+2
-0
ProcessOutsourceApplicationImpl.java
...rce/application/impl/ProcessOutsourceApplicationImpl.java
+11
-2
ProcessOutsourceController.java
...ocessOutsource/controller/ProcessOutsourceController.java
+7
-0
ProcessOutsource.java
.../topsun/sap/processOutsource/domain/ProcessOutsource.java
+6
-0
easy-search-suppliers.xml
...urces/config/content/easysearch/easy-search-suppliers.xml
+15
-0
processOutsource.xml
...s/config/topsun/sap/processOutsource/processOutsource.xml
+2
-1
No files found.
huigou-xt/src/main/webapp/template/simple/taskExecutionList.ftl
View file @
dae15bfb
...
@@ -78,7 +78,7 @@
...
@@ -78,7 +78,7 @@
<div class='ui-text-label'>
<div class='ui-text-label'>
<#if task.handledDate?? && task.handledDate?trim?length gt 0>
<#if task.handledDate?? && task.handledDate?trim?length gt 0>
<#--<#if task.autoApproval == 1>${task.handledDate?string("yyyy-MM-dd")}</div><#rt/>-->
<#--<#if task.autoApproval == 1>${task.handledDate?string("yyyy-MM-dd")}</div><#rt/>-->
<#if parameters.pi?size gt 0 && parameters.pi??
&& parameters.pi.processDefinitionKey == "ssrfPurchaseMoneyProc"
>${task.handledDate?string("yyyy-MM-dd")}</div><#rt/>
<#if parameters.pi?size gt 0 && parameters.pi??>${task.handledDate?string("yyyy-MM-dd")}</div><#rt/>
<#else >
<#else >
${task.handledDate?html}</div><#rt/>
${task.handledDate?html}</div><#rt/>
</#if>
</#if>
...
...
topsun-xt/src/main/resources/application.properties
View file @
dae15bfb
...
@@ -3,13 +3,7 @@ pub.db.url=jdbc:mysql://192.168.3.91:3406/topsun_dev?serverTimezone=GMT%2B8&useU
...
@@ -3,13 +3,7 @@ pub.db.url=jdbc:mysql://192.168.3.91:3406/topsun_dev?serverTimezone=GMT%2B8&useU
#pub.db.url=jdbc:mysql://192.168.3.91:3406/topsun_320?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf-8&useSSL=false
#pub.db.url=jdbc:mysql://192.168.3.91:3406/topsun_320?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf-8&useSSL=false
pub.db.user
=
root
pub.db.user
=
root
pub.db.password
=
123456
pub.db.password
=
123456
#pub.db.url=jdbc:mysql://127.0.0.1:3306/topsun?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf-8&useSSL=false
#pub.db.user=topsun
#pub.db.password=topsun
#log.db.url=jdbc:mysql://127.0.0.1:3306/topsun?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf-8&useSSL=false
#log.db.user=topsun
#log.db.password=topsun
log.db.url
=
jdbc:mysql://192.168.3.91:3406/topsun_dev?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf-8&useSSL=false
log.db.url
=
jdbc:mysql://192.168.3.91:3406/topsun_dev?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf-8&useSSL=false
#log.db.url=jdbc:mysql://192.168.3.91:3406/topsun_test?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf-8&useSSL=false
#log.db.url=jdbc:mysql://192.168.3.91:3406/topsun_test?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf-8&useSSL=false
#log.db.url=jdbc:mysql://192.168.3.91:3406/topsun_320?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf-8&useSSL=false
#log.db.url=jdbc:mysql://192.168.3.91:3406/topsun_320?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf-8&useSSL=false
...
...
topsun-xt/src/main/resources/数据库变更记录
View file @
dae15bfb
...
@@ -158,3 +158,7 @@ ADD COLUMN `PRODUCT_TYPE_NAME` varchar(32) NULL COMMENT '产品类别描述' AFT
...
@@ -158,3 +158,7 @@ ADD COLUMN `PRODUCT_TYPE_NAME` varchar(32) NULL COMMENT '产品类别描述' AFT
--2024-11-04 品质异常单增加汇率
--2024-11-04 品质异常单增加汇率
ALTER TABLE `topsun_dev`.`sap_exception_report_item`
ALTER TABLE `topsun_dev`.`sap_exception_report_item`
ADD COLUMN `exchange_rate` decimal(10, 2) NULL DEFAULT NULL COMMENT '汇率' AFTER `exception_number`;
ADD COLUMN `exchange_rate` decimal(10, 2) NULL DEFAULT NULL COMMENT '汇率' AFTER `exception_number`;
--2024-11-12 外协工序增加已外发状态
ALTER TABLE `topsun_dev`.`sap_process_outsource`
ADD COLUMN `send_out` varchar(1) NULL COMMENT '已外发 1' AFTER `situation_desc`;
topsun-xt/src/main/webapp/biz/topsun/sap/exceptionReport/exceptionReportDetail.js
View file @
dae15bfb
...
@@ -98,6 +98,17 @@ function initialize() {
...
@@ -98,6 +98,17 @@ function initialize() {
}
}
}
}
});
});
$
(
'#customerNo'
).
searchbox
({
type
:
"system"
,
name
:
"dictionary"
,
getParam
:
function
(
item
)
{
return
{
fieldName
:
"KUNNR"
}
},
onChange
:
function
(
value
,
data
)
{
$
(
'#customerNo'
).
val
(
data
.
KUNNR
);
$
(
'#customerName'
).
val
(
data
.
NAME
);
}
});
}
}
function
clearExceptionType
(){
function
clearExceptionType
(){
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/exceptionReport/exceptionReportDetail.jsp
View file @
dae15bfb
...
@@ -65,7 +65,7 @@
...
@@ -65,7 +65,7 @@
</div>
</div>
<div
class=
"hg-form-cols"
id=
"produceDiv"
>
<div
class=
"hg-form-cols"
id=
"produceDiv"
>
<div
class=
"hg-form-row"
>
<div
class=
"hg-form-row"
>
<x:inputC
name=
"customerNo"
label=
"客户编号"
labelCol=
"1"
fieldCol=
"2"
required=
"false"
/>
<x:inputC
name=
"customerNo"
label=
"客户编号"
labelCol=
"1"
fieldCol=
"2"
required=
"false"
wrapper=
"select"
/>
<x:inputC
name=
"customerOrderNo"
label=
"生产单号/客户单号"
labelCol=
"2"
fieldCol=
"4"
wrapper=
"select"
required=
"false"
/>
<x:inputC
name=
"customerOrderNo"
label=
"生产单号/客户单号"
labelCol=
"2"
fieldCol=
"4"
wrapper=
"select"
required=
"false"
/>
<x:inputC
name=
"customerName"
label=
"客户名称"
labelCol=
"1"
fieldCol=
"2"
required=
"false"
readonly=
"true"
/>
<x:inputC
name=
"customerName"
label=
"客户名称"
labelCol=
"1"
fieldCol=
"2"
required=
"false"
readonly=
"true"
/>
</div>
</div>
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/processOutsource/processOutsourceDetail.js
View file @
dae15bfb
...
@@ -250,12 +250,16 @@ function getOrderColumns(){
...
@@ -250,12 +250,16 @@ function getOrderColumns(){
required
:
true
,
type
:
"select"
,
required
:
true
,
type
:
"select"
,
data
:
{
data
:
{
type
:
'suppliers'
,
type
:
'suppliers'
,
name
:
"selectSuppliers"
,
name
:
"select
Quoted
Suppliers"
,
getParam
:
function
(
item
)
{
getParam
:
function
(
item
)
{
return
{
productCode
:
item
.
productCode
,
outProcess
:
item
.
wempf
}
},
},
back
:
{
back
:
{
partn
er
:
"lifnr"
,
suppli
er
:
"lifnr"
,
nameOrg1
:
"lifnrName"
,
supplierName
:
"lifnrName"
,
}
}
}
}
}
}
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/processOutsource/processOutsourceList.js
View file @
dae15bfb
...
@@ -13,12 +13,22 @@ function loadProcessOutsourceOrderListGrid() {
...
@@ -13,12 +13,22 @@ function loadProcessOutsourceOrderListGrid() {
var
toolbarOptions
=
UICtrl
.
getDefaultToolbarOptions
({
var
toolbarOptions
=
UICtrl
.
getDefaultToolbarOptions
({
addHandler
:
function
(){
addHandler
:
function
(){
addHandler
()
addHandler
()
},
sendOutHandler
:
{
id
:
'sendOutHandler'
,
text
:
'已外发'
,
img
:
'fa-clipboard'
,
click
:
function
(){
sendOutHandler
();
}
}
},
});
});
gridManager
=
UICtrl
.
grid
(
"#processOutsourceOrderGrid"
,
{
gridManager
=
UICtrl
.
grid
(
"#processOutsourceOrderGrid"
,
{
columns
:
[
columns
:
[
{
display
:
"申请单编号"
,
name
:
"billCode"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"申请单编号"
,
name
:
"billCode"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"申请状态"
,
name
:
"statusTextView"
,
width
:
60
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"申请状态"
,
name
:
"statusTextView"
,
width
:
60
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"外发状态"
,
name
:
"sendOut"
,
width
:
60
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
render
:
function
(
item
)
{
return
item
.
sendOut
==
1
?
"已外发"
:
""
;
}
},
{
display
:
"申请日期"
,
name
:
"fillinDate"
,
width
:
120
,
minWidth
:
60
,
type
:
"datetime"
,
align
:
"left"
},
{
display
:
"申请日期"
,
name
:
"fillinDate"
,
width
:
120
,
minWidth
:
60
,
type
:
"datetime"
,
align
:
"left"
},
{
display
:
"工厂"
,
name
:
"werksName"
,
width
:
200
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"工厂"
,
name
:
"werksName"
,
width
:
200
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"采购订单"
,
name
:
"ebeln"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"采购订单"
,
name
:
"ebeln"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
...
@@ -123,3 +133,20 @@ function doView(processOutsourceId) {
...
@@ -123,3 +133,20 @@ function doView(processOutsourceId) {
url
:
web_app
.
name
+
'/processOutsource/showProcessOutsourceDetail.job?isReadOnly=true&bizId='
+
processOutsourceId
url
:
web_app
.
name
+
'/processOutsource/showProcessOutsourceDetail.job?isReadOnly=true&bizId='
+
processOutsourceId
});
});
}
}
function
sendOutHandler
(){
var
rows
=
gridManager
.
getSelectedRows
();
if
(
rows
.
length
==
0
)
{
Public
.
tip
(
'请选择数据!'
);
return
;
}
var
ids
=
[];
for
(
var
i
=
0
;
i
<
rows
.
length
;
i
++
){
var
row
=
rows
[
i
];
ids
.
push
(
row
.
processOutsourceId
)
}
Public
.
ajax
(
web_app
.
name
+
"/processOutsource/sendOutProcess.ajax"
,{
ids
:
$
.
toJSON
(
ids
)},
function
()
{
reloadGrid
();
})
}
\ No newline at end of file
topsun/src/main/java/com/huigou/topsun/sap/processOutsource/application/ProcessOutsourceApplication.java
View file @
dae15bfb
...
@@ -3,6 +3,7 @@ package com.huigou.topsun.sap.processOutsource.application;
...
@@ -3,6 +3,7 @@ package com.huigou.topsun.sap.processOutsource.application;
import
com.huigou.topsun.sap.processOutsource.domain.ProcessOutsource
;
import
com.huigou.topsun.sap.processOutsource.domain.ProcessOutsource
;
import
com.huigou.topsun.sap.processOutsource.domain.query.ProcessOutsourceQueryRequest
;
import
com.huigou.topsun.sap.processOutsource.domain.query.ProcessOutsourceQueryRequest
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
/**
/**
...
@@ -19,4 +20,5 @@ public interface ProcessOutsourceApplication {
...
@@ -19,4 +20,5 @@ public interface ProcessOutsourceApplication {
ProcessOutsource
loadProcessOutsource
(
String
id
);
ProcessOutsource
loadProcessOutsource
(
String
id
);
void
updateProcessOutStatus
(
List
<
String
>
ids
);
}
}
topsun/src/main/java/com/huigou/topsun/sap/processOutsource/application/impl/ProcessOutsourceApplicationImpl.java
View file @
dae15bfb
...
@@ -339,5 +339,14 @@ public class ProcessOutsourceApplicationImpl extends FlowBroker implements Proce
...
@@ -339,5 +339,14 @@ public class ProcessOutsourceApplicationImpl extends FlowBroker implements Proce
return
processOutsourceRepository
.
findOne
(
id
);
return
processOutsourceRepository
.
findOne
(
id
);
}
}
@Override
public
void
updateProcessOutStatus
(
List
<
String
>
ids
)
{
List
<
ProcessOutsource
>
outsourceList
=
processOutsourceRepository
.
findAll
(
ids
);
for
(
ProcessOutsource
processOutsource
:
outsourceList
)
{
processOutsource
.
setSendOut
(
"1"
);
}
processOutsourceRepository
.
save
(
outsourceList
);
}
}
}
topsun/src/main/java/com/huigou/topsun/sap/processOutsource/controller/ProcessOutsourceController.java
View file @
dae15bfb
...
@@ -98,4 +98,11 @@ public class ProcessOutsourceController extends CommonController {
...
@@ -98,4 +98,11 @@ public class ProcessOutsourceController extends CommonController {
processOutsourceOrderItemApplication
.
deleteByIds
(
ids
);
processOutsourceOrderItemApplication
.
deleteByIds
(
ids
);
return
success
();
return
success
();
}
}
public
String
sendOutProcess
(){
SDO
sdo
=
this
.
getSDO
();
List
<
String
>
ids
=
sdo
.
getIds
();
processOutsourceApplication
.
updateProcessOutStatus
(
ids
);
return
success
();
}
}
}
topsun/src/main/java/com/huigou/topsun/sap/processOutsource/domain/ProcessOutsource.java
View file @
dae15bfb
...
@@ -29,6 +29,12 @@ public class ProcessOutsource extends FlowBillAbstractEntity {
...
@@ -29,6 +29,12 @@ public class ProcessOutsource extends FlowBillAbstractEntity {
@Column
(
name
=
"situation_desc"
)
@Column
(
name
=
"situation_desc"
)
private
String
situationDesc
;
private
String
situationDesc
;
/**
* 已外发 1
*/
@Column
(
name
=
"send_out"
)
private
String
sendOut
;
@Override
@Override
protected
String
getCodeRuleId
()
{
protected
String
getCodeRuleId
()
{
return
"processOutsource"
;
return
"processOutsource"
;
...
...
topsun/src/main/resources/config/content/easysearch/easy-search-suppliers.xml
View file @
dae15bfb
...
@@ -17,4 +17,19 @@
...
@@ -17,4 +17,19 @@
<condition
column=
"name_org1"
name=
"nameOrg1"
symbol=
"like"
alias=
"t"
/>
<condition
column=
"name_org1"
name=
"nameOrg1"
symbol=
"like"
alias=
"t"
/>
</easy-search>
</easy-search>
<easy-search
name=
"selectQuotedSuppliers"
desc=
"已报价供应商"
>
<sql>
SELECT
p.supplier,
p.supplier_name
FROM
sap_process_quoted_price p left join sap_process_quoted_price_item pi on p.id = pi.process_quoted_price_id
WHERE p.`status` =3
</sql>
<field
name=
"供应商编码"
title=
"供应商编码"
code=
"supplier"
width=
"100"
/>
<field
name=
"供应商名称"
title=
"供应商名称"
code=
"supplierName"
width=
"200"
/>
<condition
column=
"product_code"
name=
"productCode"
symbol=
"="
alias=
"pi"
/>
<condition
column=
"out_process"
name=
"outProcess"
symbol=
"="
alias=
"pi"
/>
</easy-search>
</easy-search-mappings>
</easy-search-mappings>
\ No newline at end of file
topsun/src/main/resources/config/topsun/sap/processOutsource/processOutsource.xml
View file @
dae15bfb
...
@@ -9,7 +9,8 @@
...
@@ -9,7 +9,8 @@
t.bill_code,
t.bill_code,
t.`status`,
t.`status`,
t.person_member_name,
t.person_member_name,
t.dept_name
t.dept_name,
t.send_out
FROM sap_process_outsource_order_item ot
FROM sap_process_outsource_order_item ot
LEFT JOIN sap_process_outsource t ON t.id = ot.process_outsource_id where 1=1
LEFT JOIN sap_process_outsource t ON t.id = ot.process_outsource_id where 1=1
</sql-query>
</sql-query>
...
...
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