更新
This commit is contained in:
parent
780a3a9a16
commit
b1fba5d056
@ -36,15 +36,15 @@
|
||||
<view class="three_" @click="goordercount">
|
||||
<view class="three_box1">
|
||||
<view class="">当日订单</view>
|
||||
<view class="num_">{{ threenum.todayOrderNum }}</view>
|
||||
<view class="num_">{{ threenum.allNum }}</view>
|
||||
</view>
|
||||
<view class="three_box2">
|
||||
<view class="">已完成</view>
|
||||
<view class="num_">{{ threenum.workedNum }}</view>
|
||||
<view class="num_">{{ threenum.ywcNum }}</view>
|
||||
</view>
|
||||
<view class="three_box3">
|
||||
<view class="">未完成</view>
|
||||
<view class="num_">{{ threenum.uncompletedNum }}</view>
|
||||
<view class="num_">{{ threenum.jxzNum }}</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
@ -113,15 +113,19 @@
|
||||
<view class="hang_"></view>
|
||||
<view class="list_">
|
||||
<view class="title_">预约记录</view>
|
||||
<view v-if="goodsList.length == 0">
|
||||
<u-empty
|
||||
mode="list"
|
||||
icon="http://www.nuoyunr.com/lananRsc/detection/qs.png"
|
||||
>
|
||||
</u-empty>
|
||||
|
||||
<view style="margin-bottom: 30rpx;">
|
||||
<u-search placeholder="请输入车牌号或手机号" v-model="phoneNum" @search="pageNum=1;goodsList=[];getappointment()"
|
||||
@custom="pageNum=1;goodsList=[];getappointment()" @change="clearTime()"></u-search>
|
||||
</view>
|
||||
<view class="box_" v-for="(item,index) in goodsList" :key="index" v-else>
|
||||
<view v-if="goodsList.length == 0" style="background-color: #F7F8FC;padding: 35rpx 0;">
|
||||
<u-empty mode="list" icon="http://www.nuoyunr.com/lananRsc/detection/qs.png">
|
||||
</u-empty>
|
||||
</view>
|
||||
<!-- 使用 scroll-view 包裹 SchoolInfo 组件 -->
|
||||
<scroll-view class="school-scroll-view" scroll-y @scrolltolower="onReachBottomCus"
|
||||
:style="{ height: scrollHeight + 'px' }" refresher-enabled @refresherrefresh="onRefresherrefresh"
|
||||
:refresher-triggered="isTriggered" v-else>
|
||||
<view class="box_" v-for="(item,index) in goodsList" :key="index">
|
||||
<view style="display: flex;justify-content: space-between;">
|
||||
<view class="box_ds">
|
||||
<view class="box_title">{{ item.goodsTitle }}</view>
|
||||
@ -139,7 +143,8 @@
|
||||
<image src="/static/imgs/car.png" style="width: 36rpx; height: 36rpx; " mode=""></image>
|
||||
<view class="size_">车牌号:{{ item.carNo || '' }}</view>
|
||||
</view>
|
||||
<image src="/static/imgs/tel.png" style="width: 36rpx; height: 36rpx; " @click="gettel(item)" mode=""></image>
|
||||
<image src="/static/imgs/tel.png" style="width: 36rpx; height: 36rpx; " @click="gettel(item)"
|
||||
mode=""></image>
|
||||
</view>
|
||||
<view class="bd">
|
||||
<view class="left_">预约人</view>
|
||||
@ -158,9 +163,11 @@
|
||||
<view class="right_">自来客户</view>
|
||||
</view>
|
||||
<view class="bd">
|
||||
<view class="" style="color:rgb(60, 156, 255);" @click="previewImage(item.driverLicenesImg)" v-if="item.driverLicenesImg">查看行驶证</view>
|
||||
<view class="" style="color:rgb(60, 156, 255);" @click="previewImage(item.driverLicenesImg)"
|
||||
v-if="item.driverLicenesImg">查看行驶证</view>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
|
||||
</view>
|
||||
<!-- 底部 -->
|
||||
@ -170,10 +177,15 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {getStorageWithExpiry, setStorageWithExpiry} from "@/utils/auth";
|
||||
import {
|
||||
getStorageWithExpiry,
|
||||
setStorageWithExpiry
|
||||
} from "@/utils/auth";
|
||||
import request from "@/utils/request";
|
||||
import config from "@/config";
|
||||
import {formatDateChinese} from "@/utils/utils";
|
||||
import {
|
||||
formatDateChinese
|
||||
} from "@/utils/utils";
|
||||
|
||||
export default {
|
||||
data() {
|
||||
@ -186,6 +198,7 @@ export default {
|
||||
warnMsg: [],
|
||||
chuan: '',
|
||||
titlemodeal: '通知',
|
||||
phoneNum: '',
|
||||
isWorking: false,
|
||||
user: {},
|
||||
baseUrl: '',
|
||||
@ -217,6 +230,8 @@ export default {
|
||||
totalPages: 0,
|
||||
timer: null,
|
||||
timer2: null,
|
||||
isTriggered: false,
|
||||
scrollHeight: 0,
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
@ -267,26 +282,85 @@ export default {
|
||||
// this.getappointment()
|
||||
|
||||
},
|
||||
onPullDownRefresh() {
|
||||
console.log("刷新");
|
||||
uni.stopPullDownRefresh()
|
||||
},
|
||||
onReachBottom() {
|
||||
if (this.pageNum >= this.totalPages) {
|
||||
uni.showToast({
|
||||
title: '没有下一页数据',
|
||||
icon: 'none'
|
||||
})
|
||||
} else {
|
||||
this.pageNum++
|
||||
this.getappointment()
|
||||
clearInterval(this.timer);
|
||||
this.timer = null;
|
||||
}
|
||||
// onPullDownRefresh() {
|
||||
// console.log("刷新");
|
||||
// uni.stopPullDownRefresh()
|
||||
// },
|
||||
// onReachBottom() {
|
||||
// if (this.pageNum >= this.totalPages) {
|
||||
// uni.showToast({
|
||||
// title: '没有下一页数据',
|
||||
// icon: 'none'
|
||||
// })
|
||||
// } else {
|
||||
// this.pageNum++
|
||||
// this.getappointment()
|
||||
// clearInterval(this.timer);
|
||||
// this.timer = null;
|
||||
// }
|
||||
// },// onPullDownRefresh() {
|
||||
// console.log("刷新");
|
||||
// uni.stopPullDownRefresh()
|
||||
// },
|
||||
// onReachBottom() {
|
||||
// if (this.pageNum >= this.totalPages) {
|
||||
// uni.showToast({
|
||||
// title: '没有下一页数据',
|
||||
// icon: 'none'
|
||||
// })
|
||||
// } else {
|
||||
// this.pageNum++
|
||||
// this.getappointment()
|
||||
// clearInterval(this.timer);
|
||||
// this.timer = null;
|
||||
// }
|
||||
// },
|
||||
onReady() {
|
||||
// 动态计算滚动区域高度
|
||||
this.calculateScrollHeight();
|
||||
},
|
||||
|
||||
methods: {
|
||||
formatDateChinese,
|
||||
calculateScrollHeight() {
|
||||
// 获取屏幕高度
|
||||
const screenHeight = uni.getSystemInfoSync().windowHeight;
|
||||
// 获取顶部区域高度
|
||||
const topHeight = 360;
|
||||
// 计算滚动区域高度
|
||||
this.scrollHeight = screenHeight - topHeight;
|
||||
},
|
||||
clearTime() {
|
||||
console.log('只能够了');
|
||||
clearInterval(this.timer);
|
||||
this.timer = null;
|
||||
},
|
||||
/**
|
||||
* 上滑加载数据
|
||||
*/
|
||||
onReachBottomCus() {
|
||||
//判断 如果页码*页容量大于等于总条数,提示该页数据加载完毕
|
||||
if (this.pageNum >= this.totalPages) {
|
||||
uni.$u.toast('没有更多数据了')
|
||||
return
|
||||
}
|
||||
//页码+1,调用获取数据的方法获取第二页数据
|
||||
this.pageNum++
|
||||
//此处调用自己获取数据列表的方法
|
||||
this.getappointment()
|
||||
// 清理定时器
|
||||
this.clearTime()
|
||||
},
|
||||
/**
|
||||
* 下拉刷新数据
|
||||
*/
|
||||
onRefresherrefresh() {
|
||||
this.isTriggered = true
|
||||
this.pageNum = 1
|
||||
this.total = 0
|
||||
this.schoolList = []
|
||||
this.getappointment()
|
||||
},
|
||||
goInternalManagement() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/manage/internalManagement'
|
||||
@ -377,8 +451,7 @@ export default {
|
||||
uni.openDocument({
|
||||
filePath: filePath,
|
||||
showMenu: true,
|
||||
success: function (res) {
|
||||
}
|
||||
success: function(res) {}
|
||||
});
|
||||
}
|
||||
});
|
||||
@ -508,22 +581,26 @@ export default {
|
||||
}
|
||||
// 中间统计
|
||||
let reszj = await request({
|
||||
url: '/partnerOwn/partner/statisticsInfo?partnerId=' + this.partnerId,
|
||||
url: '/partnerOwn/partner/staticsTable2',
|
||||
method: 'get',
|
||||
})
|
||||
let nums = {
|
||||
orderAmount: reszj.data.orderAmount / 100,
|
||||
orderNum: reszj.data.orderNum,
|
||||
todayOrderAmount: reszj.data.todayOrderAmount / 100,
|
||||
todayOrderNum: reszj.data.todayOrderNum,
|
||||
workedNum: reszj.data.workedNum,
|
||||
workingNum: reszj.data.workingNum,
|
||||
srlNum: reszj.data.srlNum,
|
||||
hgNum: reszj.data.hgNum,
|
||||
uncompletedNum: reszj.data.uncompletedNum,
|
||||
|
||||
pamars: {
|
||||
startTime: new Date(),
|
||||
endTime: new Date()
|
||||
}
|
||||
this.threenum = nums
|
||||
})
|
||||
// let nums = {
|
||||
// orderAmount: reszj.data.orderAmount / 100,
|
||||
// orderNum: reszj.data.orderNum,
|
||||
// todayOrderAmount: reszj.data.todayOrderAmount / 100,
|
||||
// todayOrderNum: reszj.data.todayOrderNum,
|
||||
// workedNum: reszj.data.workedNum,
|
||||
// workingNum: reszj.data.workingNum,
|
||||
// srlNum: reszj.data.srlNum,
|
||||
// hgNum: reszj.data.hgNum,
|
||||
// uncompletedNum: reszj.data.uncompletedNum,
|
||||
|
||||
// }
|
||||
this.threenum = reszj.data
|
||||
|
||||
|
||||
// 下方订单信息
|
||||
@ -564,6 +641,7 @@ export default {
|
||||
let total = res.total
|
||||
this.totalPages = Math.ceil(total / this.pageSize);
|
||||
}
|
||||
this.isTriggered = false
|
||||
},
|
||||
timeWeekFormat() {
|
||||
const now = new Date();
|
||||
@ -595,8 +673,7 @@ image {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.content {
|
||||
}
|
||||
.content {}
|
||||
|
||||
|
||||
.top_ {
|
||||
@ -834,9 +911,12 @@ image {
|
||||
font-size: 32rpx;
|
||||
color: #101A3E;
|
||||
margin-right: 10rpx;
|
||||
white-space: nowrap; /* 禁止换行 */
|
||||
overflow: hidden; /* 超出部分隐藏 */
|
||||
text-overflow: ellipsis; /* 超出部分显示省略号 */
|
||||
white-space: nowrap;
|
||||
/* 禁止换行 */
|
||||
overflow: hidden;
|
||||
/* 超出部分隐藏 */
|
||||
text-overflow: ellipsis;
|
||||
/* 超出部分显示省略号 */
|
||||
}
|
||||
|
||||
.size_ {
|
||||
|
Loading…
Reference in New Issue
Block a user