Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hp-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
hp-smart
Commits
bb4fb13f
Commit
bb4fb13f
authored
Mar 19, 2024
by
wancheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生产下料更新
parent
dc8461f6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
17 deletions
+31
-17
HPSC006.js
src/main/webapp/HP/SC/HPSC006.js
+30
-16
HPSC006.jsp
src/main/webapp/HP/SC/HPSC006.jsp
+1
-1
No files found.
src/main/webapp/HP/SC/HPSC006.js
View file @
bb4fb13f
...
@@ -117,7 +117,11 @@ $(function () {
...
@@ -117,7 +117,11 @@ $(function () {
let
template
=
''
;
let
template
=
''
;
if
(
filePath1
)
{
if
(
filePath1
)
{
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+
'onclick="showUploadFile('
+
filePath1
+
')" >附件清单</a>'
;
+
'onclick="showUploadFile('
+
filePath1
+
',
\'
WL
\'
)" >物料附件清单</a>'
;
}
if
(
filePath1
)
{
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+
'onclick="showUploadFile('
+
filePath1
+
',
\'
XL
\'
)" >下料附件清单</a>'
;
}
}
return
template
return
template
}
}
...
@@ -137,8 +141,8 @@ $(function () {
...
@@ -137,8 +141,8 @@ $(function () {
let
projCode
=
item
.
projCode
;
let
projCode
=
item
.
projCode
;
let
template
=
''
;
let
template
=
''
;
if
(
filePath1
)
{
if
(
filePath1
)
{
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
/*
template += '<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+
'onclick="showUploadFile('
+
filePath1
+
')" >附件清单</a>'
;
+ 'onclick="showUploadFile(' + filePath1 + ')" >附件清单</a>';
*/
if
(
status
>=
1
)
{
if
(
status
>=
1
)
{
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+
'onclick="checkIn('
+
filePath1
+
')" >登记</a>'
;
+
'onclick="checkIn('
+
filePath1
+
')" >登记</a>'
;
...
@@ -278,12 +282,7 @@ $(function () {
...
@@ -278,12 +282,7 @@ $(function () {
success
:
function
(
e
)
{
success
:
function
(
e
)
{
let
rows
=
resultGrid
.
getCheckedRows
()[
0
];
let
rows
=
resultGrid
.
getCheckedRows
()[
0
];
var
src
=
e
.
response
.
docUrl
;
var
src
=
e
.
response
.
docUrl
;
var
className
;
var
className
=
e
.
response
.
docTag
;
if
(
"run"
==
projectEnv
)
{
className
=
e
.
response
.
groupId
;
}
else
{
className
=
e
.
response
.
docTag
;
}
var
projCode
=
rows
.
projCode
;
var
projCode
=
rows
.
projCode
;
var
projName
=
rows
.
projName
;
var
projName
=
rows
.
projName
;
var
productionOrderNo
=
rows
.
prodOrderNo
;
var
productionOrderNo
=
rows
.
prodOrderNo
;
...
@@ -357,9 +356,9 @@ function reqDetails(projCode) {
...
@@ -357,9 +356,9 @@ function reqDetails(projCode) {
height
:
"90%"
height
:
"90%"
});
});
}
}
function
showUploadFile
(
id
)
{
function
showUploadFile
(
id
,
type
)
{
JSColorbox
.
open
({
JSColorbox
.
open
({
href
:
"HPSC002A?methodName=initLoad&inqu_status-0-bizType=
XL
&inqu_status-0-id="
+
id
,
href
:
"HPSC002A?methodName=initLoad&inqu_status-0-bizType=
"
+
type
+
"
&inqu_status-0-id="
+
id
,
title
:
"<div style='text-align: center;'>附件清单</div>"
,
title
:
"<div style='text-align: center;'>附件清单</div>"
,
width
:
"80%"
,
width
:
"80%"
,
height
:
"80%"
,
height
:
"80%"
,
...
@@ -375,11 +374,26 @@ function checkIn(id) {
...
@@ -375,11 +374,26 @@ function checkIn(id) {
callbackName
:
checkInCallback
callbackName
:
checkInCallback
});
});
}
}
checkInCallback
=
function
(
e
)
{
checkInCallback
=
function
()
{
// 刷新列表
var
block
=
detailGrid
.
getEiBlock
();
detailGrid
.
setEiInfo
(
ei
);
var
result
=
resultGrid
.
getCheckedRows
()
// 关闭弹窗
if
(
rows
.
length
<
1
)
{
JSColorbox
.
close
();
message
(
"请选择数据"
);
return
;
}
if
(
block
!=
null
)
{
block
.
setRows
([]);
detailGrid
.
setEiBlock
(
block
);
}
var
info
=
new
EiInfo
()
var
productionOrderNo
=
result
[
0
][
'prodOrderNo'
];
info
.
set
(
"productionOrderNo"
,
productionOrderNo
);
EiCommunicator
.
send
(
"HPSC006"
,
"queryDetail"
,
info
,{
onSuccess
:
function
(
ei
){
//返回结果集
detailGrid
.
setEiInfo
(
ei
);
},
onFail
:
function
(
ei
){}
},{
async
:
false
});
}
}
let
selectStock
=
function
(
id
)
{
let
selectStock
=
function
(
id
)
{
JSColorbox
.
open
({
JSColorbox
.
open
({
...
...
src/main/webapp/HP/SC/HPSC006.jsp
View file @
bb4fb13f
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
<EF:EFInput
ename=
"productionOrderNo"
type=
"hidden"
/>
<EF:EFInput
ename=
"productionOrderNo"
type=
"hidden"
/>
<EF:EFGrid
blockId=
"detail"
autoDraw=
"no"
>
<EF:EFGrid
blockId=
"detail"
autoDraw=
"no"
>
<EF:EFColumn
ename=
"id"
cname=
"主键"
hidden=
"true"
/>
<EF:EFColumn
ename=
"id"
cname=
"主键"
hidden=
"true"
/>
<EF:EFColumn
ename=
"operator"
cname=
"操作"
width=
"
2
00"
enable=
"false"
readonly=
"false"
/>
<EF:EFColumn
ename=
"operator"
cname=
"操作"
width=
"
1
00"
enable=
"false"
readonly=
"false"
/>
<EF:EFColumn
enable=
"false"
ename=
"reqNum"
cname=
"领料记录"
width=
"80"
align=
"center"
readonly=
"true"
/>
<EF:EFColumn
enable=
"false"
ename=
"reqNum"
cname=
"领料记录"
width=
"80"
align=
"center"
readonly=
"true"
/>
<
%
--
<
EF:EFComboColumn
cname=
"材料类型"
ename=
"inventType"
width=
"80"
align=
"center"
required=
"true"
>
--%>
<
%
--
<
EF:EFComboColumn
cname=
"材料类型"
ename=
"inventType"
width=
"80"
align=
"center"
required=
"true"
>
--%>
...
...
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