<!-- 零件基础信息卡片包括:
零件号、名称、描述、数量和单位
箱码、批次、库位、状态
可以通过属性控制库位和状态是否显示 -->
<template>
	<view class="ljh_box">
		<view class="ljh_info">
			<view class="tit_ljh">{{ dataContent.itemCode }}</view>
			<view class="label_xm font_xs fr">{{ dataContent.packingCode }}</view>
		</view>
		<view class="uni-flex space-between desc_card">
			<view class="ljh_left">
				<view class="text_lightblue font_xs">{{dataContent.itemName }}</view>
				<view class="text_lightblue font_xs">{{dataContent.itemDesc1}}</view>
			</view>
			<view class="ljh_right">
				<text class="tnum">{{dataContent.qty}}</text>
				<text class="tunit">{{dataContent.uom}}</text>
			</view>
		</view>
	</view>
</template>

<script>
	import {
		getInventoryTypeStyle,
		getInventoryStatusDesc,
	} from '@/common/basic.js';

	export default {
		name: 'comItemTop',
		components: {},
		props: {
			dataContent: {
				type: Object,
				default: {}
			},
		},
		data() {
			return {}
		},
		filters: {
			statusStyle: function(val) {
				return getInventoryTypeStyle(val);
			},
			statusColor: function(val) {
				return getInventoryStatusDesc(val);
			},
		},
		created() {

		},
		methods: {

		}
	}
</script>

<style>
</style>
