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
be0235e2
Commit
be0235e2
authored
Apr 21, 2022
by
fengjiansheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(@gms/gms-plugin-billexpand): 短路处理以避免赋值公式无限执行
parent
b9ad201c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
SetDefaultValue.js
...@gms/gms-plugin-billexpand/src/formula/SetDefaultValue.js
+8
-4
No files found.
develop/@gms/gms-plugin-billexpand/src/formula/SetDefaultValue.js
View file @
be0235e2
...
...
@@ -35,9 +35,14 @@ export default {
if
(
targetField
instanceof
BillDataNode
)
{
let
tableObj
=
bill
.
getTableType
(
targetField
.
FieldTableCode
);
if
(
tableObj
.
type
==
"master"
)
{
let
res
=
propName
?
result
[
propName
]
:
result
oldVal
=
targetField
.
dynamicNodeFactory
.
methodJson
.
GetFieldData
(
''
,
targetFieldLink
,
''
)
if
(
recoverFlag
==
1
||
!
oldVal
)
{
targetField
.
dynamicNodeFactory
.
methodJson
.
SetFieldData
(
''
,
targetFieldLink
,
propName
?
result
[
propName
]
:
result
,
''
)
if
(
oldVal
instanceof
Object
&&
res
instanceof
Object
&&
"id"
in
oldVal
&&
"id"
in
res
&&
oldVal
.
id
===
res
.
id
)
{
// short circuit to avoid loop call
}
else
{
if
(
recoverFlag
===
1
||
!
oldVal
)
{
targetField
.
dynamicNodeFactory
.
methodJson
.
SetFieldData
(
''
,
targetFieldLink
,
res
,
''
)
}
}
}
else
{
let
_data
=
bill
.
getSubData
(
tableObj
.
title
);
...
...
@@ -65,4 +70,4 @@ export default {
getResultType
:
function
()
{
return
FMR
.
ConstDataTypes
.
General
;
}
}
\ 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