|
@@ -17,11 +17,13 @@
|
|
|
|
|
|
|
|
|
<!-- 搜索 -->
|
|
|
- <view class="searchBox">
|
|
|
+ <!-- <view class="searchBox">
|
|
|
<image src="../../static/img/icon_search.png" class="searchImg"></image>
|
|
|
<input type="text" class="searchInput" placeholder="请输入门店名称、联系人、手机号" v-model="searchValue"
|
|
|
@confirm="searchDone" />
|
|
|
- </view>
|
|
|
+ </view> -->
|
|
|
+ <searchBox placeholder="请输入门店名称、联系人、手机号" @search='search($event)'></searchBox>
|
|
|
+
|
|
|
|
|
|
<!-- 条件筛选 -->
|
|
|
<view class="siftBg">
|
|
@@ -54,7 +56,7 @@
|
|
|
<view v-for="(item,index) in shopData" :key="index">
|
|
|
|
|
|
<!-- shopBox -->
|
|
|
- <view class="shopBox" @click="goAppraise(item)" >
|
|
|
+ <view class="shopBox" @click="goAppraise(item)">
|
|
|
<view class=" shopTop">
|
|
|
|
|
|
<view class="shopName">{{item.ShopName}}</view>
|
|
@@ -63,9 +65,9 @@
|
|
|
<view class="type" v-if="item.State == 1">待提交</view>
|
|
|
<view class="type" v-if="item.State == 2">待作业</view>
|
|
|
<view class="type" v-if="item.State == 3">待点评</view>
|
|
|
- <view class="type" v-if="item.State == 4">待回复</view>
|
|
|
+ <view class="type" v-if="item.State == 4">待回复</view>
|
|
|
<view class="type" v-if="item.State == 5">已完成</view>
|
|
|
-
|
|
|
+
|
|
|
|
|
|
</view>
|
|
|
|
|
@@ -74,7 +76,8 @@
|
|
|
<!-- 第2行 -->
|
|
|
<view class="bottomView">
|
|
|
<!-- 运营经理 -->
|
|
|
- <view class="manager">{{item.ManagerName}} · {{item.CheckTime.slice(0,item.CheckTime.length-8)}}</view>
|
|
|
+ <view class="manager">{{item.ManagerName}} · {{item.CheckTime.slice(0,item.CheckTime.length-8)}}
|
|
|
+ </view>
|
|
|
<!-- 评分 -->
|
|
|
<view class="score" v-if="item.ShopScore">{{item.ShopScore}}分</view>
|
|
|
</view>
|
|
@@ -98,14 +101,16 @@
|
|
|
|
|
|
<script>
|
|
|
import timeChose from '@/components/timeChose/timeChose.vue'
|
|
|
+ import searchBox from '@/components/searchBox/searchBox.vue'
|
|
|
export default {
|
|
|
components: {
|
|
|
- timeChose
|
|
|
+ timeChose,
|
|
|
+ searchBox
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
tabIndex: 0,
|
|
|
- status: '',
|
|
|
+ status: '',
|
|
|
searchValue: '',
|
|
|
data: {
|
|
|
provinceCode: '',
|
|
@@ -128,28 +133,28 @@
|
|
|
timeShow: false,
|
|
|
starTime: '',
|
|
|
endTime: '',
|
|
|
- dateTime: null,
|
|
|
- isDirector:'',
|
|
|
+ dateTime: null,
|
|
|
+ isDirector: '',
|
|
|
}
|
|
|
},
|
|
|
- onShow() {
|
|
|
- this.isDirector = this.$common.isDirector()
|
|
|
-
|
|
|
- if(this.isDirector) {
|
|
|
- this.getManager()
|
|
|
+ onShow() {
|
|
|
+ this.isDirector = this.$common.isDirector()
|
|
|
+
|
|
|
+ if (this.isDirector) {
|
|
|
+ this.getManager()
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
this.page = 1
|
|
|
this.getShopData()
|
|
|
},
|
|
|
methods: {
|
|
|
timeClick() {
|
|
|
-
|
|
|
+
|
|
|
this.$refs.timepop.father();
|
|
|
},
|
|
|
- goAppraise(item){
|
|
|
+ goAppraise(item) {
|
|
|
uni.navigateTo({
|
|
|
- url:'reportDetail?id='+item.ID
|
|
|
+ url: 'reportDetail?id=' + item.ID
|
|
|
})
|
|
|
},
|
|
|
returnDate(e) {
|
|
@@ -162,7 +167,7 @@
|
|
|
this.dateTime = null
|
|
|
}
|
|
|
|
|
|
- this.page = 1;
|
|
|
+ this.page = 1;
|
|
|
this.getShopData()
|
|
|
},
|
|
|
tabClick(num) {
|
|
@@ -176,8 +181,9 @@
|
|
|
this.page = 1;
|
|
|
this.getShopData()
|
|
|
},
|
|
|
- searchDone(e) {
|
|
|
- this.searchValue = e.target.value
|
|
|
+ search(val) {
|
|
|
+ // console.log(val);
|
|
|
+ this.searchValue = val
|
|
|
this.page = 1
|
|
|
this.getShopData()
|
|
|
},
|
|
@@ -200,7 +206,7 @@
|
|
|
}
|
|
|
}
|
|
|
this.data.address = this.data.province + this.data.city + this.data.area
|
|
|
- }
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
|
@@ -211,9 +217,9 @@
|
|
|
},
|
|
|
bindPickerChange3(e) {
|
|
|
this.thirdIndex = e.target.value
|
|
|
- this.managerId = this.thirdArr[this.thirdIndex].ID
|
|
|
- if(e.target.value == 0){
|
|
|
- this.thirdIndex = null
|
|
|
+ this.managerId = this.thirdArr[this.thirdIndex].ID
|
|
|
+ if (e.target.value == 0) {
|
|
|
+ this.thirdIndex = null
|
|
|
}
|
|
|
this.page = 1
|
|
|
this.getShopData()
|
|
@@ -259,23 +265,22 @@
|
|
|
}
|
|
|
})
|
|
|
|
|
|
-
|
|
|
+
|
|
|
if (this.page == 1) {
|
|
|
this.shopData = list
|
|
|
} else {
|
|
|
this.shopData = this.shopData.concat(list)
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
- if(list.length < 10){
|
|
|
- this.noMoreShow = false
|
|
|
- }
|
|
|
- else {
|
|
|
- this.noMoreShow = true
|
|
|
+
|
|
|
+
|
|
|
+ if (list.length < 10) {
|
|
|
+ this.noMoreShow = false
|
|
|
+ } else {
|
|
|
+ this.noMoreShow = true
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
|
|
|
},
|
|
|
|