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
4174cf42
Commit
4174cf42
authored
Feb 28, 2022
by
Joey
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into develop-zhouyi
parents
4e025f02
0f44c1a1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
5 deletions
+7
-5
package.json
develop/@gms/gms-plugin-billexpand/package.json
+1
-1
SetSubFieldNull.js
...@gms/gms-plugin-billexpand/src/formula/SetSubFieldNull.js
+2
-2
SetSubFieldValue.js
...gms/gms-plugin-billexpand/src/formula/SetSubFieldValue.js
+3
-1
solution.json
solution.json
+1
-1
No files found.
develop/@gms/gms-plugin-billexpand/package.json
View file @
4174cf42
{
"name"
:
"@gms/gms-plugin-billexpand"
,
"version"
:
"0.0.
5-SNAPSHOT
"
,
"version"
:
"0.0.
6
"
,
"scripts"
:
{
"serve"
:
"vue-cli-service serve"
,
"build"
:
"vue-cli-service build"
,
...
...
develop/@gms/gms-plugin-billexpand/src/formula/SetSubFieldNull.js
View file @
4174cf42
...
...
@@ -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 @
4174cf42
...
...
@@ -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
...
...
solution.json
View file @
4174cf42
...
...
@@ -101,7 +101,7 @@
},
{
"name"
:
"gms-plugin-billexpand"
,
"version"
:
"0.0.
5-SNAPSHOT
"
"version"
:
"0.0.
6
"
},
{
"name"
:
"gms-plugin-mainpage-reimburseBill"
,
...
...
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