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
68cdc7a2
Commit
68cdc7a2
authored
Jul 08, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-07-08 修复组织间公司过滤
parent
4378622a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
HGKC013.js
src/main/webapp/HG/KC/HGKC013.js
+12
-2
No files found.
src/main/webapp/HG/KC/HGKC013.js
View file @
68cdc7a2
...
...
@@ -87,6 +87,10 @@ $(function () {
return
_
.
filter
(
options
.
values
,
function
(
item
)
{
return
item
[
"valueField"
]
===
calloutCompanyCode
;
})
}
else
if
(
allotType
===
"2"
&&
calloutCompanyCode
){
return
_
.
filter
(
options
.
values
,
function
(
item
)
{
return
item
[
"valueField"
]
!==
calloutCompanyCode
;
})
}
return
options
.
values
;
},
...
...
@@ -106,8 +110,14 @@ $(function () {
filter
:
function
(
options
)
{
// let calloutCompanyCode = options.model['calloutCompanyCode'];
// let callinCompanyCode = options.model['callinCompanyCode'];
// let calloutWhCode = options.model['calloutWhCode'];
// if (callinCompanyCode == calloutCompanyCode){
let
calloutWhCode
=
options
.
model
[
'calloutWhCode'
];
let
allotType
=
options
.
model
[
'allotType'
];
if
(
calloutWhCode
&&
allotType
===
"1"
){
return
_
.
filter
(
whInCodeBox
,
function
(
item
)
{
return
item
[
"valueField"
]
!=
calloutWhCode
;
})
}
//if (callinCompanyCode == calloutCompanyCode){
// return _.filter(whCodeBox, function (item) {
// return item["param1Field"]===callinCompanyCode && item["valueField"]!=calloutWhCode;
// })
...
...
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