Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
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
罗超
confucius
Commits
0f2cff00
Commit
0f2cff00
authored
Dec 23, 2020
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
行政接口的更换
parent
f341cc82
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
285 additions
and
119 deletions
+285
-119
administration.js
src/api/administration/administration.js
+70
-0
forMyApproval.vue
src/pages/administration/forMyApproval.vue
+92
-54
leaveApproval.vue
src/pages/administration/leaveApproval.vue
+3
-0
myApprovalList.vue
src/pages/administration/myApprovalList.vue
+75
-44
sendToMeApproval.vue
src/pages/administration/sendToMeApproval.vue
+45
-21
No files found.
src/api/administration/administration.js
View file @
0f2cff00
...
...
@@ -218,6 +218,76 @@ export function getleaveCmd(data,cmd) {
data
});
}
/**
*我发起 获取详情
*/
export
function
getAuditInfo
(
data
)
{
return
request
({
url
:
'/workflow/GetAuditInfo'
,
method
:
'post'
,
data
});
}
/**
*我发起 撤回
*/
export
function
undoAudit
(
data
)
{
return
request
({
url
:
'/workflow/UndoAudit'
,
method
:
'post'
,
data
});
}
/**
*我发起 同意
*/
export
function
setConsent
(
data
)
{
return
request
({
url
:
'/workflow/SetConsent'
,
method
:
'post'
,
data
});
}
/**
*我发起 不同意
*/
export
function
setNotConsent
(
data
)
{
return
request
({
url
:
'/workflow/SetNotConsent'
,
method
:
'post'
,
data
});
}
/**
*我发起 转交
*/
export
function
setCareOf
(
data
)
{
return
request
({
url
:
'/workflow/SetCareOf'
,
method
:
'post'
,
data
});
}
/**
*抄送 获取列表
*/
export
function
copyTomyaudit
(
data
)
{
return
request
({
url
:
'/workflow/CopyTomyaudit'
,
method
:
'post'
,
data
});
}
/**
*我的审批 获取列表
*/
export
function
myAudit
(
data
)
{
return
request
({
url
:
'/workflow/MyAudit'
,
method
:
'post'
,
data
});
}
...
...
src/pages/administration/forMyApproval.vue
View file @
0f2cff00
...
...
@@ -230,7 +230,7 @@
show-checkbox
accordion
@
check-change=
"handleNodeChange"
node-key=
"Dep
artmen
tId"
node-key=
"DeptId"
ref=
"tree"
check-strictly
>
...
...
@@ -257,13 +257,27 @@
</
template
>
<
script
>
import
{
myInitiateAudit
,
gettemplatetype
,
getMyInitiateAuditStatus
,
getAuditInfo
,
undoAudit
,
//撤回
setConsent
,
setNotConsent
,
setCareOf
,
myAudit
}
from
'../../api/administration/administration'
;
import
{
getEmployeeAddrBook
}
from
'../../api/users/user'
export
default
{
data
()
{
return
{
filterText
:
""
,
defaultProps
:
{
children
:
'ChildList'
,
label
:
'Dep
artmen
tName'
,
label
:
'DeptName'
,
disabled
:
"Disabled"
},
fileList
:[],
...
...
@@ -378,7 +392,7 @@
},
filterNode
(
value
,
data
)
{
if
(
!
value
)
return
true
;
return
data
.
Dep
artmen
tName
.
indexOf
(
value
)
!==
-
1
;
return
data
.
DeptName
.
indexOf
(
value
)
!==
-
1
;
},
openDialog
(
IsAgree
,
workFlowId
,
templateType
){
this
.
agree
=
IsAgree
...
...
@@ -392,11 +406,18 @@
this
.
outerVisible1
=
true
;
this
.
workFlowId
=
workFlowId
;
this
.
templateType
=
templateType
;
this
.
apipost
(
'WorkFlow_get_GetDepartMentEmployee'
,
{},
res
=>
{
if
(
res
.
data
.
result
Code
==
1
)
{
this
.
memberList
=
res
.
data
.
data
getEmployeeAddrBook
({}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
memberList
=
res
.
Data
;
}
},
err
=>
{})
}).
catch
(()
=>
{
})
// this.apipost('WorkFlow_get_GetDepartMentEmployee', {}, res => {
// if(res.data.resultCode == 1) {
// this.memberList = res.data.data
// }
// }, err => {})
},
clearTransferDialog
(
done
){
done
()
...
...
@@ -409,10 +430,10 @@
},
handleNodeChange
(
data
,
checked
,
node
){
if
(
checked
){
if
(
data
.
Dep
artmen
tId
!=
0
){
this
.
arr
.
push
(
data
.
Dep
artmen
tId
)
this
.
$refs
.
tree
.
setCheckedKeys
([
data
.
Dep
artmen
tId
]);
this
.
transferMsg
.
CareOfEmId
=
data
.
Dep
artmen
tId
;
if
(
data
.
DeptId
!=
0
){
this
.
arr
.
push
(
data
.
DeptId
)
this
.
$refs
.
tree
.
setCheckedKeys
([
data
.
DeptId
]);
this
.
transferMsg
.
CareOfEmId
=
data
.
DeptId
;
}
}
else
{
if
(
this
.
arr
.
length
==
1
){
...
...
@@ -433,47 +454,51 @@
this
.
$message
.
warning
(
'请选择转交人!'
)
return
}
this
.
apipost
(
'WorkFlow_post_SetCareOf'
,
this
.
transferMsg
,
res
=>
{
if
(
res
.
data
.
result
Code
==
1
)
{
this
.
$message
.
success
(
res
.
data
.
m
essage
)
setCareOf
(
this
.
transferMsg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
$message
.
success
(
res
.
M
essage
)
this
.
outerVisible1
=
false
;
this
.
getList
()
this
.
closeLayer
()
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
)
}
else
{
this
.
$message
.
error
(
res
.
Message
)
}
},
err
=>
{})
}).
catch
(()
=>
{
})
},
agreeApproval
(){
this
.
appMsg
.
WorkFlowId
=
this
.
workFlowId
this
.
appMsg
.
TemplateType
=
this
.
templateType
this
.
apipost
(
'WorkFlow_post_SetConsent'
,
this
.
appMsg
,
res
=>
{
if
(
res
.
data
.
result
Code
==
1
)
{
this
.
$message
.
success
(
res
.
data
.
m
essage
)
setConsent
(
this
.
appMsg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
$message
.
success
(
res
.
M
essage
)
this
.
outerVisible
=
false
;
this
.
getList
()
this
.
btnClearDialogMsg
()
this
.
closeLayer
()
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
)
}
else
{
this
.
$message
.
error
(
res
.
Message
)
}
},
err
=>
{})
}).
catch
(()
=>
{
})
},
rejectApproval
(){
this
.
appMsg
.
WorkFlowId
=
this
.
workFlowId
this
.
appMsg
.
TemplateType
=
this
.
templateType
this
.
apipost
(
'WorkFlow_post_SetNotConsent'
,
this
.
appMsg
,
res
=>
{
if
(
res
.
data
.
result
Code
==
1
)
{
this
.
$message
.
success
(
res
.
data
.
m
essage
)
setNotConsent
(
this
.
appMsg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
$message
.
success
(
res
.
M
essage
)
this
.
outerVisible
=
false
;
this
.
getList
()
this
.
btnClearDialogMsg
()
this
.
closeLayer
()
}
else
{
this
.
$message
.
error
(
res
.
data
.
m
essage
)
}
else
{
this
.
$message
.
error
(
res
.
M
essage
)
}
},
err
=>
{})
}).
catch
(()
=>
{
})
},
withdrawAapproval
(
workFlowId
,
templateType
){
...
...
@@ -482,12 +507,15 @@
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
this
.
apipost
(
'app_user_workflow_wndoaudit'
,{
workFlowId
:
workFlowId
,
templateType
:
templateType
},
res
=>
{
if
(
res
.
data
.
result
Code
==
1
)
{
undoAudit
({
workFlowId
:
workFlowId
,
templateType
:
templateType
}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
$message
.
success
(
'撤回成功。'
)
this
.
getList
()
this
.
showlayer
=
false
;
}
},
err
=>
{})
}).
catch
(()
=>
{
})
}).
catch
(()
=>
{
this
.
$message
.
info
(
'已取消撤回。'
)
});
...
...
@@ -510,29 +538,35 @@
},
getDetail
(
id
,
type
){
this
.
showLayer
();
this
.
apipost
(
'app_user_workflow_GetAuditInfo'
,{
WorkFlowId
:
id
,
TemplateType
:
type
},
res
=>
{
if
(
res
.
data
.
result
Code
==
1
)
{
this
.
detailList
=
res
.
data
.
d
ata
this
.
IsAudit
=
res
.
data
.
d
ata
.
IsAudit
this
.
IsCancel
=
res
.
data
.
d
ata
.
IsCancel
this
.
IsUpdate
=
res
.
data
.
d
ata
.
IsUpdate
getAuditInfo
({
WorkFlowId
:
id
,
TemplateType
:
type
}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
detailList
=
res
.
D
ata
this
.
IsAudit
=
res
.
D
ata
.
IsAudit
this
.
IsCancel
=
res
.
D
ata
.
IsCancel
this
.
IsUpdate
=
res
.
D
ata
.
IsUpdate
}
},
err
=>
{})
}).
catch
(()
=>
{
})
},
getList
(){
this
.
loading
=
true
;
this
.
apipost
(
'app_user_workflow_my_audit'
,
this
.
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
list
=
res
.
data
.
data
.
pageData
;
this
.
total
=
res
.
data
.
data
.
count
;
myAudit
(
this
.
msg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
list
=
res
.
Data
.
PageData
;
this
.
total
=
res
.
Data
.
Count
;
this
.
loading
=
false
}
},
err
=>
{})
}).
catch
(()
=>
{
})
},
getApplyType
(){
//模板类型
this
.
apipost
(
'app_user_workflow_get_templatetype'
,{},
res
=>
{
if
(
res
.
data
.
result
Code
==
1
)
{
res
.
data
.
d
ata
.
forEach
(
item
=>
{
gettemplatetype
({}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
res
.
D
ata
.
forEach
(
item
=>
{
for
(
let
key
in
item
){
if
(
item
.
hasOwnProperty
(
key
)){
this
.
ApplyTypeList
.
push
({
label
:
key
,
value
:
item
[
key
]})
...
...
@@ -540,12 +574,14 @@
}
})
}
},
err
=>
{})
}).
catch
(()
=>
{
})
},
getAppAuditStatus
(){
this
.
apipost
(
'app_user_workflow_get_myinitiate_auditstatus'
,{},
res
=>
{
if
(
res
.
data
.
result
Code
==
1
)
{
res
.
data
.
d
ata
.
forEach
(
item
=>
{
getMyInitiateAuditStatus
({}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
res
.
D
ata
.
forEach
(
item
=>
{
for
(
let
key
in
item
){
if
(
item
.
hasOwnProperty
(
key
)){
this
.
appAuditStatusList
.
push
({
label
:
key
,
value
:
item
[
key
]})
...
...
@@ -553,7 +589,9 @@
}
})
}
},
err
=>
{})
}).
catch
(()
=>
{
})
},
handleCurrentChange
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
...
...
src/pages/administration/leaveApproval.vue
View file @
0f2cff00
...
...
@@ -146,6 +146,7 @@
let
newArr
=
[];
newArr
.
push
(
file
.
file
)
UploadSelfFile
(
'Temporary'
,
file
.
file
,
x
=>
{
console
.
log
(
x
)
let
url
=
x
.
FileUrl
this
.
submitFileList
.
push
(
url
)
this
.
fileList
.
push
({
...
...
@@ -427,6 +428,8 @@
this
.
loading
=
false
}
}).
catch
(()
=>
{
this
.
loading
=
false
})
},
},
...
...
src/pages/administration/myApprovalList.vue
View file @
0f2cff00
...
...
@@ -224,7 +224,8 @@
show-checkbox
accordion
@
check-change=
"handleNodeChange"
node-key=
"DepartmentId"
empty-text=
"DeptName"
node-key=
"DeptId"
ref=
"tree"
check-strictly
>
...
...
@@ -254,15 +255,23 @@
import
{
myInitiateAudit
,
gettemplatetype
,
getMyInitiateAuditStatus
getMyInitiateAuditStatus
,
getAuditInfo
,
undoAudit
,
//撤回
setConsent
,
setNotConsent
,
setCareOf
}
from
'../../api/administration/administration'
;
import
{
getEmployeeAddrBook
}
from
'../../api/users/user'
export
default
{
data
()
{
return
{
filterText
:
""
,
defaultProps
:
{
children
:
'ChildList'
,
label
:
'Dep
artmen
tName'
,
label
:
'DeptName'
,
disabled
:
"Disabled"
},
fileList
:[],
...
...
@@ -379,7 +388,7 @@
},
filterNode
(
value
,
data
)
{
if
(
!
value
)
return
true
;
return
data
.
Dep
artmen
tName
.
indexOf
(
value
)
!==
-
1
;
return
data
.
DeptName
.
indexOf
(
value
)
!==
-
1
;
},
openDialog
(
IsAgree
,
workFlowId
,
templateType
){
this
.
agree
=
IsAgree
...
...
@@ -393,11 +402,18 @@
this
.
outerVisible1
=
true
;
this
.
workFlowId
=
workFlowId
;
this
.
templateType
=
templateType
;
this
.
apipost
(
'WorkFlow_get_GetDepartMentEmployee'
,
{},
res
=>
{
if
(
res
.
data
.
result
Code
==
1
)
{
this
.
memberList
=
res
.
data
.
data
getEmployeeAddrBook
({}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
memberList
=
res
.
Data
;
}
},
err
=>
{})
}).
catch
(()
=>
{
})
// this.apipost('WorkFlow_get_GetDepartMentEmployee', {}, res => {
// if(res.data.resultCode == 1) {
// this.memberList = res.data.data
// }
// }, err => {})
},
clearTransferDialog
(){
this
.
filterText
=
''
...
...
@@ -409,10 +425,10 @@
},
handleNodeChange
(
data
,
checked
,
node
){
if
(
checked
){
if
(
data
.
Dep
artmen
tId
!=
0
){
this
.
arr
.
push
(
data
.
Dep
artmen
tId
)
this
.
$refs
.
tree
.
setCheckedKeys
([
data
.
Dep
artmen
tId
]);
this
.
transferMsg
.
CareOfEmId
=
data
.
Dep
artmen
tId
;
if
(
data
.
DeptId
!=
0
){
this
.
arr
.
push
(
data
.
DeptId
)
this
.
$refs
.
tree
.
setCheckedKeys
([
data
.
DeptId
]);
this
.
transferMsg
.
CareOfEmId
=
data
.
DeptId
;
}
}
else
{
if
(
this
.
arr
.
length
==
1
){
...
...
@@ -433,45 +449,54 @@
this
.
$message
.
warning
(
'请选择转交人!'
)
return
}
this
.
apipost
(
'WorkFlow_post_SetCareOf'
,
this
.
transferMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
$message
.
success
(
res
.
data
.
message
)
setCareOf
(
this
.
transferMsg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
$message
.
success
(
res
.
Message
)
this
.
outerVisible1
=
false
;
this
.
getList
()
}
else
{
this
.
$message
.
error
(
res
.
data
.
m
essage
)
}
else
{
this
.
$message
.
error
(
res
.
M
essage
)
}
},
err
=>
{})
}).
catch
(()
=>
{
})
},
agreeApproval
(){
this
.
appMsg
.
WorkFlowId
=
this
.
workFlowId
this
.
appMsg
.
TemplateType
=
this
.
templateType
this
.
apipost
(
'WorkFlow_post_SetConsent'
,
this
.
appMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
$message
.
success
(
res
.
data
.
message
)
setConsent
(
this
.
appMsg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
$message
.
success
(
res
.
Message
)
this
.
outerVisible
=
false
;
this
.
getList
()
this
.
btnClearDialogMsg
()
this
.
closeLayer
()
}
else
{
this
.
$message
.
error
(
res
.
data
.
m
essage
)
}
else
{
this
.
$message
.
error
(
res
.
M
essage
)
}
},
err
=>
{})
}).
catch
(()
=>
{
})
},
rejectApproval
(){
this
.
appMsg
.
WorkFlowId
=
this
.
workFlowId
this
.
appMsg
.
TemplateType
=
this
.
templateType
this
.
apipost
(
'WorkFlow_post_SetNotConsent'
,
this
.
appMsg
,
res
=>
{
if
(
res
.
data
.
result
Code
==
1
)
{
this
.
$message
.
success
(
res
.
data
.
m
essage
)
setNotConsent
(
this
.
appMsg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
$message
.
success
(
res
.
M
essage
)
this
.
outerVisible
=
false
;
this
.
getList
()
this
.
btnClearDialogMsg
()
this
.
closeLayer
()
}
else
{
this
.
$message
.
error
(
res
.
data
.
m
essage
)
}
else
{
this
.
$message
.
error
(
res
.
M
essage
)
}
},
err
=>
{})
}).
catch
(()
=>
{
})
},
withdrawAapproval
(
workFlowId
,
templateType
){
...
...
@@ -480,18 +505,22 @@
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
this
.
apipost
(
'app_user_workflow_wndoaudit'
,{
workFlowId
:
workFlowId
,
templateType
:
templateType
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
undoAudit
({
workFlowId
:
workFlowId
,
templateType
:
templateType
}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
$message
.
success
(
'撤回成功。'
)
this
.
getList
()
this
.
getList
()
this
.
showlayer
=
false
;
}
},
err
=>
{})
}).
catch
(()
=>
{
})
}).
catch
(()
=>
{
this
.
$message
.
info
(
'已取消撤回。'
)
});
},
updateAapproval
(
path
,
cmd
,
submitCmd
,
workFlowId
,
templateId
){
this
.
$router
.
push
({
name
:
path
,
query
:{
cmd
:
cmd
,
submitCmd
:
submitCmd
,
workFlowId
:
workFlowId
,
templateId
:
templateId
}})
this
.
$router
.
push
({
path
:
path
,
query
:{
cmd
:
cmd
,
submitCmd
:
submitCmd
,
workFlowId
:
workFlowId
,
templateId
:
templateId
}})
},
toArr
(
val
){
let
arr
=
[]
...
...
@@ -505,20 +534,22 @@
},
getDetail
(
id
,
type
){
this
.
showLayer
();
this
.
apipost
(
'app_user_workflow_GetAuditInfo'
,{
WorkFlowId
:
id
,
TemplateType
:
type
},
res
=>
{
if
(
res
.
data
.
result
Code
==
1
)
{
this
.
detailList
=
res
.
data
.
d
ata
this
.
IsAudit
=
res
.
data
.
d
ata
.
IsAudit
this
.
IsCancel
=
res
.
data
.
d
ata
.
IsCancel
this
.
IsUpdate
=
res
.
data
.
d
ata
.
IsUpdate
getAuditInfo
({
WorkFlowId
:
id
,
TemplateType
:
type
}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
detailList
=
res
.
D
ata
this
.
IsAudit
=
res
.
D
ata
.
IsAudit
this
.
IsCancel
=
res
.
D
ata
.
IsCancel
this
.
IsUpdate
=
res
.
D
ata
.
IsUpdate
}
},
err
=>
{})
}).
catch
(()
=>
{
})
},
getList
(){
this
.
loading
=
true
;
myInitiateAudit
(
{}
).
then
(
res
=>
{
myInitiateAudit
(
this
.
msg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
list
=
res
.
Data
.
p
ageData
;
this
.
list
=
res
.
Data
.
P
ageData
;
this
.
total
=
res
.
Data
.
Count
;
this
.
loading
=
false
}
...
...
src/pages/administration/sendToMeApproval.vue
View file @
0f2cff00
...
...
@@ -173,7 +173,8 @@
</div>
</div>
</div>
<el-dialog
custom-class=
'w500'
:title=
"dialogTitle"
:visible
.
sync=
"outerVisible"
center
before-close=
"clearDialogMsg"
>
<el-dialog
custom-class=
'w500'
:title=
"dialogTitle"
:visible
.
sync=
"outerVisible"
center
>
<!--
<el-dialog
custom-class=
'w500'
:title=
"dialogTitle"
:visible
.
sync=
"outerVisible"
center
before-close=
"clearDialogMsg"
>
-->
<table
class=
"layerTable"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
>
<tr>
<td>
审批意见
</td>
...
...
@@ -255,6 +256,17 @@
</
template
>
<
script
>
import
{
myInitiateAudit
,
gettemplatetype
,
getMyInitiateAuditStatus
,
getAuditInfo
,
undoAudit
,
//撤回
setConsent
,
setNotConsent
,
setCareOf
,
copyTomyaudit
}
from
'../../api/administration/administration'
;
export
default
{
data
()
{
return
{
...
...
@@ -351,11 +363,11 @@
handleExceed
(
files
,
fileList
)
{
this
.
$message
.
warning
(
'最多只能上传9张图片!'
);
},
clearDialogMsg
(
done
){
done
()
this
.
appMsg
.
Description
=
''
// this.appMsg.Image=[]
},
//
clearDialogMsg(done){
//
done()
//
this.appMsg.Description=''
//
// this.appMsg.Image=[]
//
},
btnClearDialogMsg
(){
this
.
outerVisible
=
false
this
.
appMsg
.
Description
=
''
...
...
@@ -521,20 +533,29 @@
},
getList
(){
this
.
loading
=
true
;
this
.
apipost
(
'app_user_workflow_copy_tomyaudit'
,
this
.
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
list
=
res
.
data
.
data
.
pageData
;
this
.
total
=
res
.
data
.
data
.
count
;
copyTomyaudit
(
this
.
msg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
list
=
res
.
Data
.
PageData
;
this
.
total
=
res
.
Data
.
Count
;
this
.
loading
=
false
}
},
err
=>
{})
}).
catch
(()
=>
{
})
// this.apipost('app_user_workflow_copy_tomyaudit',this.msg,res=>{
// if(res.data.resultCode == 1) {
//
// this.list=res.data.data.pageData;
// this.total=res.data.data.count;
// this.loading=false
// }
// },err=>{})
},
getApplyType
(){
//模板类型
this
.
apipost
(
'app_user_workflow_get_templatetype'
,{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
res
.
data
.
data
.
forEach
(
item
=>
{
gettemplatetype
({}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
res
.
Data
.
forEach
(
item
=>
{
for
(
let
key
in
item
){
if
(
item
.
hasOwnProperty
(
key
)){
this
.
ApplyTypeList
.
push
({
label
:
key
,
value
:
item
[
key
]})
...
...
@@ -542,13 +563,14 @@
}
})
}
},
err
=>
{})
}).
catch
(()
=>
{
})
},
getAppAuditStatus
(){
this
.
apipost
(
'app_user_workflow_get_myinitiate_auditstatus'
,{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
res
.
data
.
data
.
forEach
(
item
=>
{
getMyInitiateAuditStatus
({}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
res
.
Data
.
forEach
(
item
=>
{
for
(
let
key
in
item
){
if
(
item
.
hasOwnProperty
(
key
)){
this
.
appAuditStatusList
.
push
({
label
:
key
,
value
:
item
[
key
]})
...
...
@@ -556,7 +578,9 @@
}
})
}
},
err
=>
{})
}).
catch
(()
=>
{
})
},
handleCurrentChange
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
...
...
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