|
|
@@ -7,8 +7,14 @@
|
|
|
</view>
|
|
|
|
|
|
<view class="input-wrap_box">
|
|
|
+
|
|
|
+ <view @click="setSearchType" style="font-size:30rpx;margin-right:10rpx;color:#666666">
|
|
|
+ <text>{{searchTypeName}}</text>
|
|
|
+ <i class="iconfont iconsanjiao_xia"></i>
|
|
|
+ </view>
|
|
|
+
|
|
|
<view>
|
|
|
- <AppSearchModule placeholder="请输入客户名称,支持拼音首字母" @search="searchFn"/>
|
|
|
+ <AppSearchModule placeholder="请输入客户名称,支持拼音首字母" @input="searchFn"/>
|
|
|
</view>
|
|
|
|
|
|
<view class="select-dn_bx">
|
|
|
@@ -183,6 +189,8 @@ export default {
|
|
|
categoryId: "",
|
|
|
usageId: "",
|
|
|
},
|
|
|
+ searchType:0,
|
|
|
+ searchTypeName:'客户',
|
|
|
};
|
|
|
},
|
|
|
onPullDownRefresh() {
|
|
|
@@ -224,6 +232,21 @@ export default {
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
+ setSearchType(){
|
|
|
+ let that = this
|
|
|
+ uni.showActionSheet({
|
|
|
+ itemList: ['搜索类型:', '客户', '编号'],
|
|
|
+ success: function (respond) {
|
|
|
+ let currentIndex = respond.tapIndex
|
|
|
+ if(currentIndex == 0){
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ that.searchType = Number(currentIndex) - 1
|
|
|
+ that.searchTypeName = that.searchType == 0 ? '客户' : '编号'
|
|
|
+ that.searchFn()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
selectTime(type) {
|
|
|
(this.customizationTime = [time, time]),
|
|
|
(this.customizationTimeType = type),
|
|
|
@@ -416,6 +439,7 @@ export default {
|
|
|
status: this.tabs[this.tabIndex].id,
|
|
|
name: this.seekVal,
|
|
|
page: this.list.page,
|
|
|
+ searchType:this.searchType,
|
|
|
}).then((res) => {
|
|
|
this.completes(res);
|
|
|
if (this.$util.isEmpty(res.data)){
|
|
|
@@ -497,7 +521,7 @@ page{
|
|
|
padding-bottom: 1px;
|
|
|
overflow: hidden;
|
|
|
.select-dn_bx {
|
|
|
- padding-left: 48px;
|
|
|
+ padding-left: 18px;
|
|
|
}
|
|
|
.app-tabs {
|
|
|
position: fixed;
|
|
|
@@ -514,7 +538,7 @@ page{
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
padding: 0 30px;
|
|
|
- & > view:nth-child(1) {
|
|
|
+ & > view:nth-child(2) {
|
|
|
flex: 1;
|
|
|
}
|
|
|
}
|