Commit fd165559 authored by zhengke's avatar zhengke

no message

parent 7d947a57
......@@ -34,6 +34,18 @@ export function setClassOrder(data) {
})
}
/**
* 新增 多个约课订单
*
*/
export function SetClassOrderBatch(data) {
return request({
url: '/order/SetClassOrderBatch',
method: 'post',
data
})
}
/**
* 销售 我的订单
*
......
......@@ -65,7 +65,7 @@
:max="coursePageCount" :input="true" @input="changePage" />
</template>
<template v-if="mode == 2">
<yueke @select="selectCourse" :select="defaultCourse"></yueke>
<yueke @select="selectCourse" :select="selectedCourseList"></yueke>
</template>
<template v-if="mode == 3">
<vipcourse ref="vipCourse" @success="$emit('close')" :stuData="stuData"></vipcourse>
......@@ -73,7 +73,7 @@
</q-step>
<q-step :name="3" title="确认" icon="settings" :done="step > 3">
<orderForm ref="orderForm" :mode="mode" :schoolList="schoolList" :save-obj="saveObj" :stuData="stuData"
:modityOrderType="1" :defaultCourse="defaultCourse" @success="$emit('close')" @cancelloading="cancelloading"></orderForm>
:modityOrderType="1" :selectedCourseList="selectedCourseList" @success="$emit('close')" @cancelloading="cancelloading"></orderForm>
</q-step>
</q-stepper>
</q-card-section>
......@@ -188,7 +188,8 @@
myClassList: [],
allClassList: [],
loading1: false, //防止多次点击
mode: 1
mode: 1,
selectedCourseList:[],//多选课程
};
},
mounted() {
......@@ -284,6 +285,7 @@
},
// 选择班级
selectClass(val) {
this.selectedCourseList = []
if (val.length > 0) {
this.saveObj = val[0];
this.saveObj.Unit_Price = this.saveObj.SellPrice;
......@@ -296,14 +298,15 @@
},
// 选择课程
selectCourse(val) {
this.selectedCourseList = []
if (val.length > 0) {
this.saveObj = val[0];
this.saveObj.Unit_Price = this.saveObj.SellPrice;
this.defaultCourse = val;
this.selectedCourseList = val;
} else {
this.saveObj = {};
this.saveObj.Unit_Price = 0;
this.defaultCourse = [];
this.selectedCourseList = [];
}
},
next() {
......
......@@ -182,6 +182,11 @@
<q-item-label>客户交接</q-item-label>
</q-item-section>
</q-item>
<q-item clickable v-close-popup @click="orderHandover(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>
......@@ -194,10 +199,11 @@
</employee-set>
<employee-info v-if="isShowEmpInfo" :save-obj="managerOption" @close="closeStuForm" @success="refreshPage">
</employee-info>
<!-- 企业微信客户交接 -->
<q-dialog v-model="isDetails">
<q-card style="width: 450px;">
<q-card-section class="row items-center q-pb-none">
<div class="text-h6">客户交接</div>
<div class="text-h6">企业微信客户交接</div>
<q-space />
<q-btn icon="close" flat round dense v-close-popup />
</q-card-section>
......@@ -210,7 +216,7 @@
</div>
<div style="font-size: 12px;color:red;margin-top: 10px;">注:必须选择一项转移目标</div>
<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="joinMsg.CustomerTransfer" val="2" label="否" />
</div>
......@@ -228,6 +234,41 @@
</q-card>
</q-dialog>
<!-- 订单交接 -->
<q-dialog v-model="orderIsDetails">
<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="joinMsg.ReceiveUserId" @filter="filterFn" ref="Id" :options="Employeelist" label="交接人员"
:dense="false" emit-value map-options />
</div>
<div style="font-size: 12px;color:red;margin-top: 10px;">注:必须选择一项转移目标</div>
<div style="display: flex;align-items: center;margin-top: 0px;">
<div style="width: 110px;">订单转移</div>
<q-radio v-model="joinMsg.CustomerTransfer" val="1" label="是" />
<q-radio v-model="joinMsg.CustomerTransfer" val="2" label="否" />
</div>
<div style="display: flex;align-items: center;margin-top: 10px;">
<div style="width: 110px;">渠道码人员转移</div>
<q-radio v-model="joinMsg.ChannelTransfer" val="1" label="是" />
<q-radio v-model="joinMsg.ChannelTransfer" val="2" label="否" />
</div>
</q-card-section>
<q-separator />
<q-card-actions align="right" class="bg-white">
<q-btn class="q-mr-md" label="取消" @click="isDetails=false" />
<q-btn color="accent" class="q-mr-md" label="确定" @click="saveOrderHandoverInfo()" :loading="jtloading" />
</q-card-actions>
</q-card>
</q-dialog>
</div>
</div>
</template>
......@@ -428,6 +469,18 @@
Employeelist: [],
AllEmployeelist: [],
DeptEmpEnable: 0, //是否显示企业微信信息 1 显示
orderIsDetails:false,//离职人员订单交接
orderHandoverMsg:{
TransferUserId:"",//原跟进成员的userid
ReceiveUserId:"",//接替成员的userid
ClientList:[
{
handover_userid:"",
external_userid:"",
dimission_time:""
}
]
},//离职人员订单交接数据
}
},
mounted() {
......@@ -440,6 +493,55 @@
this.getmicrodeploy() //获取企业微信的配置
},
methods: {
// 订单交接
orderHandover(row){
this.orderHandoverMsg.TransferUserId = row.EmAccountId
this.orderIsDetails = true
},
saveOrderHandoverInfo() { //保存
if (this.joinMsg.ReceiveUserId == '') {
this.$q.notify({
type: 'negative',
message: `请选择接替人员`,
position: 'top'
})
return
}
if (this.joinMsg.ReceiveUserId == this.joinMsg.TransferUserId) {
this.$q.notify({
type: 'negative',
message: `接替人员不能是本人`,
position: 'top'
})
return
}
if (this.joinMsg.CustomerTransfer == 2 && this.joinMsg.ChannelTransfer == 2) {
this.$q.notify({
type: 'negative',
message: `转移目标必须选择一项`,
position: 'top'
})
return
}
this.jtloading = true
setUserCoustomerTransfer(this.joinMsg).then(res => {
if (res.Code == 1)
this.$q.notify({
icon: 'iconfont icon-chenggong',
color: 'accent',
timeout: 2000,
message: res.Message,
position: 'top'
})
this.isDetails = false
this.jtloading = false
this.getManager()
})
.catch(err => {
this.jtloading = false
})
},
resetSearch() {
this.msg.pageIndex = 1;
this.getManager()
......
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