<template>
	<view class="task_item" style="background: none;">
		<view class="task_text" style="border-top: 1px solid #dedede;padding-top: 20rpx;margin-top: 20rpx;" >
			<!-- 主子表拆分，没有数量了 -->
			<itemCompareQty :dataContent="dataContent" 
			:isShowPackCount="isShowPackCount"
			:handleQty="dataContent.handleQty" :isShowPackUnit="false"
			:isShowSupplierQty='isShowSupplierQty'
				></itemCompareQty>
				<!-- :objTextStyle="{'fontWeight':'bold','fontSize':'40rpx'}" -->
			<div class="u-p-l-10">
				<pack v-if="isShowPack && dataContent.packingNumber" :packingCode="dataContent.packingNumber">
				</pack>
				<batch v-if="isShowBatch && dataContent.batch" :batch="dataContent.batch"></batch>
				<intoDeliNo v-if="isShowBatchDeliNo" :planArriveTime="dataContent.planArriveTime" :deliNo="dataContent.deliNo"></intoDeliNo>
				<view class="u-flex u-row-between">
					<location v-if="isShowFromLocation&&dataContent.fromLocationCode" title="来源库位" :locationCode="dataContent.fromLocationCode">
					</location>
					<level  title="优先级" :priority="dataContent.priority" v-if="dataContent.priority !== '' && dataContent.priority !== undefined  && dataContent.priority !== null ">
					</level>
				</view>
				<to-location v-if="isShowToLocation" title="目标库位" :locationCode="dataContent.toLocationCode||dataContent.locationCode">
				</to-location>
			
			</div>
		</view>
	</view>
</template>

<script>
	import pack from '@/mycomponents/balance/pack.vue'
	import location from '@/mycomponents/balance/location.vue'
	import toLocation from '@/mycomponents/balance/toLocation.vue'
	import batch from '@/mycomponents/balance/batch.vue'
	import intoDeliNo from '@/mycomponents/balance/intoDeliNo.vue'
	import itemCompareQty from '@/mycomponents/item/itemCompareQty.vue'
	import level from '@/mycomponents/balance/level.vue'

	export default {
		components: {
			pack,
			location,
			toLocation,
			batch,
			intoDeliNo,
			itemCompareQty,
			level
		},
		data() {
			return {};
		},

		props: {
			dataContent: {
				type: Object,
				default: {}
			},
			isShowContainer: {
				type: Boolean,
				default: true
			},
			isShowPack: {
				type: Boolean,
				default: true
			},
			isShowBatch: {
				type: Boolean,
				default: true
			},
			isShowBatchDeliNo: {
				type: Boolean,
				default: false
			},
			isShowFromLocation: {
				type: Boolean,
				default: true
			},
			isShowToLocation: {
				type: Boolean,
				default: true
			},
			isShowDeliverType: {
				type: Boolean,
				default: false
			},
			isShowPackCount: {
				type: Boolean,
				default: false
			},
			isShowSupplierQty: {
				type: Boolean,
				default: false
			},
		},


		methods: {

		}
	}
</script>

<style lang="scss">

</style>