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
93c7bdf7
Commit
93c7bdf7
authored
Oct 28, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新表格模式页面查询条件优化2
parent
adb45526
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
68 additions
and
13 deletions
+68
-13
HGSC013.js
src/main/webapp/HG/SC/HGSC013.js
+68
-13
No files found.
src/main/webapp/HG/SC/HGSC013.js
View file @
93c7bdf7
...
@@ -198,13 +198,13 @@ $(function () {
...
@@ -198,13 +198,13 @@ $(function () {
});
});
let
contractCodeObj
=
{}
let
contractCodeObj
=
{}
list
.
forEach
(
item
=>
{
list
.
forEach
(
item
=>
{
let
valStr
=
item
.
companyCode
.
value
+
item
.
projCode
.
value
+
item
.
clproductCode
.
value
let
valStr
=
item
.
companyCode
.
value
+
item
.
projCode
.
value
contractCodeObj
[
valStr
]
=
''
;
contractCodeObj
[
valStr
]
=
''
;
})
})
let
contractCodeList
=
Object
.
keys
(
contractCodeObj
);
let
contractCodeList
=
Object
.
keys
(
contractCodeObj
);
let
arr1
=
contractCodeList
.
map
(
val
=>
{
let
arr1
=
contractCodeList
.
map
(
val
=>
{
let
a
=
list
.
filter
(
val2
=>
{
let
a
=
list
.
filter
(
val2
=>
{
let
val2Str
=
val2
.
companyCode
.
value
+
val2
.
projCode
.
value
+
val2
.
clproductCode
.
value
let
val2Str
=
val2
.
companyCode
.
value
+
val2
.
projCode
.
value
return
val2Str
===
val
return
val2Str
===
val
});
});
let
obj2
=
{}
let
obj2
=
{}
...
@@ -268,7 +268,72 @@ $(function () {
...
@@ -268,7 +268,72 @@ $(function () {
}
}
}
}
})
})
fList
.
push
(...
g
)
let
productCodeObj
=
{}
g
.
forEach
(
item3
=>
{
productCodeObj
[
item3
.
clproductCode
.
value
]
=
''
;
})
let
gList
=
Object
.
keys
(
productCodeObj
)
let
Hlist
=
gList
.
map
(
item4
=>
{
let
d
=
g
.
filter
(
val7
=>
val7
.
clproductCode
.
value
===
item4
);
return
d
.
map
((
val6
,
i5
)
=>
{
return
{
...
val6
,
clproductCode
:{
...
val6
.
clproductCode
,
rowspan
:
d
.
length
,
show
:
!
i5
},
clproductName
:{
...
val6
.
clproductName
,
rowspan
:
d
.
length
,
show
:
!
i5
},
clspec
:{
...
val6
.
clspec
,
rowspan
:
d
.
length
,
show
:
!
i5
},
cllength
:{
...
val6
.
cllength
,
rowspan
:
d
.
length
,
show
:
!
i5
},
clwidth
:{
...
val6
.
clwidth
,
rowspan
:
d
.
length
,
show
:
!
i5
},
clquantity
:{
...
val6
.
clquantity
,
rowspan
:
d
.
length
,
show
:
!
i5
},
clthick
:{
...
val6
.
clthick
,
rowspan
:
d
.
length
,
show
:
!
i5
},
cltotalWeight
:{
...
val6
.
cltotalWeight
,
rowspan
:
d
.
length
,
show
:
!
i5
}
}
});
})
let
finalArr
=
[]
Hlist
.
forEach
(
item6
=>
{
finalArr
.
push
(...
item6
);
})
fList
.
push
(...
finalArr
)
// fList.push(...g)
})
})
a
=
fList
;
a
=
fList
;
}
}
...
@@ -290,16 +355,6 @@ $(function () {
...
@@ -290,16 +355,6 @@ $(function () {
...
val3
.
projName
,
...
val3
.
projName
,
rowspan
:
a
.
length
,
rowspan
:
a
.
length
,
show
:
!
i3
show
:
!
i3
},
clproductCode
:{
...
val3
.
clproductCode
,
rowspan
:
a
.
length
,
show
:
!
i3
},
clproductName
:{
...
val3
.
clproductName
,
rowspan
:
a
.
length
,
show
:
!
i3
}
}
}
}
})
})
...
...
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