线索来源 预计购车时间改必填

This commit is contained in:
老叶
2022-03-24 14:23:49 +08:00
parent a0d379cb18
commit e38eba359c
2 changed files with 38 additions and 6 deletions
+20 -6
View File
@@ -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 => {
//刷新列表页
+18
View File
@@ -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: '请选择车系车型',