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
65bea5f5
Commit
65bea5f5
authored
Jan 18, 2022
by
raojiaguan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取附件数量公式
parent
2ba90028
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
97 additions
and
0 deletions
+97
-0
emcon.js
develop/@gms/gms-plugin-billexpand/src/emcon.js
+80
-0
GetAccessoryCount.js
...ms/gms-plugin-billexpand/src/formula/GetAccessoryCount.js
+9
-0
mcon.js
develop/@gms/gms-plugin-billexpand/src/mcon.js
+8
-0
No files found.
develop/@gms/gms-plugin-billexpand/src/emcon.js
View file @
65bea5f5
...
@@ -3890,6 +3890,86 @@ export default {
...
@@ -3890,6 +3890,86 @@ export default {
"title"
:
"子表中的某个字段是否等于某个值,满足条件的同时求最大最小值"
,
"title"
:
"子表中的某个字段是否等于某个值,满足条件的同时求最大最小值"
,
"value"
:
"SubTableIsContainValue"
"value"
:
"SubTableIsContainValue"
},
},
{
"discard"
:
false
,
"path"
:
"通用"
,
"extends"
:
{
"info"
:
{
"param"
:
[],
"name"
:
"GetAccessoryCount"
,
"description"
:
"获取当前单据附件的数量,无需传参(后端公式)"
,
"title"
:
"获取当前单据附件的数量"
,
"return"
:
0
}
},
"description"
:
"获取当前单据附件的数量,无需传参(后端公式)"
,
"title"
:
"获取当前单据附件的数量"
,
"value"
:
"GetAccessoryCount"
},
{
"discard"
:
false
,
"path"
:
"通用"
,
"extends"
:
{
"info"
:
{
"param"
:
[],
"name"
:
"GetSubTableRows"
,
"description"
:
"1.子表的必填字段,2.子表在主表中的表名(前端公式)"
,
"title"
:
"获取当前子表的行数的公式"
,
"return"
:
0
}
},
"description"
:
"获取当前单据附件的数量,无需传参(前端公式)"
,
"title"
:
"1.子表的必填字段,2.子表在主表中的表名"
,
"value"
:
"GetSubTableRows"
},
{
"discard"
:
false
,
"path"
:
"通用"
,
"extends"
:
{
"info"
:
{
"param"
:
[],
"name"
:
"LoginUserIsContianRole"
,
"description"
:
"支持多个参数,参数名为角色的code"
,
"title"
:
"判断当前用户是否包含角色"
,
"return"
:
0
}
},
"description"
:
"支持多个参数,参数名为角色的code"
,
"title"
:
"判断当前用户是否包含角色"
,
"value"
:
"LoginUserIsContianRole"
},
{
"discard"
:
false
,
"path"
:
"通用"
,
"extends"
:
{
"info"
:
{
"param"
:
[],
"name"
:
"SubTableJointString"
,
"description"
:
"SubTableJointString('子表中需要拼接的字段','子表在主表中的表名','需要拿什么拼接') -- 前端公式"
,
"title"
:
"子表中按照某个字符拼接"
,
"return"
:
0
}
},
"description"
:
"SubTableJointString('子表中需要拼接的字段','子表在主表中的表名','需要拿什么拼接') -- 前端公式"
,
"title"
:
"子表中按照某个字符拼接"
,
"value"
:
"SubTableJointString"
},
{
"discard"
:
false
,
"path"
:
"通用"
,
"extends"
:
{
"info"
:
{
"param"
:
[],
"name"
:
"SubTableSetBaseData"
,
"description"
:
"1.从那个字段取,那个字段里面的对应的基础数据的名称,2.要取的基础数据字段标识,第一个参数中的你要取出的对应的基础数据字段,3.要被带出的基础数据标识名4.要被带出的字段名称"
,
"title"
:
"子表根据基础数据带出基础数据"
,
"return"
:
0
}
},
"description"
:
"1.从那个字段取,那个字段里面的对应的基础数据的名称,2.要取的基础数据字段标识,第一个参数中的你要取出的对应的基础数据字段,3.要被带出的基础数据标识名4.要被带出的字段名称"
,
"title"
:
"子表根据基础数据带出基础数据"
,
"value"
:
"SubTableSetBaseData"
},
],
],
dropdownOptionList
:
[
dropdownOptionList
:
[
{
{
...
...
develop/@gms/gms-plugin-billexpand/src/formula/GetAccessoryCount.js
0 → 100644
View file @
65bea5f5
//获取当前单据附件的数量
export
default
{
execute
:
function
(){
console
.
log
(
"进入获取附件数量公式"
)
},
getResultType
:
function
(){
return
FMR
.
ConstDataTypes
.
General
;
}
}
develop/@gms/gms-plugin-billexpand/src/mcon.js
View file @
65bea5f5
...
@@ -163,6 +163,10 @@ import simpleAdvanceDeleteAction from "./query-actions/simpleAdvanceDeleteAction
...
@@ -163,6 +163,10 @@ import simpleAdvanceDeleteAction from "./query-actions/simpleAdvanceDeleteAction
import
SubTableOneToOneFilter
from
"@/formula/SubTableOneToOneFilter"
;
import
SubTableOneToOneFilter
from
"@/formula/SubTableOneToOneFilter"
;
import
draftFixBugAction
from
"@/actions/draftFixBugAction"
;
import
draftFixBugAction
from
"@/actions/draftFixBugAction"
;
import
SubTableIsContainValue
from
"@/formula/SubTableIsContainValue"
;
import
SubTableIsContainValue
from
"@/formula/SubTableIsContainValue"
;
import
GetSubTableRows
from
"@/formula/GetSubTableRows"
import
SubTableJointString
from
"@/formula/SubTableJointString"
import
LoginUserIsContianRole
from
"@/formula/SubTableJointString"
import
SubTableSetBaseData
from
"@/formula/SubTableSetBaseData"
export
default
{
export
default
{
actions
:
{
actions
:
{
updateFieldAction
,
updateFieldAction
,
...
@@ -243,6 +247,10 @@ export default {
...
@@ -243,6 +247,10 @@ export default {
rbcBasedataTree
rbcBasedataTree
},
},
formula
:
{
formula
:
{
SubTableSetBaseData
,
LoginUserIsContianRole
,
SubTableJointString
,
GetSubTableRows
,
SubTableIsContainValue
,
SubTableIsContainValue
,
SubTableOneToOneFilter
,
SubTableOneToOneFilter
,
GetMdOrgParentField
,
GetMdOrgParentField
,
...
...
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