Commit 77e00540 authored by Mac's avatar Mac

1

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