<template>
	<view class="center uni-column">
		<view class="uni-flex uni-row">
			<status v-show="isShowStatus" :status='dataContent.inventoryStatus'></status>
			<view class="text_default center">
				{{Number(dataContent.qty)}}
			</view>
			<uom  :uom="dataContent.uom"></uom>
		</view>
		
		<view>
			<pack-unit  v-show="isShowPackUnit"  :dataContent="dataContent"></pack-unit>
		</view>
	</view>
</template>

<script>
	import packQty from '@/mycomponents/qty/packQty.vue'
	import uom from '@/mycomponents/qty/uom.vue'
	import status from '@/mycomponents/status/status.vue'
	import packUnit from '@/mycomponents/qty/packUnit.vue'

	export default {
		components: {
			packQty,
			status,
			uom,
			packUnit
		},
		data() {
			return {

			};
		},
		// 此处定义传入的数据
		props: {
			dataContent: {
				type: Object,
				default: null
			},
			isShowStatus: {
				type: Boolean,
				default: true
			},
			isShowPack: {
				type: Boolean,
				default: true
			},
			isShowPackUnit: {
				type: Boolean,
				default: true
			},
		},
		watch: {

		},
		methods: {

		},
	}
</script>

<style lang="scss">
</style>
