Commit f016afcb authored by zhengke's avatar zhengke

no message

parent d1848d67
......@@ -91,8 +91,15 @@
<div v-else class="flex-center">
<p class="font-size-12">已选 <span class="font-color-link">{{multipleSelection.length}}</span></p>
<div class="selection-box">
<el-button v-for="(item, index) in selectionList" :key="index" @click="item.myFun"><i
:class="item.class"></i>{{item.name}}</el-button>
<div v-for="(item, index) in selectionList"
:key="index">
<template v-if="msg.IsSelectAdmin==1&&item.name!='转移'">
<el-button @click="item.myFun">
<i :class="item.class"></i>{{item.name}}
</el-button>
</template>
</div>
</div>
</div>
<div class="scene-wrapper" v-if="sceneList.length > 0">
......@@ -396,6 +403,7 @@
OrderBy: '',
CustomerType: 1,
ID: 33,
IsSelectAdmin: 0
},
total: 0,
selectionList: [{
......@@ -417,19 +425,18 @@
visible: false,
isShowImport: false, //是否显示导入弹窗
importType: 1, //导入文件类型(1-客户导入,2-直客导入)
IsSelectAdminList:[],//是否是线索管理员
};
},
mounted() {
this.userInfo = this.getLocalStorage();
this.getList()
this.Employee()
let $this = this
this.MsgBus.$on('closeCustomerDialogBox', function () {
$this.dialogTableVisible = false;
$this.guestDialogBoxShow = false;
$this.isShowImport = false;
})
this.GetSceneEmployeeList()
this.MsgBus.$on('sceneSave', function (msg) {
$this.sceneList = [...msg]
$this.GetSceneEmployeeList()
......@@ -443,12 +450,33 @@
this.MsgBus.$on('editScene', function () {
$this.GetSceneEmployeeList()
})
this.GetConfigCuleAdmin()
this.Employee()
this.GetSceneEmployeeList()
},
beforeDestroy() {
this.MsgBus.$off('sceneSave');
this.MsgBus.$off('editScene');
},
methods: {
// 获取线索管理详情
GetConfigCuleAdmin() {
this.apipost('/api/Customer/GetConfigCuleAdmin', {}, res => {
if (res.data.resultCode == 1) {
this.IsSelectAdminList = res.data.data.Content.split(',')
if(this.IsSelectAdminList.indexOf(this.userInfo.EmployeeId.toString())!=-1){
this.msg.IsSelectAdmin = 1
this.getList()
}else{
this.getList()
}
}else{
this.getList()
this.$message.error(res.data.message)
}
})
},
handleClose(done) {
done();
},
......@@ -749,6 +777,7 @@
// 获取是否开启规则
this.GetCustomerAllotRule()
}
},
handleSelectionChange(val) {
this.multipleSelection = val.map(x =>
......
......@@ -51,7 +51,7 @@
</style>
<template>
<div class="customerManage">
<h1 class="distributionRules_title">分配给以下部门/成</h1>
<h1 class="distributionRules_title">线索管理</h1>
<div class="page-content">
<div class="distributionRules_text">
<span>使用部门/成员</span>
......@@ -67,13 +67,6 @@
<el-tag v-for="(item,index) in list" :key="index" class="dataText_text">{{item.EmName}}
</el-tag>
</div>
<h1 class="distributionRules_title">设置分配规则</h1>
<div class="select-radio">
<span>选择设置分配:</span>
<el-radio-group v-model="msg.SNO">
<el-radio v-for="(item,index) in radioList" :key="index" :label="item.id">{{item.name}}</el-radio>
</el-radio-group>
</div>
<br /><br />
<el-button class="add-box-btn add-box-cancel" @click="saveNow" :disabled="disabledOff">立即保存</el-button>
</div>
......@@ -93,27 +86,16 @@
return {
disabledOff: false,
newObj: {},
radioList: [{
name: '顺序分配',
id: 1
},
{
name: '随机分配',
id: 2
},
],
list: [],
addDistributionRulesShow: false,
loading: false,
tableData: [],
msg: {
SNO: 0,
Content: ''
}
};
},
mounted() {
this.GetCustomerAllotRule()
this.GetConfigCuleAdmin()
let $this = this
this.MsgBus.$on('closeaaddDistributionRules', function () {
$this.addDistributionRulesShow = false
......@@ -124,14 +106,13 @@
},
methods: {
saveNow() {
return
let ids = []
this.list.forEach(item => {
ids.push(item.EmployeeId)
})
this.msg.Content = ids.join(',')
this.disabledOff = true
this.apipost('/api/Customer/SetCustomerAllotRule', this.msg, res => {
this.apipost('/api/Customer/SetConfigCuleAdmin', this.msg, res => {
if (res.data.resultCode == 1) {
this.$message.success(res.data.message)
this.disabledOff = false
......@@ -147,9 +128,9 @@
clickSelectPeople() {
this.addDistributionRulesShow = true
},
// 获取规则详情
GetCustomerAllotRule() {
this.apipost('/api/Customer/GetCustomerAllotRule', {}, res => {
// 获取线索管理详情
GetConfigCuleAdmin() {
this.apipost('/api/Customer/GetConfigCuleAdmin', {}, res => {
if (res.data.resultCode == 1) {
this.msg = {
SNO: res.data.data.SNO,
......
......@@ -1771,6 +1771,26 @@
if (this.name == '编辑订单金额') {
this.width = "600px"
this.checkList = this.obj.OrderType&&this.obj.OrderType.split(',')
if (this.obj.OrderType&&this.obj.OrderType.indexOf(1) != -1) {
this.AirTicketsShow = false
} else {
this.AirTicketsShow = true
}
if (this.obj.OrderType&&this.obj.OrderType.indexOf(2) != -1) {
this.visaShow = false
} else {
this.visaShow = true
}
if (this.obj.OrderType&&this.obj.OrderType.indexOf(3) != -1) {
this.groundShow = false
} else {
this.groundShow = true
}
if (this.obj.OrderType&&this.obj.OrderType.indexOf(4) != -1) {
this.comboShow = false
} else {
this.comboShow = true
}
this.form = {
TicketMoney:this.obj.TicketMoney,
VisaMoney:this.obj.VisaMoney,
......
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