Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
confucius
Commits
77e00540
Commit
77e00540
authored
Jun 22, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
9dfe2df9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
2 deletions
+36
-2
index.js
src/api/school/index.js
+12
-1
manager-form.vue
src/components/school/manager/manager-form.vue
+24
-1
No files found.
src/api/school/index.js
View file @
77e00540
...
...
@@ -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
});
}
src/components/school/manager/manager-form.vue
View file @
77e00540
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment