Commit 77e00540 authored by Mac's avatar Mac

1

parent 9dfe2df9
......@@ -532,4 +532,15 @@ export function propertyGetPageList(data) {
method: 'post',
data
})
}
\ No newline at end of file
}
/**
* 验证用户是否有 需补交提成订单
*/
export function getUserLeaveOrderCommission(data) {
return request({
url: '/SellCommission/GetUserLeaveOrderCommission',
method: 'post',
data
});
}
......@@ -100,7 +100,8 @@
saveManager,
queryEmployeeInfo,
getEducation,
GetLeaveStatus
GetLeaveStatus,
getUserLeaveOrderCommission
} from '../../../api/school/index'
//部门
import {
......@@ -185,6 +186,7 @@
},
],
EmployeeList: [], //员工列表
errdata:'',//提示语言
}
},
created() {
......@@ -224,6 +226,7 @@
this.PostList = [];
this.queryDeptTree();
},
//部门改变
deptChange() {
this.objOption.Post_Id = 0;
......@@ -274,8 +277,18 @@
}
})
},
GetUserLeave(UserId){
getUserLeaveOrderCommission({UserId:UserId}).then(res => {
if(res.Code == 1){
this.errdata= ''
}else if (res.Code == 0) {//返回来是0 的时候保存提示语言
this.errdata = res.Message;
}
})
},
initObj() {
if (this.saveObj) {
this.GetUserLeave(this.saveObj.EmAccountId)
this.optionTitle = "修改员工信息"
this.isEditShow = false; //是否显示修改隐藏项
queryEmployeeInfo({
......@@ -397,6 +410,16 @@
})
return;
}
if(this.objOption.LeaveStatus==4 && this.errdata!=''){//选择离职的时候看接口返回是否可以离职
this.$q.notify({
type: 'negative',
position: "top",
message: this.errdata,
})
return
}
this.saveLoading = true;
saveManager(this.objOption).then(res => {
this.saveLoading = false
......
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 to comment