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
1ff7f03a
Commit
1ff7f03a
authored
Feb 04, 2024
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交批量转交协助人员
parent
6632c955
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
101 additions
and
1 deletion
+101
-1
wechat.js
src/api/system/wechat.js
+13
-0
sysuser.vue
src/pages/school/sysuser.vue
+88
-1
No files found.
src/api/system/wechat.js
View file @
1ff7f03a
...
...
@@ -578,6 +578,19 @@ export function SetSynvEduEmployee(data) {
})
}
/**
* 协助老师转交
*
*/
export
function
SetUserLeaveTearchCareOf
(
data
)
{
return
request
({
url
:
'/user/SetUserLeaveTearchCareOf'
,
method
:
'post'
,
data
})
}
/**
* 获取客户添加方式枚举
*/
...
...
src/pages/school/sysuser.vue
View file @
1ff7f03a
...
...
@@ -192,6 +192,11 @@
<q-item-label>
订单交接
</q-item-label>
</q-item-section>
</q-item>
<q-item
clickable
v-close-popup
@
click=
"teacherHandover(props.row)"
v-if=
'DeptEmpEnable==1'
>
<q-item-section>
<q-item-label>
协助老师交接
</q-item-label>
</q-item-section>
</q-item>
</q-list>
</q-btn-dropdown>
</div>
...
...
@@ -274,6 +279,33 @@
</q-card>
</q-dialog>
<!-- 协助老师交接 -->
<q-dialog
v-model=
"teacherIsDetails"
>
<q-card
style=
"width: 450px;"
>
<q-card-section
class=
"row items-center q-pb-none"
>
<div
class=
"text-h6"
>
协助人员交接
</div>
<q-space
/>
<q-btn
icon=
"close"
flat
round
dense
v-close-popup
/>
</q-card-section>
<q-separator
/>
<q-card-section>
<div>
<q-select
style=
"width: 100%;"
filled
stack-label
option-value=
"Id"
option-label=
"EmployeeName"
use-input
v-model=
"teacherHandoverMsg.ReceiveId"
@
filter=
"filterFn"
ref=
"Id"
:options=
"Employeelist"
label=
"交接人员"
:dense=
"false"
emit-value
map-options
/>
</div>
</q-card-section>
<q-separator
/>
<q-card-actions
align=
"right"
class=
"bg-white"
>
<q-btn
class=
"q-mr-md"
label=
"取消"
@
click=
"teacherIsDetails=false"
/>
<q-btn
color=
"accent"
class=
"q-mr-md"
label=
"确定"
@
click=
"saveTeacherHandoverInfo()"
:loading=
"teacherloading"
/>
</q-card-actions>
</q-card>
</q-dialog>
</div>
</div>
</template>
...
...
@@ -290,7 +322,8 @@
SetSynvEduEmployee
,
setUserCoustomerTransfer
,
getWeChatConfigInfo
,
SetUserLeaveOrderCareOf
SetUserLeaveOrderCareOf
,
SetUserLeaveTearchCareOf
}
from
'../../api/system/wechat'
;
import
{
BatchResetUserPassword
...
...
@@ -494,6 +527,12 @@
ChannelTransfer
:
"1"
,
//是否渠道码人员转移
},
//离职人员订单交接数据
orderloading
:
false
,
teacherHandoverMsg
:
{
UserId
:
""
,
//原跟进成员的userid
ReceiveId
:
""
,
//接替成员的userid
},
//离职人员订单交接数据
teacherloading
:
false
,
teacherIsDetails
:
false
,
//离职人员协助老师交接
}
},
mounted
()
{
...
...
@@ -511,6 +550,12 @@
this
.
orderHandoverMsg
.
UserId
=
row
.
EmAccountId
this
.
orderIsDetails
=
true
},
// 协助老师交接
teacherHandover
(
row
)
{
this
.
teacherHandoverMsg
.
UserId
=
row
.
EmAccountId
this
.
teacherIsDetails
=
true
},
saveOrderHandoverInfo
()
{
//保存
if
(
this
.
orderHandoverMsg
.
ReceiveId
==
''
)
{
this
.
$q
.
notify
({
...
...
@@ -566,6 +611,48 @@
this
.
orderloading
=
false
})
},
saveTeacherHandoverInfo
()
{
//保存
if
(
this
.
teacherHandoverMsg
.
ReceiveId
==
''
)
{
this
.
$q
.
notify
({
type
:
'negative'
,
message
:
`请选择接替人员`
,
position
:
'top'
})
return
}
if
(
this
.
teacherHandoverMsg
.
ReceiveId
==
this
.
teacherHandoverMsg
.
UserId
)
{
this
.
$q
.
notify
({
type
:
'negative'
,
message
:
`接替人员不能是本人`
,
position
:
'top'
})
return
}
this
.
teacherloading
=
true
let
msg
=
{
UserId
:
this
.
teacherHandoverMsg
.
UserId
,
ReceiveId
:
this
.
teacherHandoverMsg
.
ReceiveId
}
console
.
log
(
"开始保存咔咔咔咔咔咔"
);
SetUserLeaveTearchCareOf
(
msg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
this
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
color
:
'accent'
,
timeout
:
2000
,
message
:
res
.
Message
,
position
:
'top'
})
this
.
teacherIsDetails
=
false
this
.
teacherloading
=
false
this
.
getManager
()
})
.
catch
(
err
=>
{
this
.
teacherloading
=
false
})
},
resetSearch
()
{
this
.
msg
.
pageIndex
=
1
;
this
.
getManager
()
...
...
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