<template>
	<view class="">
		<uni-popup ref="popup">
			<request-common-info :dataContent="dataContent"  @onClose="closePopup">
				<view class="">
					<comListItem :dataList="dataList"></comListItem>
				</view>
				<u-line></u-line>
			</request-common-info>
		</uni-popup>
	</view>
</template>

<script>
	import requestCommonInfo from '@/mycomponents/request/requestCommonInfo.vue'
	import comListItem from '@/mycomponents/common/comListItem.vue';
	export default {
		components: {
			requestCommonInfo,
			comListItem
		},
		data() {
			return {
				dataContent: {},
				dataList:[]
			}
		},

		mounted() {},
		props: {},

		methods: {
			openPopup(val) {
				this.dataContent = val;
				this.dataList=[{
						title: '申请单号',
						content: this.dataContent.requestNumber
					}, {
						title: '发货记录单号',
						content: this.dataContent.deliverRecordNumber
					},{
						title: '发货计划单号',
						content: this.dataContent.deliverPlanNumber,
					},{
						title: '客户代码',
						content: this.dataContent.customerCode,
					},{
						title: '客户月台代码',
						content: this.dataContent.customerDockCode,
					},{
						title: '承运商',
						content: this.dataContent.carrierCode,
					},{
						title: '运输方式',
						content: this.dataContent.transferMode,
					},
					{
						title: '车牌号',
						content: this.dataContent.vehiclePlateNumber,
					},
					{
						title: '从仓库代码',
						content: this.dataContent.fromWarehouseCode,
					},
					{
						title: '到仓库代码',
						content: this.dataContent.toWarehouseCode,
					},
					{
						title: '从库位类型范围',
						content: this.dataContent.fromLocationTypes,
						type:"locationType"
					},
					{
						title: '到库位类型范围',
						content: this.dataContent.toLocationTypes,
						type:"locationType"
					},
					{
						title: '从库区代码范围',
						content: this.dataContent.fromAreaCodes,
					},
					{
						title: '到库区代码范围',
						content: this.dataContent.toAreaCodes,
					},
					{
						title: '到月台代码',
						content: this.dataContent.toDockCode,
					}];
				setTimeout(res => {
					this.$refs.popup.open('bottom')
				}, 500)
			},
			closePopup() {
				this.$refs.popup.close()
			},
		}
	}
</script>

<style>


</style>
