<template>
	<!-- <page-meta root-font-size="18px"></page-meta> -->
	<uni-popup ref="popupItems">
		<scroll-view scroll-y="true" >
			<view v-for="(item, index) in receiptList" :key="index">
				<com-receipt-job-card :dataContent="item" @click='selectItem(item)'></com-receipt-job-card>
			<view class='split_line'></view>
			</view>
		</scroll-view>
	</uni-popup>
</template>

<script>
	import comReceiptJobCard from '@/pages/purchaseReceipt/coms/comReceiptJobCard.vue'
	export default {
		emits: ["selectedItem"],
		components: {
			comReceiptJobCard
		},
		props: {

		},
		data() {
			return {
				receiptList: [] 
			}
		},
		methods: {
			openPopup(items) {
				this.receiptList = items;
				this.$refs['popupItems'].open("center");
			},

			selectItem(item) {
				this.$emit("selectedItem", item);
				this.$refs['popupItems'].close();
			},
		}
	}
</script>

<style>
</style>
