货无忧
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

314 lines
7.5 KiB

2 years ago
<template>
<u-navbar title="自提扫描" placeholder border=true :autoBack="true" leftIconSize='35'></u-navbar>
<view class="schbox">
<view>自提日期</view>
<view @click.stop='showCalendar' class="inputsr">
<input :value='datatime' disabled placeholder="请选择时间"/>
<view @click.stop="">
<u-icon @click.stop='showCalendar' style="margin-right: 10rpx;" v-if="!datatime" name="calendar" color="#999999" size="50"></u-icon>
<u-icon @click.stop="cleartime" style="margin-right: 10rpx;" v-else name="close-circle" color="#999999" size="40"></u-icon>
</view>
</view>
1 year ago
<view @click="init">
2 years ago
查询
</view>
</view>
<scroll-view scroll-y="true" class="scvbx">
<view class="mabxslist">
<view class="item" v-for="item in recordsList">
<view class="headtop">
<view class="type1s">
<view>
<text style="color: #90A0AF;">配车类型</text>{{item.item}}
</view>
<view>
<text style="color: #90A0AF;">配车状态</text>{{item.conditionStr}}
</view>
</view>
<view class="type1s">
<view>
<text style="color: #90A0AF;">车牌号</text>{{item.pickUpPlate}}
</view>
<view>
<text style="color: #90A0AF;">司机</text>{{item.consignee}}
</view>
</view>
<view class="type1s">
<view>
<text style="color: #90A0AF;">装御班组</text>A班组
</view>
<view>
<text style="color: #90A0AF;">备货是否完成</text>
</view>
</view>
<view class="type1s">
<view>
<text style="color: #90A0AF;">制单时间</text>{{item.createTime}}
</view>
</view>
<view class="type1s">
<view>
<text style="color: #90A0AF;">任务时间</text>{{item.createTime}}
</view>
</view>
<view class="liebs">
<view>
<view>订单总数</view>
<view>{{item.orderNum}}</view>
</view>
<view>
<view>自提件数</view>
<view>{{item.planNum}}</view>
</view>
<view>
<view>签收件数</view>
<view>{{item.signedNum}}</view>
</view>
</view>
</view>
<view class="buts">
<view @click="goselscandetails(item)">明细扫描</view>
<view @click="goselscan(item)">扫描</view>
</view>
</view>
</view>
</scroll-view>
1 year ago
<l-calendar v-model:value="show" :initStartDate='date[0]' :initEndDate='date[1]' @hide='showCalendar' @change="onConfirm"></l-calendar>
<!-- <hd-calendar :defaultDate='date' mode="range" color='#D3832A' minDate='2023-01-01' @confirm="onConfirm" /> -->
2 years ago
</template>
<script lang="ts" setup>
1 year ago
2 years ago
import {
onLoad,
onShow,
onHide,
onUnload
} from '@dcloudio/uni-app'
import { billLadingpageList } from '@/api/user.js'
import { detailsType } from '@/interfaces/pagesHome/SelfPickupScan'
import { reactive, toRefs,ref } from "vue";
let details = reactive<detailsType>({
datatime: '',
show: false,
current:1,
size:10,
recordsList:[]
})
const date = ref<number|string[]>([])
function showCalendar(){
1 year ago
details.show=!details.show
2 years ago
}
1 year ago
function onConfirm(e:any) {
console.log(e);
date.value[0]=e.startDate
date.value[1]=e.endDate
details.datatime=date.value[0]+' 至 '+date.value[1]
// details.datatime=(uni as any).$u.timeFormat(date.value[0], 'yyyy-mm-dd')+' 至 '+(uni as any).$u.timeFormat(date.value[1], 'yyyy-mm-dd')
2 years ago
}
onLoad(()=>{
date.value[0]=(uni as any).$u.timeFormat((new Date().valueOf()-1000*60*60*24*3), 'yyyy-mm-dd')
date.value[1]=(uni as any).$u.timeFormat((new Date().valueOf()), 'yyyy-mm-dd')
1 year ago
init()
2 years ago
})
1 year ago
function init(){
details.current=1
initpage()
}
2 years ago
async function initpage(){
let data={
current:details.current,
size:details.size,
1 year ago
pickUpTimeStart:date.value[0],
pickUpTimeEnd:date.value[1],
2 years ago
}
let response=await billLadingpageList(data)
details.recordsList=response.data.records
}
function checktime(event : any) {
console.log(event);
details.datatime = (uni as any).$u.timeFormat(event.value, 'yyyy-mm-dd');
details.show = false
console.log(details.datatime);
}
function goselscan(item:any) {
uni.navigateTo({
1 year ago
url: '/pagesHome/pages/SelfPScanList/SelfPScanList?billLadingId='+item.billLadingId
2 years ago
})
}
function goselscandetails(item:any){
uni.navigateTo({
1 year ago
url: '/pagesHome/pages/SelfPickupDetails/SelfPickupDetails?billLadingId='+item.billLadingId
2 years ago
})
}
function cleartime(){
1 year ago
// console.log(1231211);
2 years ago
details.datatime=''
}
const { datatime, dataList, show,recordsList } = toRefs(details)
</script>
<style lang="scss">
.inputsr{
1 year ago
width: 400upx !important;
height: 64upx;
2 years ago
background: #F5F5F6;
1 year ago
border-radius: 8upx 8upx 8upx 8upx;
2 years ago
opacity: 1;
1 year ago
border: 2upx solid #EEEEEE;
2 years ago
padding: 16upx 18upx;
box-sizing: border-box;
padding-right: 0;
display: flex;
align-items: center;
justify-content: space-between;
1 year ago
font-size: 26upx;
2 years ago
font-weight: 400;
color: #092C4D;
>input{
flex: 1;
1 year ago
font-size: 26upx;
2 years ago
}
}
.scvbx {
width: 100%;
height: 81vh;
margin-top: 20upx;
.mabxslist {
display: flex;
flex-direction: column;
align-items: center;
>.item {
width: 686upx;
// height: 610upx;
background: #FFFFFF;
border-radius: 8upx;
padding: 20upx 0;
box-sizing: border-box;
margin-bottom: 20upx;
>.headtop{
display: flex;
flex-direction: column;
padding: 24upx;
>.type1s {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 20upx;
box-sizing: border-box;
font-size: 28upx;
font-weight: 400;
color: #092C4D;
>view {
flex: 1;
}
}
>.liebs {
display: flex;
align-items: center;
justify-content: space-around;
>view {
display: flex;
flex-direction: column;
align-items: center;
margin-top: 20upx;
&:nth-of-type(1) {
>view:nth-of-type(2) {
color: #092C4D;
}
}
&:nth-of-type(2) {
>view:nth-of-type(2) {
color: #3AD8BC;
}
}
&:nth-of-type(3) {
>view:nth-of-type(2) {
color: #FA8C16;
}
}
>view:nth-of-type(1) {
font-size: 28upx;
font-weight: 400;
color: #092C4D;
}
>view:nth-of-type(2) {
font-size: 36upx;
font-weight: 400;
margin-top: 20upx;
}
}
}
}
>.buts{
border-top: 3upx solid #EEEEEE;
display: flex;
align-items: center;
justify-content: space-around;
padding-top: 20upx;
>view{
width: 204upx;
height: 64upx;
border-radius: 8upx;
opacity: 1;
display: flex;
align-items: center;
justify-content: center;
font-size: 28upx;
}
>view:nth-of-type(1){
border: 2upx solid #0086F1;
color: #0086F1;
}
>view:nth-of-type(2){
border: 2upx solid #D3832A;
color: #D3832A;
}
}
}
}
}
.schbox {
display: flex;
align-items: center;
justify-content: space-between;
padding: 15upx 32upx;
box-sizing: border-box;
background-color: #ffffff;
>view:nth-of-type(1) {
// width: 150upx;
font-size: 28upx;
font-weight: 400;
color: #092C4D;
}
>view:nth-of-type(2) {
width: 380upx;
// height: 64upx;
}
>view:nth-of-type(3) {
width: 128upx;
height: 64upx;
background: #D3832A;
border-radius: 8upx;
display: flex;
align-items: center;
justify-content: center;
font-size: 32upx;
font-weight: 400;
color: #FFFFFF;
}
}
</style>