Commit 1675047a by lishengfu

update

parent 9214ea1b
...@@ -46,7 +46,7 @@ export default class workInfo extends Vue { ...@@ -46,7 +46,7 @@ export default class workInfo extends Vue {
edId: 1 edId: 1
}; };
this.$server.EmployeeService.getWorkInfoDetail(params).then(res => { this.$server.EmployeeService.getWorkInfoDetail(params).then(res => {
console.log(res); // console.log(res);
}); });
} }
} }
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
*/ */
export interface EmployeeInterface { export interface EmployeeInterface {
getUserInfo(params: any): Promise<any>; getUserInfo(params: any): Promise<any>;
getDispatchList(params: any): Promise<any>; //根据身份证获取用户所属派遣公司列表
getDispatchInfo(params: any): Promise<any>; //通过身份证号和派遣公司ID拿到派遣员工的信息(劳务派遣首页数据)
getWorkInfoList(params: any): Promise<any>; //获取工作信息列表 getWorkInfoList(params: any): Promise<any>; //获取工作信息列表
getWorkInfoDetail(params: any): Promise<any>; //获取工作信息详情 getWorkInfoDetail(params: any): Promise<any>; //获取工作信息详情
getPersonInfo(params: any): Promise<any>; //获取个人信息 getPersonInfo(params: any): Promise<any>; //获取个人信息
......
...@@ -48,6 +48,24 @@ class EmployeeService implements EmployeeInterface { ...@@ -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 请求参数 * @param params 请求参数
*/ */
......
...@@ -75,21 +75,30 @@ import { Component, Vue } from "vue-property-decorator"; ...@@ -75,21 +75,30 @@ import { Component, Vue } from "vue-property-decorator";
export default class FlexEmployee extends Vue { export default class FlexEmployee extends Vue {
private name: string = "迪丽热巴"; private name: string = "迪丽热巴";
private birthday: string = "1987-10-16"; private birthday: string = "1987-10-16";
private accept_work: string = "999"; private accept_work: string = "";
private perform_work: string = ""; private perform_work: string = "";
private Payment_receivable: string = ""; private Payment_receivable: string = "";
private receive_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 { private toDetail(id: any): void {
this.$router.push({ name: "FlexEmployeeDetial", query: { id: id } }); this.$router.push({ name: "FlexEmployeeDetial", query: { aaa:'000' } });
} }
created() { created() {
let params = { let params = {
idNo: this.$route.query.id_no idNo: this.$route.query.id_no
}; };
this.$server.EmployeeService.getAgileWorker(params).then((res:any) => { this.$server.EmployeeService.getAgileWorker(params).then((res: any) => {
this.accept_work=res.alCount; // console.log('res='+JSON.stringify(res))
res.alCount == null ? this.accept_work == "0" : this.accept_work = res.alCount;
}); });
} }
} }
......
...@@ -28,7 +28,7 @@ import {Component,Vue} from 'vue-property-decorator' ...@@ -28,7 +28,7 @@ import {Component,Vue} from 'vue-property-decorator'
export default class FlexEmployee extends Vue { export default class FlexEmployee extends Vue {
private money:number=9999.99; private money:number=9999.99;
private status:string='待发放'; private status:string='待发放';
private company:string='天津有米科技有限公司'; private company:string='';
private task_count:string='市场推广-地推'; private task_count:string='市场推广-地推';
private date:string='2020-5-29'; private date:string='2020-5-29';
private account:string='622254889999888900' private account:string='622254889999888900'
...@@ -36,6 +36,9 @@ export default class FlexEmployee extends Vue { ...@@ -36,6 +36,9 @@ export default class FlexEmployee extends Vue {
private toDetail(id:any):void{ private toDetail(id:any):void{
this.$router.push({name:'FlexEmployeeDetial',query:{id:id}}) this.$router.push({name:'FlexEmployeeDetial',query:{id:id}})
} }
create(){
//this.company=this.$route.query.aaa:string
}
}; };
</script> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment