Commit 8edb236e authored by zhengke's avatar zhengke

no message

parent fd165559
...@@ -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
})
}
/** /**
* 获取客户添加方式枚举 * 获取客户添加方式枚举
*/ */
......
...@@ -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.ReceiveUserId" @filter="filterFn" ref="Id" :options="Employeelist" label="交接人员" v-model="orderHandoverMsg.ReceiveId" @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="joinMsg.CustomerTransfer" val="1" label="是" /> <q-radio v-model="orderHandoverMsg.CustomerTransfer" val="1" label="是" />
<q-radio v-model="joinMsg.CustomerTransfer" val="2" label="否" /> <q-radio v-model="orderHandoverMsg.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="joinMsg.ChannelTransfer" val="1" label="是" /> <q-radio v-model="orderHandoverMsg.ChannelTransfer" val="1" label="是" />
<q-radio v-model="joinMsg.ChannelTransfer" val="2" label="否" /> <q-radio v-model="orderHandoverMsg.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="jtloading" /> <q-btn color="accent" class="q-mr-md" label="确定" @click="saveOrderHandoverInfo()" :loading="orderloading" />
</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.TransferUserId = row.EmAccountId this.orderHandoverMsg.UserId = row.EmAccountId
this.orderIsDetails = true this.orderIsDetails = true
}, },
saveOrderHandoverInfo() { //保存 saveOrderHandoverInfo() { //保存
if (this.joinMsg.ReceiveUserId == '') { if (this.orderHandoverMsg.ReceiveId == '') {
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.TransferUserId) { 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.joinMsg.ChannelTransfer == 2) { if (this.orderHandoverMsg.CustomerTransfer == 2 && this.orderHandoverMsg.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.isDetails = false this.orderIsDetails = false
this.jtloading = false this.orderloading = false
this.getManager() this.getManager()
}) })
.catch(err => { .catch(err => {
this.jtloading = false this.orderloading = false
}) })
}, },
resetSearch() { resetSearch() {
......
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