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.
490 lines
10 KiB
490 lines
10 KiB
<template> |
|
<!-- <u-navbar title="录入" placeholder border=true :autoBack="true" leftIconSize='35'></u-navbar> --> |
|
<u-navbar title="录入" |
|
bgColor='#D3832A' leftIconColor='#ffffff' |
|
titleStyle='color:#ffffff' placeholder :autoBack="true" leftIconSize='35'></u-navbar> |
|
<view class="hedtopt"> |
|
<view class="typto"> |
|
<view>托盘码:汇通龙泉001</view> |
|
<view>托盘件数:19件</view> |
|
</view> |
|
<view class="typto"> |
|
<view>名称:欧派大家居</view> |
|
<view>打托方式:物料名称</view> |
|
</view> |
|
<view class="kcplr"> |
|
<!-- <view>打托方式:码板打托</view> --> |
|
<view @click="setshowstate(1)">录入库存品</view> |
|
</view> |
|
</view> |
|
<view class="headtop"> |
|
<view> |
|
<input placeholder="请输入订单号" /> |
|
</view> |
|
<view>查询</view> |
|
</view> |
|
<scroll-view class="scvmabx" scroll-y="true"> |
|
<view class="maxboxs"> |
|
<view class="items" v-for="item in [1,2,3,4,5,6,7]"> |
|
<view class="type1"> |
|
<view> |
|
<view>物料编码:</view> |
|
<view>LWP120321654650</view> |
|
</view> |
|
<view> |
|
<view>物料名称:</view> |
|
<view>20件</view> |
|
</view> |
|
</view> |
|
<view class="type1"> |
|
<view> |
|
<view>已录:</view> |
|
<view>8件</view> |
|
</view> |
|
<view> |
|
<view>在库数:</view> |
|
<view>12件</view> |
|
</view> |
|
</view> |
|
<view class="type1"> |
|
<view> |
|
<view>物料单位:</view> |
|
<view>箱</view> |
|
</view> |
|
<view> |
|
<view>SKU:</view> |
|
<view>CSDDA001253</view> |
|
</view> |
|
</view> |
|
<view class="removebt"> |
|
<view @click="tipremove(item)">删除</view> |
|
</view> |
|
</view> |
|
</view> |
|
</scroll-view> |
|
<view class="tanchuangbg" @click="setshowstate(0)" v-if="showstate!=0"> |
|
<view class="inputbox" @click.stop=""> |
|
<view class="inputscan"> |
|
<input placeholder="输入物料编码"/> |
|
<view class="scanbt">搜索</view> |
|
</view> |
|
<scroll-view scroll-y="true" class="scvbw"> |
|
<view class="scboxitem"> |
|
<view class="items" v-for="item in [1,2,3,4,5]"> |
|
<view class="type1s"> |
|
<view> |
|
<view>物料编码:</view> |
|
<view>1565f9q</view> |
|
</view> |
|
<view> |
|
<view>物料名称:</view> |
|
<view>20件</view> |
|
</view> |
|
</view> |
|
<view class="type1s"> |
|
<view> |
|
<view>物料单位:</view> |
|
<view>箱</view> |
|
</view> |
|
<view> |
|
<view>包装数量:</view> |
|
<view>3个/箱</view> |
|
</view> |
|
</view> |
|
<view class="type1s"> |
|
<view> |
|
<view>在库数:</view> |
|
<view>45件</view> |
|
</view> |
|
<view> |
|
<view>SKU:</view> |
|
<view>CSDAA4556248</view> |
|
</view> |
|
</view> |
|
<view class="rksu"> |
|
<view> |
|
<view>数量:</view> |
|
<input placeholder="请输入数量" /> |
|
</view> |
|
</view> |
|
</view> |
|
</view> |
|
</scroll-view> |
|
<view class="btx"> |
|
<view class="cancel" @click="setshowstate(0)">取消</view> |
|
<view class="confirm">确认</view> |
|
</view> |
|
</view> |
|
</view> |
|
<tips ref="tip"></tips> |
|
</template> |
|
|
|
<script lang="ts" setup> |
|
import { reactive, ref, toRefs } from "vue"; |
|
const tip=ref(null) |
|
let details=reactive({ |
|
showstate:0 |
|
}) |
|
function setshowstate(state:number){ |
|
details.showstate=state |
|
} |
|
function tipremove<T>(item:T){ |
|
tip.value.setdetails({ |
|
isshow:true, |
|
content:'确认删除该数据?', |
|
confirmTxt:'删除', |
|
success:()=>{ |
|
tip.value.setdetails({isshow:false}) |
|
}, |
|
cancel:()=>{ |
|
tip.value.setdetails({isshow:false}) |
|
}, |
|
close:()=>{ |
|
tip.value.setdetails({isshow:false}) |
|
}, |
|
}) |
|
} |
|
const { showstate }=toRefs(details) |
|
</script> |
|
|
|
<style lang="scss"> |
|
.scvmabx{ |
|
width: 100%; |
|
height: 61vh; |
|
margin-top: 20upx; |
|
.maxboxs{ |
|
width: 100%; |
|
display: flex; |
|
flex-direction: column; |
|
align-items: center; |
|
>.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; |
|
} |
|
.type1{ |
|
width: 100%; |
|
display: flex; |
|
align-items: center; |
|
justify-content: space-between; |
|
margin-bottom: 20upx; |
|
>view{ |
|
display: flex; |
|
align-items: center; |
|
font-size: 28upx; |
|
>view:nth-of-type(1){ |
|
color: #90A0AF; |
|
} |
|
>view:nth-of-type(2){ |
|
color: #092C4D; |
|
} |
|
} |
|
|
|
} |
|
.removebt{ |
|
width: 100%; |
|
display: flex; |
|
align-items: center; |
|
justify-content: flex-end; |
|
>view{ |
|
width: 128upx; |
|
height: 64upx; |
|
background: #ee2b00; |
|
border-radius: 8upx; |
|
opacity: 1; |
|
display: flex; |
|
align-items: center; |
|
justify-content: center; |
|
font-size: 28upx; |
|
font-weight: 400; |
|
color: #FFFFFF; |
|
} |
|
} |
|
} |
|
} |
|
} |
|
.headtop { |
|
display: flex; |
|
align-items: center; |
|
justify-content: space-between; |
|
// margin-top: 20upx; |
|
background-color: #FFFFFF; |
|
padding: 20upx 30upx; |
|
box-sizing: border-box; |
|
>view:nth-of-type(1) { |
|
width: 540upx; |
|
border: 1upx solid #00000020; |
|
padding: 10upx 20upx; |
|
box-sizing: border-box; |
|
// flex: 1; |
|
// margin-right: 50upx; |
|
// border-radius: 10upx; |
|
>input{ |
|
flex: 1; |
|
font-size: 28upx; |
|
} |
|
} |
|
|
|
>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{ |
|
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; |
|
} |
|
} |
|
.kcplr{ |
|
width: 100%; |
|
display: flex; |
|
align-items: center; |
|
justify-content: flex-end; |
|
>view{ |
|
width: 180upx; |
|
height: 64upx; |
|
background: #D3832A; |
|
border-radius: 8upx; |
|
display: flex; |
|
align-items: center; |
|
justify-content: center; |
|
font-size: 28upx; |
|
font-weight: 400; |
|
color: #FFFFFF; |
|
box-sizing: border-box; |
|
} |
|
} |
|
} |
|
.tanchuangbg{ |
|
width: 100%; |
|
height: 100%; |
|
position: fixed; |
|
z-index: 99; |
|
left: 0; |
|
top: 0; |
|
background-color: #00000050; |
|
display: flex; |
|
align-items: center; |
|
justify-content: center; |
|
transition: all 1s; |
|
.tanbx{ |
|
width: 670upx; |
|
// height: 600upx; |
|
background-color: #ffffff; |
|
box-sizing: border-box; |
|
border-radius: 10upx; |
|
display: flex; |
|
flex-direction: column; |
|
align-items: center; |
|
padding: 30upx; |
|
.titlran{ |
|
font-size: 32upx; |
|
color: #092C4D; |
|
} |
|
.textareabx{ |
|
width: 570upx; |
|
padding: 10upx; |
|
box-sizing: border-box; |
|
display: flex; |
|
flex-direction: column; |
|
align-items: flex-end; |
|
border: 1upx solid #092C4D30; |
|
margin-top: 30upx; |
|
font-size: 28upx; |
|
color: #092C4D; |
|
>textarea{ |
|
width: 100%; |
|
height: 200upx; |
|
} |
|
|
|
} |
|
.btx{ |
|
display: flex; |
|
align-items: center; |
|
justify-content: space-around; |
|
margin-top: 50upx; |
|
>view{ |
|
display: flex; |
|
align-items: center; |
|
justify-content: center; |
|
width: 260upx; |
|
height: 88upx; |
|
border-radius: 8upx; |
|
font-size: 32upx; |
|
} |
|
>.cancel{ |
|
background-color: #F5F5F6; |
|
color: #5A6875; |
|
margin-right: 20upx; |
|
} |
|
>.confirm{ |
|
background-color: #D3832A; |
|
color: #FFFFFF; |
|
} |
|
} |
|
} |
|
.inputbox{ |
|
width: 670upx; |
|
// height: 600upx; |
|
background-color: #ffffff; |
|
box-sizing: border-box; |
|
border-radius: 10upx; |
|
display: flex; |
|
flex-direction: column; |
|
align-items: center; |
|
padding: 30upx; |
|
.inputscan{ |
|
width: 100%; |
|
display: flex; |
|
align-items: center; |
|
justify-content: space-around; |
|
>input{ |
|
width: 440upx; |
|
height: 64upx; |
|
border: 1upx solid #092C4D30; |
|
border-radius: 8upx; |
|
box-sizing: border-box; |
|
font-size: 28upx; |
|
padding: 0upx 20upx; |
|
box-sizing: border-box; |
|
} |
|
.scanbt{ |
|
width: 128upx; |
|
height: 64upx; |
|
background: #D3832A; |
|
border-radius: 8upx; |
|
opacity: 1; |
|
display: flex; |
|
align-items: center; |
|
justify-content: center; |
|
font-size: 30upx; |
|
font-weight: 400; |
|
color: #FFFFFF; |
|
} |
|
} |
|
.scvbw{ |
|
width: 100%; |
|
height: 360upx; |
|
margin-top: 30upx; |
|
.scboxitem{ |
|
display: flex; |
|
flex-direction: column; |
|
align-items: center; |
|
.items{ |
|
width: 590upx; |
|
display: flex; |
|
flex-direction: column; |
|
box-shadow: 0upx 2upx 10upx 0upx #e2e2e3; |
|
margin-top: 10upx; |
|
padding: 20upx; |
|
box-sizing: border-box; |
|
margin-bottom: 20upx; |
|
&:nth-last-child(1){ |
|
margin-bottom: 10upx; |
|
} |
|
>.type1s{ |
|
display: flex; |
|
align-items: center; |
|
justify-content: space-between; |
|
margin-bottom: 20upx; |
|
>view{ |
|
width: 50%; |
|
display: flex; |
|
align-items: center; |
|
justify-content: flex-start; |
|
font-size: 28upx; |
|
>view:nth-of-type(1){ |
|
color: #90A0AF; |
|
} |
|
>view:nth-of-type(2){ |
|
color: #092C4D; |
|
} |
|
} |
|
} |
|
.rksu{ |
|
display: flex; |
|
align-items: center; |
|
justify-content: space-between; |
|
margin-bottom: 20upx; |
|
>view{ |
|
// width: 50%; |
|
display: flex; |
|
align-items: center; |
|
justify-content: flex-start; |
|
font-size: 28upx; |
|
>view:nth-of-type(1){ |
|
color: #90A0AF; |
|
} |
|
>input{ |
|
width: 200upx; |
|
padding: 0 15upx; |
|
font-size: 28upx; |
|
border: 1upx solid #00000020; |
|
} |
|
} |
|
} |
|
} |
|
} |
|
} |
|
.btx{ |
|
display: flex; |
|
align-items: center; |
|
justify-content: space-around; |
|
margin-top: 50upx; |
|
>view{ |
|
display: flex; |
|
align-items: center; |
|
justify-content: center; |
|
width: 260upx; |
|
height: 88upx; |
|
border-radius: 8upx; |
|
font-size: 32upx; |
|
} |
|
>.cancel{ |
|
background-color: #F5F5F6; |
|
color: #5A6875; |
|
margin-right: 20upx; |
|
} |
|
>.confirm{ |
|
background-color: #D3832A; |
|
color: #FFFFFF; |
|
} |
|
} |
|
} |
|
} |
|
</style>
|
|
|