<!--包装组件-->
<template>
	<view class="">
		<view class="uni-flex space-between padding_10" style="background-color: #fff;" >
			<view>
				<view class="font_xl text_black text_bold " style="font-size: 38rpx;">
					{{ itemdetail.code }}
				</view>
				<view class="" style="font-size: 32rpx;">
					{{ itemdetail.name }}
				</view>
				<view class="" style="font-size: 32rpx;">
					{{ itemdetail.desc1 }}
					{{ itemdetail.desc2 }}
				</view>
			</view>
			<view class="">
				<item-status :status="itemdetail.status"></item-status>
			</view>
		</view>

		<itemInfoPopup ref="showHint" :dataContent="itemdetail" :type="'partCode'"></itemInfoPopup>
	</view>

</template>

<script>
	import itemStatus from '@/mycomponents/item/itemStatus.vue';
	import itemInfoPopup from '@/mycomponents/item/itemInfoPopup.vue';

	export default {
		name: "comItem",
		components: {
			itemInfoPopup,
			itemStatus
		},
		data() {
			return {

			};
		},
		// 此处定义传入的数据
		props: {
			itemdetail: {
				type: Object,
				value: null
			}
		},
		methods: {
			showHint() {
				this.$refs.showHint.openScanPopup()
			}
		}
	}
</script>

<style>
</style>
