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
64dca799
Commit
64dca799
authored
Mar 03, 2022
by
袁成
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 同意驳回增加执行动作
parent
f050b5ca
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
30 deletions
+40
-30
agreeAction.js
...lop/@gms/gms-plugin-billexpand/src/actions/agreeAction.js
+10
-10
rejectAction.js
...op/@gms/gms-plugin-billexpand/src/actions/rejectAction.js
+4
-10
emcon.js
develop/@gms/gms-plugin-billexpand/src/emcon.js
+26
-10
No files found.
develop/@gms/gms-plugin-billexpand/src/actions/agreeAction.js
View file @
64dca799
...
@@ -68,23 +68,23 @@ export default {
...
@@ -68,23 +68,23 @@ export default {
}
}
},
},
executeApproval
:
function
(
bill
,
param
)
{
executeApproval
:
function
(
bill
,
param
)
{
if
(
param
.
param
.
isNeedSave
)
{
if
(
param
.
param
.
actions
)
{
let
saveParam
=
{
let
saveParam
=
{
actions
:
"bill.Basic.save"
,
actions
:
param
.
param
.
actions
,
afterAction
:
""
,
//
afterAction: "",
confirmTitle
:
""
,
//
confirmTitle: "",
customSaveAction
:
""
,
//
customSaveAction: "",
noCheckCardDepressPeriod
:
true
,
//
noCheckCardDepressPeriod: true,
noCheckSubTable
:
true
,
//
noCheckSubTable: true,
viewName
:
""
//
viewName: ""
}
}
bill
.
executeServerAction
(
saveParam
,
function
(
code
,
data
)
{
bill
.
executeServerAction
(
saveParam
,
function
(
code
,
data
)
{
if
(
code
===
200
)
{
if
(
code
===
200
)
{
this
.
approval
(
bill
,
param
);
this
.
approval
(
bill
,
param
);
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"loading"
,
false
)
//
bill.setControlsSate(param["_control_name_"], "loading", false)
}
else
{
}
else
{
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"enable"
,
true
)
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"enable"
,
true
)
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"loading"
,
false
)
//
bill.setControlsSate(param["_control_name_"], "loading", false)
GMS
.
$hideContainer
.
$message
.
error
(
"操作异常请联系管理员"
);
GMS
.
$hideContainer
.
$message
.
error
(
"操作异常请联系管理员"
);
}
}
}.
bind
(
this
));
}.
bind
(
this
));
...
...
develop/@gms/gms-plugin-billexpand/src/actions/rejectAction.js
View file @
64dca799
...
@@ -3,22 +3,16 @@ export default {
...
@@ -3,22 +3,16 @@ export default {
execute
:
function
(
bill
,
param
)
{
execute
:
function
(
bill
,
param
)
{
if
(
bill
){
if
(
bill
){
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"enable"
,
false
)
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"enable"
,
false
)
if
(
param
.
param
.
isNeedSave
){
if
(
param
.
param
.
actions
){
let
saveParam
=
{
let
saveParam
=
{
actions
:
"bill.Basic.save"
,
actions
:
param
.
param
.
actions
,
afterAction
:
""
,
confirmTitle
:
""
,
customSaveAction
:
""
,
noCheckCardDepressPeriod
:
true
,
noCheckSubTable
:
true
,
viewName
:
""
}
}
bill
.
executeServerAction
(
saveParam
,
function
(
code
,
data
){
bill
.
executeServerAction
(
saveParam
,
function
(
code
,
data
){
if
(
code
===
200
){
if
(
code
===
200
){
this
.
approval
(
bill
,
param
);
this
.
approval
(
bill
,
param
);
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"loading"
,
false
)
//
bill.setControlsSate(param["_control_name_"],"loading",false)
}
else
{
}
else
{
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"loading"
,
false
)
//
bill.setControlsSate(param["_control_name_"],"loading",false)
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"enable"
,
true
)
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"enable"
,
true
)
GMS
.
$hideContainer
.
$message
.
error
(
"操作异常请联系管理员"
);
GMS
.
$hideContainer
.
$message
.
error
(
"操作异常请联系管理员"
);
}
}
...
...
develop/@gms/gms-plugin-billexpand/src/emcon.js
View file @
64dca799
...
@@ -1626,12 +1626,20 @@ export default {
...
@@ -1626,12 +1626,20 @@ export default {
"path"
:
"资产/通用"
,
"path"
:
"资产/通用"
,
"extends"
:
{
"extends"
:
{
"param"
:
[
"param"
:
[
// {
// "ref": "bill",
// "type": "metaData",
// "title": "成功跳转页面",
// "key": "viewName"
// },
{
{
"ref"
:
"bill"
,
"clearable"
:
true
,
"type"
:
"metaData"
,
"ref"
:
"gams2.bill"
,
"title"
:
"成功跳转页面"
,
"type"
:
"select"
,
"key"
:
"viewName"
"title"
:
"执行动作"
,
}
"key"
:
"actions"
,
"innerRef"
:
"actions"
},
]
]
},
},
"description"
:
""
,
"description"
:
""
,
...
@@ -1678,12 +1686,20 @@ export default {
...
@@ -1678,12 +1686,20 @@ export default {
"path"
:
"资产/通用"
,
"path"
:
"资产/通用"
,
"extends"
:
{
"extends"
:
{
"param"
:
[
"param"
:
[
// {
// "ref": "bill",
// "type": "metaData",
// "title": "成功跳转页面",
// "key": "viewName"
// },
{
{
"ref"
:
"bill"
,
"clearable"
:
true
,
"type"
:
"metaData"
,
"ref"
:
"gams2.bill"
,
"title"
:
"成功跳转页面"
,
"type"
:
"select"
,
"key"
:
"viewName"
"title"
:
"执行动作"
,
}
"key"
:
"actions"
,
"innerRef"
:
"actions"
},
]
]
},
},
"description"
:
""
,
"description"
:
""
,
...
...
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