<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.fromWarehouseCode
					}, {
						title: '到仓库代码',
						content: this.dataContent.toWarehouseCode
					},{
						title: '车间代码',
						content: this.dataContent.workshopCode,
					},{
						title: '使用在途库',
						content: this.dataContent.useOnTheWayLocation,
						type:"boolean"
					},{
						title: '从库位类型范围',
						content: this.dataContent.fromLocationTypes,
						type:"locationType"
					},{
						title: '到库位类型范围',
						content: this.dataContent.toLocationTypes,
						type:"locationType"
					},{
						title: '从库区代码范围',
						content: this.dataContent.fromAreaCodes,
					},{
						title: '到库区代码范围',
						content: this.dataContent.toAreaCodes,
					}];
				this.$refs.popup.open('bottom')
			},
			closePopup() {
				this.$refs.popup.close()
			},
		}
	}
</script>

<style>


</style>