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
6557b918
Commit
6557b918
authored
Dec 04, 2020
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
fb889a1f
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
3149 additions
and
87 deletions
+3149
-87
administration.js
src/api/administration/administration.js
+80
-0
user.js
src/api/users/user.js
+17
-6
auditprocess.png
src/assets/images/administration/auditprocess.png
+0
-0
Approval.vue
src/pages/administration/Approval.vue
+92
-81
ApprovalProcess.vue
src/pages/administration/ApprovalProcess.vue
+999
-0
processDesign.vue
src/pages/administration/processDesign.vue
+968
-0
updateProcessDesign.vue
src/pages/administration/updateProcessDesign.vue
+978
-0
routes.js
src/router/routes.js
+15
-0
No files found.
src/api/administration/administration.js
View file @
6557b918
...
@@ -10,3 +10,83 @@ export function getTemplateList(data) {
...
@@ -10,3 +10,83 @@ export function getTemplateList(data) {
});
});
}
}
/**
* 获取审批启用和停用
*/
export
function
setTemplate
(
data
)
{
return
request
({
url
:
'/WorkFlowManagement/SetTemplate'
,
method
:
'post'
,
data
});
}
/**
*
*/
export
function
getDefaultCondition
(
data
)
{
return
request
({
url
:
'/WorkFlowManagement/GetDefaultCondition'
,
method
:
'post'
,
data
});
}
/**
*
*/
export
function
getOtherConditionList
(
data
)
{
return
request
({
url
:
'/WorkFlowManagement/GetOtherConditionList'
,
method
:
'post'
,
data
});
}
/**
*请假类型
*/
export
function
getAskForLeaveType
(
data
)
{
return
request
({
url
:
'/WorkFlowManagement/GetAskForLeaveType'
,
method
:
'post'
,
data
});
}
/**
*条件审批保存
*/
export
function
setOtherCondition
(
data
)
{
return
request
({
url
:
'/WorkFlowManagement/SetOtherCondition'
,
method
:
'post'
,
data
});
}
/**
*条件审批删除
*/
export
function
delOtherCondition
(
data
)
{
return
request
({
url
:
'/WorkFlowManagement/DelOtherCondition'
,
method
:
'post'
,
data
});
}
/**
*审核的保存
*/
export
function
setDefaultCondition
(
data
)
{
return
request
({
url
:
'/WorkFlowManagement/SetDefaultCondition'
,
method
:
'post'
,
data
});
}
src/api/users/user.js
View file @
6557b918
...
@@ -76,3 +76,14 @@ export function BatchResetUserPassword(data)
...
@@ -76,3 +76,14 @@ export function BatchResetUserPassword(data)
data
data
})
})
}
}
/**
* 获取部门Id
*/
export
function
getEmployeeAddrBook
(
data
)
{
return
request
({
url
:
'/User/GetEmployeeAddrBook'
,
method
:
'post'
,
data
})
}
src/assets/images/administration/auditprocess.png
0 → 100644
View file @
6557b918
1.01 KB
src/pages/administration/Approval.vue
View file @
6557b918
<
template
>
<
template
>
<div>
<div
class=
"appProval"
>
<div
class=
"query-box
appProval
"
>
<div
class=
"query-box "
>
<ul>
<ul>
<li><span><em>
所属
公司
</em>
<li><span><em>
所属
校区
</em>
<el-select
:disabled=
"IsParentCompany!=1"
v-model=
"QueryMsg.BranchId"
@
change=
"getList()"
>
<el-select
:disabled=
"IsParentCompany!=1"
v-model=
"QueryMsg.BranchId"
@
change=
"getList()"
>
<el-option
<el-option
v-for=
"item in companyList"
v-for=
"item in companyList"
...
@@ -12,47 +12,47 @@
...
@@ -12,47 +12,47 @@
</el-option>
</el-option>
</el-select>
</el-select>
</span></li>
</span></li>
<li>
<li></li>
<!--
<input
type=
"button"
class=
"hollowFixedBtn"
value=
"查询"
@
click=
"getList()"
/>
-->
</li>
</ul>
</ul>
</div>
</div>
<div
class=
"flexOne"
>
<div
class=
"flexOne"
>
<div
class=
"approval_title"
>
出勤休假(4)
</div>
<div
class=
"approval_title"
>
出勤休假(4)
</div>
<div
class=
"approval_list"
v-loading=
'loading'
>
<div
class=
"approval_list"
v-loading=
'loading'
>
<div
class=
"approval_item"
v-for=
"(item,index) in dataList"
>
<div
class=
"row"
>
<img
:src=
"item.Icon"
width=
"86"
style=
"float: left;margin: 17px 20px 0 0;"
/>
<div
class=
"approval_item col shadow-1"
v-for=
"(item,index) in dataList"
:style=
"
{'margin-right':dataList.length!=index+1?'40px':'0' }">
<div
class=
"approval_desDiv"
>
<img
:src=
"item.Icon"
width=
"86"
style=
""
/>
<p
class=
"tit"
>
{{
item
.
Name
}}
</p>
<span
class=
"tit"
>
{{
item
.
Name
}}
</span>
<p
class=
"updateP"
>
全部可见
</p>
<div
style=
"width: 36px;height: 2px;background: #E2E2E2;margin: 8px;"
></div>
<p
class=
"des"
v-html=
"item.describe"
></p>
<p
class=
"des"
v-html=
"item.describe"
></p>
<p
class=
"des"
v-html=
"item.describe2"
></p>
<p
class=
"tim"
>
{{
item
.
UpdateTime
}}
</p>
<p
class=
"tim"
>
{{
item
.
UpdateTime
}}
</p>
<div
class=
"row"
style=
"margin-top: 50px;justify-content: space-around;width: 100%"
v-if=
'item.Status==1'
>
<q-btn
color=
"primary"
label=
"审批流程"
style=
"padding: 0 20px"
@
click=
"workflow(item.Id)"
></q-btn>
<q-btn
outline
style=
"color: #2961FE;padding: 0 10px"
label=
"停用"
@
click=
"updateTempStatus(item.Id,item.TemplateType,item.Status)"
></q-btn>
</div>
</div>
<div
class=
"approval_fwDiv"
>
<div
class=
"row"
style=
"margin-top: 50px;justify-content: center;"
v-if=
'item.Status==2'
>
<p>
可见范围
</p>
<q-btn
outline
style=
"color: #2961FE;padding: 0 10px"
label=
"启用"
@
click=
"updateTempStatus(item.Id,item.TemplateType,item.Status)"
></q-btn>
<p
class=
"updateP"
>
全部可见
</p>
</div>
</div>
<div
class=
"approval_doDiv"
>
<p>
<button
v-if=
'item.Status==1'
class=
"normalBtn"
@
click=
"goUrl('ApprovalProcess',item.Id)"
>
审批流程
</button>
<button
v-if=
'item.Status==1'
@
click=
"updateTempStatus(item.Id,item.TemplateType,item.Status)"
class=
"hollowFixedBtn"
>
{{
$t
(
'fnc.tingyong'
)
}}
</button>
<button
v-if=
'item.Status==2'
@
click=
"updateTempStatus(item.Id,item.TemplateType,item.Status)"
class=
"hollowFixedBtn"
>
{{
$t
(
'fnc.qiyong'
)
}}
</button>
</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
import
{
getTemplateList
getTemplateList
,
setTemplate
}
from
'../../api/administration/administration'
;
}
from
'../../api/administration/administration'
;
import
{
import
{
getSchoolDropdown
//校区下拉
getSchoolDropdown
//校区下拉
}
from
'../../api/school/index'
}
from
'../../api/school/index'
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
loading
:
true
,
loading
:
true
,
...
@@ -63,30 +63,33 @@
...
@@ -63,30 +63,33 @@
//返回数据
//返回数据
dataList
:
[],
dataList
:
[],
companyList
:
[],
companyList
:
[],
IsParentCompany
:
2
IsParentCompany
:
2
,
drawer
:
false
,
SpId
:
0
}
}
},
},
methods
:
{
methods
:
{
workflow
(
Id
){
this
.
$router
.
push
({
path
:
'/administration/ApprovalProcess?Id='
+
Id
+
'&Bid='
+
this
.
QueryMsg
.
BranchId
});
},
getList
()
{
getList
()
{
let
describe
=
[
'适用于请假申请,<br/>精确扣减出勤时间,并同步考勤报表'
,
'适用于出差申请,<br/>精确汇总至考勤报表'
,
'适用于外出申请,<br/>精确汇总至考勤报表'
,
'当员工考勤出现缺卡时,可发起补卡审批,<br/>审批通过后考勤报表中的缺卡记录改为正常'
]
let
describe
=
[
'适用于请假申请'
,
'适用于出差申请'
,
'适用于外出申请'
,
'当员工考勤出现缺卡时,可发起补卡审批'
]
// this.apipost('WorkFlow_get_GetTemplateList', {BranchId:this.QueryMsg.BranchId}, res => {
let
describe2
=
[
'精确扣减出勤时间,并同步考勤报表'
,
'精确汇总至考勤报表'
,
'精确汇总至考勤报表'
,
'审批通过后考勤报表中的缺卡记录改为正常'
]
// if(res.data.resultCode == 1) {
// this.loading=false;
// this.dataList = res.data.data[0].List;
// this.dataList.forEach((item, index) => {
// item.describe = describe[index]
// })
//
// }
// }, err => {})
getTemplateList
({
BranchId
:
this
.
QueryMsg
.
BranchId
}).
then
(
res
=>
{
getTemplateList
({
BranchId
:
this
.
QueryMsg
.
BranchId
}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
if
(
res
.
Code
==
1
)
{
this
.
loading
=
false
;
this
.
dataList
=
res
.
Data
[
0
].
List
;
this
.
dataList
=
res
.
Data
[
0
].
List
;
this
.
dataList
.
forEach
((
item
,
index
)
=>
{
this
.
dataList
.
forEach
((
item
,
index
)
=>
{
item
.
describe
=
describe
[
index
]
item
.
describe
=
describe
[
index
]
item
.
describe2
=
describe2
[
index
]
})
})
}
}
}).
catch
(()
=>
{
}).
catch
(()
=>
{
})
})
},
},
getCompanyList
()
{
getCompanyList
()
{
...
@@ -114,19 +117,21 @@
...
@@ -114,19 +117,21 @@
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
type
:
'warning'
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
apipost
(
'WorkFlow_post_SetTemplate'
,
{
setTemplate
(
{
Id
:
id
,
Id
:
id
,
TemplateType
:
type
,
TemplateType
:
type
,
Status
:
2
,
Status
:
2
,
BranchId
:
this
.
QueryMsg
.
BranchId
BranchId
:
this
.
QueryMsg
.
BranchId
}
,
res
=>
{
}
).
then
(
res
=>
{
if
(
res
.
data
.
result
Code
==
1
)
{
if
(
res
.
Code
==
1
)
{
this
.
$message
.
success
(
"已经停用"
)
this
.
$message
.
success
(
"已经停用"
)
this
.
getList
()
this
.
getList
()
}
else
{
}
else
{
this
.
$message
.
error
(
"操作失败"
)
this
.
$message
.
error
(
"操作失败"
)
}
}
},
err
=>
{})
}).
catch
(()
=>
{
})
}).
catch
(()
=>
{
}).
catch
(()
=>
{
this
.
$message
.
info
(
'已取消停用'
)
this
.
$message
.
info
(
'已取消停用'
)
});
});
...
@@ -137,19 +142,21 @@
...
@@ -137,19 +142,21 @@
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
type
:
'warning'
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
apipost
(
'WorkFlow_post_SetTemplate'
,
{
setTemplate
(
{
Id
:
id
,
Id
:
id
,
TemplateType
:
type
,
TemplateType
:
type
,
Status
:
1
,
Status
:
1
,
BranchId
:
this
.
QueryMsg
.
BranchId
BranchId
:
this
.
QueryMsg
.
BranchId
}
,
res
=>
{
}
).
then
(
res
=>
{
if
(
res
.
data
.
result
Code
==
1
)
{
if
(
res
.
Code
==
1
)
{
this
.
$message
.
success
(
"启用成功"
)
this
.
$message
.
success
(
"启用成功"
)
this
.
getList
()
this
.
getList
()
}
else
{
}
else
{
this
.
$message
.
error
(
"操作失败"
)
this
.
$message
.
error
(
"操作失败"
)
}
}
},
err
=>
{})
}).
catch
(()
=>
{
})
}).
catch
(()
=>
{
}).
catch
(()
=>
{
this
.
$message
.
info
(
'已取消启用'
)
this
.
$message
.
info
(
'已取消启用'
)
...
@@ -183,7 +190,11 @@
...
@@ -183,7 +190,11 @@
border-left
:
3px
solid
#E95252
;
border-left
:
3px
solid
#E95252
;
margin
:
30px
0
;
margin
:
30px
0
;
}
}
.appProval
{
background
:
white
;
height
:
90%
;
padding
:
0
20px
;
}
.appProval
.el-input__inner
{
.appProval
.el-input__inner
{
height
:
34px
!important
;
height
:
34px
!important
;
}
}
...
@@ -197,58 +208,58 @@
...
@@ -197,58 +208,58 @@
}
}
.approval_item
{
.approval_item
{
height
:
160px
;
background
:
white
;
padding
:
20px
;
/*border: 1px solid rgba(2, 44, 66, 0.15);*/
background
:
#fff
;
border-radius
:
4px
;
overflow
:
auto
;
padding
:
40px
;
border-radius
:
8px
;
display
:
flex
;
margin-bottom
:
10px
;
flex-direction
:
column
;
align-items
:
center
;
}
}
.approval_item
p
.tit
{
.approval_item
.tit
{
font-size
:
18px
;
font-size
:
32px
;
color
:
#333
;
color
:
#111111
;
font-weight
:
bold
;
margin-top
:
30px
;
}
}
.approval_item
p
.des
{
.approval_item
.des
{
font-size
:
14px
;
font-size
:
14px
;
color
:
#
666
;
color
:
#
999999
;
line-height
:
22px
;
line-height
:
22px
;
}
}
.approval_item
p
.tim
{
.approval_item
.tim
{
font-size
:
1
4
px
;
font-size
:
1
2
px
;
color
:
#
999
;
color
:
#
A6A6A6
;
line-height
:
22px
;
line-height
:
22px
;
}
}
.approval_fwDiv
{
float
:
left
;
width
:
520px
;
height
:
120px
;
padding
:
50px
0
;
border-right
:
1px
dotted
#DCDFE6
;
}
.approval_fwDiv
>
p
{
text-align
:
center
;
font-size
:
16px
;
color
:
#333
;
}
.approval_
fwDiv
>
p
.updateP
{
.approval_
item
.updateP
{
font-size
:
14px
;
font-size
:
14px
;
color
:
#
666
;
color
:
#
999999
;
line-height
:
24px
;
line-height
:
24px
;
}
}
.approval_doDiv
{
.appProval
.drawerTop
{
float
:
left
;
width
:
100%
;
width
:
500px
;
height
:
50px
;
display
:
flex
;
flex-direction
:
row
;
justify-content
:
space-between
;
background-color
:
#F0F5FB
;
padding
:
5px
10px
;
align-items
:
center
;
}
}
.el-drawer__body
{
.approval_doDiv
>
p
{
overflow
:
auto
;
text-align
:
center
;
}
line-height
:
120px
;
/*2.隐藏滚动条,太丑了*/
.el-drawer__container
::-webkit-scrollbar
{
display
:
none
;
}
}
</
style
>
</
style
>
src/pages/administration/ApprovalProcess.vue
0 → 100644
View file @
6557b918
This diff is collapsed.
Click to expand it.
src/pages/administration/processDesign.vue
0 → 100644
View file @
6557b918
This diff is collapsed.
Click to expand it.
src/pages/administration/updateProcessDesign.vue
0 → 100644
View file @
6557b918
This diff is collapsed.
Click to expand it.
src/router/routes.js
View file @
6557b918
...
@@ -316,6 +316,21 @@ const routes = [{
...
@@ -316,6 +316,21 @@ const routes = [{
component
:
()
=>
component
:
()
=>
import
(
"pages/administration/Approval.vue"
)
import
(
"pages/administration/Approval.vue"
)
},
},
{
path
:
"/administration/ApprovalProcess"
,
//审批流程详情
component
:
()
=>
import
(
"pages/administration/ApprovalProcess.vue"
)
},
{
path
:
"/administration/processDesign"
,
//分条件审批
component
:
()
=>
import
(
"pages/administration/processDesign.vue"
)
},
{
path
:
"/administration/updateProcessDesign"
,
//分条件审批
component
:
()
=>
import
(
"pages/administration/updateProcessDesign.vue"
)
},
{
{
path
:
"/test"
,
//API测试
path
:
"/test"
,
//API测试
component
:
()
=>
component
:
()
=>
...
...
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