线索来源 预计购车时间改必填
This commit is contained in:
@@ -263,6 +263,24 @@ Page({
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
else if (that.data.of_id == '' ) {
|
||||
wx.showToast({
|
||||
title: '请选择线索来源',
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
else if (that.data.sources[that.data.of1Index].list.length>0&&that.data.of2_id == '' ) {
|
||||
wx.showToast({
|
||||
title: '请选择'+that.data.sources[that.data.of1Index].name+'类型',
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
else if (that.data.buy_time == '' ) {
|
||||
wx.showToast({
|
||||
title: '请选择预计购车时间',
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
// else if(that.data.car_id == '' ){
|
||||
// wx.showToast({
|
||||
// title: '请选择车系车型',
|
||||
@@ -294,15 +312,11 @@ Page({
|
||||
// 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;
|
||||
}
|
||||
params['of_id'] = this.data.of_id;
|
||||
if(this.data.of2_id != ''){
|
||||
params['of2_id'] = this.data.of2_id;
|
||||
}
|
||||
if(this.data.buy_time != ''){
|
||||
params['buy_time'] = this.data.buy_time;
|
||||
}
|
||||
params['buy_time'] = this.data.buy_time;
|
||||
_.apiQuery.postAppCustomers(params).then(res => {
|
||||
|
||||
//刷新列表页
|
||||
|
||||
@@ -377,6 +377,24 @@ Page({
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
else if (that.data.of_id == '' ) {
|
||||
wx.showToast({
|
||||
title: '请选择线索来源',
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
else if (that.data.sources[that.data.of1Index].list.length>0&&that.data.of2_id == '' ) {
|
||||
wx.showToast({
|
||||
title: '请选择'+that.data.sources[that.data.of1Index].name+'类型',
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
else if (that.data.buy_time == '' ) {
|
||||
wx.showToast({
|
||||
title: '请选择预计购车时间',
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
// else if(that.data.car_id == '' ){
|
||||
// wx.showToast({
|
||||
// title: '请选择车系车型',
|
||||
|
||||
Reference in New Issue
Block a user