Commit bc533da4 authored by 罗超's avatar 罗超

Merge branch 'master' of http://gitlab.oytour.com/huaguohao/crm

parents 6bfd325d 7e43fc76
......@@ -355,7 +355,6 @@
</el-row>
</div>
<div style="width:100%;height:100%;">
<!-- <sjld :MYdata="[]"/> -->
<div v-if="RankingList.length < 1" class="nodata font-color-info">
<p>努力开发中</p>
</div>
......@@ -386,104 +385,25 @@
TotalPrice: 0
}
},
rankMsg: {
RankType: 1, //排行类型(1-引流排行,2-销售排行,3-利润排行)
QueryType: 2, //查询类型(1-按天查询,2-按月查询,3-按年查询)
StartDay: "2022-05-01", //开始时间
EndDay: "2022-05-31", //结束时间
StartMonth: '2022-04', //开始月份
EndMonth: '2022-05', //结束月份
StartYear: '2022', //开始年份
EndYear: '2022', //结束年份
},
};
},
mounted() {
this.GetRankingList();
this.GetBriefing();
this.createClue();
this.doanLoadFile();
},
methods: {
createClue() {
var url = "";
var msg = {};
//生成线索数据
// url = "/api/ClueStatic/CreateClue";
// msg={};
//每日数据统计
// url = "/api/ClueStatic/GetClueDay";
// msg = {
// YearStr: 2022,
// MonthStr: 5
// }
//每月数据统计
// url = "/api/ClueStatic/GetClueMonth";
// msg = {
// YearStr: 2022,
// }
//每月数据成长率统计
// url = "/api/ClueStatic/GetClueMonthRate";
// msg = {
// YearStr: 2022,
// }
//年度线索数据统计
// url = "/api/ClueStatic/GetClueYear";
// msg = {
// }
//年度线索成长率数据统计
// url = "/api/ClueStatic/GetClueYearRate";
// msg = {
// }
if (url && url != "") {
this.apipost(url, msg, (res) => {
console.log("res.data", res.data);
});
}
},
doanLoadFile() {
var url = "";
var msg = {};
//下载每日数据统计
// url = "/api/ClueStatic/DownLoadClueDay";
// msg = {
// YearStr: 2022,
// MonthStr: 5
// }
//下载每月数据统计
// url = "/api/ClueStatic/DownLoadClueMonth";
// msg = {
// YearStr: 2022,
// }
//下载每月数据成长率统计
// url = "/api/ClueStatic/DownLoadClueMonthRate";
// msg = {
// YearStr: 2022,
// }
//下载年度线索数据统计
// url = "/api/ClueStatic/DownLoadClueYear";
// msg = {
// }
//年度线索成长率数据统计
// url = "/api/ClueStatic/DownLoadClueYearRate";
// msg = {
// }
if (url && url != "") {
this.GetLocalFile(url, msg, '数据统计.xls', res => {
console.log("res", res);
});
}
},
//客户简报
GetBriefing() {
this.apipost("/api/CustomerDashboard/GetBriefing", {}, (res) => {
if (res.data.resultCode == 1) {
......@@ -491,13 +411,13 @@
}
});
},
//排行榜
GetRankingList() {
this.apipost(
"/api/CustomerDashboard/GetRankingList", {
rankType: this.rankType
},
"/api/CustomerDashboard/GetRankingList", this.rankMsg,
(res) => {
if (res.data.resultCode == 1) {
console.log("rankData","res.data.data")
this.RankingList = res.data.data;
}
}
......
......@@ -203,7 +203,7 @@
<el-drawer :with-header="false" size='70%' :visible.sync="isShowCustomerInfo" direction="rtl"
:before-close="handleClose">
<customerInfoBox :CustomerId="CustomerId" @transferS="transfer" @deleteClue="deleteClue" @watersS="waters"
@editCustS="editCust" @getList="getList" />
@editCustS="editCust" @getList="getList" :activeNameNum="activeNameNum" :receiptType="receiptType"/>
</el-drawer>
<el-drawer :with-header="false" size='70%' :visible.sync="isShowGuestInfo" direction="rtl"
:before-close="handleClose">
......@@ -281,6 +281,12 @@
},
data() {
return {
receiptType:{
ReFinanceId:"",
ReFinanceId2:"",//单据类型
RelevanceFrId:"",//1机票 2签证 3地接 4套餐 5其他
},
activeNameNum:"1",
ruleList: [],
guestDialogBoxShow: false,
isShowGuestInfo: false, //是否显示直客弹窗
......
<style scoped>
.distributionRules {}
.distributionRules_title {
font-weight: bold;
font-size: 18px;
font-family: perfectFont;
padding: 20px 0;
}
.page-content {
background-color: #fff;
padding: 20px;
}
.distributionRules_text {
padding: 0 0 20px 0;
}
.text-negative {
color: #f5576c
}
.distributionRules_num {
display: flex;
justify-content: space-between;
}
.distributionRules_num div {
flex: 1;
}
.dataText {
display: flex;
flex-wrap: wrap;
padding: 10px 0;
}
.dataText_text {
margin-right: 10px;
margin-bottom: 10px;
}
.select-radio {
display: flex;
align-items: center;
}
/deep/.el-radio-group{
margin-bottom: 0 !important;
}
</style>
<template>
<div class="customerManage">
<h1 class="distributionRules_title">分配给以下部门/成员</h1>
<div class="page-content">
<div class="distributionRules_text">
<span>使用部门/成员</span>
<span class="text-negative">*</span>
</div>
<div class="distributionRules_num">
<div>
<el-button @click="clickSelectPeople">选择部门/成员</el-button>
</div>
<div><span>已选择:{{list.length}}</span></div>
</div>
<div class="dataText">
<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>
<!-- 添加账号弹窗 -->
<div v-if="addDistributionRulesShow">
<addDistributionRules :obj="newObj" @addCustomerOk="addCustomerOk" />
</div>
</div>
</template>
<script>
import addDistributionRules from "../dialogModel/addDistributionRules";
export default {
components: {
addDistributionRules
},
data() {
return {
disabledOff: false,
newObj: {},
radioList: [{
name: '顺序分配',
id: 1
},
{
name: '随机分配',
id: 2
},
],
list: [],
addDistributionRulesShow: false,
loading: false,
tableData: [],
msg: {
SNO: 0,
Content: ''
}
};
},
mounted() {
this.GetCustomerAllotRule()
let $this = this
this.MsgBus.$on('closeaaddDistributionRules', function () {
$this.addDistributionRulesShow = false
})
},
beforeDestroy() {
this.MsgBus.$off('sceneSave');
this.MsgBus.$off('editScene');
},
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 => {
if (res.data.resultCode == 1) {
this.$message.success(res.data.message)
this.disabledOff = false
} else {
this.$message.error(res.data.message)
this.disabledOff = false
}
})
},
addCustomerOk() {
this.addDistributionRulesShow = false
},
clickSelectPeople() {
this.addDistributionRulesShow = true
},
// 获取规则详情
GetCustomerAllotRule() {
this.apipost('/api/Customer/GetCustomerAllotRule', {}, res => {
if (res.data.resultCode == 1) {
this.msg = {
SNO: res.data.data.SNO,
Content: res.data.data.Content
};
this.list = res.data.data.EmpList
this.newObj = res.data.data
}
})
},
}
};
</script>
\ No newline at end of file
......@@ -33,6 +33,8 @@
<div v-for="(item,index) in headerList" :key="index" :class="selectTitle==item.id?'active':''"
@click="clickTitle(item)">{{item.title}}</div>
</div>
<!-- 管理配置 -->
<ManageConfiguration v-if="selectTitle==4"></ManageConfiguration>
<!-- 客户来源 -->
<customerSource v-if="selectTitle==1"></customerSource>
<!-- 分配规则 -->
......@@ -45,16 +47,22 @@
import customerSource from "./customerSource";
import distributionRules from "./distributionRules";
import rankConfig from "./rankConfig";
import ManageConfiguration from "./ManageConfiguration";
export default {
components: {
customerSource,
distributionRules,
rankConfig,
ManageConfiguration
},
data() {
return {
selectTitle: 1,
headerList: [{
selectTitle: 4,
headerList: [
{
title: '管理配置',
id: 4
},{
title: '客户来源',
id: 1
},
......
......@@ -45,6 +45,9 @@
display: flex;
align-items: center;
}
/deep/.el-radio-group{
margin-bottom: 0 !important;
}
</style>
<template>
<div class="customerManage">
......
......@@ -861,6 +861,7 @@ export default {
},
(res) => {
if (res.data.resultCode == 1) {
this.MsgBus.$emit("closeGetList");
this.emptyMore()
this.$message.success(res.data.message);
}
......
......@@ -257,7 +257,7 @@
</el-pagination>
</div>
<el-drawer :with-header="false" size='70%' :visible.sync="drawer" direction="rtl" :before-close="handleClose">
<customerInfoBox :CustomerId="CustomerId" @transferS="transfer" @editCustS="editCust" />
<customerInfoBox :CustomerId="CustomerId" @transferS="transfer" @editCustS="editCust" :activeNameNum="activeNameNum" :receiptType="receiptType"/>
</el-drawer>
<div v-if="dialogTableVisible">
<customerDialogBox @getList="getList" :name="dialogTableVisibleName" :CustomerId="CustomerId" />
......@@ -298,6 +298,12 @@
},
data() {
return {
receiptType:{
ReFinanceId:"",
ReFinanceId2:"",//单据类型
RelevanceFrId:"",//1机票 2签证 3地接 4套餐 5其他
},
activeNameNum:"1",
transactionStatusList: [{
Name: "全部",
Id: "0"
......
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