|
@@ -4,9 +4,9 @@
|
|
|
<u-popup v-model="isShow" class="search-popup" mode="right" @close="handleClose" length="85%">
|
|
|
<view class="search-title">筛选</view>
|
|
|
<u-form class="form-content" :model="form" ref="uForm" label-width="150">
|
|
|
- <u-form-item label="网点名称:" prop="bundleName" class="form-item"><u-input v-model="form.bundleName" :maxlength="30" placeholder="请输入网点名称" /></u-form-item>
|
|
|
- <u-form-item label="排序方式:" prop="custMobile" class="form-item">
|
|
|
- <view @tap="openSort=true" :style="{color: form.custMobile?null:'#c0c4cc'}">{{custMobileName}}</view>
|
|
|
+ <u-form-item label="网点名称:" prop="stationName" class="form-item"><u-input v-model="form.stationName" :maxlength="30" placeholder="请输入网点名称" /></u-form-item>
|
|
|
+ <u-form-item label="排序方式:" prop="orderType" class="form-item">
|
|
|
+ <view @tap="openSort=true" :style="{color: form.orderType?null:'#c0c4cc'}">{{orderTypeName}}</view>
|
|
|
</u-form-item>
|
|
|
</u-form>
|
|
|
<view class="uni-list-btns">
|
|
@@ -55,15 +55,15 @@ export default {
|
|
|
},
|
|
|
isShow: this.visible, // 显示隐藏
|
|
|
form: {
|
|
|
- bundleName: '', // 套餐名称
|
|
|
- custMobile: '', // 客户手机
|
|
|
+ stationName: '', // 套餐名称
|
|
|
+ orderType: '', // 客户手机
|
|
|
},
|
|
|
list: [
|
|
|
- { label: '按内置单箱体最大投放量降序', value: '11' },
|
|
|
- { label: '按网点可回收物投放总量降序', value: '22' }
|
|
|
+ { label: '按内置单箱体最大投放量降序', value: 'max' },
|
|
|
+ { label: '按网点可回收物投放总量降序', value: 'total' }
|
|
|
],
|
|
|
openSort: false, // 选择
|
|
|
- custMobileName: '请选择',
|
|
|
+ orderTypeName: '请选择',
|
|
|
selectDefault: [0], // 下拉默认选中项
|
|
|
};
|
|
|
},
|
|
@@ -73,8 +73,17 @@ export default {
|
|
|
methods: {
|
|
|
// 初始化数据
|
|
|
init(){
|
|
|
- this.form.bundleName = this.defaultParams.bundleName ? this.defaultParams.bundleName : ''
|
|
|
- this.form.custMobile = this.defaultParams.custMobile ? this.defaultParams.custMobile : ''
|
|
|
+ this.form.stationName = this.defaultParams.stationName ? this.defaultParams.stationName : ''
|
|
|
+ this.form.orderType = this.defaultParams.orderType ? this.defaultParams.orderType : ''
|
|
|
+ if(this.defaultParams.orderType){
|
|
|
+ this.list.map((item, index) => {
|
|
|
+ if(item.value == this.form.orderType){
|
|
|
+ this.orderTypeName = this.list[index].label
|
|
|
+ this.selectDefault[0] = index
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+ }
|
|
|
},
|
|
|
// 关闭弹窗
|
|
|
handleClose() {
|
|
@@ -83,8 +92,8 @@ export default {
|
|
|
// 查询
|
|
|
handleSearch() {
|
|
|
let params = {
|
|
|
- bundleName: this.form.bundleName,
|
|
|
- custMobile: this.form.custMobile,
|
|
|
+ stationName: this.form.stationName,
|
|
|
+ orderType: this.form.orderType,
|
|
|
};
|
|
|
this.$emit('refresh', params)
|
|
|
this.isShow = false
|
|
@@ -98,8 +107,8 @@ export default {
|
|
|
// 确定
|
|
|
confirm(v){
|
|
|
this.selectDefault = v
|
|
|
- this.form.custMobile = this.list[v[0]].value
|
|
|
- this.custMobileName = this.list[v[0]].label
|
|
|
+ this.form.orderType = this.list[v[0]].value
|
|
|
+ this.orderTypeName = this.list[v[0]].label
|
|
|
}
|
|
|
}
|
|
|
};
|