<template>
	<view>
		<win-item-info :dataContent="dataContent"></win-item-info>
		<view class="uni-flex uni-row">
			<win-packing-code :packingCode="dataContent.packingCode"></win-packing-code>|
			<win-lot :dataContent='dataContent'></win-lot>|
			<win-qty :qty="dataContent.qty" :stdPackQty="dataContent.stdPackQty" :stdPackUom="dataContent.stdPackUom"
				:allowEdit="false"></win-qty>|
		</view>
		<view class="uni-flex uni-row">
			<win-inventory-status :status="dataContent.status" :allowEdit='false'></win-inventory-status>|
			<win-location-code :dataContent="dataContent.location"></win-location-code>
		</view>
	</view>
</template>

<script setup>
	import winItemInfo from '@/mycomponents/wincom/unitCom/winItemInfo.vue'
	import winPackingCode from '@/mycomponents/wincom/unitCom/winPackingCode.vue'
	import winContainerCode from '@/mycomponents/wincom/unitCom/winContainerCode.vue'
	import winLot from '@/mycomponents/wincom/unitCom/winLot.vue'
	import winLocationCode from '@/mycomponents/wincom/unitCom/winLocationCode.vue'
	import winInventoryStatus from '@/mycomponents/wincom/unitCom/winInventoryStatus.vue'
	import winQty from '@/mycomponents/wincom/unitCom/winQty.vue'


	const props = defineProps({
		dataContent: {
			type: Object,
			default () {
				return {
					itemCode: '零件号A',
					itemName: '零件名称A',
					packingCode: '箱码A',
					lot: '批次A',
					qty: {
						qty: 10,
						uom: 'EA'
					},
					stdPackQty: {
						qty: 20,
						uom: 'EA'
					},
					status: 1,
					location: {
						locationCode: '库位A',
						group: '库位组',
						area: '库区',
						erpCode: 'ErpCode'
					},
				}
			}
		},
	});
</script>

<!-- <script>
	import winLabel from '@/mycomponents/wincom/basicCom/winLabel.vue'
	import winLocationCode from '@/mycomponents/wincom/unitCom/winLocationCode.vue'
	import winInventoryStatus from '@/mycomponents/wincom/unitCom/winInventoryStatus.vue'
	export default {
		components: {
			winLabel,
			winLocationCode,
			winInventoryStatus
		},
		data() {
			return {

			}
		},
		props: {
			dataContent: {
				type: Object,
				default: {}
			},
			label: {
				type: Object,
				default: {}
			}
		},

		methods: {
			openJobDetail() {
				uni.showToast({
					title: '打开任务详情页'
				})
				this.$emit("openJobDetail");
			},
			// jobStatusStyle: function(val) {
			// 	return getJobStatuStyle(val);
			// },
			// jobStatusColor: function(val) {
			// 	return getJobStatuDesc(val);
			// }
		}
	}
</script> -->

<style>
</style>
