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
207f9d12
Commit
207f9d12
authored
Feb 27, 2024
by
wancheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除已经处理的质检单改为弹框提示
parent
c0615ecd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
2 deletions
+34
-2
HPSC001.js
src/main/webapp/HP/SC/HPSC001.js
+1
-1
HPZL001.js
src/main/webapp/HP/ZL/HPZL001.js
+33
-1
No files found.
src/main/webapp/HP/SC/HPSC001.js
View file @
207f9d12
...
...
@@ -133,7 +133,7 @@ function deleteFunc() {
$
.
each
(
rows
,
function
(
index
,
item
)
{
let
status
=
item
.
get
(
"status"
);
if
(
status
===
"1"
){
message
(
"选中的第"
+
(
index
+
1
)
+
"行记录
未
提交,不能删除!"
);
message
(
"选中的第"
+
(
index
+
1
)
+
"行记录
已
提交,不能删除!"
);
flag
=
false
;
return
false
;
}
...
...
src/main/webapp/HP/ZL/HPZL001.js
View file @
207f9d12
...
...
@@ -135,7 +135,12 @@ $(function () {
template
:
function
(
options
)
{
return
showUserName
(
options
.
createdBy
,
options
.
createdName
);
}
}]
}],
onDelete
:
function
(
e
)
{
// 阻止默认请求,使用自定义删除
e
.
preventDefault
();
deleteFunc
();
}
}
}
...
...
@@ -246,3 +251,30 @@ let selectStockCallback = function () {
// 关闭弹窗
JSColorbox
.
close
();
}
/**
* 删除
*/
function
deleteFunc
()
{
let
rows
=
resultGrid
.
getCheckedRows
();
if
(
rows
.
length
<
1
)
{
message
(
"请选择数据"
);
return
;
}
let
flag
=
true
;
$
.
each
(
rows
,
function
(
index
,
item
)
{
let
status
=
item
.
get
(
"status"
);
if
(
status
===
"1"
){
message
(
"选中的第"
+
(
index
+
1
)
+
"行记录已处理,不能删除!"
);
flag
=
false
;
return
false
;
}
});
if
(
flag
){
JSUtils
.
confirm
(
"确定对勾选中的["
+
rows
.
length
+
"]条数据做
\"
删除
\"
操作? "
,
{
ok
:
function
()
{
JSUtils
.
submitGridsData
(
"result"
,
"HPZL001"
,
"delete"
,
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