<template>
	<view class="task_item">
		<view class="task_text" style="border-top: 1px solid #dedede;padding-top: 20rpx;margin-top: 20rpx;">
			<!-- 主子表拆分，没有数量了 -->
			<itemCompareQty :dataContent="dataContent" :handleQty="dataContent.handleQty" :isShowPackUnit="false"
				></itemCompareQty>
				<!-- :objTextStyle="{'fontWeight':'bold','fontSize':'40rpx'}" -->
			<div class="u-p-l-10">
				<pack v-if="isShowPack && dataContent.packingNumber!=null" :packingCode="dataContent.packingNumber">
				</pack>
				<batch v-if="isShowBatch && dataContent.batch!=null" :batch="dataContent.batch"></batch>
				<view class="u-flex u-row-between">
					<location v-if="isShowFromLocation&&dataContent.fromLocationCode" title="来源库位" :locationCode="dataContent.fromLocationCode">
					</location>
					<level  title="优先级" :priority="dataContent.priority">
					</level>
				</view>
				
				<to-location v-if="isShowToLocation" title="目标库位" :locationCode="dataContent.toLocationCode||dataContent.locationCode">
				</to-location>
				<view class="card_view " v-if="isShowDeliverType">
					<text class="card_packing_code card_content ">发货类型</text>
					<text class="card_content ">{{dataContent.deliverType=='CUST'?'寄售库发货':'三方库发货'}}</text>
				</view>
			</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 itemCompareQty from '@/mycomponents/item/itemCompareQty.vue'
	import level from '@/mycomponents/balance/level.vue'

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

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


		methods: {

		}
	}
</script>

<style lang="scss">

</style>