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
73df73ee
Commit
73df73ee
authored
May 25, 2022
by
Joey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(@gms/gms-plugin-billexpand): 隐藏和禁用标签组件的公式
parent
bd443c55
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
44 additions
and
1 deletions
+44
-1
constant.js
develop/@gms/gms-plugin-billexpand/src/constant.js
+2
-1
emcon.js
develop/@gms/gms-plugin-billexpand/src/emcon.js
+16
-0
HideTabContainerTabs.js
...gms-plugin-billexpand/src/formula/HideTabContainerTabs.js
+24
-0
mcon.js
develop/@gms/gms-plugin-billexpand/src/mcon.js
+2
-0
No files found.
develop/@gms/gms-plugin-billexpand/src/constant.js
View file @
73df73ee
...
@@ -22,10 +22,11 @@ export const APPROVAL_TRACK_TABLE = {
...
@@ -22,10 +22,11 @@ export const APPROVAL_TRACK_TABLE = {
export
const
BILL_GLOBAL_PARAM
=
{
export
const
BILL_GLOBAL_PARAM
=
{
SIGNATURE_FIELDS
:
'signatureFields'
,
SIGNATURE_FIELDS
:
'signatureFields'
,
APPROVAL_COMMENT
:
'approvalComment'
,
APPROVAL_COMMENT
:
'approvalComment'
,
TAB_CONTAINER_INFO_MAP
:
'tabContainerInfoMap'
,
}
}
export
const
GLOBAL_EVENT
=
{
export
const
GLOBAL_EVENT
=
{
VERIFY_SIGNATURE_FAIL
:
'verifySignatureFail'
,
VERIFY_SIGNATURE_FAIL
:
'verifySignatureFail'
,
APPROVAL_USER_CONTROL_RESETVALUE
:
'approvalUserControlResetValue'
,
APPROVAL_USER_CONTROL_RESETVALUE
:
'approvalUserControlResetValue'
,
CHANGE_TAB_CONTAINER_HIDDEN_TABS
:
'changeContainerHiddenTabs'
,
}
}
develop/@gms/gms-plugin-billexpand/src/emcon.js
View file @
73df73ee
...
@@ -5075,6 +5075,22 @@ export default {
...
@@ -5075,6 +5075,22 @@ export default {
"discard"
:
false
,
"discard"
:
false
,
"path"
:
"通用"
,
"path"
:
"通用"
,
"extends"
:
{
"extends"
:
{
"info"
:
{
"param"
:
[],
"name"
:
"HideTabContainerTabs"
,
"description"
:
"设置tabContainer的页签状态"
,
"title"
:
"设置tabContainer的页签状态"
,
"return"
:
0
}
},
"description"
:
"设置tabContainer的页签状态"
,
"title"
:
"设置tabContainer的页签状态"
,
"value"
:
"HideTabContainerTabs"
},
{
"discard"
:
false
,
"path"
:
"通用"
,
"extends"
:
{
"info"
:
{
"info"
:
{
"param"
:
[
"param"
:
[
...
...
develop/@gms/gms-plugin-billexpand/src/formula/HideTabContainerTabs.js
0 → 100644
View file @
73df73ee
import
{
BILL_GLOBAL_PARAM
,
GLOBAL_EVENT
}
from
'../constant'
export
default
{
execute
:
function
([
containerInfo
,
tabInfo
,
statusInfo
],
context
)
{
const
containerId
=
containerInfo
.
StaticValue
const
tabIndexList
=
JSON
.
parse
(
tabInfo
.
StaticValue
)
const
status
=
statusInfo
.
StaticValue
if
(
!
containerId
||
!
tabIndexList
||
!
status
)
return
const
tabContainerInfoMap
=
context
.
getGlobalParam
(
BILL_GLOBAL_PARAM
.
TAB_CONTAINER_INFO_MAP
)
||
{}
const
currentContainerInfo
=
tabContainerInfoMap
[
containerId
]
||
{}
currentContainerInfo
[
status
]
=
tabIndexList
window
.
GMS
.
vbus
.
$emit
(
GLOBAL_EVENT
.
CHANGE_TAB_CONTAINER_HIDDEN_TABS
,
{
containerId
,
info
:
currentContainerInfo
,
}
)
},
getResultType
:
function
()
{
return
FMR
.
ConstDataTypes
.
General
;
},
}
\ No newline at end of file
develop/@gms/gms-plugin-billexpand/src/mcon.js
View file @
73df73ee
...
@@ -183,6 +183,7 @@ import CheckFieldEditableOfBJZGH from "./formula/CheckFieldEditableOfBJZGH";
...
@@ -183,6 +183,7 @@ import CheckFieldEditableOfBJZGH from "./formula/CheckFieldEditableOfBJZGH";
import
GetMDByObjectcode
from
"./formula/GetMDByObjectcode"
;
import
GetMDByObjectcode
from
"./formula/GetMDByObjectcode"
;
import
SetSubValueToMaster
from
"./formula/SetSubValueToMaster"
;
import
SetSubValueToMaster
from
"./formula/SetSubValueToMaster"
;
import
UnsafeApplyFunction
from
"./formula/UnsafeApplyFunction"
;
import
UnsafeApplyFunction
from
"./formula/UnsafeApplyFunction"
;
import
HideTabContainerTabs
from
"./formula/HideTabContainerTabs"
;
export
default
{
export
default
{
actions
:
{
actions
:
{
updateFieldAction
,
updateFieldAction
,
...
@@ -366,6 +367,7 @@ export default {
...
@@ -366,6 +367,7 @@ export default {
CheckFieldEditableOfBJZGH
,
CheckFieldEditableOfBJZGH
,
SetSubValueToMaster
,
SetSubValueToMaster
,
UnsafeApplyFunction
,
UnsafeApplyFunction
,
HideTabContainerTabs
,
...
GeneralImportFile
,
...
GeneralImportFile
,
},
},
routes
:
{
routes
:
{
...
...
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