货无忧
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.
 
 
 
 
 

262 lines
5.5 KiB

<template>
<u-navbar title="自提扫描" placeholder border=true :autoBack="true" leftIconSize='35'></u-navbar>
<view class="hdtpnum">
<view>
<view>订单总数</view>
<view>{{details.orderNum}}</view>
</view>
<view>
<view>齐套数</view>
<view>{{details.completeNum}}</view>
</view>
<view>
<view>自提件数</view>
<view>{{details.planNum}}</view>
</view>
<view>
<view>签收件数</view>
<view>{{details.signedNum}}</view>
</view>
</view>
<view class="scinp">
<view>齐套状态</view>
<view>
<cusSelects @change='checktype' :data='typearr' :value="schanvalue" placeholder='全部' :arrLeft='5' size='145' :clearable='true'></cusSelects>
</view>
<view class="inputs">
<input v-model="orderCode" placeholder="请输入查询的订单号"/>
</view>
<view class="btscan" @click="initpage">查询</view>
</view>
<scroll-view class="scve" scroll-y="true">
<view class="mabx">
<view class="itec" v-for="item in datalist">
<view class="contenbx1">
<view><text style="color: #90A0AF;">订单编号:</text>{{item.orderCode}}</view>
</view>
<view class="contenbx1">
<view><text style="color: #90A0AF;">配送数:</text>{{item.planNum}}</view>
<view><text style="color: #90A0AF;">已扫码数:</text>{{item.signedNum}}</view>
</view>
<view :class="item.orderStatusStr=='齐套'?'tip tp1':item.orderStatusStr=='部分扫'?'tip tp3':'tip tp2'">{{item.orderStatusStr}}</view>
</view>
</view>
</scroll-view>
</template>
<script lang="ts" setup>
import {
onLoad,
onShow,
onHide,
onUnload
} from '@dcloudio/uni-app'
import { billLadingorderList } from '@/api/user.js'
import cusSelects from '@/compoment/cus-selects-fan/cus-selects-fan.vue'
import { reactive, toRefs } from "vue";
import { pagedetails } from '@/interfaces/pagesHome/SelfPScanList'
let details=reactive<pagedetails>({
schanvalue:'',
typearr:[
{
value:1,
label:'齐套'
},
{
value:2,
label:'部分扫'
},
{
value:3,
label:'未扫'
}
],
orderStatus:0,
billLadingId:'',
datalist:[],
orderCode:'',
orderNum:'',
completeNum:'',
planNum:'',
signedNum:'',
})
onLoad((op)=>{
details.billLadingId=op.billLadingId
initpage()
})
async function initpage(){
let data={
orderStatus:details.orderStatus,
billLadingId:details.billLadingId,
orderCode:details.orderCode
}
let response=await billLadingorderList(data)
details.datalist=response.data.list
}
function checktype(e){
if(e==''){
details.schanvalue=''
details.orderStatus=0
return
}
details.typearr.map(item=>{
if(item.value==e){
details.schanvalue=item.label
details.orderStatus=item.value
console.log(details.schanvalue)
}
})
}
const { schanvalue,typearr,orderCode,datalist }=toRefs(details)
</script>
<style lang="scss">
.scve{
width: 100%;
height: 69vh;
margin-top: 20upx;
.mabx{
display: flex;
flex-direction: column;
align-items: center;
>.itec{
width: 686upx;
// height: 176upx;
background: #FFFFFF;
border-radius: 8upx;
padding: 36upx 24upx;
box-sizing: border-box;
position: relative;
margin-bottom: 20upx;
&:nth-last-child(1){
margin-bottom: 0;
}
>.contenbx1{
display: flex;
align-items: center;
justify-content: space-between;
font-size: 28upx;
color: #092C4D;
margin-bottom: 20upx;
&:nth-last-child(1){
margin-bottom: 0;
}
>view{
flex: 1;
}
}
.tip{
position: absolute;
right: 0;
top: 0;
width: 96upx;
height: 48upx;
border-radius: 0 8upx 0 8upx;
display: flex;
align-items: center;
justify-content: center;
font-size: 24upx;
}
.tp1{
background-color: #0086F120;
color: #0086F1;
}
.tp2{
background-color: #F8544B20;
color: #F8544B;
}
.tp3{
background-color: #FA8C1620;
color: #FA8C16;
}
}
}
}
.scinp{
display: flex;
align-items: center;
justify-content: space-between;
padding: 12upx 32upx;
box-sizing: border-box;
background-color: #ffffff;
>view:nth-of-type(1){
font-size: 28upx;
font-weight: 400;
color: #092C4D;
}
.inputs {
width: 276upx;
height: 64upx;
background: #F5F5F6;
border-radius: 8upx;
opacity: 1;
border: 2upx solid #EEEEEE;
padding: 10upx;
box-sizing: border-box;
font-size: 24upx;
font-weight: 400;
color: #AFB4BA;
>input{
flex: 1;
font-size: 24upx;
color: #092C4D;
}
}
.btscan{
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;
}
}
.hdtpnum{
display: flex;
align-items: center;
justify-content: space-around;
background-color: #ffffff;
padding: 28upx 0;
border-bottom: 3upx solid #EEEEEE;
>view{
display: flex;
align-items: center;
flex-direction: column;
font-size: 28upx;
font-weight: 400;
color: #092C4D;
&:nth-of-type(1){
>view:nth-of-type(2){
color: #092C4D;
}
}
&:nth-of-type(2){
>view:nth-of-type(2){
color: #0086F1;
}
}
&:nth-of-type(3){
>view:nth-of-type(2){
color: #3AD8BC;
}
}
&:nth-of-type(4){
>view:nth-of-type(2){
color: #FA8C16;
}
}
>view:nth-of-type(2){
font-size: 36upx;
font-weight: 400;
color: #092C4D;
margin-top: 20upx;
}
}
}
</style>