<template>
	<view class="wrap">
		<view class="dropdown content1">
			<view class="left"  @click='show1=true'>
				<view>{{warehouseName}}</view>
				<u-icon name="arrow-right" ></u-icon>
				<!-- <u-select v-model="show1" :default-value='[0]' :list="warehouseList" @confirm="confirmWarehouse">
				</u-select> -->
			</view>
			<view class="right"  @click='show2=true'>
				<view>{{positionName}}</view>
				<u-icon name="arrow-right" ></u-icon>
				<u-select v-model="show2" :default-value='[0]' :list="positionList" @confirm="confirmPositon">
				</u-select>
			</view>
		</view>
		<view class="content2">
			<view class="content2-item" v-for="(item,index) in dataList" @click="goDetail(item)">
				<view class="item-style">{{item.val1}}</view>
				<view class="item-style">{{item.val2}}</view>
				<view class="item-style">{{item.val3}}</view>
				<view class="item-style">{{item.val4}}</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				show1:false,
				show2:false,
				warehouseName: '鲅鱼圈一号库',
				positionName: '102仓位',
					warehouseList: [
						{
						"label": '1',
						"value": '1'
						}
					],
					positionList: [
						{
						"label": '102仓位',
						"value": '1'
						}
					],
					dataList:[
						{
						val1:'我是合同编号',
						val2:'我是车牌号',
						val3:'我是暂存时间',
						val4:'我是提交人姓名'
					},
					{
						val1:'我是合同编号',
						val2:'我是车牌号',
						val3:'我是暂存时间',
						val4:'我是提交人姓名'
					},
					{
						val1:'我是合同编号',
						val2:'我是车牌号',
						val3:'我是暂存时间',
						val4:'我是提交人姓名'
					},
					]
			}
		},
		onLoad() {
			this.getList()
		},
		methods: {
			getList(){
				that.$api.doRequest('get', '/warehouseInOutInfo/selectWarehouseInOutInfo',
					that.detailData).then(res => {
					if (res.data.code == 200) {
						that.$api.msg(title)
						uni.navigateBack()
					}
				})
			},
			confirmWarehouse(){},
			confirmPositon(){},
			goDetail(val){
				uni.navigateTo({
					url:'improvedWrehousingDetail?data='+val,
					
				})
			}
			
		}
	}
</script>

<style scoped lang="scss">
	.dropdown{
		display: flex;
		margin:20rpx 0;
		justify-content: space-between;
		.left,.right{
			display: flex;
		}
	}
	.content1{
		padding: 20rpx;
		margin: 20rpx;
		border-radius: 10rpx;
	}
	.content2{
		// padding: 20rpx;
		margin: 20rpx;
		// border-bottom: 1px solid #ccc;
		.content2-item{
			padding: 20rpx;
			margin-bottom: 10rpx;
			// border-bottom:1px solid #ccc ;
			background: #FFFFFF;
			border-radius: 10rpx;
			// padding-bottom: 10px;
		}
		.item-style{
			display: inline-block;
			width: 50%;
		}
	}
</style>
