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

339 lines
6.8 KiB

1 year ago
<template>
<!-- <u-navbar title="分拣" placeholder border=true :autoBack="true" leftIconSize='35'></u-navbar> -->
1 year ago
<u-navbar
title="扫描"
placeholder
:autoBack="true"
leftIconSize='35'
bgColor='#00000000'
leftIconColor='#ffffff'
titleStyle='color:#ffffff'
></u-navbar>
<image mode="widthFix" class="bgimg" src="/pagesHome/static/bgby.png"></image>
<view class="headtop">
<view>
<input placeholder="请输入订单号" />
</view>
</view>
<view class="mabxtop">
<view>
<view>
<view>{{detauser?.trayCode}}</view>
<view>托盘码</view>
</view>
<view>
<view>{{detauser?.trayNum}}</view>
<view>托盘件数</view>
</view>
</view>
<view>
<view>
<view>{{detauser?.name}}</view>
<view>名称</view>
</view>
<view>
<view>{{detauser?.orderTotalNum}}</view>
<view>总件数</view>
</view>
</view>
<view>
<view>
<view>{{detauser?.trayTypeName}}</view>
<view>打托方式</view>
</view>
</view>
</view>
<!-- <view class="hedtopt">
1 year ago
<view class="typto">
<view>托盘码汇通龙泉001</view>
<view>托盘件数19</view>
</view>
<view class="typto">
<view>名称名称啊231</view>
<view>总件数20</view>
</view>
<view class="typto">
<view>打托方式码板打托</view>
</view>
1 year ago
</view> -->
1 year ago
<scroll-view class="scvmabx" scroll-y="true">
<view class="maxboxs">
1 year ago
<view class="items chuanhuo" @click="godetaillist" v-for="item in datelist">
<view class="tophd">
<image src="/pagesHome/static/topicons.png"></image>
<view>订单号</view>
<view>{{item.dataCode}}</view>
</view>
<view class="numbxvie">
1 year ago
<view>
1 year ago
<view class="zhon">{{item.orderTotalNum}}</view>
<view>总数</view>
1 year ago
</view>
<view>
1 year ago
<view class="yish">{{item.scanNum}}</view>
<view>已扫</view>
1 year ago
</view>
<view>
1 year ago
<view class="weish">{{item.orderTotalNum - item.scanNum }}</view>
<view>未扫</view>
1 year ago
</view>
</view>
</view>
</view>
</scroll-view>
1 year ago
<saomiao2></saomiao2>
1 year ago
</template>
<script lang="ts" setup>
1 year ago
import {
warehouseTrayTypeorderScanOrderPackageCode,
warehouseTrayTypeorderScanTrayCode
} from '@/api/user.js'
import {
onLoad,
onShow,
onHide,
onUnload
} from '@dcloudio/uni-app'
import utils from '@/utils/utils.js'
import { reactive, toRefs } from "vue";
let details=reactive({
trayCode:'',
trayType:'',
scancode:'',
datelist:[],
detauser:null as any,
})
onLoad((op)=>{
details.trayCode=op.trayCode
details.trayType=op.trayType
setTimeout(()=>{
details.scancode='23072408095-1'
scandata()
},5000)
initlist()
uni.$on('scancodedate', function(code) {
if (code) {
console.log(code);
details.scancode=code
scandata()
}
})
})
async function godetaillist(){
uni.navigateTo({
url:'/pagesHome/pages/OrderSortingDetailList/OrderSortingDetailList'
})
}
async function initlist(){
let data={
trayCode:details.trayCode
}
let res=await warehouseTrayTypeorderScanTrayCode(data)
console.log(res,'resresresres');
details.datelist=res.data.data.list
details.detauser=res.data.data
console.log(details.datelist,'details.datelistdetails.datelist');
}
async function scandata(){
let data={
trayType:details.trayType,
trayCode:details.trayCode,
orderPackageCode:details.scancode,
}
let response=await warehouseTrayTypeorderScanOrderPackageCode(data)
console.log(response);
initlist()
}
function initpage(){
}
const { datelist,detauser }=toRefs(details)
1 year ago
</script>
<style lang="scss">
1 year ago
.mabxtop{
position: relative;
width: 684upx;
// height: 348upx;
background: #FFFFFF;
border-radius: 20upx;
margin: auto;
margin-top: 20upx;
padding: 60upx;
box-sizing: border-box;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
>view{
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 50upx;
&:nth-last-child(1){
margin-bottom: 0;
}
>view{
width: 50%;
display: flex;
flex-direction: column;
align-items: flex-start;
>view:nth-of-type(1){
font-size: 32upx;
font-weight: 400;
color: #020B18;
word-wrap: break-word;
word-break: break-all;
}
>view:nth-of-type(2){
font-size: 28upx;
font-weight: 400;
color: #90A0AF;
}
}
}
}
.bgimg{
position: fixed;
left: 0;
top: 0;
1 year ago
width: 100%;
1 year ago
}
.scvmabx{
width: 684rpx;
height: 45vh;
margin: auto;
1 year ago
margin-top: 20upx;
.maxboxs{
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
1 year ago
.chuanhuo{
border: #ff0000 ;
}
1 year ago
>.items{
width: 690upx;
display: flex;
flex-direction: column;
align-items: center;
padding: 20upx 30upx;
box-sizing: border-box;
background-color: #ffffff;
border-radius: 10upx;
margin-bottom: 30upx;
&:nth-last-child(1){
margin-bottom: 20upx;
}
1 year ago
.tophd{
width: 100%;
display: flex;
align-items: flex-start;
justify-content: flex-start;
padding: 15upx 25upx;
box-sizing: border-box;
border-bottom: 4upx solid #EEEEEE;
>image{
width: 48upx;
height: 48upx;
margin-right: 10upx;
}
>view{
font-size: 32upx;
color: #020B18;
font-weight: 400;
word-wrap: break-word;
word-break: break-all;
&:nth-of-type(1){
width: 160upx;
}
}
}
.numbxvie{
1 year ago
width: 100%;
display: flex;
align-items: center;
1 year ago
justify-content: space-around;
padding: 15upx 25upx;
box-sizing: border-box;
.zhon{
color: #D3832A;
}
.yish{
color: #1197EB;
}
.weish{
color: #020B18;
}
1 year ago
>view{
display: flex;
1 year ago
flex-direction: column;
1 year ago
align-items: center;
>view:nth-of-type(1){
1 year ago
font-size: 36upx;
margin-bottom: 12upx;
1 year ago
}
>view:nth-of-type(2){
1 year ago
font-size: 28upx;
1 year ago
}
}
}
}
}
}
.headtop {
1 year ago
width: 684upx;
padding: 20upx;
1 year ago
display: flex;
align-items: center;
justify-content: space-between;
// margin-top: 20upx;
background-color: #FFFFFF;
padding: 20upx 30upx;
box-sizing: border-box;
1 year ago
position: relative;
margin: auto;
border-radius: 20upx;
margin-top: 30upx;
>view{
flex: 1;
1 year ago
>input{
flex: 1;
font-size: 28upx;
}
}
}
.hedtopt{
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
background-color: #ffffff;
padding: 36upx 32upx;
box-sizing: border-box;
.typto{
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
font-size: 28upx;
font-weight: 400;
color: #092C4D;
margin-bottom: 20upx;
&:nth-last-child(1){
margin-bottom: 0;
}
>view{
flex: 1;
}
}
}
</style>