修改订单和客户筛选

This commit is contained in:
lcc
2024-12-06 08:26:20 +08:00
parent 66c274c446
commit 6729bd8eaa
7 changed files with 128 additions and 20 deletions
+1 -1
View File
@@ -23,7 +23,7 @@
<!-- <view class="color-fff">请输入品牌名</view> -->
<listmore wx:else isMiddle="{{true}}" noDataMsg="请输入品牌名" isNoData="{{true}}"></listmore>
</view>
<view class="pb40 pl80 pr80 fn-flex">
<view class="pb150 pl80 pr80 fn-flex">
<button class="btn btn-36afa2 color-fff fn-flex-item" style="transition: .2s all ease;" hover-class="btn-36afa2-hover" bindtap="exit" disabled="{{!(cur>-1)}}">我选好了</button>
<button class="btn btn-f0 color-ccc ml30" style="transition: .2s all ease;" hover-class="btn-f0-hover" bindtap="cancel">取消</button>
</view>
+37 -10
View File
@@ -96,6 +96,13 @@ Page({
isShowCall:false,//是否显示拨打电话确认弹框
phoneNumber:'',//拨打的电话号码
brand_page_show:false,
brand_name:'',
brand_id: '',
series_id: -1, //车系id
modelArray: [],
modelIndex: -1, //车系车型索引
},
onLoad(options) {
for (let key in options) {
@@ -277,12 +284,12 @@ 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.brand_id != ''){
params['brand_id'] = this.data.brand_id;
}
if(this.data.series_id != ''){
params['series_id'] = this.data.series_id;
}
// if(this.data.v_id != ''){
// params['v_id'] = this.data.v_id;
// }
@@ -524,7 +531,7 @@ Page({
changeModel(e) {
if(this.data.modelIndex != e.detail.value && e.detail.value >= 0){
this.setData({
s_id:this.data.modelList[e.detail.value].id,
series_id:this.data.modelList[e.detail.value].id,
modelIndex:e.detail.value,
})
}
@@ -583,8 +590,8 @@ Page({
e_time:'',
if_driver:'',
level:'',
// brand_id:'',
// s_id:'',
brand_id:'',
series_id:'',
cfrom:'',
of_id:'',
of2_id:'',
@@ -604,6 +611,7 @@ Page({
city_id:'',
countyIndex:-1,
county_id:'',
brand_name:'',
})
this.getAppCustomersTag()
},
@@ -1104,5 +1112,24 @@ Page({
})
this.getAppCustomersList()
},
bindShowBrand(){
this.setData({
brand_page_show:true
})
},
//获取品牌信息
getBrandData(e) {
console.log(e.detail)
if (e.detail.index > -1 && e.detail.item) {
this.setData({
brand_id: e.detail.item.id,
brand_name: e.detail.item.name,
brandIndex: e.detail.index,
series_id: '', //车系id
modelArray: [],
modelIndex: -1, //车系车型索引
})
this.getAppSeries()
}
},
})
+2 -1
View File
@@ -2,6 +2,7 @@
"navigationBarTitleText": "客户",
"enablePullDownRefresh": true,
"usingComponents": {
"lcb-changeMobile": "/components/changeMobile/index"
"lcb-changeMobile": "/components/changeMobile/index",
"brandSelect": "/components/brandSelect/index"
}
}
+49 -4
View File
@@ -298,7 +298,7 @@
</block>
</view>
</view>
<!-- 隐藏客户画像搜索
<block wx:for='{{taglList}}' wx:for-item='list' wx:for-index='i' wx:key='i'>
<view class="relative mt40">
<view class="font-28">
@@ -318,7 +318,27 @@
</view>
</view>
</block>
-->
<view class="relative bbs-1-eb pl190">
<view class="absolute left-0 box-middle font-28 color-333">车辆品牌</view>
<view class="pt15 pb15 text-right font-28 color-666">
<view class="pt15 pb15 text-right font-28 color-666" bindtap="bindShowBrand">
<text wx:if="{{brand_name}}}">{{brand_name||'请选择'}}</text>
<text class="color-ccc" wx:else>请选择</text>
<i class="iconfont ml5 icon-gengduo"></i>
</view>
</view>
</view>
<view class="relative bbs-1-eb pl190" wx:if="{{brandIndex != -1}}">
<view class="absolute left-0 box-middle font-28 color-333">车系车型</view>
<view class="pt30 pb30 text-right font-28 color-666">
<picker bindchange="changeModel" value="{{modelIndex}}" range="{{modelArray}}">
<text class="color-ccc" wx:if="{{modelIndex == -1}}">请选择</text>
<text wx:else>{{modelArray[modelIndex]}}</text>
<i class="iconfont ml5 icon-gengduo"></i>
</picker>
</view>
</view>
</view>
<view class="pt50 pb100"></view>
</scroll-view>
@@ -386,6 +406,30 @@
</view>
</lcb-msg>
<lcb-msg isShow="{{isShowTimePicker}}" isCustomTabBar="{{true}}">
<view slot="content">
<view class="">
<view class="relative pt30 pb30 text-center font-30">
<view class="color-666">计划回访时间</view>
<i bindtap="optShowTimePicker" class="absolute right-0 box-middle mr30 iconfont icon-guanbi1"></i>
</view>
<view class="fn-flex pt30 pb30 bbs-1-eb text-center font-24">
<block wx:for="{{weekList}}" wx:key="index">
<view class="fn-flex-item">{{item}}</view>
</block>
</view>
<view class="pb180 relative">
<view class="absolute top-0 box-center mt130 font-180 color-f8">{{cMonth}}</view>
<view class="relative fn-flex fn-flex-wrap pt30 pb30 text-center font-24 z-index-2">
<block wx:for="{{dateList}}" wx:key="index">
<view bindtap="{{item.isopt?'optday':''}}" data-index="{{index}}" class="datecell ulib-r10 {{nextIndex == index?'active':''}} {{item.isopt?'color-1a':'color-ccc'}}">{{item.day}}</view>
</block>
</view>
</view>
</view>
</view>
</lcb-msg>
<!--
<page-container show="{{isShowTimePicker}}" round="{{true}}" overlay="true" duration="300" z-index="10000" position="bottom" close-on-slide-down="{{false}}" bindenter="onEnter" custom-style="false" overlay-style="false">
<view class="">
<view class="relative pt30 pb30 text-center font-30">
@@ -407,7 +451,7 @@
</view>
</view>
</page-container>
-->
<!-- 拨打电话 -->
<lcb-msg isShow="{{isShowCall}}" isCustomTabBar="{{true}}">
<view slot="content">
@@ -424,4 +468,5 @@
</button>
</view>
</view>
</lcb-msg>
</lcb-msg>
<brandSelect show="{{brand_page_show}}" bindleave="getBrandData"></brandSelect>
+26 -1
View File
@@ -35,6 +35,8 @@ Page({
brandIndex:-1,//车辆品牌索引
modelIndex:-1,//车系车型索引
levelIndex:-1,//车辆版本索引
brand_page_show:false,
brand_name:''
},
onLoad: function (options) {
for (let key in options) {
@@ -232,6 +234,7 @@ Page({
})
this.setData({
brand_name:'',
brand_id:'',
car_id:'',
v_id:'',
@@ -477,5 +480,27 @@ Page({
})
this.getAppCusorderList()
},
bindShowBrand(){
this.setData({
brand_page_show:true
})
},
//获取品牌信息
getBrandData(e) {
console.log(e.detail)
if (e.detail.index > -1 && e.detail.item) {
this.setData({
brand_id: e.detail.item.id,
brand_name: e.detail.item.name,
brandIndex: e.detail.index,
series_id: '', //车系id
modelArray: [],
modelIndex: -1, //车系车型索引
car_id: '', //车系id
carArray: [], //车辆版本列表
carIndex: -1, //车辆版本索引
})
this.getAppSeries()
}
},
})
+2 -1
View File
@@ -2,6 +2,7 @@
"navigationBarTitleText": "订单",
"enablePullDownRefresh": true,
"usingComponents": {
"lcb-changeMobile": "/components/changeMobile/index"
"lcb-changeMobile": "/components/changeMobile/index",
"brandSelect": "/components/brandSelect/index"
}
}
+11 -2
View File
@@ -208,12 +208,19 @@
</view>
<view class="relative bbs-1-eb pl190">
<view class="absolute left-0 box-middle font-28 color-333">车辆品牌</view>
<view class="pt30 pb30 text-right font-28 color-666">
<view class="pt15 pb15 text-right font-28 color-666">
<view class="pt15 pb15 text-right font-28 color-666" bindtap="bindShowBrand">
<text wx:if="{{brand_name}}}">{{brand_name||'请选择'}}</text>
<text class="color-ccc" wx:else>请选择</text>
<i class="iconfont ml5 icon-gengduo"></i>
</view>
<!--
<picker bindchange="changeBrand" value="{{brandIndex}}" range="{{brandArray}}">
<text class="color-ccc" wx:if="{{brandIndex == -1}}">请选择</text>
<text wx:else>{{brandArray[brandIndex]}}</text>
<i class="iconfont ml5 icon-gengduo"></i>
</picker>
-->
</view>
</view>
<view class="relative bbs-1-eb pl190" wx:if="{{brandIndex != -1}}">
@@ -264,4 +271,6 @@
<button disabled="{{submitFlag}}" bindtap="putAppCusorderV2Admins" class="fn-flex-item ml20 btn-36afa2 wp100 font-28 color-fff ulib-r750" hover-class="btn-36afa2-hover">确定</button>
</view>
</view>
</lcb-msg>
</lcb-msg>
<brandSelect show="{{brand_page_show}}" bindleave="getBrandData"></brandSelect>