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
0f44c1a1
Commit
0f44c1a1
authored
Feb 28, 2022
by
qiaoyanqi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
公式报错
parent
bb4e4cf9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
SetSubFieldNull.js
...@gms/gms-plugin-billexpand/src/formula/SetSubFieldNull.js
+2
-2
SetSubFieldValue.js
...gms/gms-plugin-billexpand/src/formula/SetSubFieldValue.js
+3
-1
No files found.
develop/@gms/gms-plugin-billexpand/src/formula/SetSubFieldNull.js
View file @
0f44c1a1
...
...
@@ -14,8 +14,8 @@ export default {
let
tmpField
=
subField
.
FieldCode
;
let
subTableObject
=
context
.
getTableType
(
subField
.
FieldTableCode
)
let
oldIndex
=
context
.
getSubFocus
()
let
focusData
=
context
.
getAllSubData
()[
subTableObject
.
title
][
oldIndex
].
getData
()
if
(
!
_
.
isEqual
(
focusData
[
tmpField
].
_field_old_value_
,
focusData
[
tmpField
].
value
)
||
!
_
.
isEmpty
(
focusData
[
tmpField
].
value
))
{
let
focusData
=
oldIndex
&&
context
.
getAllSubData
()[
subTableObject
.
title
][
oldIndex
].
getData
()
if
(
focusData
&&
(
!
_
.
isEqual
(
focusData
[
tmpField
].
_field_old_value_
,
focusData
[
tmpField
].
value
)
||
!
_
.
isEmpty
(
focusData
[
tmpField
].
value
)
))
{
focusData
[
tmpField
].
_field_old_value_
=
focusData
[
tmpField
].
value
=
null
context
.
refreshSubDataRow
(
subTableObject
.
title
);
}
...
...
develop/@gms/gms-plugin-billexpand/src/formula/SetSubFieldValue.js
View file @
0f44c1a1
...
...
@@ -25,8 +25,9 @@ export default {
}
if
(
targetObject
.
type
===
"sub"
)
{
let
subTableFocusOldIndex
=
context
.
getSubFocus
()
let
subTableFocusData
=
context
.
getAllSubData
()[
targetObject
.
title
][
subTableFocusOldIndex
].
getData
()
let
subTableFocusData
=
subTableFocusOldIndex
&&
context
.
getAllSubData
()[
targetObject
.
title
][
subTableFocusOldIndex
].
getData
()
let
oldIndex
=
context
.
getSubFocus
()
if
(
subTableFocusData
){
switch
(
valueType
)
{
case
FormulaConstants
.
billFiled
.
BMJJFL
:
{
let
comp1
=
arguments
[
0
][
2
].
getResult
().
Value
;
...
...
@@ -85,6 +86,7 @@ export default {
console
.
log
(
""
)
}
}
}
}
else
{
console
.
error
(
"SetSubFieldValue公式配置错误,暂不支持主表字段赋值"
)
return
null
...
...
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