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
cb45a13b
Commit
cb45a13b
authored
Mar 18, 2024
by
yukang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新数据
parent
aaf8be59
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
22 deletions
+17
-22
HPSC006.js
src/main/webapp/HP/SC/HPSC006.js
+2
-20
HPSC007.js
src/main/webapp/HP/SC/HPSC007.js
+15
-2
No files found.
src/main/webapp/HP/SC/HPSC006.js
View file @
cb45a13b
...
...
@@ -359,26 +359,8 @@ function checkIn(id) {
callbackName
:
checkInCallback
});
}
checkInCallback
=
function
()
{
var
block
=
detailGrid
.
getEiBlock
();
var
result
=
resultGrid
.
getCheckedRows
()
if
(
rows
.
length
<
1
)
{
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
});
checkInCallback
=
function
(
e
)
{
resultGrid
.
setIn
}
let
selectStock
=
function
(
id
)
{
JSColorbox
.
open
({
...
...
src/main/webapp/HP/SC/HPSC007.js
View file @
cb45a13b
...
...
@@ -25,7 +25,8 @@ $(function () {
||
e
.
eiInfo
.
extAttr
.
methodName
==
'insert'
||
e
.
eiInfo
.
extAttr
.
methodName
==
'delete'
){
query
();
queryNum
()
queryNum
();
refreshDetailGrid
();
}
}
}
...
...
@@ -33,6 +34,7 @@ $(function () {
$
(
"#QUERY"
).
on
(
"click"
,
query
);
});
/**
...
...
@@ -42,7 +44,6 @@ $(window).load(function () {
// 查询
query
();
});
/**
* 查询
*/
...
...
@@ -50,6 +51,18 @@ function query() {
resultGrid
.
dataSource
.
page
(
1
);
}
function
refreshDetailGrid
()
{
var
result
=
parent
.
resultGrid
.
getCheckedRows
()
var
info
=
new
EiInfo
()
var
productionOrderNo
=
result
[
0
][
'prodOrderNo'
];
info
.
set
(
"productionOrderNo"
,
productionOrderNo
);
EiCommunicator
.
send
(
"HPSC006"
,
"queryDetail"
,
info
,{
onSuccess
:
function
(
ei
){
//返回结果集
parent
.
JSColorbox
.
setValueCallback
(
ei
);
},
onFail
:
function
(
ei
){}
},{
async
:
false
});
}
/**
* 查询完成数量、重量
...
...
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