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
1675047a
authored
Jun 01, 2020
by
lishengfu
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
update
parent
9214ea1b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
39 additions
and
7 deletions
src/components/archives/workInfo.vue
src/services/employee/employeeService.ts
src/servicesImpl/employee/employeeImpl.ts
src/views/FlexEmployee.vue
src/views/FlexEmployeeDetial.vue
src/components/archives/workInfo.vue
View file @
1675047a
...
...
@@ -46,7 +46,7 @@ export default class workInfo extends Vue {
edId
:
1
};
this
.
$server
.
EmployeeService
.
getWorkInfoDetail
(
params
).
then
(
res
=>
{
console
.
log
(
res
);
//
console.log(res);
});
}
}
...
...
src/services/employee/employeeService.ts
View file @
1675047a
...
...
@@ -3,6 +3,8 @@
*/
export
interface
EmployeeInterface
{
getUserInfo
(
params
:
any
):
Promise
<
any
>
;
getDispatchList
(
params
:
any
):
Promise
<
any
>
;
//根据身份证获取用户所属派遣公司列表
getDispatchInfo
(
params
:
any
):
Promise
<
any
>
;
//通过身份证号和派遣公司ID拿到派遣员工的信息(劳务派遣首页数据)
getWorkInfoList
(
params
:
any
):
Promise
<
any
>
;
//获取工作信息列表
getWorkInfoDetail
(
params
:
any
):
Promise
<
any
>
;
//获取工作信息详情
getPersonInfo
(
params
:
any
):
Promise
<
any
>
;
//获取个人信息
...
...
src/servicesImpl/employee/employeeImpl.ts
View file @
1675047a
...
...
@@ -48,6 +48,24 @@ class EmployeeService implements EmployeeInterface {
}
/**
* 获取派遣公司的列表
* @param params
*/
public
getDispatchList
(
params
:
any
):
Promise
<
any
>
{
let
url
=
urls
.
employeeUrl
+
`/api/user/employee/
${
params
.
idNo
}
/dispatch/companies`
;
return
request
.
get
(
url
,
params
,
this
.
header
)
}
/**
* 获取劳务派遣首页数据
* @param params
*/
public
getDispatchInfo
(
params
:
any
):
Promise
<
any
>
{
let
url
=
urls
.
employeeUrl
+
`/api/user/dispatch/companies/
${
params
.
spId
}
/employee/
${
params
.
idNo
}
/info`
;
return
request
.
get
(
url
,
params
,
this
.
header
)
}
/**
* 获取工作信息列表
* @param params 请求参数
*/
...
...
src/views/FlexEmployee.vue
View file @
1675047a
...
...
@@ -75,21 +75,30 @@ import { Component, Vue } from "vue-property-decorator";
export
default
class
FlexEmployee
extends
Vue
{
private
name
:
string
=
"迪丽热巴"
;
private
birthday
:
string
=
"1987-10-16"
;
private
accept_work
:
string
=
"
999
"
;
private
accept_work
:
string
=
""
;
private
perform_work
:
string
=
""
;
private
Payment_receivable
:
string
=
""
;
private
receive_receivable
:
string
=
""
;
private
taskRecordList
:
any
=
[];
private
taskRecordList
:
any
=
[
{
id
:
1
,
title
:
"市场推广-地推"
,
date
:
"2020-02-02"
,
price
:
"9999.99"
,
state
:
"已接单"
}
];
private
toDetail
(
id
:
any
):
void
{
this
.
$router
.
push
({
name
:
"FlexEmployeeDetial"
,
query
:
{
id
:
id
}
});
this
.
$router
.
push
({
name
:
"FlexEmployeeDetial"
,
query
:
{
aaa
:
'000'
}
});
}
created
()
{
let
params
=
{
idNo
:
this
.
$route
.
query
.
id_no
};
this
.
$server
.
EmployeeService
.
getAgileWorker
(
params
).
then
((
res
:
any
)
=>
{
this
.
accept_work
=
res
.
alCount
;
this
.
$server
.
EmployeeService
.
getAgileWorker
(
params
).
then
((
res
:
any
)
=>
{
// console.log('res='+JSON.stringify(res))
res
.
alCount
==
null
?
this
.
accept_work
==
"0"
:
this
.
accept_work
=
res
.
alCount
;
});
}
}
...
...
src/views/FlexEmployeeDetial.vue
View file @
1675047a
...
...
@@ -28,7 +28,7 @@ import {Component,Vue} from 'vue-property-decorator'
export
default
class
FlexEmployee
extends
Vue
{
private
money
:
number
=
9999.99
;
private
status
:
string
=
'待发放'
;
private
company
:
string
=
'
天津有米科技有限公司
'
;
private
company
:
string
=
''
;
private
task_count
:
string
=
'市场推广-地推'
;
private
date
:
string
=
'2020-5-29'
;
private
account
:
string
=
'622254889999888900'
...
...
@@ -36,6 +36,9 @@ export default class FlexEmployee extends Vue {
private
toDetail
(
id
:
any
):
void
{
this
.
$router
.
push
({
name
:
'FlexEmployeeDetial'
,
query
:{
id
:
id
}})
}
create
(){
//this.company=this.$route.query.aaa:string
}
};
</
script
>
...
...
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