Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
rbc-demo
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
王衍超
rbc-demo
Commits
0cc81ff9
Commit
0cc81ff9
authored
Mar 25, 2022
by
Joey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(@gms/gms-plugin-billexpand): 判断子表是否为空公式修改
parent
84a2de49
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
22 deletions
+3
-22
CheckSublistSize.js
...gms/gms-plugin-billexpand/src/formula/CheckSublistSize.js
+3
-22
No files found.
develop/@gms/gms-plugin-billexpand/src/formula/CheckSublistSize.js
View file @
0cc81ff9
...
...
@@ -8,32 +8,12 @@ export default {
if
(
context
.
getTableType
)
{
let
_tn
=
context
.
getTableType
(
table
);
let
_data
=
context
.
getSubData
(
_tn
.
title
);
if
(
_data
instanceof
Array
)
{
let
field
=
arguments
[
0
][
0
].
FieldCode
let
matchProp
=
arguments
[
0
][
1
].
StaticValue
let
matchValue
=
arguments
[
0
][
2
].
StaticValue
if
(
matchValue
)
{
for
(
const
iterator
of
_data
)
{
let
_val
=
iterator
.
getValue
(
field
)
if
(
_val
instanceof
Object
)
{
if
(
_val
[
matchProp
]
==
matchValue
)
{
size
++
;
}
}
else
{
if
(
_val
==
matchValue
)
{
size
++
;
}
}
}
}
else
{
size
=
_data
.
length
}
}
return
_data
.
length
>
0
}
}
return
size
},
getResultType
:
function
()
{
return
FMR
.
ConstDataTypes
.
General
;
return
1
;
}
}
\ No newline at end of file
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