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
33e91b19
Commit
33e91b19
authored
Dec 22, 2020
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
d301286e
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
270 additions
and
20 deletions
+270
-20
administration.js
src/api/administration/administration.js
+60
-0
Attendance.vue
src/pages/administration/Attendance.vue
+134
-0
leaveApproval.vue
src/pages/administration/leaveApproval.vue
+33
-0
myApproval.vue
src/pages/administration/myApproval.vue
+12
-6
myApprovalList.vue
src/pages/administration/myApprovalList.vue
+24
-13
empBankAccount.vue
src/pages/financial/empBankAccount.vue
+2
-1
routes.js
src/router/routes.js
+5
-0
No files found.
src/api/administration/administration.js
View file @
33e91b19
...
@@ -97,6 +97,66 @@ export function getConditionAndAuditInfo(data) {
...
@@ -97,6 +97,66 @@ export function getConditionAndAuditInfo(data) {
data
data
});
});
}
}
/**
*获取我发起的列表
*/
export
function
myInitiateAudit
(
data
)
{
return
request
({
url
:
'/workflow/MyInitiateAudit'
,
method
:
'post'
,
data
});
}
/**
*获取审核类型
*/
export
function
gettemplatetype
(
data
)
{
return
request
({
url
:
'/workflow/GetWfTmplateType'
,
method
:
'post'
,
data
});
}
/**
*获取审核状态
*/
export
function
getMyInitiateAuditStatus
(
data
)
{
return
request
({
url
:
'/workflow/GetMyInitiateAuditStatus'
,
method
:
'post'
,
data
});
}
/**
*获取发起审批类型
*/
export
function
auditworkflowTemplate
(
data
)
{
return
request
({
url
:
'/workflow/AuditworkflowTemplate'
,
method
:
'post'
,
data
});
}
/**
*
*/
export
function
getDictValueList
(
data
)
{
return
request
({
url
:
'/usercenter/GetDictValueList'
,
method
:
'post'
,
data
});
}
/**
*
*/
export
function
calculateDuration
(
data
)
{
return
request
({
url
:
'/workflow/CalculateDuration'
,
method
:
'post'
,
data
});
}
...
...
src/pages/administration/Attendance.vue
0 → 100644
View file @
33e91b19
<
template
>
<div
class=
"flexOne"
>
<div
class=
"query-box"
>
<ul>
<li>
<span><em>
{{
$t
(
'system.table_company'
)
}}
</em>
<el-select
filterable
v-model=
'msg.RB_BranchId'
:placeholder=
"$t('pub.unlimitedSel')"
>
<el-option
:label=
"$t('pub.unlimitedSel')"
value=
'-1'
></el-option>
<el-option
v-for=
'item in companyList'
:label=
'item.BName'
:value=
'item.Id'
:key=
'item.Id'
>
</el-option>
</el-select>
</span>
</li>
<!--
<li>
<span><em>
状态
</em>
<el-select
v-model=
"msg.Status"
placeholder=
"请选项"
>
<el-option
:label=
"$t('pub.unlimitedSel')"
value=
'-1'
></el-option>
<el-option
label=
'开启'
value=
'0'
></el-option>
<el-option
label=
'关闭'
value=
'1'
></el-option>
</el-select>
</span>
</li>
-->
<li>
<input
type=
"button"
class=
"hollowFixedBtn"
:value=
"$t('pub.searchBtn')"
@
click=
"resetPageIndex(),getList()"
/>
<!--
<input
type=
"button"
@
click=
""
class=
"normalBtn"
:value=
"$t('pub.addBtn')"
@
click=
"$router.push('AttendanceRules')"
/>
-->
</li>
</ul>
</div>
<table
class=
"singeRowTable"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
v-loading=
'loading'
>
<tr>
<th
width=
"400"
>
{{
$t
(
'admin.admin_company'
)
}}
</th>
<th>
{{
$t
(
'admin.admin_personNumber'
)
}}
</th>
<th>
{{
$t
(
'adm.adm_Bindingattendance'
)
}}
</th>
<th>
{{
$t
(
'admin.admin_kqTime'
)
}}
</th>
<th
>
{{
$t
(
'admin.admin_czPerson'
)
}}
</th>
<th
width=
"150"
>
{{
$t
(
'admin.admin_operate'
)
}}
</th>
</tr>
<tr
v-for=
"(item,index) in dataList"
>
<td>
{{
item
.
BranchName
}}
</td>
<td>
{{
item
.
PeopleNum
}}
</td>
<td>
{{
item
.
IsBind
==
'1'
?
$t
(
'adm.adm_binded'
):
$t
(
'admin.adm_binding'
)
}}
</td>
<td>
{{
item
.
AttendanceDate
}}
</td>
<td>
{{
item
.
UpdateName
}}
</td>
<td>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"$t('pub.updateMsg')"
placement=
"right"
>
<el-button
type=
"primary"
icon=
"el-icon-edit"
@
click=
"goUrl('AttendanceRules',item.Id,item.RB_BranchId)"
circle
></el-button>
</el-tooltip>
</td>
</tr>
</table>
<el-pagination
background
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"currentPage"
layout=
"total,prev, pager, next, jumper"
:page-size=
msg.pageSize
:total=
total
>
</el-pagination>
</div>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
loading
:
true
,
//分页
total
:
0
,
pageSize
:
''
,
currentPage
:
1
,
//请求数据
msg
:{
pageIndex
:
1
,
pageSize
:
15
,
RB_BranchId
:
'-1'
,
Status
:
'-1'
,
IsBind
:
'0'
},
companyMsg
:{
RB_Group_Id
:
"0"
,
Status
:
0
,
},
//返回数据
dataList
:[],
companyList
:[]
}
},
methods
:{
getList
(){
this
.
loading
=
true
;
this
.
apipost
(
'User_get_AttendanceGetPageList'
,
this
.
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
){
this
.
loading
=
false
;
this
.
dataList
=
res
.
data
.
data
.
pageData
;
this
.
total
=
res
.
data
.
data
.
count
;
}
else
{}
},
err
=>
{})
},
getCompany
(){
//公司
this
.
apipost
(
'admin_get_BranchGetList'
,
this
.
companyMsg
,
res
=>
{
this
.
companyList
=
res
.
data
.
data
;
},
err
=>
{})
},
handleCurrentChange
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
this
.
getList
();
},
resetPageIndex
()
{
this
.
msg
.
pageIndex
=
1
;
this
.
currentPage
=
1
},
goUrl
(
path
,
id
,
bId
)
{
this
.
$router
.
push
({
name
:
path
,
query
:{
"id"
:
id
,
"bId"
:
bId
}
})
}
},
mounted
()
{
this
.
getList
();
this
.
getCompany
();
let
userInfo
=
this
.
getLocalStorage
();
this
.
companyMsg
.
RB_Group_Id
=
userInfo
.
RB_Group_id
;
//集团
},
}
</
script
>
<
style
>
.singeRowTable
th
{
text-align
:
left
;
padding-left
:
10px
;}
.singeRowTable
td
{
text-align
:
left
;
padding-left
:
10px
}
</
style
>
src/pages/administration/leaveApproval.vue
View file @
33e91b19
...
@@ -61,6 +61,10 @@
...
@@ -61,6 +61,10 @@
import
{
import
{
UploadSelfFile
UploadSelfFile
}
from
'../../api/common/common'
}
from
'../../api/common/common'
import
{
getDictValueList
,
calculateDuration
}
from
'../../api/administration/administration'
;
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
...
@@ -111,6 +115,20 @@
...
@@ -111,6 +115,20 @@
}
}
},
err
=>
{})
},
err
=>
{})
// getDictValueList({Key: 'SK_AskForLeaveSet_LunchBreak'}).then(res => {
// if(res.Code == 1) {
//
// }
// }).catch(() => {
// this.getList()
// if(res.data.data[0].Content!=''&&res.data.data[0].Content!=null)
// {
// this.lunchTime = res.data.data[0].Content
// }else{
// this.lunchTime='12:00-13:00'
// }
// })
},
},
getKey
()
{
getKey
()
{
this
.
apipost
(
'dict_post_GetList'
,
{
this
.
apipost
(
'dict_post_GetList'
,
{
...
@@ -308,6 +326,21 @@
...
@@ -308,6 +326,21 @@
})
})
}
}
if
(
starTime
!=
''
&&
endTime
!=
''
)
{
if
(
starTime
!=
''
&&
endTime
!=
''
)
{
// calculateDuration({
// startTime: starTime,
// endTime: endTime,
// templateId: this.type,
// LunchTime: this.lunchTime
// }).then(res => {
// if(res.Code == 1) {
//
// }
// }).catch(() => {
//
// })
this
.
apipost
(
'app_user_workflow_calculate_duration'
,
{
this
.
apipost
(
'app_user_workflow_calculate_duration'
,
{
startTime
:
starTime
,
startTime
:
starTime
,
endTime
:
endTime
,
endTime
:
endTime
,
...
...
src/pages/administration/myApproval.vue
View file @
33e91b19
...
@@ -30,6 +30,9 @@
...
@@ -30,6 +30,9 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
auditworkflowTemplate
,
}
from
'../../api/administration/administration'
;
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
...
@@ -47,13 +50,16 @@
...
@@ -47,13 +50,16 @@
},
},
methods
:
{
methods
:
{
getList
(){
getList
(){
this
.
apipost
(
'app_user_workflow_auditworkflow_template'
,
this
.
msg
,
res
=>
{
auditworkflowTemplate
(
this
.
msg
).
then
(
res
=>
{
if
(
res
.
data
.
result
Code
==
1
)
{
if
(
res
.
Code
==
1
)
{
this
.
typeList
=
res
.
data
.
d
ata
[
0
].
templateList
this
.
typeList
=
res
.
D
ata
[
0
].
templateList
this
.
myTitle
=
res
.
data
.
d
ata
[
0
].
groupName
this
.
myTitle
=
res
.
D
ata
[
0
].
groupName
this
.
typeLength
=
res
.
data
.
d
ata
[
0
].
templateList
.
length
this
.
typeLength
=
res
.
D
ata
[
0
].
templateList
.
length
}
}
},
err
=>
{})
}).
catch
(()
=>
{
})
},
},
goUrl
(
path
,
cmd
,
submitCmd
,
id
)
{
goUrl
(
path
,
cmd
,
submitCmd
,
id
)
{
this
.
$router
.
push
({
path
:
path
,
query
:{
"cmd"
:
cmd
,
"submitCmd"
:
submitCmd
,
'templateId'
:
id
}})
this
.
$router
.
push
({
path
:
path
,
query
:{
"cmd"
:
cmd
,
"submitCmd"
:
submitCmd
,
'templateId'
:
id
}})
...
...
src/pages/administration/myApprovalList.vue
View file @
33e91b19
...
@@ -251,6 +251,11 @@
...
@@ -251,6 +251,11 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
myInitiateAudit
,
gettemplatetype
,
getMyInitiateAuditStatus
}
from
'../../api/administration/administration'
;
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
...
@@ -511,18 +516,20 @@
...
@@ -511,18 +516,20 @@
},
},
getList
(){
getList
(){
this
.
loading
=
true
;
this
.
loading
=
true
;
this
.
apipost
(
'app_user_workflow_my_initiateaudit'
,
this
.
msg
,
res
=>
{
myInitiateAudit
({}).
then
(
res
=>
{
if
(
res
.
data
.
result
Code
==
1
)
{
if
(
res
.
Code
==
1
)
{
this
.
list
=
res
.
data
.
d
ata
.
pageData
;
this
.
list
=
res
.
D
ata
.
pageData
;
this
.
total
=
res
.
data
.
data
.
c
ount
;
this
.
total
=
res
.
Data
.
C
ount
;
this
.
loading
=
false
this
.
loading
=
false
}
}
},
err
=>
{})
}).
catch
(()
=>
{
})
},
},
getApplyType
(){
//模板类型
getApplyType
(){
//模板类型
this
.
apipost
(
'app_user_workflow_get_templatetype'
,{},
res
=>
{
gettemplatetype
({}).
then
(
res
=>
{
if
(
res
.
data
.
result
Code
==
1
)
{
if
(
res
.
Code
==
1
)
{
res
.
data
.
d
ata
.
forEach
(
item
=>
{
res
.
D
ata
.
forEach
(
item
=>
{
for
(
let
key
in
item
){
for
(
let
key
in
item
){
if
(
item
.
hasOwnProperty
(
key
)){
if
(
item
.
hasOwnProperty
(
key
)){
this
.
ApplyTypeList
.
push
({
label
:
key
,
value
:
item
[
key
]})
this
.
ApplyTypeList
.
push
({
label
:
key
,
value
:
item
[
key
]})
...
@@ -530,12 +537,14 @@
...
@@ -530,12 +537,14 @@
}
}
})
})
}
}
},
err
=>
{})
}).
catch
(()
=>
{
})
},
},
getAppAuditStatus
(){
getAppAuditStatus
(){
this
.
apipost
(
'app_user_workflow_get_myinitiate_auditstatus'
,{},
res
=>
{
getMyInitiateAuditStatus
({}).
then
(
res
=>
{
if
(
res
.
data
.
result
Code
==
1
)
{
if
(
res
.
Code
==
1
)
{
res
.
data
.
d
ata
.
forEach
(
item
=>
{
res
.
D
ata
.
forEach
(
item
=>
{
for
(
let
key
in
item
){
for
(
let
key
in
item
){
if
(
item
.
hasOwnProperty
(
key
)){
if
(
item
.
hasOwnProperty
(
key
)){
this
.
appAuditStatusList
.
push
({
label
:
key
,
value
:
item
[
key
]})
this
.
appAuditStatusList
.
push
({
label
:
key
,
value
:
item
[
key
]})
...
@@ -543,7 +552,9 @@
...
@@ -543,7 +552,9 @@
}
}
})
})
}
}
},
err
=>
{})
}).
catch
(()
=>
{
})
},
},
handleCurrentChange
(
val
)
{
handleCurrentChange
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
this
.
msg
.
pageIndex
=
val
;
...
...
src/pages/financial/empBankAccount.vue
View file @
33e91b19
...
@@ -244,7 +244,8 @@
...
@@ -244,7 +244,8 @@
addData
(){
//添加角色
addData
(){
//添加角色
let
userInfo
=
this
.
getLocalStorage
();
let
userInfo
=
this
.
getLocalStorage
();
this
.
addMsg
.
ObjID
=
this
.
$route
.
query
.
id
?
this
.
$route
.
query
.
id
.
Id
:
userInfo
.
Id
this
.
addMsg
.
ObjID
=
this
.
$route
.
query
.
id
?
this
.
$route
.
query
.
id
:
userInfo
.
Id
;
console
.
log
(
this
.
addMsg
.
ObjID
)
if
(
this
.
addMsg
.
AccountClassify
!=
'3'
&&
this
.
addMsg
.
AccountClassify
!=
'4'
){
if
(
this
.
addMsg
.
AccountClassify
!=
'3'
&&
this
.
addMsg
.
AccountClassify
!=
'4'
){
if
(
this
.
addMsg
.
OpenBankName
==
''
){
if
(
this
.
addMsg
.
OpenBankName
==
''
){
this
.
$message
.
error
(
this
.
$t
(
'visaT.Pleasefillin'
)
+
this
.
nameA
)
this
.
$message
.
error
(
this
.
$t
(
'visaT.Pleasefillin'
)
+
this
.
nameA
)
...
...
src/router/routes.js
View file @
33e91b19
...
@@ -390,6 +390,11 @@ const routes = [{
...
@@ -390,6 +390,11 @@ const routes = [{
component
:
()
=>
component
:
()
=>
import
(
"pages/administration/leaveApproval.vue"
)
import
(
"pages/administration/leaveApproval.vue"
)
},
},
{
path
:
"/administration/Attendance"
,
//考勤管理
component
:
()
=>
import
(
"pages/administration/Attendance.vue"
)
},
{
{
path
:
"/sale/japaneseTrain"
,
//日语培训列表
path
:
"/sale/japaneseTrain"
,
//日语培训列表
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