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
fd0ebcc7
Commit
fd0ebcc7
authored
Jun 25, 2024
by
江和松
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
根据状态判断字段是否能修改保存
parent
df0352f2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
51 additions
and
9 deletions
+51
-9
HGCG001.js
src/main/webapp/HG/CG/HGCG001.js
+33
-0
HGCG001.jsp
src/main/webapp/HG/CG/HGCG001.jsp
+4
-8
HGCG002.js
src/main/webapp/HG/CG/HGCG002.js
+6
-0
HGCG003.js
src/main/webapp/HG/CG/HGCG003.js
+8
-1
No files found.
src/main/webapp/HG/CG/HGCG001.js
View file @
fd0ebcc7
...
@@ -13,6 +13,12 @@ $(function () {
...
@@ -13,6 +13,12 @@ $(function () {
return
options
.
length
==
0
?
"-"
:
options
.
length
;
return
options
.
length
==
0
?
"-"
:
options
.
length
;
}
}
}],
}],
beforeEdit
:
function
(
e
)
{
let
item
=
e
.
model
;
if
(
item
.
status
!=
'0'
){
e
.
preventDefault
();
}
},
loadComplete
:
function
(
grid
)
{
loadComplete
:
function
(
grid
)
{
// 提交
// 提交
$
(
document
.
body
).
on
(
"click"
,
"#SUBMIT"
,
submit
);
$
(
document
.
body
).
on
(
"click"
,
"#SUBMIT"
,
submit
);
...
@@ -42,6 +48,8 @@ $(function () {
...
@@ -42,6 +48,8 @@ $(function () {
$
(
window
).
load
(
function
()
{
$
(
window
).
load
(
function
()
{
// 查询
// 查询
query
();
query
();
//存货编号查询条件
initInventCode
();
});
});
/**
/**
...
@@ -52,6 +60,31 @@ let query = function () {
...
@@ -52,6 +60,31 @@ let query = function () {
}
}
/**
/**
* 存货编号
*/
let
initInventCode
=
function
()
{
//物料信息下拉
var
inInfo
=
new
EiInfo
();
EiCommunicator
.
send
(
"HGPZ005"
,
"queryComboBox"
,
inInfo
,
{
onSuccess
:
function
(
ei
)
{
let
dataSource
;
var
input
=
$
(
"#inqu_status-0-inventCode"
);
dataSource
=
ei
.
getBlock
(
"invent_record_block_id"
).
getMappedRows
();
input
.
kendoDropDownList
({
valuePrimitive
:
true
,
dataTextField
:
"valueField"
,
dataValueField
:
"valueField"
,
optionLabel
:
"请选择"
,
dataSource
:
dataSource
,
template
:
"[#:valueField#]#:textField#|#:param2Field#"
,
filter
:
"contains"
});
},
onFail
:
function
(
ei
)
{
}
},
{
async
:
false
});
}
/**
* 保存
* 保存
*/
*/
let
save
=
function
()
{
let
save
=
function
()
{
...
...
src/main/webapp/HG/CG/HGCG001.jsp
View file @
fd0ebcc7
...
@@ -21,13 +21,9 @@
...
@@ -21,13 +21,9 @@
</EF:EFSelect>
</EF:EFSelect>
</div>
</div>
<div
class=
"row"
>
<div
class=
"row"
>
<EF:EFSelect
cname=
"存货名称"
blockId=
"inqu_status"
ename=
"inventName"
row=
"0"
colWidth=
"3"
<EF:EFSelect
cname=
"存货编号"
blockId=
"inqu_status"
ename=
"inventCode"
row=
"0"
colWidth=
"3"
filter=
"contains"
optionLabel=
"全部"
defultValue=
""
>
filter=
"contains"
optionLabel=
"全部"
defultValue=
""
template=
"[#=valueField#]#=textField#"
>
<EF:EFOptions
blockId=
"invent_record_block_id"
textField=
"textField"
valueField=
"textField"
/>
<EF:EFOptions
blockId=
"invent_record_block_id"
textField=
"textField"
valueField=
"valueField"
/>
</EF:EFSelect>
<EF:EFSelect
cname=
"规格"
blockId=
"inqu_status"
ename=
"spec"
row=
"0"
colWidth=
"3"
filter=
"contains"
optionLabel=
"全部"
defultValue=
""
>
<EF:EFOptions
blockId=
"spec_name_block_id"
textField=
"textField"
valueField=
"textField"
/>
</EF:EFSelect>
</EF:EFSelect>
<EF:EFDateSpan
startCname=
"创建时间(从)"
endCname=
"至"
blockId=
"inqu_status"
<EF:EFDateSpan
startCname=
"创建时间(从)"
endCname=
"至"
blockId=
"inqu_status"
startName=
"createdTimeFrom"
endName=
"createdTimeTo"
row=
"0"
role=
"datetime"
startName=
"createdTimeFrom"
endName=
"createdTimeTo"
row=
"0"
role=
"datetime"
...
@@ -47,7 +43,7 @@
...
@@ -47,7 +43,7 @@
<EF:EFComboColumn
ename=
"status"
cname=
"状态"
enable=
"false"
width=
"80"
align=
"center"
>
<EF:EFComboColumn
ename=
"status"
cname=
"状态"
enable=
"false"
width=
"80"
align=
"center"
>
<EF:EFCodeOption
codeName=
"hggp.hgcg.planStatus"
/>
<EF:EFCodeOption
codeName=
"hggp.hgcg.planStatus"
/>
</EF:EFComboColumn>
</EF:EFComboColumn>
<EF:EFColumn
ename=
"inventCode"
cname=
"存货编码"
enable=
"false"
width=
"100"
align=
"center"
hidden=
"true"
/>
<EF:EFColumn
ename=
"inventCode"
cname=
"存货编码"
enable=
"false"
width=
"100"
align=
"center"
/>
<EF:EFColumn
ename=
"inventName"
cname=
"存货名称"
enable=
"false"
width=
"100"
align=
"center"
/>
<EF:EFColumn
ename=
"inventName"
cname=
"存货名称"
enable=
"false"
width=
"100"
align=
"center"
/>
<EF:EFColumn
ename=
"specId"
cname=
"规格ID"
enable=
"false"
width=
"120"
align=
"center"
hidden=
"true"
/>
<EF:EFColumn
ename=
"specId"
cname=
"规格ID"
enable=
"false"
width=
"120"
align=
"center"
hidden=
"true"
/>
<EF:EFColumn
ename=
"spec"
cname=
"规格"
enable=
"false"
width=
"120"
align=
"center"
/>
<EF:EFColumn
ename=
"spec"
cname=
"规格"
enable=
"false"
width=
"120"
align=
"center"
/>
...
...
src/main/webapp/HG/CG/HGCG002.js
View file @
fd0ebcc7
...
@@ -8,6 +8,12 @@ $(function () {
...
@@ -8,6 +8,12 @@ $(function () {
pageSizes
:
[
20
,
50
,
70
,
100
],
pageSizes
:
[
20
,
50
,
70
,
100
],
},
},
columns
:
[],
columns
:
[],
beforeEdit
:
function
(
e
)
{
let
item
=
e
.
model
;
if
(
item
.
status
!=
'0'
){
e
.
preventDefault
();
}
},
loadComplete
:
function
(
grid
)
{
loadComplete
:
function
(
grid
)
{
// 提交
// 提交
$
(
"#SUBMIT"
).
on
(
"click"
,
submit
);
$
(
"#SUBMIT"
).
on
(
"click"
,
submit
);
...
...
src/main/webapp/HG/CG/HGCG003.js
View file @
fd0ebcc7
...
@@ -7,7 +7,14 @@ $(function () {
...
@@ -7,7 +7,14 @@ $(function () {
pageSize
:
20
,
pageSize
:
20
,
pageSizes
:
[
20
,
50
,
70
,
100
],
pageSizes
:
[
20
,
50
,
70
,
100
],
},
},
columns
:
[],
columns
:
[
],
beforeEdit
:
function
(
e
)
{
let
item
=
e
.
model
;
if
(
item
.
status
!=
'0'
){
e
.
preventDefault
();
}
},
loadComplete
:
function
(
grid
)
{
loadComplete
:
function
(
grid
)
{
// 确认
// 确认
$
(
"#CONFIRM"
).
on
(
"click"
,
confirm
);
$
(
"#CONFIRM"
).
on
(
"click"
,
confirm
);
...
...
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