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
2204c266
Commit
2204c266
authored
Mar 25, 2022
by
袁成
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of
ssh://nvwa.jiuqi.com.cn:2222/GFP/RBC/rbc-frontend
into develop-yuancheng
parents
c35a4cc3
da3ca9d3
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
30 deletions
+21
-30
agreeAction.js
...lop/@gms/gms-plugin-billexpand/src/actions/agreeAction.js
+6
-5
pageType.js
develop/@gms/gms-plugin-billexpand/src/actions/pageType.js
+2
-0
emcon.js
develop/@gms/gms-plugin-billexpand/src/emcon.js
+7
-0
CheckSublistSize.js
...gms/gms-plugin-billexpand/src/formula/CheckSublistSize.js
+3
-22
examineAction.js
.../gms-plugin-billexpand/src/query-actions/examineAction.js
+3
-3
No files found.
develop/@gms/gms-plugin-billexpand/src/actions/agreeAction.js
View file @
2204c266
...
...
@@ -84,6 +84,7 @@ export default {
})
},
approvalLogical
:
function
(
bill
,
param
)
{
const
getApprovalList
=
()
=>
{
let
taskId
=
bill
.
getGlobalParam
(
'reviewParam'
).
taskId
;
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"enable"
,
false
)
let
selectedApprovers
=
[]
...
...
@@ -140,15 +141,15 @@ export default {
}).
catch
(()
=>
{
GMS
.
$hideContainer
.
$Message
.
error
(
'未找到下一节点的审批人'
);
})
},
executeApproval
:
function
(
bill
,
param
)
{
}
if
(
param
.
param
.
actions
)
{
let
saveParam
=
{
actions
:
param
.
param
.
actions
}
bill
.
executeServerAction
(
saveParam
,
function
(
code
,
data
)
{
if
(
code
===
200
)
{
this
.
approval
(
bill
,
param
);
getApprovalList
()
}
else
{
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"enable"
,
true
)
if
(
data
.
message
.
includes
(
'还款金额不能大于未还金额'
))
{
...
...
@@ -160,10 +161,10 @@ export default {
}
}.
bind
(
this
));
}
else
{
this
.
approval
(
bill
,
param
);
getApprovalList
()
}
},
approval
:
function
(
bill
,
param
)
{
executeApproval
:
function
(
bill
,
param
)
{
let
taskId
=
bill
.
getGlobalParam
(
'reviewParam'
).
taskId
;
let
comments
=
bill
.
getGlobalParam
(
'reviewParam'
).
suggestions
?
bill
.
getGlobalParam
(
'reviewParam'
).
suggestions
:
""
;
GMS
.
$http
.
post
(
'/rbc/workflow/approve/completed/'
+
taskId
+
'?result=1&comments='
+
comments
).
then
(
...
...
develop/@gms/gms-plugin-billexpand/src/actions/pageType.js
View file @
2204c266
...
...
@@ -58,6 +58,8 @@ export default {
}
else
{
GMS
.
vbus
.
$emit
(
"resetBillData"
,
data
.
data
.
id
,
state
);
}
}
else
{
GMS
.
vbus
.
$Message
.
info
(
'请返回单据id'
);
}
if
(
data
.
data
&&
data
.
data
.
message
)
{
GMS
.
vbus
.
$Message
.
info
(
data
.
data
.
message
);
...
...
develop/@gms/gms-plugin-billexpand/src/emcon.js
View file @
2204c266
...
...
@@ -1012,6 +1012,13 @@ export default {
"paramDes"
:
[
{
"isRequired"
:
true
,
"ref"
:
"columnField"
,
"type"
:
"field"
,
"title"
:
"页面名称"
,
"key"
:
"billName"
},
{
"isRequired"
:
true
,
"ref"
:
"bill"
,
"type"
:
"metaData"
,
"title"
:
"跳转页面"
,
...
...
develop/@gms/gms-plugin-billexpand/src/formula/CheckSublistSize.js
View file @
2204c266
...
...
@@ -8,32 +8,12 @@ export default {
if
(
context
.
getTableType
)
{
let
_tn
=
context
.
getTableType
(
table
);
let
_data
=
context
.
getSubData
(
_tn
.
title
);
if
(
_data
instanceof
Array
)
{
let
field
=
arguments
[
0
][
0
].
FieldCode
let
matchProp
=
arguments
[
0
][
1
].
StaticValue
let
matchValue
=
arguments
[
0
][
2
].
StaticValue
if
(
matchValue
)
{
for
(
const
iterator
of
_data
)
{
let
_val
=
iterator
.
getValue
(
field
)
if
(
_val
instanceof
Object
)
{
if
(
_val
[
matchProp
]
==
matchValue
)
{
size
++
;
}
}
else
{
if
(
_val
==
matchValue
)
{
size
++
;
}
}
}
}
else
{
size
=
_data
.
length
}
}
return
_data
.
length
>
0
}
}
return
size
},
getResultType
:
function
()
{
return
FMR
.
ConstDataTypes
.
General
;
return
1
;
}
}
\ No newline at end of file
develop/@gms/gms-plugin-billexpand/src/query-actions/examineAction.js
View file @
2204c266
...
...
@@ -8,10 +8,10 @@ export default {
return
;
}
const
uuid
=
getUUID
();
const
billState
=
param
.
canEdit
?
''
:
'readOnly'
const
billState
=
param
.
canEdit
?
''
:
'readOnly'
;
let
templateName
=
param
.
billName
||
param
.
viewName
;
let
index
=
context
.
selects
[
0
].
_index
||
(
context
.
selects
[
0
].
_serialIndex
)
*
1
-
1
;
setQueryTag
(
context
.
currentDataQueryConditionSet
,
index
,
param
.
viewName
,
uuid
);
//上张下张用
let
templateName
=
param
.
viewName
;
setQueryTag
(
context
.
currentDataQueryConditionSet
,
index
,
templateName
,
uuid
);
//上张下张用
let
billId
=
context
.
selects
[
0
][
param
.
billId
];
window
.
GMS
.
workflowTaskId
=
context
.
selects
[
0
][
param
.
taskId
]
if
(
...
...
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