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
ddbcebfb
Commit
ddbcebfb
authored
Mar 29, 2022
by
raojiaguan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改子表相同字段公式
parent
33e4909d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
3 deletions
+1
-3
CheckDuplicateSubField.js
...s-plugin-billexpand/src/formula/CheckDuplicateSubField.js
+1
-3
No files found.
develop/@gms/gms-plugin-billexpand/src/formula/CheckDuplicateSubField.js
View file @
ddbcebfb
// 判断子表某个字段值相同则提示不然保存前端公式
export
default
{
execute
:
function
()
{
{
let
subTable
=
arguments
[
0
][
0
].
FieldTableCode
// 字段名
let
subFieldCode
=
arguments
[
0
][
0
].
FieldCode
...
...
@@ -12,7 +11,6 @@ export default {
// 表所有字段
let
tableObj
=
context
.
getTableType
(
subTable
)
let
dataFun
=
context
.
getSubData
(
tableObj
.
title
)
let
flag
=
1
if
(
dataFun
.
length
>
1
)
{
for
(
let
i
=
0
;
i
<
dataFun
.
length
;
i
++
)
{
let
_data1
=
dataFun
[
i
].
getData
()
...
...
@@ -23,12 +21,12 @@ export default {
}
}
}
return
true
;
}
else
if
(
dataFun
.
length
<=
1
)
{
return
true
}
else
{
return
true
;
}
}
},
getResultType
:
function
(){
return
FMR
.
ConstDataTypes
.
Bool
;
...
...
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