<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>名称：名称啊231</view>
			<view>总件数：20件</view>
		</view>
		<view class="typto">
			<view>打托方式：运单</view>
		</view>
		<view class="btrank">
			<view>备注：</view>
			<view class="ranbt" @click="setshowstate(1)">
				备注
			</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>
		</view>
	</scroll-view>
	<view class="buts" @click="setshowstate(2)">继续录入</view>
	<view class="tanchuangbg" @click="setshowstate(0)" v-if="showstate==1||showstate==2">
		<view class="tanbx" @click.stop="" v-if="showstate==1">
			<view class="titlran">备注</view>
			<view class="textareabx">
				<textarea maxlength="-1" placeholder="请输入备注"></textarea>
			</view>
			<view class="btx">
				<view class="cancel" @click="setshowstate(0)">取消</view>
				<view class="confirm">确认</view>
			</view>
		</view>
		<view class="inputbox" @click.stop="" v-if="showstate==2">
			<view class="inputscan">
				<input placeholder="输入订单号"/>
				<view class="scanbt">搜索</view>
			</view>
			<scroll-view scroll-y="true" class="scvbw">
				<view class="scboxitem">
					<view class="items">
						<view class="type1s">
							<view>
								<view>订单号：</view>
								<view>1565f9q</view>
							</view>
							<view>
								<view>总件数：</view>
								<view>20件</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>
</template>

<script lang="ts" setup>
	import { reactive, toRefs } from "vue";
	let details=reactive({
		showstate:0
	})
	function setshowstate(state:number){
		details.showstate=state
	}
	const { showstate } =toRefs(details)
</script>

<style lang="scss">
	.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: 560upx;
				height: 240upx;
				background: #F5F5F6;
				border-radius: 8upx;
				padding: 20upx 40upx;
				box-sizing: border-box;
				>textarea{
					width: 100%;
					height: 100%;
					box-sizing: border-box;
					font-size: 28upx;
					font-weight: 400;
				}
			}
			.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;
						>.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;
									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: 76upx;
					border-radius: 7upx;
					font-size: 28upx;
				}
				>.cancel{
					background-color: #F5F5F6;
					color: #5A6875;
					margin-right: 20upx;
				}
				>.confirm{
					background-color: #D3832A;
					color: #FFFFFF;
				}
			}
		}
	}
	.buts{
		width: 320upx;
		height: 88upx;
		background: #D3832A;
		border-radius: 8upx 8upx 8upx 8upx;
		opacity: 1;
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 32upx;
		font-weight: 400;
		color: #FFFFFF;
		margin: auto;
		margin-top: 20upx;
	}
	.scvmabx{
		width: 100%;
		height: 56vh;
		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;
						}
					}
					
				}
			}
		}
	}
	.hedtopt{
		display: flex;
		align-items: center;
		justify-content: center;
		flex-direction: column;
		background-color: #ffffff;
		padding: 36upx 32upx;
		box-sizing: border-box;
		.btrank{
			display: flex;
			align-items: center;
			justify-content: flex-start;
			width: 100%;
			font-size: 28upx;
			font-weight: 400;
			color: #092C4D;
			.ranbt{
				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;
			}
		}
		.typto{
			display: flex;
			align-items: center;
			justify-content: space-between;
			width: 100%;
			font-size: 28upx;
			font-weight: 400;
			color: #092C4D;
			margin-bottom: 25upx;
			&:nth-last-child(1){
				margin-bottom: 0;
			}
			>view{
				flex: 1;
			}
		}
		
	}
</style>
