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
60f12331
Commit
60f12331
authored
Jun 20, 2024
by
江和松
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
选择框跳转的bug修改
parent
35eaf549
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
51 additions
and
27 deletions
+51
-27
HGSC003.js
src/main/webapp/HG/SC/HGSC003.js
+8
-2
HGSC004.js
src/main/webapp/HG/SC/HGSC004.js
+22
-9
HGSC004A.js
src/main/webapp/HG/SC/HGSC004A.js
+21
-16
No files found.
src/main/webapp/HG/SC/HGSC003.js
View file @
60f12331
...
...
@@ -61,7 +61,7 @@ $(function (){
if
(
item
.
projCode
){
for
(
let
i
=
0
;
i
<
projCodes
.
length
;
i
++
){
if
(
item
.
projCode
===
projCodes
[
i
][
'valueField'
]){
item
[
'projName'
]
=
projCodes
[
i
][
'textField'
];
//
item['projName'] = projCodes[i]['textField'];
template
=
projCodes
[
i
][
'valueField'
];
}
}
...
...
@@ -104,7 +104,13 @@ $(function (){
grid
.
dataSource
.
bind
(
"change"
,
function
(
e
)
{
// 判断父级节点是否发生变化
if
(
e
.
field
==
"projCode"
)
{
loadChange
(
grid
,
e
,
"projName"
);
if
(
e
.
items
[
0
].
projCode
)
{
for
(
let
i
=
0
;
i
<
projCodes
.
length
;
i
++
)
{
if
(
e
.
items
[
0
].
projCode
===
projCodes
[
i
][
'valueField'
])
{
resultGrid
.
setCellValue
(
e
.
items
[
0
],
"projName"
,
projCodes
[
i
][
'textField'
]);
}
}
}
}
if
(
e
.
field
==
"companyCode"
)
{
e
.
items
[
0
].
projCode
=
""
;
...
...
src/main/webapp/HG/SC/HGSC004.js
View file @
60f12331
...
...
@@ -57,7 +57,7 @@ $(function (){
if
(
item
.
projCode
){
for
(
let
i
=
0
;
i
<
projCodes
.
length
;
i
++
){
if
(
item
.
projCode
===
projCodes
[
i
][
'valueField'
]){
item
[
'projName'
]
=
projCodes
[
i
][
'textField'
];
//
item['projName'] = projCodes[i]['textField'];
template
=
projCodes
[
i
][
'valueField'
];
}
}
...
...
@@ -143,18 +143,31 @@ $(function (){
grid
.
dataSource
.
bind
(
"change"
,
function
(
e
)
{
// 判断父级节点是否发生变化
if
(
e
.
field
==
"blueprintCode"
)
{
loadChange
(
grid
,
e
,
"blueprintName"
);
if
(
e
.
items
[
0
].
blueprintCode
)
{
for
(
let
i
=
0
;
i
<
blueprintCodes
.
length
;
i
++
)
{
if
(
e
.
items
[
0
].
blueprintCode
===
blueprintCodes
[
i
][
'valueField'
])
{
resultGrid
.
setCellValue
(
e
.
items
[
0
],
"blueprintName"
,
blueprintCodes
[
i
][
'textField'
]);
}
}
}
}
if
(
e
.
field
==
"projCode"
)
{
e
.
items
[
0
].
blueprintCode
=
""
;
e
.
items
[
0
].
blueprintName
=
""
;
loadChange
(
grid
,
e
,
"projName"
);
if
(
e
.
items
[
0
].
projCode
)
{
for
(
let
i
=
0
;
i
<
projCodes
.
length
;
i
++
)
{
if
(
e
.
items
[
0
].
projCode
===
projCodes
[
i
][
'valueField'
])
{
resultGrid
.
setCellValue
(
e
.
items
[
0
],
"projName"
,
projCodes
[
i
][
'textField'
]);
resultGrid
.
setCellValue
(
e
.
items
[
0
],
"blueprintCode"
,
""
);
resultGrid
.
setCellValue
(
e
.
items
[
0
],
"blueprintName"
,
""
);
}
}
}
loadChange
(
grid
,
e
,
"blueprintCode"
);
}
if
(
e
.
field
==
"companyCode"
)
{
e
.
items
[
0
].
projCode
=
""
;
e
.
items
[
0
].
projName
=
""
;
e
.
items
[
0
].
blueprintCode
=
""
;
e
.
items
[
0
].
blueprintName
=
""
;
resultGrid
.
setCellValue
(
e
.
items
[
0
],
"projCode"
,
""
)
;
resultGrid
.
setCellValue
(
e
.
items
[
0
],
"projName"
,
""
)
;
resultGrid
.
setCellValue
(
e
.
items
[
0
],
"blueprintCode"
,
""
)
;
resultGrid
.
setCellValue
(
e
.
items
[
0
],
"blueprintName"
,
""
)
;
loadChange
(
grid
,
e
,
"projCode"
);
}
});
...
...
src/main/webapp/HG/SC/HGSC004A.js
View file @
60f12331
...
...
@@ -158,14 +158,13 @@ $(function () {
if
(
item
.
productCode
){
for
(
let
i
=
0
;
i
<
productCodeBox
.
length
;
i
++
){
if
(
item
.
productCode
===
productCodeBox
[
i
][
'valueField'
]){
item
[
'productName'
]
=
productCodeBox
[
i
][
'textField'
];
item
[
'productId'
]
=
productCodeBox
[
i
][
'param1Field'
];
item
[
'inventType'
]
=
productCodeBox
[
i
][
'param2Field'
];
item
[
'length'
]
=
productCodeBox
[
i
][
'param3Field'
];
item
[
'width'
]
=
productCodeBox
[
i
][
'param4Field'
];
item
[
'thick'
]
=
productCodeBox
[
i
][
'param5Field'
];
item
[
'productType'
]
=
productCodeBox
[
i
][
'param6Field'
];
console
.
log
(
item
)
// item['productName'] = productCodeBox[i]['textField'];
// item['productId'] = productCodeBox[i]['param1Field'];
// item['inventType'] = productCodeBox[i]['param2Field'];
// item['length'] = productCodeBox[i]['param3Field'];
// item['width'] = productCodeBox[i]['param4Field'];
// item['thick'] = productCodeBox[i]['param5Field'];
// item['productType'] = productCodeBox[i]['param6Field'];
template
=
productCodeBox
[
i
][
'valueField'
];
}
else
{
template
=
item
.
productCode
;
...
...
@@ -237,14 +236,20 @@ $(function () {
var
item
=
e
.
items
[
0
];
// 判断父级节点是否发生变化
if
(
e
.
field
==
"productCode"
)
{
loadChange
(
grid
,
e
,
"productId"
);
loadChange
(
grid
,
e
,
"productName"
);
loadChange
(
grid
,
e
,
"inventType"
);
loadChange
(
grid
,
e
,
"length"
);
loadChange
(
grid
,
e
,
"width"
);
loadChange
(
grid
,
e
,
"thick"
);
loadChange
(
grid
,
e
,
"productType"
);
// loadChange(grid,e,"quantity");
if
(
e
.
items
[
0
].
productCode
)
{
for
(
let
i
=
0
;
i
<
productCodeBox
.
length
;
i
++
)
{
if
(
e
.
items
[
0
].
productCode
===
productCodeBox
[
i
][
'valueField'
])
{
resultGrid
.
setCellValue
(
e
.
items
[
0
],
"productName"
,
productCodeBox
[
i
][
'textField'
]);
resultGrid
.
setCellValue
(
e
.
items
[
0
],
"productId"
,
productCodeBox
[
i
][
'param1Field'
]);
resultGrid
.
setCellValue
(
e
.
items
[
0
],
"inventType"
,
productCodeBox
[
i
][
'param2Field'
]);
resultGrid
.
setCellValue
(
e
.
items
[
0
],
"length"
,
productCodeBox
[
i
][
'param3Field'
]);
resultGrid
.
setCellValue
(
e
.
items
[
0
],
"width"
,
productCodeBox
[
i
][
'param4Field'
]);
resultGrid
.
setCellValue
(
e
.
items
[
0
],
"thick"
,
productCodeBox
[
i
][
'param5Field'
]);
resultGrid
.
setCellValue
(
e
.
items
[
0
],
"productType"
,
productCodeBox
[
i
][
'param6Field'
]);
}
}
}
loadChange
(
grid
,
e
,
"quantity"
);
}
if
(
e
.
field
==
"quantity"
)
{
resultGrid
.
setCellValue
(
item
,
'singleWeight'
,
item
.
singleWeight
);
...
...
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