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
8edb236e
Commit
8edb236e
authored
May 13, 2022
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
fd165559
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
26 deletions
+47
-26
wechat.js
src/api/system/wechat.js
+12
-0
sysuser.vue
src/pages/school/sysuser.vue
+35
-26
No files found.
src/api/system/wechat.js
View file @
8edb236e
...
@@ -566,6 +566,18 @@ export function SetSynvEduEmployee(data) {
...
@@ -566,6 +566,18 @@ export function SetSynvEduEmployee(data) {
})
})
}
}
/**
* 离职人员交接订单
*
*/
export
function
SetUserLeaveOrderCareOf
(
data
)
{
return
request
({
url
:
'/user/SetUserLeaveOrderCareOf'
,
method
:
'post'
,
data
})
}
/**
/**
* 获取客户添加方式枚举
* 获取客户添加方式枚举
*/
*/
...
...
src/pages/school/sysuser.vue
View file @
8edb236e
...
@@ -246,25 +246,25 @@
...
@@ -246,25 +246,25 @@
<q-card-section>
<q-card-section>
<div>
<div>
<q-select
style=
"width: 100%;"
filled
stack-label
option-value=
"Id"
option-label=
"EmployeeName"
use-input
<q-select
style=
"width: 100%;"
filled
stack-label
option-value=
"Id"
option-label=
"EmployeeName"
use-input
v-model=
"
joinMsg.ReceiveUser
Id"
@
filter=
"filterFn"
ref=
"Id"
:options=
"Employeelist"
label=
"交接人员"
v-model=
"
orderHandoverMsg.Receive
Id"
@
filter=
"filterFn"
ref=
"Id"
:options=
"Employeelist"
label=
"交接人员"
:dense=
"false"
emit-value
map-options
/>
:dense=
"false"
emit-value
map-options
/>
</div>
</div>
<div
style=
"font-size: 12px;color:red;margin-top: 10px;"
>
注:必须选择一项转移目标
</div>
<div
style=
"font-size: 12px;color:red;margin-top: 10px;"
>
注:必须选择一项转移目标
</div>
<div
style=
"display: flex;align-items: center;margin-top: 0px;"
>
<div
style=
"display: flex;align-items: center;margin-top: 0px;"
>
<div
style=
"width: 110px;"
>
订单转移
</div>
<div
style=
"width: 110px;"
>
订单转移
</div>
<q-radio
v-model=
"
join
Msg.CustomerTransfer"
val=
"1"
label=
"是"
/>
<q-radio
v-model=
"
orderHandover
Msg.CustomerTransfer"
val=
"1"
label=
"是"
/>
<q-radio
v-model=
"
join
Msg.CustomerTransfer"
val=
"2"
label=
"否"
/>
<q-radio
v-model=
"
orderHandover
Msg.CustomerTransfer"
val=
"2"
label=
"否"
/>
</div>
</div>
<div
style=
"display: flex;align-items: center;margin-top: 10px;"
>
<div
style=
"display: flex;align-items: center;margin-top: 10px;"
>
<div
style=
"width: 110px;"
>
渠道码人员转移
</div>
<div
style=
"width: 110px;"
>
渠道码人员转移
</div>
<q-radio
v-model=
"
join
Msg.ChannelTransfer"
val=
"1"
label=
"是"
/>
<q-radio
v-model=
"
orderHandover
Msg.ChannelTransfer"
val=
"1"
label=
"是"
/>
<q-radio
v-model=
"
join
Msg.ChannelTransfer"
val=
"2"
label=
"否"
/>
<q-radio
v-model=
"
orderHandover
Msg.ChannelTransfer"
val=
"2"
label=
"否"
/>
</div>
</div>
</q-card-section>
</q-card-section>
<q-separator
/>
<q-separator
/>
<q-card-actions
align=
"right"
class=
"bg-white"
>
<q-card-actions
align=
"right"
class=
"bg-white"
>
<q-btn
class=
"q-mr-md"
label=
"取消"
@
click=
"isDetails=false"
/>
<q-btn
class=
"q-mr-md"
label=
"取消"
@
click=
"isDetails=false"
/>
<q-btn
color=
"accent"
class=
"q-mr-md"
label=
"确定"
@
click=
"saveOrderHandoverInfo()"
:loading=
"
jt
loading"
/>
<q-btn
color=
"accent"
class=
"q-mr-md"
label=
"确定"
@
click=
"saveOrderHandoverInfo()"
:loading=
"
order
loading"
/>
</q-card-actions>
</q-card-actions>
</q-card>
</q-card>
...
@@ -284,7 +284,8 @@
...
@@ -284,7 +284,8 @@
import
{
import
{
SetSynvEduEmployee
,
SetSynvEduEmployee
,
setUserCoustomerTransfer
,
setUserCoustomerTransfer
,
getWeChatConfigInfo
getWeChatConfigInfo
,
SetUserLeaveOrderCareOf
}
from
'../../api/system/wechat'
;
}
from
'../../api/system/wechat'
;
import
{
import
{
BatchResetUserPassword
BatchResetUserPassword
...
@@ -471,16 +472,13 @@
...
@@ -471,16 +472,13 @@
DeptEmpEnable
:
0
,
//是否显示企业微信信息 1 显示
DeptEmpEnable
:
0
,
//是否显示企业微信信息 1 显示
orderIsDetails
:
false
,
//离职人员订单交接
orderIsDetails
:
false
,
//离职人员订单交接
orderHandoverMsg
:{
orderHandoverMsg
:{
TransferUserId
:
""
,
//原跟进成员的userid
UserId
:
""
,
//原跟进成员的userid
ReceiveUserId
:
""
,
//接替成员的userid
ReceiveId
:
""
,
//接替成员的userid
ClientList
:[
TypeIds
:
0
,
//类型 1 订单转交 2学员转交
{
CustomerTransfer
:
"1"
,
//是否订单转移
handover_userid
:
""
,
ChannelTransfer
:
"1"
,
//是否渠道码人员转移
external_userid
:
""
,
dimission_time
:
""
}
]
},
//离职人员订单交接数据
},
//离职人员订单交接数据
orderloading
:
false
,
}
}
},
},
mounted
()
{
mounted
()
{
...
@@ -495,11 +493,11 @@
...
@@ -495,11 +493,11 @@
methods
:
{
methods
:
{
// 订单交接
// 订单交接
orderHandover
(
row
){
orderHandover
(
row
){
this
.
orderHandoverMsg
.
Transfer
UserId
=
row
.
EmAccountId
this
.
orderHandoverMsg
.
UserId
=
row
.
EmAccountId
this
.
orderIsDetails
=
true
this
.
orderIsDetails
=
true
},
},
saveOrderHandoverInfo
()
{
//保存
saveOrderHandoverInfo
()
{
//保存
if
(
this
.
joinMsg
.
ReceiveUser
Id
==
''
)
{
if
(
this
.
orderHandoverMsg
.
Receive
Id
==
''
)
{
this
.
$q
.
notify
({
this
.
$q
.
notify
({
type
:
'negative'
,
type
:
'negative'
,
message
:
`请选择接替人员`
,
message
:
`请选择接替人员`
,
...
@@ -507,7 +505,7 @@
...
@@ -507,7 +505,7 @@
})
})
return
return
}
}
if
(
this
.
joinMsg
.
ReceiveUserId
==
this
.
joinMsg
.
Transfer
UserId
)
{
if
(
this
.
orderHandoverMsg
.
ReceiveId
==
this
.
orderHandoverMsg
.
UserId
)
{
this
.
$q
.
notify
({
this
.
$q
.
notify
({
type
:
'negative'
,
type
:
'negative'
,
message
:
`接替人员不能是本人`
,
message
:
`接替人员不能是本人`
,
...
@@ -515,7 +513,7 @@
...
@@ -515,7 +513,7 @@
})
})
return
return
}
}
if
(
this
.
joinMsg
.
CustomerTransfer
==
2
&&
this
.
join
Msg
.
ChannelTransfer
==
2
)
{
if
(
this
.
orderHandoverMsg
.
CustomerTransfer
==
2
&&
this
.
orderHandover
Msg
.
ChannelTransfer
==
2
)
{
this
.
$q
.
notify
({
this
.
$q
.
notify
({
type
:
'negative'
,
type
:
'negative'
,
message
:
`转移目标必须选择一项`
,
message
:
`转移目标必须选择一项`
,
...
@@ -523,8 +521,20 @@
...
@@ -523,8 +521,20 @@
})
})
return
return
}
}
this
.
jtloading
=
true
if
(
this
.
orderHandoverMsg
.
CustomerTransfer
==
1
&&
this
.
orderHandoverMsg
.
ChannelTransfer
!=
1
){
setUserCoustomerTransfer
(
this
.
joinMsg
).
then
(
res
=>
{
this
.
orderHandoverMsg
.
TypeIds
=
"1"
}
else
if
(
this
.
orderHandoverMsg
.
CustomerTransfer
!=
1
&&
this
.
orderHandoverMsg
.
ChannelTransfer
==
1
){
this
.
orderHandoverMsg
.
TypeIds
=
"2"
}
else
if
(
this
.
orderHandoverMsg
.
CustomerTransfer
==
1
&&
this
.
orderHandoverMsg
.
ChannelTransfer
==
1
){
this
.
orderHandoverMsg
.
TypeIds
=
"1,2"
}
this
.
orderloading
=
true
let
msg
=
{
UserId
:
this
.
orderHandoverMsg
.
UserId
,
ReceiveId
:
this
.
orderHandoverMsg
.
ReceiveId
,
TypeIds
:
this
.
orderHandoverMsg
.
TypeIds
}
SetUserLeaveOrderCareOf
(
msg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
if
(
res
.
Code
==
1
)
this
.
$q
.
notify
({
this
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
icon
:
'iconfont icon-chenggong'
,
...
@@ -533,13 +543,12 @@
...
@@ -533,13 +543,12 @@
message
:
res
.
Message
,
message
:
res
.
Message
,
position
:
'top'
position
:
'top'
})
})
this
.
i
sDetails
=
false
this
.
orderI
sDetails
=
false
this
.
jt
loading
=
false
this
.
order
loading
=
false
this
.
getManager
()
this
.
getManager
()
})
})
.
catch
(
err
=>
{
.
catch
(
err
=>
{
this
.
jtloading
=
false
this
.
orderloading
=
false
})
})
},
},
resetSearch
()
{
resetSearch
()
{
...
...
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