客户购车时间
This commit is contained in:
@@ -21,7 +21,11 @@ Page({
|
||||
timeIndex:-1,//预计购车时间索引
|
||||
submitFlag:false,
|
||||
|
||||
status:'',//状态
|
||||
status:0,//状态
|
||||
statuslist:[
|
||||
'未见客户',
|
||||
'到店客户',
|
||||
],
|
||||
of_id:'',
|
||||
of2_id:'',
|
||||
of1Index:-1,
|
||||
@@ -119,7 +123,7 @@ Page({
|
||||
_.apiQuery.getAppCustomersFilter().then(res => {
|
||||
let timeArray = []
|
||||
res.data.buy_time.forEach(item => {
|
||||
timeArray.push(item + '天')
|
||||
timeArray.push(item.name)
|
||||
})
|
||||
this.setData({
|
||||
timeArray:timeArray,
|
||||
@@ -137,6 +141,21 @@ Page({
|
||||
})
|
||||
},
|
||||
|
||||
//选择状态
|
||||
changeStatus(e) {
|
||||
if(this.data.status != e.detail.value){
|
||||
this.setData({
|
||||
of_id:'',
|
||||
of2_id:'',
|
||||
of1Index:-1,
|
||||
of2Index:-1,
|
||||
of2Arr:[],
|
||||
status:e.detail.value,
|
||||
})
|
||||
this.getAppCustomersOffline_sources()
|
||||
}
|
||||
},
|
||||
|
||||
//选择品牌
|
||||
changeBrand(e) {
|
||||
if(this.data.brandIndex != e.detail.value && e.detail.value >= 0){
|
||||
@@ -220,7 +239,7 @@ Page({
|
||||
//预计购车时间
|
||||
changeTime(e) {
|
||||
this.setData({
|
||||
buy_time:this.data.timeList[e.detail.value],
|
||||
buy_time:this.data.timeList[e.detail.value].id,
|
||||
timeIndex:e.detail.value,
|
||||
})
|
||||
},
|
||||
@@ -258,6 +277,7 @@ Page({
|
||||
submitFlag: true,
|
||||
})
|
||||
let params = {};
|
||||
params['status'] = that.data.status;
|
||||
params['name'] = that.data.name;
|
||||
params['mobile'] = that.data.mobile;
|
||||
params['car_id'] = that.data.car_id;
|
||||
@@ -316,7 +336,7 @@ Page({
|
||||
timeIndex:-1,//预计购车时间索引
|
||||
submitFlag:false,
|
||||
|
||||
status:'',//状态
|
||||
|
||||
of_id:'',
|
||||
of2_id:'',
|
||||
of1Index:-1,
|
||||
@@ -341,9 +361,7 @@ Page({
|
||||
//线索来源
|
||||
getAppCustomersOffline_sources(){
|
||||
let params = {};
|
||||
if(this.data.status != ''){
|
||||
params['status'] = this.data.status;
|
||||
}
|
||||
params['status'] = this.data.status;
|
||||
_.apiQuery.getAppCustomersOffline_sources(params).then(res => {
|
||||
let of1Arr = []
|
||||
res.data.forEach(item => {
|
||||
|
||||
@@ -1,6 +1,15 @@
|
||||
<view class="container">
|
||||
<view class="inner30">
|
||||
<view class="pl40 pr40 pt10 pb10 relative ulib-r10 box-shadow-000-10-10 overflowhidden">
|
||||
<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 text-nowrap">
|
||||
<picker bindchange="changeStatus" value="{{status}}" range="{{statuslist}}">
|
||||
<text>{{statuslist[status]}}</text>
|
||||
<i class="iconfont ml5 icon-gengduo"></i>
|
||||
</picker>
|
||||
</view>
|
||||
</view>
|
||||
<view class="relative bbs-1-eb last-b-none pl140 font-28">
|
||||
<view class="absolute left-0 box-middle">客户姓名</view>
|
||||
<view>
|
||||
|
||||
@@ -255,7 +255,7 @@ Page({
|
||||
|
||||
let timeArray = []
|
||||
res.data.buy_time.forEach(item => {
|
||||
timeArray.push(item + '天')
|
||||
timeArray.push(item.name)
|
||||
})
|
||||
this.setData({
|
||||
timeArray:timeArray,
|
||||
@@ -264,7 +264,7 @@ Page({
|
||||
|
||||
if(this.data.baseinfo.buy_time.value != 0){
|
||||
res.data.buy_time.forEach((item,index) => {
|
||||
if(item == this.data.baseinfo.buy_time.value){
|
||||
if(item.id == this.data.baseinfo.buy_time.value){
|
||||
this.setData({
|
||||
buy_time:this.data.baseinfo.buy_time.value,
|
||||
timeIndex:index,
|
||||
@@ -355,7 +355,7 @@ Page({
|
||||
//预计购车时间
|
||||
changeTime(e) {
|
||||
this.setData({
|
||||
buy_time:this.data.timeList[e.detail.value],
|
||||
buy_time:this.data.timeList[e.detail.value].id,
|
||||
timeIndex:e.detail.value,
|
||||
})
|
||||
},
|
||||
|
||||
@@ -43,7 +43,10 @@
|
||||
|
||||
<block wx:for='{{list}}' wx:key='index'>
|
||||
<view class="inner40 relative ulib-r10 box-shadow-000-10-10 mb30 overflowhidden" bindtap="pushLink" data-url="/pages/inventory/detail/index?id={{item.id}}">
|
||||
<view class="font-40" wx:if="{{item.biz_name}}">{{item.biz_name}}</view>
|
||||
<view class="relative {{tabs_id == 1?'pr150':''}}">
|
||||
<view class="font-40" wx:if="{{item.biz_name}}">{{item.biz_name}}</view>
|
||||
<view class="absolute box-middle right-0 pt5 pb5 pl15 pr15 bg-f9394d font-26 color-fff ulib-r10" wx:if="{{tabs_id == 1}}">立即盘点</view>
|
||||
</view>
|
||||
<view class="mt10 pb10">
|
||||
<image class='wp100' src='{{item.car_cor_img}}' mode='widthFix'></image>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user