Commit 3caceda0 by lishengfu

UDAPTE

parent bf3f4d47
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
*/ */
export interface EmployeeInterface { export interface EmployeeInterface {
getUserInfo(params: any): Promise<any>; getUserInfo(params: any): Promise<any>;
updateBaseInfo(params: any): Promise<any>;
getCityList(params: any): Promise<any>; // 获取城市列表 getCityList(params: any): Promise<any>; // 获取城市列表
getDispatchList(params: any): Promise<any>; //根据身份证获取用户所属派遣公司列表 getDispatchList(params: any): Promise<any>; //根据身份证获取用户所属派遣公司列表
getDispatchInfo(params: any): Promise<any>; //通过身份证号和派遣公司ID拿到派遣员工的信息(劳务派遣首页数据) getDispatchInfo(params: any): Promise<any>; //通过身份证号和派遣公司ID拿到派遣员工的信息(劳务派遣首页数据)
......
...@@ -349,6 +349,16 @@ class EmployeeService implements EmployeeInterface { ...@@ -349,6 +349,16 @@ class EmployeeService implements EmployeeInterface {
let url = urls.employeeUrl + `/api/user/employee/${params.idNo}/bill/item`; let url = urls.employeeUrl + `/api/user/employee/${params.idNo}/bill/item`;
return request.get(url, {}, this.header); return request.get(url, {}, this.header);
} }
/**
*
* 提交基本信息
* @param params
*/
public updateBaseInfo(params: any): Promise<any> {
let url = urls.employeeUrl + `/api/user/employee/${params.edId}/base/info`;
return request.post(url, params, this.header);
}
} }
export default new EmployeeService(); export default new EmployeeService();
...@@ -312,7 +312,6 @@ export default class personInfo extends Vue { ...@@ -312,7 +312,6 @@ export default class personInfo extends Vue {
}; };
this.$server.EmployeeService.getPersonInfo(params).then(res => { this.$server.EmployeeService.getPersonInfo(params).then(res => {
this.obj = res; this.obj = res;
console.log(res);
}); });
} }
editInfo(): void { editInfo(): void {
...@@ -373,8 +372,6 @@ export default class personInfo extends Vue { ...@@ -373,8 +372,6 @@ export default class personInfo extends Vue {
}; };
this.$server.EmployeeService.savePersonInfo(params) this.$server.EmployeeService.savePersonInfo(params)
.then(res => { .then(res => {
console.log(res);
Toast.success("保存成功"); Toast.success("保存成功");
this.show = false; this.show = false;
}) })
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<div class="box"> <div class="box">
<div class="item"> <div class="item">
<span>派遣公司</span> <span>派遣公司</span>
<label>{{query.sp_full_name}}</label> <label>{{query.spFullName}}</label>
</div> </div>
<div class="item"> <div class="item">
<span>用工单位</span> <span>用工单位</span>
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
</div> </div>
<div class="item"> <div class="item">
<span>工作地点</span> <span>工作地点</span>
<label>{{query.work_address}}</label> <label>{{query.workAddress}}</label>
</div> </div>
<div class="item"> <div class="item">
<span>工作职位</span> <span>工作职位</span>
......
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