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
11fbfdb5
Commit
11fbfdb5
authored
Feb 08, 2022
by
袁成
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 提交之后修改按钮组是否可用
parent
8fda703e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
52 additions
and
38 deletions
+52
-38
submitAction.js
...op/@gms/gms-plugin-billexpand/src/actions/submitAction.js
+31
-34
buttonGrouop.vue
...p/@gms/gms-plugin-billexpand/src/control/buttonGrouop.vue
+19
-1
emcon.js
develop/@gms/gms-plugin-billexpand/src/emcon.js
+2
-3
No files found.
develop/@gms/gms-plugin-billexpand/src/actions/submitAction.js
View file @
11fbfdb5
...
...
@@ -10,45 +10,42 @@ export default {
}
if
(
bill
)
{
bill
.
setControlsSate
(
param
[
"_control_name_"
],
'enable'
,
false
)
// GMS.$hideContainer.$Spin.show();
bill
.
executeServerAction
(
postData
,
function
(
code
,
data
)
{
bill
.
setControlsSate
(
param
[
"_control_name_"
],
'enable'
,
true
)
if
(
code
===
200
)
{
// GMS.$hideContainer.$Spin.hide();
const
id
=
data
.
content
.
billData
.
id
// GMS.vbus.$emit('change-form-state', { state: 'readOnly', billId: id})
GMS
.
$hideContainer
.
$Message
.
success
(
'提交成功'
);
if
(
window
.
osConfig
.
appOpenMode
&&
window
.
osConfig
.
appOpenMode
==
"apploader"
)
{
GMS
.
$hideContainer
.
$portalAPI
.
emit
(
'nros-tag-close'
)
GMS
.
$hideContainer
.
$portalAPI
.
emit
(
"open-new-page"
,
//打开一个新的页签
getUUID
(),
"runner-bill-form"
,
{
templateName
:
param
.
param
.
viewName
,
id
,
state
:
'readOnly'
},
{
openWay
:
"FUNCTAB"
,
title
:
"单据详情"
,
}
);
}
else
{
Bridge
.
vm
.
modal_visible
=
false
GMS
.
$hideContainer
.
addComponent
(
typesBill
,
{},
function
(
c
)
{
c
.
templateName
=
param
.
param
.
viewName
;
c
.
billId
=
id
;
c
.
init
=
true
;
c
.
modal_visible
=
true
;
c
.
isReadOnly
=
true
})
}
GMS
.
vbus
.
$emit
(
"workflow-state-change"
,
90
)
//
if (
//
window.osConfig.appOpenMode &&
//
window.osConfig.appOpenMode == "apploader"
//
) {
//
GMS.$hideContainer.$portalAPI.emit('nros-tag-close')
//
GMS.$hideContainer.$portalAPI.emit(
//
"open-new-page", //打开一个新的页签
//
getUUID(),
//
"runner-bill-form",
//
{
//
templateName: param.param.viewName,
//
id,
//
state:'readOnly'
//
},
//
{
//
openWay: "FUNCTAB",
//
title: "单据详情",
//
}
//
);
//
}
//
else {
//
Bridge.vm.modal_visible = false
//
GMS.$hideContainer.addComponent(typesBill, {}, function (c) {
//
c.templateName = param.param.viewName;
//
c.billId = id;
//
c.init = true;
//
c.modal_visible = true;
//
c.isReadOnly = true
//
})
//
}
}
else
if
(
code
===
201
)
{
GMS
.
$hideContainer
.
$Spin
.
hide
();
GMS
.
$hideContainer
.
$Message
.
error
(
"提交失败"
);
...
...
develop/@gms/gms-plugin-billexpand/src/control/buttonGrouop.vue
View file @
11fbfdb5
...
...
@@ -21,6 +21,7 @@ export default {
bottom
:
''
},
btnGroup
:
[],
workflowState
:
0
}
},
watch
:
{
...
...
@@ -53,6 +54,14 @@ export default {
[
location
]:
'0px'
,
}
}
// 监听工作流状态改变
GMS
.
vbus
.
$on
(
"workflow-state-change"
,
(
val
)
=>
{
this
.
workflowState
=
val
this
.
getBtnGroup
()
})
},
beforeDestroy
()
{
GMS
.
vbus
.
$off
(
"workflow-state-change"
);
},
methods
:
{
checkParent
()
{
...
...
@@ -101,7 +110,12 @@ export default {
},
getBillStateDisable
(
val
)
{
if
(
!
val
)
return
false
let
approveState
=
this
.
context
.
bill
.
getMasterData
().
getValue
(
'billState'
)
let
approveState
=
null
if
(
this
.
workflowState
===
0
)
{
approveState
=
this
.
context
.
bill
.
getMasterData
().
getValue
(
'billState'
)
}
else
{
approveState
=
this
.
workflowState
}
let
disableState
=
val
.
split
(
';'
)
const
getBillState
=
()
=>
{
if
(
this
.
tmpBill
.
state
===
''
)
{
...
...
@@ -115,6 +129,10 @@ export default {
switch
(
approveState
)
{
case
90
:
return
disableState
.
includes
(
'90'
)
case
91
:
return
disableState
.
includes
(
'91'
)
case
92
:
return
disableState
.
includes
(
'92'
)
case
1
:
return
disableState
.
includes
(
'1'
)
||
getBillState
()
default
:
...
...
develop/@gms/gms-plugin-billexpand/src/emcon.js
View file @
11fbfdb5
...
...
@@ -1211,7 +1211,6 @@ export default {
"description"
:
""
,
"title"
:
"缓存单据数据[cacheSaveAction]"
,
"value"
:
"cacheSaveAction"
,
"btnDisable"
:
"billReadOnly;90;91;92"
},
{
"discard"
:
false
,
...
...
@@ -1228,7 +1227,7 @@ export default {
]
},
"description"
:
""
,
"title"
:
"保存(报销单)[
cacheSaveAction
]"
,
"title"
:
"保存(报销单)[
saveActionBXD
]"
,
"value"
:
"saveActionBXD"
,
"btnDisable"
:
"billReadOnly;90;91;92"
},
...
...
@@ -1482,7 +1481,7 @@ export default {
"description"
:
""
,
"title"
:
"财务_提交[CW_submitAction]"
,
"value"
:
"CW_submitAction"
,
"btnDisable"
:
"billEdit;90;
1;0
"
"btnDisable"
:
"billEdit;90;
91;92
"
},
{
"discard"
:
false
,
...
...
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