<template>
	<view class="choose_main">
		<view class="ljh_box">
			<view class="tit_ljh">{{ dataContent.itemCode }}</view>
			<view class="uni-flex uni-row space-between">
				<view class="ljh_left desc_ljh">
					<view class="font_xs text_lightblue">{{dataContent.itemName }}</view>
					<view class="font_xs text_lightblue">{{dataContent.item.desc2 }}</view>
				</view>
				<view class="ljh_right">
					<text class="tnum">{{dataContent.qty.qty}}</text>
					<text class="tunit">{{dataContent.qty.uom}}</text>
				</view>
			</view>
		</view>
		<view class="uni-flex uni-row bot_card">
			<view class="bot_card_item item_long">
				<label class="icon_bg icon_bg_xm">
					<image class="icon_normal" src="../../static/icons_ui/icon_xm.svg">
					</image>
				</label>
				<text>{{dataContent.packingCode}}</text>
			</view>
			<!-- 箱码 -->
			<view class="bot_card_item">
				<label class="icon_bg icon_bg_kw">
					<image class="icon_normal" src="@/static/icons_ui/icon_kw.svg">
					</image>
				</label>
				<text>{{ dataContent.locationCode }}</text>
			</view>
			<!-- 库位 -->
			<view class="bot_card_item">
				<label class="icon_bg icon_bg_pc">
					<image class="icon_normal" src="@/static/icons_ui/icon_pc.svg">
					</image>
				</label>
				<text>{{dataContent.lot}}</text>
			</view>
			<!-- 批次 -->
			<view class="bot_card_item item_short">
				<label class="icon_state" :class="statusStyle(dataContent.status)"></label>
				<text class="state_point" :class="statusStyle(dataContent.status)  ">
					{{ dataContent.status | statusColor}}
				</text>
			</view>
		</view>
	</view>

</template>

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

	export default {
		name: 'comMerge',
		components: {},
		props: {
			dataContent: {
				type: Object,
				default: {}
			},
		},
		data() {
			return {}
		},
		created() {

		},
		methods: {
			statusStyle: function(val) {
				return getInventoryTypeStyle(val);
			},
			statusColor: function(val) {
				return getInventoryStatusDesc(val);
			},
		}
	}
</script>

<style>
</style>
