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
ee213d95
Commit
ee213d95
authored
Mar 03, 2022
by
乔延琦
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop-yuancheng' into 'develop'
Develop yuancheng See merge request GFP/RBC/rbc-frontend!75
parents
f3233ce3
64dca799
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
62 additions
and
39 deletions
+62
-39
agreeAction.js
...lop/@gms/gms-plugin-billexpand/src/actions/agreeAction.js
+15
-11
rejectAction.js
...op/@gms/gms-plugin-billexpand/src/actions/rejectAction.js
+8
-10
emcon.js
develop/@gms/gms-plugin-billexpand/src/emcon.js
+26
-10
gms-app.vue
...p/@gms/gms-plugin-mainpage-fileList/src/views/gms-app.vue
+5
-4
property.vue
.../@gms/gms-plugin-mainpage-fileList/src/views/property.vue
+1
-1
file-management.vue
develop/@rbc/file-management/src/views/file-management.vue
+7
-3
No files found.
develop/@gms/gms-plugin-billexpand/src/actions/agreeAction.js
View file @
ee213d95
...
...
@@ -3,8 +3,12 @@ import SelectApprovers from '../components-control/select-approvers.vue'
export
default
{
execute
:
function
(
bill
,
param
)
{
if
(
bill
)
{
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"enable"
,
false
)
if
(
!
bill
.
getGlobalParam
(
'reviewParam'
)
||
!
bill
.
getGlobalParam
(
'reviewParam'
).
taskId
)
{
GMS
.
$hideContainer
.
$Message
.
error
(
'请配置审批轨迹'
)
return
}
let
taskId
=
bill
.
getGlobalParam
(
'reviewParam'
).
taskId
;
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"enable"
,
false
)
let
selectedApprovers
=
[]
window
.
GMS
.
$http
.
get
(
`/bpm/bill/selectApprover/ApproverList/
${
taskId
}
`
).
then
((
res
)
=>
{
if
(
res
.
data
.
code
==
204
)
{
...
...
@@ -64,23 +68,23 @@ export default {
}
},
executeApproval
:
function
(
bill
,
param
)
{
if
(
param
.
param
.
isNeedSave
)
{
if
(
param
.
param
.
actions
)
{
let
saveParam
=
{
actions
:
"bill.Basic.save"
,
afterAction
:
""
,
confirmTitle
:
""
,
customSaveAction
:
""
,
noCheckCardDepressPeriod
:
true
,
noCheckSubTable
:
true
,
viewName
:
""
actions
:
param
.
param
.
actions
,
//
afterAction: "",
//
confirmTitle: "",
//
customSaveAction: "",
//
noCheckCardDepressPeriod: true,
//
noCheckSubTable: true,
//
viewName: ""
}
bill
.
executeServerAction
(
saveParam
,
function
(
code
,
data
)
{
if
(
code
===
200
)
{
this
.
approval
(
bill
,
param
);
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"loading"
,
false
)
//
bill.setControlsSate(param["_control_name_"], "loading", false)
}
else
{
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
(
"操作异常请联系管理员"
);
}
}.
bind
(
this
));
...
...
develop/@gms/gms-plugin-billexpand/src/actions/rejectAction.js
View file @
ee213d95
...
...
@@ -3,22 +3,16 @@ export default {
execute
:
function
(
bill
,
param
)
{
if
(
bill
){
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"enable"
,
false
)
if
(
param
.
param
.
isNeedSave
){
if
(
param
.
param
.
actions
){
let
saveParam
=
{
actions
:
"bill.Basic.save"
,
afterAction
:
""
,
confirmTitle
:
""
,
customSaveAction
:
""
,
noCheckCardDepressPeriod
:
true
,
noCheckSubTable
:
true
,
viewName
:
""
actions
:
param
.
param
.
actions
,
}
bill
.
executeServerAction
(
saveParam
,
function
(
code
,
data
){
if
(
code
===
200
){
this
.
approval
(
bill
,
param
);
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"loading"
,
false
)
//
bill.setControlsSate(param["_control_name_"],"loading",false)
}
else
{
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"loading"
,
false
)
//
bill.setControlsSate(param["_control_name_"],"loading",false)
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"enable"
,
true
)
GMS
.
$hideContainer
.
$message
.
error
(
"操作异常请联系管理员"
);
}
...
...
@@ -31,6 +25,10 @@ export default {
}
},
approval
:
function
(
bill
,
param
){
if
(
!
bill
.
getGlobalParam
(
'reviewParam'
)
||
!
bill
.
getGlobalParam
(
'reviewParam'
).
taskId
)
{
GMS
.
$hideContainer
.
$Message
.
error
(
'请配置审批轨迹'
)
return
}
let
taskId
=
bill
.
getGlobalParam
(
'reviewParam'
).
taskId
;
let
comments
=
bill
.
getGlobalParam
(
'reviewParam'
).
suggestions
?
bill
.
getGlobalParam
(
'reviewParam'
).
suggestions
:
""
;
GMS
.
$http
.
post
(
'/gms/workflow/task/completed/'
+
taskId
+
'?result=3&comments='
+
comments
).
then
(
...
...
develop/@gms/gms-plugin-billexpand/src/emcon.js
View file @
ee213d95
...
...
@@ -1626,12 +1626,20 @@ export default {
"path"
:
"资产/通用"
,
"extends"
:
{
"param"
:
[
// {
// "ref": "bill",
// "type": "metaData",
// "title": "成功跳转页面",
// "key": "viewName"
// },
{
"ref"
:
"bill"
,
"type"
:
"metaData"
,
"title"
:
"成功跳转页面"
,
"key"
:
"viewName"
}
"clearable"
:
true
,
"ref"
:
"gams2.bill"
,
"type"
:
"select"
,
"title"
:
"执行动作"
,
"key"
:
"actions"
,
"innerRef"
:
"actions"
},
]
},
"description"
:
""
,
...
...
@@ -1678,12 +1686,20 @@ export default {
"path"
:
"资产/通用"
,
"extends"
:
{
"param"
:
[
// {
// "ref": "bill",
// "type": "metaData",
// "title": "成功跳转页面",
// "key": "viewName"
// },
{
"ref"
:
"bill"
,
"type"
:
"metaData"
,
"title"
:
"成功跳转页面"
,
"key"
:
"viewName"
}
"clearable"
:
true
,
"ref"
:
"gams2.bill"
,
"type"
:
"select"
,
"title"
:
"执行动作"
,
"key"
:
"actions"
,
"innerRef"
:
"actions"
},
]
},
"description"
:
""
,
...
...
develop/@gms/gms-plugin-mainpage-fileList/src/views/gms-app.vue
View file @
ee213d95
...
...
@@ -61,10 +61,11 @@ export default {
async
getFileLList
()
{
const
url
=
`/common/attachment/owner/00000000-0000-0000-0000-000000000000`
const
{
data
}
=
await
GMS
.
$http
.
get
(
url
)
this
.
fileList
=
data
.
filter
(
item
=>
item
.
category
===
this
.
groupId
)
console
.
log
(
'groupId'
,
this
.
groupId
)
console
.
log
(
'fileList'
,
this
.
fileList
)
console
.
log
({
data
})
if
(
this
.
groupId
===
'rbc-0'
)
{
this
.
fileList
=
data
}
else
{
this
.
fileList
=
data
.
filter
(
item
=>
item
.
category
===
this
.
groupId
)
}
},
handleMore
()
{
this
.
modalShow
=
true
...
...
develop/@gms/gms-plugin-mainpage-fileList/src/views/property.vue
View file @
ee213d95
...
...
@@ -39,7 +39,7 @@ export default {
},
fileGroup
:
[
{
label
:
'
默认分组
'
,
label
:
'
全部
'
,
value
:
'0'
},
{
...
...
develop/@rbc/file-management/src/views/file-management.vue
View file @
ee213d95
...
...
@@ -76,7 +76,7 @@ export default {
tableData
:
[],
fileGroup
:
[
{
label
:
'
默认分组
'
,
label
:
'
全部
'
,
value
:
'0'
},
{
...
...
@@ -131,13 +131,17 @@ export default {
},
handleUpload
(){
this
.
$refs
.
upload
.
modalShow
=
true
this
.
$refs
.
upload
.
files
=
[]
},
async
getTableData
()
{
const
url
=
`/common/attachment/owner/00000000-0000-0000-0000-000000000000`
const
{
data
}
=
await
GMS
.
$http
.
get
(
url
)
let
category
=
'rbc-'
+
this
.
fileGroupId
this
.
tableData
=
data
.
filter
(
item
=>
item
.
category
===
category
)
console
.
log
({
data
})
if
(
this
.
fileGroupId
===
'0'
)
{
this
.
tableData
=
data
}
else
{
this
.
tableData
=
data
.
filter
(
item
=>
item
.
category
===
category
)
}
},
},
}
...
...
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