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
b2baed58
Commit
b2baed58
authored
Nov 22, 2023
by
wanghang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
打样申请流程
parent
42968bca
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
48 additions
and
51 deletions
+48
-51
encodings.xml
.idea/encodings.xml
+2
-0
misc.xml
.idea/misc.xml
+1
-0
modules.xml
.idea/modules.xml
+0
-10
proofingApply.js
...n-xt/src/main/webapp/biz/topsun/proofing/proofingApply.js
+12
-19
ProofingApplyController.java
...u/topsun/proofing/controller/ProofingApplyController.java
+33
-22
No files found.
.idea/encodings.xml
View file @
b2baed58
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<project
version=
"4"
>
<component
name=
"Encoding"
defaultCharsetForPropertiesFiles=
"UTF-8"
>
<component
name=
"Encoding"
defaultCharsetForPropertiesFiles=
"UTF-8"
>
<file
url=
"file://$APPLICATION_HOME_DIR$/jbr/bin/src/main/java"
charset=
"UTF-8"
/>
<file
url=
"file://$APPLICATION_HOME_DIR$/jbr/bin/src/main/resources"
charset=
"UTF-8"
/>
<file
url=
"file://$PROJECT_DIR$/huigou-xt/src/main/resources"
charset=
"UTF-8"
/>
<file
url=
"file://$PROJECT_DIR$/huigou-xt/src/main/resources"
charset=
"UTF-8"
/>
<file
url=
"file://$PROJECT_DIR$/test/src/main/java"
charset=
"UTF-8"
/>
<file
url=
"file://$PROJECT_DIR$/test/src/main/java"
charset=
"UTF-8"
/>
<file
url=
"file://$PROJECT_DIR$/test/src/main/resources"
charset=
"UTF-8"
/>
<file
url=
"file://$PROJECT_DIR$/test/src/main/resources"
charset=
"UTF-8"
/>
...
...
.idea/misc.xml
View file @
b2baed58
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
<component
name=
"FrameworkDetectionExcludesConfiguration"
>
<component
name=
"FrameworkDetectionExcludesConfiguration"
>
<file
type=
"web"
url=
"file://$PROJECT_DIR$/huigou-xt"
/>
<file
type=
"web"
url=
"file://$PROJECT_DIR$/huigou-xt"
/>
<file
type=
"web"
url=
"file://$PROJECT_DIR$/SSRF-xt"
/>
<file
type=
"web"
url=
"file://$PROJECT_DIR$/SSRF-xt"
/>
<file
type=
"web"
url=
"file://$PROJECT_DIR$/topsun-xt"
/>
</component>
</component>
<component
name=
"MavenProjectsManager"
>
<component
name=
"MavenProjectsManager"
>
<option
name=
"originalFiles"
>
<option
name=
"originalFiles"
>
...
...
.idea/modules.xml
deleted
100644 → 0
View file @
42968bca
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"ProjectModuleManager"
>
<modules>
<module
fileurl=
"file://$PROJECT_DIR$/huigou-xt/huigou-xt.iml"
filepath=
"$PROJECT_DIR$/huigou-xt/huigou-xt.iml"
/>
<module
fileurl=
"file://$PROJECT_DIR$/topsun/topsun.iml"
filepath=
"$PROJECT_DIR$/topsun/topsun.iml"
/>
<module
fileurl=
"file://$PROJECT_DIR$/topsun-xt/topsun-xt.iml"
filepath=
"$PROJECT_DIR$/topsun-xt/topsun-xt.iml"
/>
</modules>
</component>
</project>
\ No newline at end of file
topsun-xt/src/main/webapp/biz/topsun/proofing/proofingApply.js
View file @
b2baed58
...
@@ -28,13 +28,19 @@ $(document).ready(function() {
...
@@ -28,13 +28,19 @@ $(document).ready(function() {
initializateUI
();
initializateUI
();
loadOrgTreeView
();
loadOrgTreeView
();
bindQueryEvent
();
bindQueryEvent
();
loadProofingApplyGrid
(
null
,
bom
,
"mobTableGrid"
,
"forwardProofingApply"
);
//加载BOm
loadProofingApplyGrid
(
null
,
bom
,
"mobTableGrid"
,
""
);
//加载BOm
loadProofingApplyGrid
(
null
,
technology
,
"technologyGrid"
,
"forwardProofingApply"
);
//加载工艺
loadProofingApplyGrid
(
null
,
technology
,
"technologyGrid"
,
""
);
//加载工艺
loadProofingApplyGrid
(
null
,
process
,
"processGrid"
,
"forwardProofingApply"
);
//加载工序
loadProofingApplyGrid
(
null
,
process
,
"processGrid"
,
""
);
//加载工序
loadProofingApplyGrid
(
null
,
processBom
,
"processBomGrid"
,
"forwardProofingApply"
);
//加载物料
loadProofingApplyGrid
(
null
,
processBom
,
"processBomGrid"
,
""
);
//加载物料
echo
(
"productId"
);
echo
(
"productType"
)
});
});
function
echo
(
node
){
$
(
"#"
+
node
+
"_text"
).
val
(
$
(
"#"
+
node
).
val
())
}
//工艺、工序、工序物料三级联动
//工艺、工序、工序物料三级联动
function
test
(){
function
test
(){
...
@@ -43,6 +49,7 @@ function test(){
...
@@ -43,6 +49,7 @@ function test(){
function
initializateUI
()
{
function
initializateUI
()
{
UICtrl
.
layout
(
"#layout"
,
{
leftWidth
:
3
});
UICtrl
.
layout
(
"#layout"
,
{
leftWidth
:
3
});
}
}
...
@@ -110,29 +117,15 @@ function onFolderTreeNodeClick(data) {
...
@@ -110,29 +117,15 @@ function onFolderTreeNodeClick(data) {
}
}
//绑定selectC
//绑定selectC
function
bindQueryEvent
(){
function
bindQueryEvent
(){
//
// $('#productId').searchbox({
// type : "product",name : "productCode",
// onChange:function(value,data){
// console.log("@"+data.productId)
// $('#productId').val(data.productId);
//
// console.log($('#productId').val())
//
// }
// });
$
(
'#productId'
).
searchbox
({
$
(
'#productId'
).
searchbox
({
type
:
"product"
,
name
:
"productCode"
,
type
:
"product"
,
name
:
"productCode"
,
onChange
:
function
(
value
,
data
){
onChange
:
function
(
value
,
data
){
$
(
'#productId'
).
val
(
data
.
productId
);
$
(
'#productId'
).
val
(
data
.
productId
);
console
.
log
(
$
(
'#productId'
).
val
())
console
.
log
(
$
(
'#productId'
).
val
())
//
loadProofingApplyGrid({id:data.productId},bom,"mobTableGrid","forwardProofingApply");
loadProofingApplyGrid
({
id
:
data
.
productId
},
bom
,
"mobTableGrid"
,
"forwardProofingApply"
);
}
}
});
});
$
(
'#productType'
).
searchbox
({
$
(
'#productType'
).
searchbox
({
type
:
"product"
,
name
:
"productType"
,
type
:
"product"
,
name
:
"productType"
,
onChange
:
function
(
value
,
data
){
onChange
:
function
(
value
,
data
){
...
...
topsun/src/main/java/com/huigou/topsun/proofing/controller/ProofingApplyController.java
View file @
b2baed58
package
com
.
huigou
.
topsun
.
proofing
.
controller
;
package
com
.
huigou
.
topsun
.
proofing
.
controller
;
import
com.huigou.context.Operator
;
import
com.huigou.context.OrgUnit
;
import
com.huigou.topsun.proofing.application.ProofingApplyApplication
;
import
com.huigou.topsun.proofing.application.ProofingApplyApplication
;
import
com.huigou.topsun.proofing.domain.model.ProofingApply
;
import
com.huigou.topsun.proofing.domain.model.ProofingApply
;
import
com.huigou.topsun.proofing.domain.vo.BomVo
;
import
com.huigou.topsun.proofing.domain.vo.BomVo
;
import
com.huigou.topsun.proofing.service.BomService
;
import
com.huigou.uasp.annotation.ControllerMapping
;
import
com.huigou.uasp.annotation.ControllerMapping
;
import
com.huigou.uasp.bmp.common.BizBillStatus
;
import
com.huigou.uasp.client.CommonController
;
import
com.huigou.uasp.client.CommonController
;
import
com.huigou.uasp.log.annotation.LogInfo
;
import
com.huigou.uasp.log.annotation.LogInfo
;
import
com.huigou.uasp.log.domain.model.LogType
;
import
com.huigou.uasp.log.domain.model.LogType
;
...
@@ -25,8 +28,8 @@ public class ProofingApplyController extends CommonController {
...
@@ -25,8 +28,8 @@ public class ProofingApplyController extends CommonController {
}
}
@Autowired
//
@Autowired
private
BomService
bomService
;
//
private BomService bomService;
@Autowired
@Autowired
ProofingApplyApplication
proofingApplyApplication
;
ProofingApplyApplication
proofingApplyApplication
;
...
@@ -35,21 +38,28 @@ public class ProofingApplyController extends CommonController {
...
@@ -35,21 +38,28 @@ public class ProofingApplyController extends CommonController {
* @return
* @return
*/
*/
public
String
forwardProofingApply
(){
public
String
forwardProofingApply
(){
this
.
putAttribute
(
"processDefinitionKey"
,
proofingApplyApplication
.
PROCESS_DEFINITION_KEY
);
this
.
putAttribute
(
"processDefinitionKey"
,
ProofingApplyApplication
.
PROCESS_DEFINITION_KEY
);
String
applicationNo
=
"测试单号"
;
String
applicationNo
=
"测试单号"
;
this
.
putAttribute
(
"procUnitId"
,
"Apply"
);
this
.
putAttribute
(
"procUnitId"
,
"Apply"
);
this
.
putAttribute
(
"proofingApplyNo"
,
applicationNo
);
return
forward
(
"proofingApply"
);
}
public
String
forwardAddBom
(){
//如果有id的话就带参数过去
SDO
sdo
=
this
.
getSDO
();
ProofingApply
proofingApply
=
new
ProofingApply
();
String
id
=
sdo
.
getId
();
proofingApply
.
setProofingApplyNo
(
applicationNo
);
List
<
BomVo
>
bom
=
bomService
.
getBomVoByProductId
(
id
);
proofingApply
.
setStatusId
(
BizBillStatus
.
APPLYING
.
getId
());
return
forward
(
"BomDetail"
,
bom
);
Operator
operator
=
getOperator
();
proofingApply
.
setDefaultValues
(
new
OrgUnit
(
operator
.
getFullId
(),
operator
.
getFullName
()));
return
forward
(
"proofingApply"
,
proofingApply
);
}
}
// public String forwardAddBom(){
// //如果有id的话就带参数过去
// SDO sdo = this.getSDO();
// String id = sdo.getId();
// List<BomVo> bom = bomService.getBomVoByProductId(id);
// return forward("BomDetail",bom);
// }
public
String
addProofingApply
(){
public
String
addProofingApply
(){
SDO
sdo
=
this
.
getSDO
();
SDO
sdo
=
this
.
getSDO
();
// ResourceTypeVo resourceTypeVo = sdo.toObject(ResourceTypeVo.class);
// ResourceTypeVo resourceTypeVo = sdo.toObject(ResourceTypeVo.class);
...
@@ -58,15 +68,15 @@ public class ProofingApplyController extends CommonController {
...
@@ -58,15 +68,15 @@ public class ProofingApplyController extends CommonController {
}
}
@LogInfo
(
logType
=
LogType
.
BIZ
,
subType
=
""
,
operaionType
=
OperationType
.
QUERY
,
description
=
"分页查询BOM表"
)
//
@LogInfo(logType = LogType.BIZ, subType = "", operaionType = OperationType.QUERY, description = "分页查询BOM表")
public
String
slicedQueryBomRule
()
{
//
public String slicedQueryBomRule() {
SDO
sdo
=
this
.
getSDO
();
//
SDO sdo = this.getSDO();
String
id
=
sdo
.
getId
();
//
String id = sdo.getId();
List
<
BomVo
>
bom
=
bomService
.
getBomVoByProductId
(
id
);
////
List<BomVo> bom = bomService.getBomVoByProductId(id);
Map
<
String
,
Object
>
map
=
new
HashMap
();
//
Map<String,Object> map =new HashMap();
map
.
put
(
"Rows"
,
bom
);
//
map.put("Rows",bom);
return
toResult
(
map
);
//
return toResult(map);
}
//
}
public
String
updateResourceFiledValue
(){
public
String
updateResourceFiledValue
(){
SDO
sdo
=
this
.
getSDO
();
SDO
sdo
=
this
.
getSDO
();
...
@@ -83,6 +93,7 @@ public class ProofingApplyController extends CommonController {
...
@@ -83,6 +93,7 @@ public class ProofingApplyController extends CommonController {
SDO
sdo
=
this
.
getSDO
();
SDO
sdo
=
this
.
getSDO
();
String
id
=
sdo
.
getBizId
();
String
id
=
sdo
.
getBizId
();
ProofingApply
proofingApply
=
proofingApplyApplication
.
loadProofingApplyById
(
id
);
ProofingApply
proofingApply
=
proofingApplyApplication
.
loadProofingApplyById
(
id
);
return
forward
(
"proofingApply"
,
proofingApply
);
return
forward
(
"proofingApply"
,
proofingApply
);
}
}
}
}
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