客服登记等去掉选择车辆

This commit is contained in:
yerz123
2022-03-15 14:03:29 +08:00
parent bfc64dd8cc
commit 3beb630357
9 changed files with 225 additions and 218 deletions
+1
View File
@@ -63,6 +63,7 @@
.mr170{margin-right:170rpx;}
.mr180{margin-right:180rpx;}
.mr190{margin-right:190rpx;}
.mb5{margin-bottom:5rpx;}
.mb10{margin-bottom:10rpx;}
.mb15{margin-bottom:15rpx;}
.mb20{margin-bottom:20rpx;}
+53 -47
View File
@@ -4,19 +4,19 @@ Page({
data: {
name:'',//名字
mobile:'',//手机号
brand_id:'',//品牌
car_id:'',//车系id
v_id:'',//车辆版本id
color_id:'',//颜色id
b_s_id:'',//备选车型id
// brand_id:'',//品牌
// car_id:'',//车系id
// v_id:'',//车辆版本id
// color_id:'',//颜色id
// b_s_id:'',//备选车型id
buy_time:'',//预计购车时间
brandIndex:-1,//车辆品牌索引
modelIndex:-1,//车系车型索引
spareIndex:-1,//备选车型索引
colorArray:[],//车身颜色列表
levelArray:[],//车辆版本列表
colorIndex:-1,//车身颜色索引
levelIndex:-1,//车辆版本索引
// brandIndex:-1,//车辆品牌索引
// modelIndex:-1,//车系车型索引
// spareIndex:-1,//备选车型索引
// colorArray:[],//车身颜色列表
// levelArray:[],//车辆版本列表
// colorIndex:-1,//车身颜色索引
// levelIndex:-1,//车辆版本索引
timeArray:[],//预计购车时间列表
timeIndex:-1,//预计购车时间索引
submitFlag:false,
@@ -38,9 +38,13 @@ Page({
[key]: options[key]
})
}
this.getAppSeriesBrands()
//获取车型品牌
// this.getAppSeriesBrands()
//获取列表筛选条件-时间
this.getAppCustomersFilter()
//线索来源
this.getAppCustomersOffline_sources()
//客户标签
this.getAppCustomersTag()
},
@@ -258,22 +262,24 @@ Page({
title: '请输入正确的手机号码',
icon: 'none'
})
}else if(that.data.car_id == '' ){
wx.showToast({
title: '请选择车系车型',
icon: 'none'
})
}else if(that.data.v_id == '' ){
wx.showToast({
title: '请选择车辆版本',
icon: 'none'
})
}else if(that.data.color_id == '' ){
wx.showToast({
title: '请选择车身颜色',
icon: 'none'
})
} else{
}
// else if(that.data.car_id == '' ){
// wx.showToast({
// title: '请选择车系车型',
// icon: 'none'
// })
// }else if(that.data.v_id == '' ){
// wx.showToast({
// title: '请选择车辆版本',
// icon: 'none'
// })
// }else if(that.data.color_id == '' ){
// wx.showToast({
// title: '请选择车身颜色',
// icon: 'none'
// })
// }
else{
that.setData({
submitFlag: true,
})
@@ -281,13 +287,13 @@ Page({
params['status'] = that.data.status;
params['name'] = that.data.name;
params['mobile'] = that.data.mobile;
params['car_id'] = that.data.car_id;
params['v_id'] = that.data.v_id;
params['color_id'] = that.data.color_id;
// params['car_id'] = that.data.car_id;
// params['v_id'] = that.data.v_id;
// params['color_id'] = that.data.color_id;
params['tag'] = that.data.taglList;
if(this.data.b_s_id != ''){
params['b_s_id'] = this.data.b_s_id;
}
// if(this.data.b_s_id != ''){
// params['b_s_id'] = this.data.b_s_id;
// }
if(this.data.of_id != ''){
params['of_id'] = this.data.of_id;
}
@@ -321,19 +327,19 @@ Page({
that.setData({
name:'',//名字
mobile:'',//手机号
brand_id:'',//品牌
car_id:'',//车系id
v_id:'',//车辆版本id
color_id:'',//颜色id
b_s_id:'',//备选车型id
// brand_id:'',//品牌
// car_id:'',//车系id
// v_id:'',//车辆版本id
// color_id:'',//颜色id
// b_s_id:'',//备选车型id
buy_time:'',//预计购车时间
brandIndex:-1,//车辆品牌索引
modelIndex:-1,//车系车型索引
spareIndex:-1,//备选车型索引
colorArray:[],//车身颜色列表
levelArray:[],//车辆版本列表
colorIndex:-1,//车身颜色索引
levelIndex:-1,//车辆版本索引
// brandIndex:-1,//车辆品牌索引
// modelIndex:-1,//车系车型索引
// spareIndex:-1,//备选车型索引
// colorArray:[],//车身颜色列表
// levelArray:[],//车辆版本列表
// colorIndex:-1,//车身颜色索引
// levelIndex:-1,//车辆版本索引
timeArray:[],//预计购车时间列表
timeIndex:-1,//预计购车时间索引
submitFlag:false,
+3 -4
View File
@@ -22,7 +22,7 @@
<input class="wp100 height-100 text-right font-28" placeholder-class="color-ccc" type="number" placeholder="请输入客户手机号" bindinput='inputTx' data-key="mobile" name='mobile' value='{{mobile}}' />
</view>
</view>
<view class="relative bbs-1-eb pl190 last-b-none">
<!-- <view class="relative bbs-1-eb pl190 last-b-none">
<view class="absolute left-0 box-middle font-28 color-333">车辆品牌</view>
<view class="pt30 pb30 text-right font-28 color-666">
<picker bindchange="changeBrand" value="{{brandIndex}}" range="{{brandArray}}">
@@ -61,7 +61,7 @@
<i class="iconfont ml5 icon-gengduo"></i>
</picker>
</view>
</view>
</view> -->
<!-- <view class="relative bbs-1-eb pl190 last-b-none" wx:if="{{modelIndex != -1}}">
<view class="absolute left-0 box-middle font-28 color-333">备选车型</view>
<view class="pt30 pb30 text-right font-28 color-666">
@@ -92,7 +92,7 @@
</picker>
</view>
</view>
<view class="relative pl190">
<view class="relative bbs-1-eb last-b-none pl190">
<view class="absolute left-0 box-middle font-28 color-333">预计购车时间</view>
<view class="pt30 pb30 text-right font-28 color-666">
<picker bindchange="changeTime" value="{{timeIndex}}" range="{{timeArray}}">
@@ -103,7 +103,6 @@
</view>
</view>
<view class="mt10 pt20 pb20 bg-e3f5f3 font-32 text-center ulib-r10">客户标签</view>
<block wx:for='{{taglList}}' wx:for-item='list' wx:for-index='i' wx:key='i'>
<view class="relative mt40">
<view class="font-28">{{list.name}}</view>
+103 -103
View File
@@ -32,19 +32,19 @@ Page({
/* 编辑 */
name:'',//名字
mobile:'',//手机号
brand_id:'',//品牌
car_id:'',//车系id
v_id:'',//车辆版本id
color_id:'',//颜色id
b_s_id:'',//备选车型id
// brand_id:'',//品牌
// car_id:'',//车系id
// v_id:'',//车辆版本id
// color_id:'',//颜色id
// b_s_id:'',//备选车型id
buy_time:'',//预计购车时间
brandIndex:-1,//车辆品牌索引
modelIndex:-1,//车系车型索引
spareIndex:-1,//备选车型索引
colorArray:[],//车身颜色列表
levelArray:[],//车辆版本列表
colorIndex:-1,//车身颜色索引
levelIndex:-1,//车辆版本索引
// brandIndex:-1,//车辆品牌索引
// modelIndex:-1,//车系车型索引
// spareIndex:-1,//备选车型索引
// colorArray:[],//车身颜色列表
// levelArray:[],//车辆版本列表
// colorIndex:-1,//车身颜色索引
// levelIndex:-1,//车辆版本索引
defeat_reason:'',//战败理由
submitFlag:false,
@@ -110,102 +110,102 @@ Page({
buy_time:res.data.baseinfo.buy_time.value?res.data.baseinfo.buy_time.value:'',
})
/*匹配数据*/
/*匹配品牌*/
if(res.data.baseinfo.brand_id.value){
_.apiQuery.getAppSeriesBrands().then(res1 => {
if(res1.data.list.length>0){
let brandArray = []
res1.data.list.forEach((item,index) => {
if(item.id == res.data.baseinfo.brand_id.value){
this.setData({
brandIndex:index,
})
}
brandArray.push(item.name)
})
this.setData({
brandArray:brandArray,
brandList:res1.data.list,
})
// /*匹配数据*/
// /*匹配品牌*/
// if(res.data.baseinfo.brand_id.value){
// _.apiQuery.getAppSeriesBrands().then(res1 => {
// if(res1.data.list.length>0){
// let brandArray = []
// res1.data.list.forEach((item,index) => {
// if(item.id == res.data.baseinfo.brand_id.value){
// this.setData({
// brandIndex:index,
// })
// }
// brandArray.push(item.name)
// })
// this.setData({
// brandArray:brandArray,
// brandList:res1.data.list,
// })
/*匹配车系车型*/
if(res.data.baseinfo.car_id.value){
let modelparams = {};
modelparams['brand_id'] = res.data.baseinfo.brand_id.value;
_.apiQuery.getAppSeries(modelparams).then(res2 => {
if(res2.data.list.length>0){
let modelArray = []
res2.data.list.forEach((item,index) => {
if(item.id == res.data.baseinfo.car_id.value){
this.setData({
modelIndex:index,
})
}
modelArray.push(item.name)
})
this.setData({
modelArray:modelArray,
modelList:res2.data.list,
})
// /*匹配车系车型*/
// if(res.data.baseinfo.car_id.value){
// let modelparams = {};
// modelparams['brand_id'] = res.data.baseinfo.brand_id.value;
// _.apiQuery.getAppSeries(modelparams).then(res2 => {
// if(res2.data.list.length>0){
// let modelArray = []
// res2.data.list.forEach((item,index) => {
// if(item.id == res.data.baseinfo.car_id.value){
// this.setData({
// modelIndex:index,
// })
// }
// modelArray.push(item.name)
// })
// this.setData({
// modelArray:modelArray,
// modelList:res2.data.list,
// })
/*匹配车辆版本*/
if(res.data.baseinfo.v_id.value){
let levelparams = {};
levelparams['id'] = res.data.baseinfo.car_id.value;
levelparams['type'] = 0;
_.apiQuery.getAppSeriesAttrs(levelparams).then(res3 => {
if(res3.data.total>0){
let levelArray = []
res3.data.list.forEach((item,index) => {
if(item.id == res.data.baseinfo.v_id.value){
this.setData({
levelIndex:index,
})
}
levelArray.push(item.title)
})
this.setData({
levelArray:levelArray,
levelList:res3.data.list,
})
// /*匹配车辆版本*/
// if(res.data.baseinfo.v_id.value){
// let levelparams = {};
// levelparams['id'] = res.data.baseinfo.car_id.value;
// levelparams['type'] = 0;
// _.apiQuery.getAppSeriesAttrs(levelparams).then(res3 => {
// if(res3.data.total>0){
// let levelArray = []
// res3.data.list.forEach((item,index) => {
// if(item.id == res.data.baseinfo.v_id.value){
// this.setData({
// levelIndex:index,
// })
// }
// levelArray.push(item.title)
// })
// this.setData({
// levelArray:levelArray,
// levelList:res3.data.list,
// })
//匹配车身颜色
if(res.data.baseinfo.color_id.value){
let colorparams = {};
colorparams['id'] = res.data.baseinfo.car_id.value;
colorparams['v_id'] = res.data.baseinfo.v_id.value;
colorparams['type'] = 1;
_.apiQuery.getAppSeriesAttrs(colorparams).then(res4 => {
if(res4.data.total>0){
let colorArray = []
res4.data.list.forEach((item,index) => {
if(item.id == res.data.baseinfo.color_id.value){
this.setData({
colorIndex:index,
})
}
colorArray.push(item.title)
})
this.setData({
colorArray:colorArray,
colorList:res4.data.list,
})
}
});
}
}
});
}
// //匹配车身颜色
// if(res.data.baseinfo.color_id.value){
// let colorparams = {};
// colorparams['id'] = res.data.baseinfo.car_id.value;
// colorparams['v_id'] = res.data.baseinfo.v_id.value;
// colorparams['type'] = 1;
// _.apiQuery.getAppSeriesAttrs(colorparams).then(res4 => {
// if(res4.data.total>0){
// let colorArray = []
// res4.data.list.forEach((item,index) => {
// if(item.id == res.data.baseinfo.color_id.value){
// this.setData({
// colorIndex:index,
// })
// }
// colorArray.push(item.title)
// })
// this.setData({
// colorArray:colorArray,
// colorList:res4.data.list,
// })
// }
// });
// }
// }
// });
// }
}
});
}
// }
// });
// }
}
});
}
/*end 匹配数据*/
// }
// });
// }
// /*end 匹配数据*/
})
},
+6 -6
View File
@@ -63,7 +63,7 @@
{{mobile}}
</view>
</view>
<view class="relative bbs-1-eb pl190 last-b-none">
<!-- <view class="relative bbs-1-eb pl190 last-b-none">
<view class="absolute left-0 box-middle font-28 color-333">车辆品牌</view>
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx">
{{brandArray[brandIndex]}}
@@ -86,8 +86,8 @@
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx">
{{colorArray[colorIndex]}}
</view>
</view>
<view class="relative bbs-1-eb last-b-none pl140 font-28">
</view> -->
<view class="relative bbs-1-eb last-b-none pl140 font-28" wx:if="{{baseinfo.of_id.value}}">
<view class="absolute left-0 box-middle">线索来源</view>
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx">{{baseinfo.of_id.value}}</view>
</view>
@@ -156,12 +156,12 @@
</view>
</view>
</view>
<view class="mt10 pl40 pr30 pb200" wx:elif="{{tabid == tab[2].id}}">
<view class="mt10 pl50 pr30 pb200" wx:elif="{{tabid == tab[2].id}}">
<view class="relative">
<view class="absolute left-0 box-middle font-28">客户级别</view>
<view class="pl150" wx:if="{{detailinfo.tags.length>0}}">
<block wx:for="{{detailinfo.tags}}" wx:for-index='i' wx:for-item='tag' wx:key='i'>
<text class="inline-block space-nowrap mt20 mr10 pt15 pb15 pl30 pr30 font-22 ulib-r10 bg-f3f6fc">{{tag}}</text>
<text class="inline-block space-nowrap mt5 mb5 mr10 pt10 pb10 pl20 pr20 font-22 ulib-r10 bg-f3f6fc">{{tag}}</text>
</block>
</view>
<!-- <block wx:for='{{taglList}}' wx:for-item='list' wx:for-index='i' wx:key='i'>
@@ -175,7 +175,7 @@
<view class="absolute left-0 box-middle font-28">{{list.name}}</view>
<view class="pl150">
<block wx:for='{{list.list}}' wx:for-item='option' wx:for-index='j' wx:key='j'>
<view class="inline-block space-nowrap mt10 mr20 pt15 pb15 pl30 pr30 font-22 ulib-r10 bg-f3f6fc" wx:if="{{option.checked}}">{{option.name}}</view>
<view class="inline-block space-nowrap mt5 mb5 mr10 pt10 pb10 pl20 pr20 font-22 ulib-r10 bg-f3f6fc" wx:if="{{option.checked}}">{{option.name}}</view>
</block>
</view>
</view>
+40 -38
View File
@@ -4,17 +4,17 @@ Page({
data: {
name:'',//名字
mobile:'',//手机号
brand_id:'',//品牌
car_id:'',//车系id
v_id:'',//车辆版本id
color_id:'',//颜色id
// brand_id:'',//品牌
// car_id:'',//车系id
// v_id:'',//车辆版本id
// color_id:'',//颜色id
buy_time:'',//预计购车时间
brandIndex:-1,//车辆品牌索引
modelIndex:-1,//车系车型索引
colorArray:[],//车身颜色列表
levelArray:[],//车辆版本列表
colorIndex:-1,//车身颜色索引
levelIndex:-1,//车辆版本索引
// brandIndex:-1,//车辆品牌索引
// modelIndex:-1,//车系车型索引
// colorArray:[],//车身颜色列表
// levelArray:[],//车辆版本列表
// colorIndex:-1,//车身颜色索引
// levelIndex:-1,//车辆版本索引
timeArray:[],//预计购车时间列表
timeIndex:-1,//预计购车时间索引
submitFlag:false,
@@ -49,8 +49,10 @@ Page({
})
//编辑基础信息使用
this.getAppSeriesBrands()
this.getAppSeriesedit()
//获取车型品牌
//this.getAppSeriesBrands()
//匹配车系车型
//this.getAppSeriesedit()
this.getAppCustomersFilter()
this.getAppCustomersOffline_sources()
@@ -80,7 +82,6 @@ Page({
})
}
})
}
}
@@ -375,22 +376,23 @@ Page({
title: '请输入正确的手机号码',
icon: 'none'
})
}else if(that.data.car_id == '' ){
wx.showToast({
title: '请选择车系车型',
icon: 'none'
})
}else if(that.data.v_id == '' ){
wx.showToast({
title: '请选择车辆版本',
icon: 'none'
})
}else if(that.data.color_id == '' ){
wx.showToast({
title: '请选择车身颜色',
icon: 'none'
})
}
}
// else if(that.data.car_id == '' ){
// wx.showToast({
// title: '请选择车系车型',
// icon: 'none'
// })
// }else if(that.data.v_id == '' ){
// wx.showToast({
// title: '请选择车辆版本',
// icon: 'none'
// })
// }else if(that.data.color_id == '' ){
// wx.showToast({
// title: '请选择车身颜色',
// icon: 'none'
// })
// }
// else if(that.data.name==that.data.baseinfo.name.value&&that.data.mobile==that.data.baseinfo.mobile.value&&that.data.of_id==that.data.baseinfo.of_id.of_id&&that.data.of2_id==that.data.baseinfo.of_id.of2_id&&that.data.car_id==that.data.baseinfo.car_id.value&&that.data.v_id==that.data.baseinfo.v_id.value&&that.data.color_id==that.data.baseinfo.color_id.value&&that.data.buy_time==that.data.baseinfo.buy_time.value){
// wx.showToast({
// title: '好像没改什么',
@@ -417,15 +419,15 @@ Page({
if(that.data.of2_id != that.data.baseinfo.of_id.of2_id){
params['of2_id'] = that.data.of2_id;
}
if(that.data.car_id != that.data.baseinfo.car_id.value){
params['car_id'] = that.data.car_id;
}
if(that.data.v_id != that.data.baseinfo.v_id.value){
params['v_id'] = that.data.v_id;
}
if(that.data.color_id != that.data.baseinfo.color_id.value){
params['color_id'] = that.data.color_id;
}
// if(that.data.car_id != that.data.baseinfo.car_id.value){
// params['car_id'] = that.data.car_id;
// }
// if(that.data.v_id != that.data.baseinfo.v_id.value){
// params['v_id'] = that.data.v_id;
// }
// if(that.data.color_id != that.data.baseinfo.color_id.value){
// params['color_id'] = that.data.color_id;
// }
if(that.data.buy_time != that.data.baseinfo.buy_time.value){
params['buy_time'] = that.data.buy_time;
}
+3 -4
View File
@@ -13,7 +13,7 @@
<input class="wp100 height-100 text-right font-28" placeholder-class="color-ccc" type="number" placeholder="请输入客户手机号" bindinput='inputTx' data-key="mobile" name='mobile' value='{{mobile}}' />
</view>
</view>
<view class="relative bbs-1-eb pl190 last-b-none">
<!-- <view class="relative bbs-1-eb pl190 last-b-none">
<view class="absolute left-0 box-middle font-28 color-333">车辆品牌</view>
<view class="pt30 pb30 text-right font-28 color-666">
<picker bindchange="changeBrand" value="{{brandIndex}}" range="{{brandArray}}">
@@ -52,7 +52,7 @@
<i class="iconfont ml5 icon-gengduo"></i>
</picker>
</view>
</view>
</view> -->
<view class="relative bbs-1-eb last-b-none pl140 font-28">
<view class="absolute left-0 box-middle">线索来源</view>
<view class="pt30 pb30 text-right font-28 color-666">
@@ -73,7 +73,7 @@
</picker>
</view>
</view>
<view class="relative pl190">
<view class="relative bbs-1-eb last-b-none pl190">
<view class="absolute left-0 box-middle font-28 color-333">预计购车时间</view>
<view class="pt30 pb30 text-right font-28 color-666">
<picker bindchange="changeTime" value="{{timeIndex}}" range="{{timeArray}}">
@@ -84,7 +84,6 @@
</view>
</view>
<view class="mt10 pt20 pb20 bg-e3f5f3 font-32 text-center ulib-r10">客户标签</view>
<block wx:for='{{taglList}}' wx:for-item='list' wx:for-index='i' wx:key='i'>
<view class="relative mt40">
<view class="font-28">{{list.name}}</view>
+14 -14
View File
@@ -18,9 +18,9 @@ Page({
e_time:'',//结束时间
if_driver:'',//是否试驾
level:'',//客户顶级
brand_id:'',//品牌
s_id:'',//车型id
v_id:'',//车辆版本id
// brand_id:'',//品牌
// s_id:'',//车型id
// v_id:'',//车辆版本id
cfrom:'',//客户来源
o_type:'',//排序类型
isShowfilter:false,//是否显示筛查
@@ -215,15 +215,15 @@ Page({
if(this.data.level != ''){
params['level'] = this.data.level;
}
if(this.data.brand_id != ''){
params['brand_id'] = this.data.brand_id;
}
if(this.data.s_id != ''){
params['s_id'] = this.data.s_id;
}
if(this.data.v_id != ''){
params['v_id'] = this.data.v_id;
}
// if(this.data.brand_id != ''){
// params['brand_id'] = this.data.brand_id;
// }
// if(this.data.s_id != ''){
// params['s_id'] = this.data.s_id;
// }
// if(this.data.v_id != ''){
// params['v_id'] = this.data.v_id;
// }
if(this.data.cfrom != ''){
params['cfrom'] = this.data.cfrom;
}
@@ -510,8 +510,8 @@ Page({
e_time:'',
if_driver:'',
level:'',
brand_id:'',
s_id:'',
// brand_id:'',
// s_id:'',
cfrom:'',
of_id:'',
of2_id:'',
+2 -2
View File
@@ -165,7 +165,7 @@
</picker>
</view>
</view>
<view class="relative bbs-1-eb pl190 last-b-none">
<!-- <view class="relative bbs-1-eb pl190 last-b-none">
<view class="absolute left-0 box-middle font-28 color-333">车辆品牌</view>
<view class="pt25 pb25 text-right font-28 color-666">
<picker bindchange="changeBrand" value="{{brandIndex}}" range="{{brandArray}}">
@@ -184,7 +184,7 @@
<i class="iconfont ml5 icon-gengduo"></i>
</picker>
</view>
</view>
</view> -->
<view class="relative bbs-1-eb pl190 last-b-none">
<view class="absolute left-0 box-middle font-28 color-333">客户来源</view>
<view class="pt25 pb25 text-right font-28 color-666">