Browse Source

提交

dev
douzhuo 2 years ago
parent
commit
9d581563a2
4 changed files with 155 additions and 119 deletions
  1. +15
    -2
      pages/center/Piabodata/TrendAnalysis.vue
  2. +4
    -4
      pages/center/Piabodata/index.vue
  3. +133
    -110
      pages/center/consumer/newFollowup/newFollowup.vue
  4. +3
    -3
      utils/domain.js

+ 15
- 2
pages/center/Piabodata/TrendAnalysis.vue View File

@@ -200,7 +200,7 @@
</view>
<view style="width: 100%;height: 60rpx;"></view>
<u-select v-model="Showhiddenunits" mode="single-column" :list="selectlist" @confirm="confirm"
:default-value="selindex">
:default-value="selindexList">
</u-select>
<u-select v-model="Showhiddenunits2" mode="single-column" :list="selectlist2" @confirm="confirm2"
:default-value="selindex">
@@ -209,7 +209,7 @@
:default-value="selindex">
</u-select>
<u-select v-model="Showhiddenunits4" mode="single-column" :list="selectlist4" @confirm="confirm4"
:default-value="selindex">
:default-value="selindexList4">
</u-select>
<u-calendar v-model="totalTimeShow" mode="range" @change="totalTimeChange"></u-calendar>
<newcalendar v-model="totalTimeShow2" :planNum='intervaltime' mode="date" @change="totalTimeChange2">
@@ -222,6 +222,8 @@
export default {
data() {
return {
selindexList: [0], // 默认选中第一项
selindexList4: [0], // 默认选中第一项
compareFlag: false,
numlist: [{
name: '接待量',
@@ -736,6 +738,11 @@
this.pamect.accountId = this.lopanobj.id;
this.ConsultantDimension()
this.Showhiddenunits = false;
for(let i = 0; i < this.selectlist.length; i++) {
if (e[0].value == this.selectlist[i].value) {
this.selindexList[0] = i
}
}
},
//获取顾问
getguwenlist() {
@@ -969,6 +976,12 @@
this.timepickpickisshow = false;
this.init()
this.TeamCompared()
for(let i = 0; i < this.selectlist4.length; i++) {
if (e[0].value == this.selectlist4[i].value) {
this.selindexList4[0] = i
}
}
},
//获取团队列表
getuanduilist() {


+ 4
- 4
pages/center/Piabodata/index.vue View File

@@ -279,7 +279,7 @@
},
newlistoj: [],
newlistoj1: [{
name: "接待",
name: "接待客户",
id: 1
},
{
@@ -287,7 +287,7 @@
id: 2
},
{
name: "接待客户",
name: "接待",
id: 3
},
{
@@ -585,7 +585,7 @@
if (index == 0) {
// 接待量
this.danwei = '单位(次)'
allobj.series[0].name = '接待'
allobj.series[0].name = '接待客户'
this.allechar.map(item => {
allobj.categories.push(item.statDate.slice(5, 10))
allobj.series[0].data.push(item.receptionCount)
@@ -601,7 +601,7 @@
} else if (index == 2) {
// 接待客户
this.danwei = '单位(个)'
allobj.series[0].name = '接待客户'
allobj.series[0].name = '接待'
this.allechar.map(item => {
allobj.categories.push(item.statDate.slice(5, 10))
allobj.series[0].data.push(item.sumCustomer)


+ 133
- 110
pages/center/consumer/newFollowup/newFollowup.vue View File

@@ -1,40 +1,50 @@
<template>
<view class="box">

<view class="screen">
<!-- 录音标示 -->
<view class="screen-record">
<view class="screen-record-text">
最新状态
</view>
<view class="screen-record-tab">
<view v-for="(item,index) in stateList" :key="index">
<view :class="[screen.state==index?'screen-record-chose':'screen-record-nochose']" @click="screen.state=index">
<view class="screen">
<!-- 录音标示 -->
<view class="screen-record">
<view class="screen-record-text">
最新状态
</view>
<view class="screen-record-tab">
<scroll-view scroll-x style="width: 100%;">
<view style="display: flex;">
<block v-for="(item,index) in stateList" :key="index">
<view style="flex-shrink: 0;"
:class="[screen.state==index?'screen-record-chose':'screen-record-nochose']"
@click="screen.state=index">
{{item.stageName}}
</view>
</view>
</block>
</view>
</scroll-view>
</view>
</view>
<!-- 录音标示 -->
<view class="screen-record">
<view class="screen-record-text">
意向级别
</view>
<view class="screen-record-tab">
<view :class="[screen.level==1?'screen-record-chose':'screen-record-nochose']"
@click="screen.level=1">
A
</view>
<!-- 录音标示 -->
<view class="screen-record">
<view class="screen-record-text">
意向级别
</view>
<view class="screen-record-tab">
<view :class="[screen.level==1?'screen-record-chose':'screen-record-nochose']" @click="screen.level=1">
A
</view>
<view :class="[screen.level==2?'screen-record-chose':'screen-record-nochose']" @click="screen.level=2">
B
</view>
<view :class="[screen.level==3?'screen-record-chose':'screen-record-nochose']" @click="screen.level=3">
C
</view>
<view :class="[screen.level==4?'screen-record-chose':'screen-record-nochose']" @click="screen.level=4">
D
</view>
</view>
<view :class="[screen.level==2?'screen-record-chose':'screen-record-nochose']"
@click="screen.level=2">
B
</view>
<view :class="[screen.level==3?'screen-record-chose':'screen-record-nochose']"
@click="screen.level=3">
C
</view>
<view :class="[screen.level==4?'screen-record-chose':'screen-record-nochose']"
@click="screen.level=4">
D
</view>
</view>
</view>
<!-- <view class="screen-record" style="height: auto;">
<view class="screen-record-text" style="margin-bottom: 20rpx;">
客户类型
@@ -51,104 +61,104 @@
</scroll-view>
</view> -->
<view class="screen-record">
<view class="screen-record-text">
跟进内容
</view>
<view class="screen-record-tab">
<input type="text" placeholder="请输入跟进内容" v-model="screen.con"/>
</view>
</view>
<view class="screen-foot">
<view class="screen-foot-sure" @click="screensure">
保存
</view>
</view>
<view class="screen-record">
<view class="screen-record-text">
跟进内容
</view>
<view class="screen-record-tab">
<input type="text" placeholder="请输入跟进内容" v-model="screen.con" />
</view>
</view>
<view class="screen-foot">
<view class="screen-foot-sure" @click="screensure">
保存
</view>
</view>
</view>


</view>
</template>

<script>
export default{
data(){
return{
value:'',
screenShow:false,
selectshow:false,
selectTipshow:false,
buildingID:'',
keyword:'',
screen:{
state:'0',
con:"",
level:'1'
export default {
data() {
return {
value: '',
screenShow: false,
selectshow: false,
selectTipshow: false,
buildingID: '',
keyword: '',
screen: {
state: '0',
con: "",
level: '1'
},
stateList:[],
recordList:[],
nextPage:1,
totalRecord:'',
freeList:[],
customerType:[],
customerId:''
stateList: [],
recordList: [],
nextPage: 1,
totalRecord: '',
freeList: [],
customerType: [],
customerId: ''
}
},
onShow() {

},
onLoad(e) {
this.customerId=e.id
this.customerId = e.id
this.buildingID = uni.getStorageSync('buildingID').id;
this.recordList=[]
this.recordList = []
// this.getMyCustom()
// this.getFreeList()
this.getNewStatus()
this.getCustomerType();
},
methods:{
methods: {
//选择顾问
actionSelectCallback(e){
this.screen.agentId=e[0].value;
this.screen.agentIdtext=e[0].label;
actionSelectCallback(e) {
this.screen.agentId = e[0].value;
this.screen.agentIdtext = e[0].label;
},
getCustomerType(){
getCustomerType() {
this.$u.get("/customer/queryKeyWords").then(res => {
res.map(item=>{
item.check=false
res.map(item => {
item.check = false
})
this.customerType = res;
})
},
getNewStatus() {
var that = this;
let premo={
houseId:uni.getStorageSync('buildingID').id
let premo = {
houseId: uni.getStorageSync('buildingID').id
}
this.$u.post('/customer/getStage',premo)
.then(res=>{
this.stateList=res
})
this.$u.post('/customer/getStage', premo)
.then(res => {
this.stateList = res
})
},
checkbox(idx){
console.log(idx)
this.customerType[idx].check=!this.customerType[idx].check
checkbox(idx) {
console.log(idx)
this.customerType[idx].check = !this.customerType[idx].check
},
search(e){
search(e) {
console.log(e)
},
//选择标签
selectCallback(e){
selectCallback(e) {
console.log(e[0].label)
},
//筛选确认
screensure(){
screensure() {
// 获取选择过的数据
// let type=[]
let words=[]
this.customerType.map(item=>{
if(item.check){
let words = []
this.customerType.map(item => {
if (item.check) {
// type.push(item.id)
words.push(item.keywords)
}
@@ -166,7 +176,7 @@
mask: true
})
// console.log(type)
let param={
let param = {
"stageCode": this.stateList[this.screen.state].stageCode,
"stageName": this.stateList[this.screen.state].stageName,
"remarks": this.screen.con,
@@ -178,12 +188,12 @@
"state": this.stateList[this.screen.state].id
}
}
this.$u.post('/customer/addZkDailyWorkRecord',param)
.then(res=>{
// util.showSuccess("提交成功");
uni.hideLoading();
uni.navigateBack();
})
this.$u.post('/customer/addZkDailyWorkRecord', param)
.then(res => {
// util.showSuccess("提交成功");
uni.hideLoading();
uni.navigateBack();
})
},
}
}
@@ -195,58 +205,68 @@
height: 100%;
background: #F8F8F8;
}
.screen{

.screen {
// box-sizing: border-box;
// padding: 0 30rpx;
background: #FFFFFF;
.screen-counselor{

.screen-counselor {
display: flex;
height: 106rpx;
// padding: 40rpx 30rpx 36rpx 30rpx;
padding: 0 30rpx;
box-sizing: border-box;
border-bottom: 1px solid #CCCCCC;
.screen-text{

.screen-text {
margin: 40rpx 0 36rpx 0;
font-size: 30rpx;
font-weight: 400;
color: #333333;
line-height: 30rpx;
}
.screen-sel{

.screen-sel {
display: flex;
justify-content: space-between;
width: 500rpx;
margin-left: 60rpx;
.screen-sel-img{

.screen-sel-img {
margin: 40rpx 0 36rpx 0;
width: 14rpx;
height: 30rpx;
}
.screen-inp{

.screen-inp {
margin-top: 20rpx;
}
}
}
.screen-record{

.screen-record {
height: 192rpx;
// width: 100%;
overflow: hidden;
padding: 0 30rpx;
box-sizing: border-box;
border-bottom: 1px solid #CCCCCC;
.screen-record-text{

.screen-record-text {
margin-top: 36rpx;
font-size: 30rpx;
font-weight: 400;
color: #333333;
line-height: 30rpx;
}
.screen-record-tab{

.screen-record-tab {
margin-top: 30rpx;
display: flex;

// justify-content: space-around;
.screen-record-chose{
.screen-record-chose {
width: 151rpx;
height: 60rpx;
background: #FFFFFF;
@@ -256,7 +276,8 @@
line-height: 60rpx;
margin-right: 22rpx;
}
.screen-record-nochose{

.screen-record-nochose {
width: 151rpx;
height: 60rpx;
background: #FFFFFF;
@@ -266,16 +287,17 @@
line-height: 60rpx;
margin-right: 22rpx;
}
}
}
.screen-foot{

.screen-foot {
height: 88rpx;
display: flex;
width: 100%;
margin-top: 160rpx;
.screen-foot-reset{
.screen-foot-reset {
width: 80%;
text-align: center;
margin: 0 auto;
@@ -284,7 +306,8 @@
font-weight: 400;
color: #666666;
}
.screen-foot-sure{

.screen-foot-sure {
width: 80%;
margin: 0 auto;
text-align: center;


+ 3
- 3
utils/domain.js View File

@@ -1,11 +1,11 @@
// http.js使用域名
// const baseUrl = 'http://192.168.31.57:8080/autoSR/api';// 本地
// const baseUrl = 'http://121.42.63.138:9091/autoSR/api';// 测试站
// const baseUrl = 'http://121.42.63.138:9091/autoSR/api';// 测试站/
// const baseUrl = 'http://192.168.31.167:8080/autoSR/api'; // 长龙
// const baseUrl = 'http://192.168.31.134:8080/autoSR/api'; // 佳豪
// const baseUrl = 'http://10.2.1.104:8081/autoSR/api'; // 刘敏
// const baseUrl = 'https://zkgj.quhouse.com/api'; // 质控正式
const baseUrl = 'https://hfju.com/api'; // 数智正式
const baseUrl = 'https://zkgj.quhouse.com/api'; // 质控正式
// const baseUrl = 'https://hfju.com/api'; // 数智正式


// config使用域名


Loading…
Cancel
Save