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
5a1d258f
Commit
5a1d258f
authored
Feb 28, 2022
by
qiaoyanqi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
置为空公式
parent
9f8997c9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
SetSubFieldNull.js
...@gms/gms-plugin-billexpand/src/formula/SetSubFieldNull.js
+8
-4
mcon.js
develop/@gms/gms-plugin-billexpand/src/mcon.js
+1
-1
No files found.
develop/@gms/gms-plugin-billexpand/src/formula/SetSubFieldNull.js
View file @
5a1d258f
...
...
@@ -14,10 +14,14 @@ export default {
let
tmpField
=
subField
.
FieldCode
;
let
subTableObject
=
context
.
getTableType
(
subField
.
FieldTableCode
)
let
oldIndex
=
context
.
getSubFocus
()
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
);
try
{
let
focusData
=
context
.
getAllSubData
()[
subTableObject
.
title
][
oldIndex
].
getData
()
if
(
!
_
.
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
);
}
}
catch
(
error
)
{
console
.
log
(
error
)
}
}
},
...
...
develop/@gms/gms-plugin-billexpand/src/mcon.js
View file @
5a1d258f
...
...
@@ -6,7 +6,7 @@ import copyAction from './actions/copyAction';
import
printAction
from
'./actions/printAction'
import
printMultiAction
from
'./actions/printMultiAction'
import
showDetailAction
from
'./actions/showDetailAction'
import
showDetailSPAction
from
'./actions/showDetailSPAction'
import
showDetailSPAction
from
'./actions/showDetailSPAction'
;
import
editAction
from
'./actions/editAction'
;
import
updatebillStateAction
from
'./actions/updatebillStateAction'
;
import
updateStateLincaoAction
from
'./actions/updateStateLincaoAction'
;
...
...
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