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

1

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