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
e8bad34a
Commit
e8bad34a
authored
Mar 23, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-03-23 生产计划子计划填写完成时间反写主计划时间后刷新主计划(注意翻页到当前页)
parent
34afa6af
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
4 deletions
+34
-4
HPSC003.js
src/main/webapp/HP/SC/HPSC003.js
+34
-4
No files found.
src/main/webapp/HP/SC/HPSC003.js
View file @
e8bad34a
...
@@ -365,12 +365,42 @@ function saveDetail(btn) {
...
@@ -365,12 +365,42 @@ function saveDetail(btn) {
if
(
flag
)
{
if
(
flag
)
{
JSUtils
.
confirm
(
"确定对勾选中的["
+
rows
.
length
+
"]条数据做
\"
保存
\"
操作? "
,
{
JSUtils
.
confirm
(
"确定对勾选中的["
+
rows
.
length
+
"]条数据做
\"
保存
\"
操作? "
,
{
ok
:
function
()
{
ok
:
function
()
{
let
reslu
=
JSUtils
.
submitGridsData
(
"detail"
,
"HPSC003"
,
"updatePlanDetail"
,
true
);
var
info
=
new
EiInfo
();
console
.
log
(
"修改保存:"
+
reslu
);
info
.
addBlock
(
JSUtils
.
checkedRows2Block
(
"detail"
));
//释放禁用按钮
EiCommunicator
.
send
(
"HPSC003"
,
"updatePlanDetail"
,
info
,
{
btn
.
attr
(
"disabled"
,
false
);
onSuccess
:
function
(
ei
)
{
if
(
ei
.
getStatus
()
>=
0
)
{
try
{
console
.
log
(
"回调查询:"
+
pageOffset
)
query
(
pageOffset
)
query
(
pageOffset
)
IPLAT
.
fillNode
(
document
.
getElementById
(
eiInfo
.
extAttr
[
EiConstant
.
EF_FORM_ENAME
]),
ei
);
}
catch
(
e
)
{
// TODO: handle exception
}
if
(
IPLAT
.
isAvailable
(
"detail"
))
{
window
[
'detailGrid'
].
setEiInfo
(
ei
);
}
if
(
ei
.
getStatus
()
==
0
)
{
NotificationUtil
(
ei
,
'warning'
);
}
else
{
NotificationUtil
(
ei
);
}
}
else
{
NotificationUtil
(
ei
,
"error"
);
}
},
onFail
:
function
(
ei
)
{
// 发生异常
NotificationUtil
(
"操作失败,原因["
+
ei
+
"]"
,
"error"
);
}
});
//let reslu = JSUtils.submitGridsData("detail", "HPSC003", "updatePlanDetail", true);
//释放禁用按钮
btn
.
attr
(
"disabled"
,
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