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

392 lines
0 B

2 years ago
<template>
<!-- <u-navbar title="扫描" placeholder border=true :autoBack="true" leftIconSize='35'></u-navbar> -->
<u-navbar title="扫描" placeholder :autoBack="true" leftIconSize='35' bgColor='#d3832a' leftIconColor='#ffffff'
titleStyle='color:#ffffff'></u-navbar>
2 years ago
<image mode="widthFix" class="bgimg" src="/pagesHome/static/bgby.png"></image>
<view class="mabxtop">
<view>
<view>
2 years ago
<view>{{Inventorydetail.trayCode||trayCode}}</view>
2 years ago
<view>托盘码</view>
</view>
<view>
2 years ago
<view>{{Inventorydetail.trayNum||0}}</view>
2 years ago
<view>托盘件数</view>
</view>
2 years ago
</view>
2 years ago
<view>
<view>
2 years ago
<view>{{Inventorydetail.marketName||'暂无数据'}}</view>
2 years ago
<view>名称</view>
</view>
<view>
2 years ago
<view>{{Inventorydetail.trayTypeName||trayName}}</view>
2 years ago
<view>打托方式</view>
</view>
2 years ago
</view>
</view>
2 years ago
<!-- <view class="headtop">
2 years ago
<view>
<input placeholder="请输入订单号" />
</view>
<view>查询</view>
2 years ago
</view> -->
2 years ago
<scroll-view class="scvmabx" scroll-y="true">
<view class="maxboxs">
2 years ago
<view class="items" @click="godetailslist" v-for="item in datelist">
2 years ago
<view class="tophd">
<image src="/pagesHome/static/topicons.png"></image>
<view>物料编码</view>
2 years ago
<view>{{item.dataCode}}</view>
2 years ago
</view>
2 years ago
<view class="tophd">
<image src="/pagesHome/static/uname.png"></image>
<view>物料名称</view>
2 years ago
<view>{{item.dataName}}</view>
2 years ago
</view>
<view class="numbxvie">
2 years ago
<view>
2 years ago
<view class="zhon">{{item.orderTotalNum}}</view>
2 years ago
<view>在库数</view>
2 years ago
</view>
2 years ago
<view @click="godetailslist">
2 years ago
<view class="yish">{{item.scanNum}}</view>
2 years ago
<view>已扫</view>
2 years ago
</view>
</view>
</view>
</view>
</scroll-view>
<saomiao2></saomiao2>
2 years ago
</template>
<script lang="ts" setup>
2 years ago
import {
warehouseTrayTypescanStockOrderPackageCode,
warehouseTrayTypestockScanTrayCode,
} from '@/api/user.js'
import {
onLoad,
onShow,
onHide,
onUnload
} from '@dcloudio/uni-app'
import { reactive, toRefs } from "vue";
let details = reactive({
datelist: [],
trayCode: '',
trayType: '',
trayName: '',
Inventorydetail: {
trayCode: '',
trayNum: '',
trayTypeName: '',
marketName: '',
name: '',
2 years ago
},
scancode: '',
2 years ago
})
onLoad((op) => {
details.trayCode = op.trayCode
details.trayType = op.trayType
if (!op.trayType) {
uni.showToast({
title: '获取打托方式出错',
icon: 'none'
})
}
let trayCodeTypearr = uni.getStorageSync('trayCodeType')
trayCodeTypearr.map(item => {
if (item.dictKey == details.trayType) {
details.trayName = item.dictValue
2 years ago
}
})
})
onShow(() => {
uni.$on('scancodedate', function (code) {
2 years ago
if (code) {
console.log(code);
details.scancode = code
2 years ago
scandata()
}
})
initpage()
})
onHide(() => {
uni.$off('scancodedate')
2 years ago
})
async function initpage() {
let data = {
trayCode: details.trayCode
2 years ago
}
let res = await warehouseTrayTypestockScanTrayCode(data)
if (res.code !== 200) return
details.Inventorydetail = res.data.data
details.datelist = res.data.data.list
2 years ago
}
async function scandata() {
let data = {
trayType: details.trayType,
trayCode: details.trayCode,
orderPackageCode: details.scancode,
2 years ago
}
let res = await warehouseTrayTypescanStockOrderPackageCode(data)
2 years ago
}
function godetailslist(item) {
2 years ago
return
// uni.navigateTo({
// url:'/pagesHome/pages/inventoryDetailList/inventoryDetailList'
// })
}
const { trayName, Inventorydetail, datelist, trayCode, trayType } = toRefs(details)
2 years ago
</script>
<style lang="scss">
.mabxtop {
2 years ago
position: relative;
width: 684upx;
// height: 348upx;
background: #FFFFFF;
border-radius: 20upx;
margin: auto;
margin-top: 80upx;
padding: 60upx;
box-sizing: border-box;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
>view {
2 years ago
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 70upx;
&:nth-last-child(1) {
2 years ago
margin-bottom: 0;
}
>view {
2 years ago
width: 50%;
display: flex;
flex-direction: column;
align-items: flex-start;
>view:nth-of-type(1) {
2 years ago
font-size: 32upx;
font-weight: 400;
color: #020B18;
}
>view:nth-of-type(2) {
2 years ago
font-size: 28upx;
font-weight: 400;
color: #90A0AF;
}
}
}
}
.bgimg {
2 years ago
position: absolute;
left: 0;
top: 0;
width: 100%;
2 years ago
}
.scvmabx {
2 years ago
width: 100%;
height: 63vh;
margin-top: 20upx;
.maxboxs {
2 years ago
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
>.items {
2 years ago
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) {
2 years ago
margin-bottom: 20upx;
}
.tophd {
2 years ago
width: 100%;
display: flex;
align-items: center;
justify-content: flex-start;
padding: 15upx 25upx;
box-sizing: border-box;
border-bottom: 4upx solid #EEEEEE;
>image {
2 years ago
width: 48upx;
height: 48upx;
margin-right: 10upx;
}
>view {
2 years ago
font-size: 32upx;
color: #020B18;
font-weight: 400;
}
}
.numbxvie {
2 years ago
width: 100%;
display: flex;
align-items: center;
justify-content: space-around;
padding: 15upx 25upx;
box-sizing: border-box;
.zhon {
2 years ago
color: #D3832A;
}
.yish {
2 years ago
color: #1197EB;
}
.weish {
2 years ago
color: #020B18;
}
>view {
2 years ago
display: flex;
flex-direction: column;
align-items: center;
>view:nth-of-type(1) {
2 years ago
font-size: 36upx;
margin-bottom: 12upx;
}
>view:nth-of-type(2) {
2 years ago
font-size: 28upx;
}
}
}
.type1 {
2 years ago
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 20upx;
>view {
2 years ago
display: flex;
align-items: center;
font-size: 28upx;
>view:nth-of-type(1) {
2 years ago
color: #90A0AF;
}
>view:nth-of-type(2) {
2 years ago
color: #092C4D;
}
}
2 years ago
}
}
}
}
2 years ago
.headtop {
display: flex;
align-items: center;
justify-content: space-between;
// margin-top: 20upx;
background-color: #FFFFFF;
padding: 20upx 30upx;
box-sizing: border-box;
2 years ago
>view:nth-of-type(1) {
width: 540upx;
border: 1upx solid #00000020;
padding: 10upx 20upx;
box-sizing: border-box;
2 years ago
// flex: 1;
// margin-right: 50upx;
// border-radius: 10upx;
>input {
2 years ago
flex: 1;
font-size: 28upx;
}
}
2 years ago
>view:nth-of-type(2) {
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;
}
}
.hedtopt {
2 years ago
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
background-color: #ffffff;
padding: 36upx 32upx;
box-sizing: border-box;
.typto {
2 years ago
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
font-size: 28upx;
font-weight: 400;
color: #092C4D;
margin-bottom: 20upx;
>view {
display: flex;
align-items: center;
>view:nth-of-type(1) {
color: #90A0AF;
}
>view:nth-of-type(2) {
color: #092C4D;
}
}
&:nth-last-child(1) {
2 years ago
margin-bottom: 0;
}
>view {
2 years ago
flex: 1;
}
}
2 years ago
}
</style>