Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hg-smart
Overview
Overview
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
platform
hg-smart
Commits
a0c18dc7
Commit
a0c18dc7
authored
May 17, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-05-17 存货档案功能优化
parent
cb38f304
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
3 deletions
+16
-3
HGPZ005.js
src/main/webapp/HG/PZ/HGPZ005.js
+3
-3
HGPZ005B.js
src/main/webapp/HG/PZ/HGPZ005B.js
+12
-0
HGPZ005B.jsp
src/main/webapp/HG/PZ/HGPZ005B.jsp
+1
-0
No files found.
src/main/webapp/HG/PZ/HGPZ005.js
View file @
a0c18dc7
...
...
@@ -16,7 +16,7 @@ $(function() {
let
template
=
''
;
if
(
item
.
id
){
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+
'onclick="showFlowDetail('
+
item
.
id
+
',
\'
'
+
item
.
inventCode
+
'
\'
)" >工艺流程</a>'
;
+
'onclick="showFlowDetail('
+
item
.
id
+
',
\'
'
+
item
.
inventCode
+
'
\'
,'
+
item
.
flowId
+
'
)" >工艺流程</a>'
;
if
(
item
.
flowId
>
0
){
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+
'onclick="showDetail('
+
item
.
id
+
')" >工艺流程详情</a>'
;
...
...
@@ -223,9 +223,9 @@ function showDetail(id) {
});
}
function
showFlowDetail
(
id
,
inventCode
)
{
function
showFlowDetail
(
id
,
inventCode
,
flowId
)
{
JSColorbox
.
open
({
href
:
"HGPZ005B?methodName=initLoad&inqu_status-0-parentId="
+
id
+
"&inqu_status-0-inventCode="
+
inventCode
,
href
:
"HGPZ005B?methodName=initLoad&inqu_status-0-parentId="
+
id
+
"&inqu_status-0-inventCode="
+
inventCode
+
"&inqu_status-0-flowId="
+
flowId
,
title
:
"<div style='text-align: center;'>工艺流程</div>"
,
width
:
"75%"
,
height
:
"80%"
,
...
...
src/main/webapp/HG/PZ/HGPZ005B.js
View file @
a0c18dc7
...
...
@@ -56,9 +56,21 @@ $(function (){
$
(
"#result"
).
on
(
"click"
,
function
()
{
let
id
=
$
(
"#inqu_status-0-parentId"
).
val
();
let
inventCode
=
$
(
"#inqu_status-0-inventCode"
).
val
();
let
flowId
=
$
(
"#inqu_status-0-flowId"
).
val
();
let
rows
=
resultGrid
.
getCheckedRows
();
let
flag
=
true
;
$
.
each
(
rows
,
function
(
index
,
item
)
{
let
id
=
item
.
get
(
"id"
);
if
(
id
==
flowId
){
message
(
"当前选中的公司流程 ["
+
(
item
.
get
(
"factoryName"
))
+
" - "
+
(
item
.
get
(
"flowName"
))
+
"] 已经绑定,无法重复绑定!"
);
flag
=
false
;
return
false
;
}
});
if
(
flag
){
parent
.
JSColorbox
.
setValueCallback
({
"id"
:
id
,
"inventCode"
:
inventCode
,
"rows"
:
rows
[
0
]});
parent
.
JSColorbox
.
close
();
}
});
})
...
...
src/main/webapp/HG/PZ/HGPZ005B.jsp
View file @
a0c18dc7
...
...
@@ -22,6 +22,7 @@
<EF:EFInput blockId="inqu_status" row="0" ename="flowName" cname="流程名称" placeholder="模糊查询" colWidth="3"/>
<EF:EFInput blockId="inqu_status" row="0" ename="parentId" cname="上级ID" colWidth="3" type="hidden"/>
<EF:EFInput blockId="inqu_status" row="0" ename="inventCode" cname="存货编码" colWidth="3" type="hidden"/>
<EF:EFInput blockId="inqu_status" row="0" ename="flowId" cname="流程ID" colWidth="3" type="hidden"/>
</div>
</EF:EFRegion>
...
...
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