Commit f016afcb authored by zhengke's avatar zhengke

no message

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