|
@@ -7,8 +7,8 @@
|
|
<image class="filter-icon" src="@/static/filter.png"></image>
|
|
<image class="filter-icon" src="@/static/filter.png"></image>
|
|
</view>
|
|
</view>
|
|
<scroll-view class="list" scroll-y :scroll-top="scrollTop" @scrolltolower="onreachBottom">
|
|
<scroll-view class="list" scroll-y :scroll-top="scrollTop" @scrolltolower="onreachBottom">
|
|
- <view class="list-box" v-for="item in 12" :key="item">
|
|
|
|
- <view class="list-time">2020-01-13 15:25:25</view>
|
|
|
|
|
|
+ <view class="list-box" v-for="item in listdata" :key="item.id">
|
|
|
|
+ <view class="list-time">{{item.deliveryTime}}</view>
|
|
<view class="list-cons">
|
|
<view class="list-cons">
|
|
<view class="list-imgs">
|
|
<view class="list-imgs">
|
|
<u-image width="80rpx" height="80rpx" src="/static/GLASS.png"></u-image>
|
|
<u-image width="80rpx" height="80rpx" src="/static/GLASS.png"></u-image>
|
|
@@ -16,12 +16,12 @@
|
|
</view>
|
|
</view>
|
|
<view class="list-md">
|
|
<view class="list-md">
|
|
<view>
|
|
<view>
|
|
- <text class="red">254</text> 克
|
|
|
|
|
|
+ <text class="red">{{item.rubbishWeight}}</text> 克
|
|
</view>
|
|
</view>
|
|
- <view>13709146191</view>
|
|
|
|
|
|
+ <view>{{item.customerMobile}}</view>
|
|
</view>
|
|
</view>
|
|
<view class="list-end">
|
|
<view class="list-end">
|
|
- <text class="red">32</text>
|
|
|
|
|
|
+ <text class="red">{{item.goldNum}}</text>
|
|
<u-image width="40rpx" height="40rpx" src="/static/ledou.png"></u-image>
|
|
<u-image width="40rpx" height="40rpx" src="/static/ledou.png"></u-image>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -36,6 +36,7 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import searchModal from './searchModal.vue'
|
|
import searchModal from './searchModal.vue'
|
|
|
|
+ import {getDeliveryLog} from '@/api/delivery.js'
|
|
export default {
|
|
export default {
|
|
components: { searchModal },
|
|
components: { searchModal },
|
|
data() {
|
|
data() {
|
|
@@ -63,8 +64,33 @@
|
|
this.total = 0
|
|
this.total = 0
|
|
this.searchHandle(1)
|
|
this.searchHandle(1)
|
|
},
|
|
},
|
|
- searchHandle(){
|
|
|
|
-
|
|
|
|
|
|
+ // 搜索查询
|
|
|
|
+ searchHandle (pageNo) {
|
|
|
|
+ this.status = "loading"
|
|
|
|
+ pageNo ? this.pageNo = pageNo : null
|
|
|
|
+ getDeliveryLog({
|
|
|
|
+ pageNo: this.pageNo,
|
|
|
|
+ pageSize: this.pageSize,
|
|
|
|
+ beginDate: this.searchForm.beginDate,
|
|
|
|
+ endDate: this.searchForm.endDate,
|
|
|
|
+ customerMobile: this.searchForm.customerMobile
|
|
|
|
+ }).then(res => {
|
|
|
|
+ if (res.status == 200) {
|
|
|
|
+ if(this.pageNo>1){
|
|
|
|
+ this.listdata = this.listdata.concat(res.data.list || [])
|
|
|
|
+ }else{
|
|
|
|
+ this.listdata = res.data.list || []
|
|
|
|
+ this.scrollTop = 0
|
|
|
|
+ }
|
|
|
|
+ this.total = res.data.count || 0
|
|
|
|
+ this.noDataText = '暂无数据'
|
|
|
|
+ } else {
|
|
|
|
+ this.noDataText = res.message
|
|
|
|
+ this.listdata = []
|
|
|
|
+ this.total = 0
|
|
|
|
+ }
|
|
|
|
+ this.status = "loadmore"
|
|
|
|
+ })
|
|
},
|
|
},
|
|
// scroll-view到底部加载更多
|
|
// scroll-view到底部加载更多
|
|
onreachBottom() {
|
|
onreachBottom() {
|