Commit f91fd789 authored by 华国豪's avatar 华国豪 🙄

1

parent 66b004a9
......@@ -68,7 +68,7 @@
<img src="../../assets/img/cust/kehu2.png" alt="">
<p>{{detailsData.SurName + detailsData.Name}}</p>
</div>
<div class="right">
<div class="right" v-if="!hiddenMenu">
<el-button class="crm-btn query-btn" @click="editCust" >编辑</el-button>
<el-dropdown @command="handleCommand" style="top: 1px;" >
<el-button class="crm-btn crm-btn-more easy-btn margin-right0">
......@@ -150,6 +150,10 @@ export default {
CustomerId: {
type: Number,
default: 0
},
hiddenMenu: {
type: Boolean,
default: false
}
},
data() {
......
......@@ -254,14 +254,14 @@
:total="total">
</el-pagination>
</div>
<!-- <el-drawer
<el-drawer
:with-header="false"
size='70%'
:visible.sync="drawer"
direction="rtl"
:before-close="handleClose">
<customerInfoBox :CustomerId="CustomerId" @transferS="transfer" @editCustS="editCust"/>
</el-drawer> -->
<customerInfoBox :CustomerId="CustomerId" :hiddenMenu="true"/>
</el-drawer>
<!-- <div v-if="dialogTableVisible">
<customerDialogBox @getList="getList" :name="dialogTableVisibleName" :CustomerId="CustomerId"/>
</div> -->
......@@ -270,23 +270,23 @@
<p><span></span>发送生日祝福涵</p>
<span icon="el-icon-close"></span>
</div>
<el-form :model="transferMsg" ref="form" class="MyEditForm" >
<el-form :model="addSendMsg" ref="form" class="MyEditForm" >
<div class="MyEditForm-item">
<el-form-item label="计划标题" class="label-pad-left">
<el-input v-model="addSendMsg.title" placeholder="请输入计划标题,如果不填系统将自动生成"></el-input>
<el-input v-model="addSendMsg.Tittle" placeholder="请输入计划标题,如果不填系统将自动生成"></el-input>
</el-form-item>
</div>
<div class="MyEditForm-item">
<el-form-item label="发送方式" class="label-pad-left">
<el-select v-model="addSendMsg.sendType" placeholder="请选择">
<el-option label='同业助手' value='0'></el-option>
<el-select v-model="addSendMsg.SendType" placeholder="请选择">
<el-option label='同业助手' value='2'></el-option>
<el-option label='短信' value='1'></el-option>
</el-select>
</el-form-item>
</div>
<div class="MyEditForm-item">
<el-form-item label="接收人员" class="label-pad-left">
<el-input readonly="true" v-model="addSendMsg.sendObj"></el-input>
<el-input :readonly="true" v-model="addSendMsg.sendObj"></el-input>
<div style="font-size:12px;color:red;margin-left: 10px; margin-top: 2px;">消息将发送给关联的同行,由同行转发给客人,暂不支持直接转发</div>
</el-form-item>
</div>
......@@ -294,7 +294,7 @@
<el-form-item label="发送时间" class="label-pad-left">
<el-date-picker
type="datetime"
v-model="addSendMsg.sendTime"
v-model="addSendMsg.SendTime"
placeholder="选择日期时间">
</el-date-picker>
</el-form-item>
......@@ -310,12 +310,12 @@
</template>
<script>
import mySelect from "../dialogModel/select";
// import customerInfoBox from "./customerInfoBox";
import customerInfoBox from "../guestManagement/customerInfoBox";
// import customerDialogBox from "./customerDialogBox";
export default {
components: {
mySelect
// customerInfoBox,
mySelect,
customerInfoBox,
// customerDialogBox
},
data() {
......@@ -435,13 +435,13 @@ export default {
sceneID: 36,
visible: false,
addSendMsg:{
title:"",
sendType:"0",
sendObj:"",
sendTime:"",
Tittle:"",
Type: 1,
SendType: '2',
Details: [],
SendTime: '',
isAll:false,
},
transferMsg: {}
}
};
},
mounted() {
......@@ -501,73 +501,24 @@ export default {
this.getList()
},
//锁定
locking(){
console.log('锁定')
},
//解锁
Unlock(){
console.log('解锁')
},
//删除团队成员
delCust(){
console.log('删除团队成员')
},
//删除
delete(){
console.log('删除')
},
//导出
export(){
console.log('导出')
},
// 更改状态
changeState(){
console.log('更改状态')
},
// 关注
CareforCustomer(scope){
this.apipost('/api/Customer/CareforGuesstCustomer', {ID: scope.row.ID}, res=>{
// 转移
transfer(){
this.apipost('/api/SellEvent/AddBirthdayActivity', this.addSendMsg, res=>{
if (res.data.resultCode == 1) {
this.$message.success('操作成功');
this.multipleSelection = []
this.transferVisible = false
this.$message.success(res.data.message);
this.getList()
this.addSendMsg = {
Tittle:"",
Type: 1,
SendType: '2',
Details: [],
isAll:false,
}
}
})
},
// 转移
transfer(type){
if (type !== 2) {
if (type === 3) {
this.multipleSelection.push(this.CustomerId)
}
this.transferVisible = true
} else {
if (this.transferMsg.EmpId === '') {
return this.$message.error('请选择变更负责人!')
}
let str = ''
this.multipleSelection.map((x, i)=>{
str = str + x + ','
})
this.transferMsg.IDs = str.substring(0, str.length - 1)
this.apipost('/api/Customer/TransferGuesstCustomer', this.transferMsg, res=>{
if (res.data.resultCode == 1) {
this.multipleSelection = []
this.transferVisible = false
if (type === 3) {} {
this.drawer = false
}
this.$message.success(res.data.message);
this.getList()
this.transferMsg = {
IDs: [],
EmpId: ''
}
}
})
}
console.log('转移')
},
showMessageFromChild(list){
this.mySelectCtrl=!this.mySelectCtrl
if (list) {
......@@ -581,8 +532,8 @@ export default {
},
openDetails(scope){
this.drawer = true
this.CustomerId = scope.row.ID
this.CustomerName = scope.row.GusetName
this.CustomerId = scope.row.Id
this.CustomerName = scope.row.GuestName
},
handleSizeChange(val) {
this.msg.pageSize = val
......@@ -610,6 +561,17 @@ export default {
this.multipleSelection = val
this.addSendMsg.isAll=false
if(val && val.length>0){
let list = val.map(x=> {
return {
GuestName: x.GuestName,
GuestId: x.Id,
CustomerName: x.CustomerName,
CustomerId: x.CustomerId,
GuestPhone: x.MobilePhone,
SentId: x.CustomeMobile,
}
})
this.addSendMsg.Details = list
this.addSendMsg.sendObj=val.length==1?val[0].GuestName:val[0].GuestName+"等"+val.length+"人"
}else{
this.addSendMsg.sendObj=""
......
......@@ -128,8 +128,8 @@ export default {
var msg = {
EmAccount: this.account,
EmPassword: this.pwd,
//Domain:'testerp.oytour.com'
Domain: 'crmyx.oytour.com'
Domain:'testerp.oytour.com'
// Domain: 'crmyx.oytour.com'
};
this.apipost('/api/Login/UserLogin', msg, res=>{
var jsonData = res.data;
......
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