<template>
	<uni-popup ref="popupItems">
		<com-popup @onClose="closePopup">
			<view v-for="(item, index) in receiptList" :key="index">
				<com-inventory-job-card :dataContent="item" @click='selectItem(item)'></com-inventory-job-card>
			<view class='split_line'></view>
			</view>
		</com-popup>
	</uni-popup>
</template>

<script>
	import comPopup from '@/mycomponents/common/comPopup.vue'
	import comInventoryJobCard from '@/pages/inventoryMove/coms/comInventoryJobCard.vue'
	
	export default {
		emits: ["selectedItem"],
		components: {
			comPopup,
			comInventoryJobCard
		},
		props: {

		},
		data() {
			return {
				receiptList: []
			}
		},
		methods: {
			openPopup(items) {
				this.receiptList = items;
				this.$refs['popupItems'].open("center");
			},
			closePopup() {
				this.$refs.popupItems.close()
			},
			selectItem(item) {
				this.$emit("selectedItem", item);
				this.$refs['popupItems'].close();
			},
		}
	}
</script>

<style>
</style>
