Commit 3e8ed6ae by 展昭
parents 0a51095e 0be9d63e
......@@ -28,6 +28,9 @@ export interface EmployeeInterface {
updateTechnologyExperience(params: any): Promise<any>; //修改技术特长
getSalaryInfo(params: any): Promise<any>; //通过身份证号和派遣公司ID拿到派遣员工的工资条信息
getFiles(params:any):Promise<any>;// 获取文件
setFiles(params:any):Promise<any>;// 设置文件
delFiles(params:any):Promise<any>;// 删除文件
putFiles(params:any):Promise<any>;// 提交文件
getAgileWorker(params: any): Promise<any>; //灵活用工
......
......@@ -280,6 +280,42 @@ class EmployeeService implements EmployeeInterface {
return request.get(url, params, this.header)
}
/**
*
* 设置文件
* @param params
*/
public setFiles(params: any): Promise<any> {
let url = urls.employeeUrl + `/api/user/employee/${params.edId}/file`;
return request.put(url, params.req, this.header)
}
/**
*
* 删除文件
* @param params
*/
public delFiles(params: any): Promise<any> {
let url = urls.employeeUrl + `/api/user/files/${params.fileId}`;
return request.delete(url, params, this.header)
}
/**
*
* 提交文件
* @param params
*/
public putFiles(params: any): Promise<any> {
let url = urls.employeeUrl + `/api/user/employee/${params.edId}/commit/file`;
return request.put(url, params, this.header)
}
/**
*
* 灵活用工
* @param params
*/
public getAgileWorker(params: any): Promise<any> {
let url = urls.employeeUrl + `/api/user/employee/${params.idNo}/bill/item`;
return request.get(url, params, this.header)
......
......@@ -81,14 +81,16 @@ export default class Index extends Vue {
private ed_id: string = "";
created() {
const id_no = this.$route.query.id_no as string;
// const id_no = this.$route.query.id_no as string;
// this.id_no = window.atob(encodeURI(id_no));
this.sp_id = this.$route.query.sp_id as string;
// this.sp_id = this.$route.query.sp_id as string;
let params = {
spId: "85",
idNo: "51090219750505229X"
};
console.log(params);
// 通过身份证号和派遣公司ID拿到派遣员工的信息(劳务派遣首页数据)
this.$server.EmployeeService.getDispatchInfo(params)
.then(res => {
......
......@@ -61,15 +61,16 @@ export default class SelectIdentity extends Vue {
}
private toIndex_click(): void {
this.ChooseCompany();
// if (this.dispatch_list && this.dispatch_list.length > 1) {
// this.ChooseCompany();
// }
console.log(this.dispatch_list);
// if (this.dispatch_list && this.dispatch_list.length == 1) {
// const sp_id: string = this.dispatch_list[0].id as string;
// this.toIndex(sp_id);
// }
if (this.dispatch_list && this.dispatch_list.length > 1) {
this.ChooseCompany();
}
if (this.dispatch_list && this.dispatch_list.length == 1) {
const sp_id: string = this.dispatch_list[0].id as string;
this.toIndex(sp_id);
}
}
private async getUserInfo() {
......
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