Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
frontend
/
qqxb-self-service
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c6cadf95
authored
Jun 05, 2020
by
lishengfu
Browse files
Options
_('Browse Files')
Download
Plain Diff
udpte
parents
50c130d2
1c79b845
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
72 additions
and
27 deletions
src/services/employee/employeeService.ts
src/servicesImpl/employee/employeeImpl.ts
src/views/FlexEmployee.vue
src/views/Index.vue
src/views/Information.vue
src/views/PaySlips.vue
src/views/archives/socialInfo.vue
src/services/employee/employeeService.ts
View file @
c6cadf95
...
...
@@ -26,6 +26,8 @@ export interface EmployeeInterface {
deleteEduExperience
(
params
:
any
):
Promise
<
any
>
;
//删除教育信息
getTechnologyExperience
(
params
:
any
):
Promise
<
any
>
;
//获取技术特长
updateTechnologyExperience
(
params
:
any
):
Promise
<
any
>
;
//修改技术特长
getSalaryInfo
(
params
:
any
):
Promise
<
any
>
;
//通过身份证号和派遣公司ID拿到派遣员工的工资条信息
getAgileWorker
(
params
:
any
):
Promise
<
any
>
;
//灵活用工
}
src/servicesImpl/employee/employeeImpl.ts
View file @
c6cadf95
...
...
@@ -259,6 +259,17 @@ class EmployeeService implements EmployeeInterface {
return
request
.
get
(
url
,
params
,
this
.
header
)
}
/**
*
* 通过身份证号和派遣公司ID拿到派遣员工的工资条信息
* @param params
*/
public
getSalaryInfo
(
params
:
any
):
Promise
<
any
>
{
let
url
=
urls
.
employeeUrl
+
`/api/user/dispatch/companies/
${
params
.
idNo
}
/employee/
${
params
.
spId
}
/payroll`
;
return
request
.
get
(
url
,
params
,
this
.
header
)
}
public
getAgileWorker
(
params
:
any
):
Promise
<
any
>
{
let
url
=
urls
.
employeeUrl
+
`/api/user/employee/
${
params
.
idNo
}
/bill/item`
;
return
request
.
get
(
url
,
params
,
this
.
header
)
...
...
src/views/FlexEmployee.vue
View file @
c6cadf95
...
...
@@ -8,9 +8,7 @@
<h3>
{{
name
}}
</h3>
<p>
{{
birthday
}}
</p>
</div>
<div
class=
"person-information-right"
>
<img
src=
"../assets/images/agent/123.jpg"
alt
/>
</div>
</div>
<div
class=
"person-information-bottom"
>
<div
class=
"person-information-bottom-child"
id=
"person-information-yjrw"
>
...
...
@@ -111,8 +109,9 @@ export default class FlexEmployee extends Vue {
}
mounted
()
{
let
params
=
{
idNo
:
this
.
$route
.
query
.
id_no
idNo
:
this
.
$route
.
query
.
id_no
//371327198511175134
};
this
.
$server
.
EmployeeService
.
getAgileWorker
(
params
).
then
((
res
:
any
)
=>
{
console
.
log
(
res
);
...
...
src/views/Index.vue
View file @
c6cadf95
...
...
@@ -3,22 +3,19 @@
<div
class=
"info-card-box"
>
<div
class=
"info-card-top"
>
<div
class=
"info-card-top-left"
>
<h4>
{{
user_
name
}}
</h4>
<h4>
{{
name
}}
</h4>
<p>
{{
birthday
}}
</p>
</div>
<div
class=
"info-card-top-right"
>
<img
src=
"../assets/images/agent/123.jpg"
alt=
"头像"
title=
"头像"
/>
</div>
</div>
<div
class=
"info-card-bottom"
>
<p>
<label>
用工单位
</label>
<span>
{{
c
ompany_n
ame
}}
</span>
<span>
{{
c
eFullN
ame
}}
</span>
</p>
<p>
<label>
工作地点
</label>
<span>
{{
work
_a
ddress
}}
</span>
<span>
{{
work
A
ddress
}}
</span>
</p>
<p>
<label>
工作职位
</label>
...
...
@@ -26,7 +23,7 @@
</p>
<p>
<label>
入职时间
</label>
<span>
{{
e
ntry_d
ate
}}
</span>
<span>
{{
e
mployeeEntryD
ate
}}
</span>
</p>
</div>
</div>
...
...
@@ -35,7 +32,7 @@
<img
src=
"../assets/images/ic_unfold@2x.png"
/>
</div>
<router-link
class=
"entrance"
:to=
"`/archives?ed_id=$
{ed_id}`">
<router-link
class=
"entrance"
:to=
"`/archives?ed_id=$
{ed_id}
&
sp_id=${sp_id}
&
id_no=${id_no}
`">
<img
src=
"../assets/images/archives_icon.png"
alt=
"我的档案"
title=
"我的档案"
/>
<div>
<h4>
我的档案
</h4>
...
...
@@ -54,7 +51,7 @@
<img
class=
"arrow"
src=
"../assets/images/right_arrow.png"
alt=
"arrow"
title=
"arrow"
/>
</router-link>
<router-link
class=
"entrance"
:to=
"`/PaySlips?
ed_id=$
{ed_id}
`">
<router-link
class=
"entrance"
:to=
"`/PaySlips?
sp_id=$
{sp_id}
&
id_no=371327198511175134
`">
<img
src=
"../assets/images/slips_icon.png"
alt=
"我的工资条"
title=
"我的工资条"
/>
<div>
<h4>
我的工资条
</h4>
...
...
@@ -73,29 +70,35 @@ import { Component, Vue } from "vue-property-decorator";
components
:
{}
})
export
default
class
Index
extends
Vue
{
private
user_
name
:
string
=
""
;
private
name
:
string
=
""
;
private
birthday
:
string
=
""
;
private
c
ompany_n
ame
:
string
=
""
;
private
work
_a
ddress
:
string
=
""
;
private
c
eFullN
ame
:
string
=
""
;
private
work
A
ddress
:
string
=
""
;
private
position
:
string
=
""
;
private
e
ntry_d
ate
:
string
=
""
;
private
e
mployeeEntryD
ate
:
string
=
""
;
private
id_no
:
string
=
""
;
private
sp_id
:
string
=
""
;
private
ed_id
:
string
=
""
;
created
()
{
const
id_no
=
this
.
$route
.
query
.
id_no
as
string
;
this
.
id_no
=
window
.
atob
(
encodeURI
(
id_no
));
//
this.id_no = window.atob(encodeURI(id_no));
this
.
sp_id
=
this
.
$route
.
query
.
sp_id
as
string
;
let
params
=
{
spId
:
this
.
sp_id
,
idNo
:
this
.
id_no
spId
:
"85"
,
idNo
:
"51090219750505229X"
};
// 通过身份证号和派遣公司ID拿到派遣员工的信息(劳务派遣首页数据)
this
.
$server
.
EmployeeService
.
getDispatchInfo
(
params
)
.
then
(
res
=>
{
console
.
log
(
res
);
this
.
name
=
res
.
name
;
this
.
birthday
=
res
.
birthday
;
this
.
ceFullName
=
res
.
ceFullName
;
this
.
workAddress
=
res
.
workAddress
;
this
.
position
=
res
.
position
;
this
.
employeeEntryDate
=
res
.
employeeEntryDate
;
})
.
catch
(
error
=>
{
console
.
log
(
error
);
...
...
src/views/Information.vue
View file @
c6cadf95
...
...
@@ -13,7 +13,7 @@
</div>
</
template
>
<
script
>
<
script
lang=
'ts'
>
import
"../assets/css/labor.css"
;
export
default
{};
</
script
>
...
...
src/views/PaySlips.vue
View file @
c6cadf95
This diff is collapsed.
Click to expand it.
src/views/archives/socialInfo.vue
View file @
c6cadf95
...
...
@@ -243,7 +243,7 @@ export default class socialInfo extends Vue {
this
.
obj
.
unitRelationUnit
=
value
;
this
.
showRelationUnit
=
false
;
}
// 前期就业状态
// 前期就业状态
getSalaryInfo decodeURI
onConfirmEmploymentStatus
(
value
:
string
,
index
:
any
)
{
this
.
obj
.
unitPreEmploymentStatus
=
value
;
this
.
showEmploymentStatus
=
false
;
...
...
@@ -266,9 +266,18 @@ export default class socialInfo extends Vue {
//没有父节点的数据
// console.log(this.parents);
//有父节点的数据
// console.log(this.childrens);
// 城市3级级联 鄙人黔驴技穷,有请大佬继续 https://blog.csdn.net/MySunshine07/article/details/104960244?utm_medium=distribute.pc_relevant.none-task-blog-baidujs-1
console
.
log
(
this
.
childrens
);
this
.
parents
.
forEach
((
parent
:
any
)
=>
{
this
.
childrens
.
forEach
((
children
:
any
)
=>
{
if
(
parent
.
id
==
children
.
parentId
){
console
.
log
(
parent
.
name
+
parent
.
id
+
"++"
+
children
.
name
+
children
.
parentId
)
}
})
});
// https://blog.csdn.net/MySunshine07/article/details/104960244?utm_medium=distribute.pc_relevant.none-task-blog-baidujs-1
// let fliterEvent = (parents:any, childrens:any) => {
// parents.forEach(parent => {
// childrens.forEach((current:any, index:any) => {
...
...
@@ -308,6 +317,25 @@ export default class socialInfo extends Vue {
.
catch
(
error
=>
{});
}
private
getSalaryInfo
():
void
{
const
id_no
=
this
.
$route
.
query
.
id_no
as
string
;
const
sp_id
=
this
.
$route
.
query
.
sp_id
as
string
;
let
params
=
{
idNo
:
id_no
,
spId
:
sp_id
};
console
.
log
(
params
);
this
.
$server
.
EmployeeService
.
getSalaryInfo
(
params
)
.
then
(
res
=>
{
console
.
log
(
"res="
+
JSON
.
stringify
(
res
)
+
'工资条'
);
this
.
obj
=
res
;
})
.
catch
(
error
=>
{});
}
editInfo
():
void
{
this
.
show
=
true
;
}
...
...
@@ -365,6 +393,8 @@ export default class socialInfo extends Vue {
}
created
()
{
this
.
getSalaryInfo
();
this
.
getSocialInfo
();
this
.
getCityList
();
}
...
...
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