<template>
	<view class="uni-flex uni-row space-between uni-inline-item" style="  margin-left: 10px;">
		<view style="flex: 1;">
			<item :dataContent="dataContent" :isSpecial='isSpecial'></item>
		</view>
		<!-- 显示采购标包数量和单位 -->
		<view style="width: 40%;display: flex; flex-direction: column; align-items: flex-end; justify-content:flex-end;margin-right: 10rpx;word-break:break-word; " >
			<recommend-qty v-if="handleQty==0" :dataContent="dataContent" :isShowStatus="false" :isShowStdPack="true"  :isShowSupplierQty='isShowSupplierQty'
				></recommend-qty>
			<compare-qty v-else :dataContent="dataContent" :recommendQty="Number(dataContent.qty)"
				:handleQty="Number(handleQty)" :isShowStatus="false" :isShowPackUnit="isShowPackUnit"  :isShowSupplierQty='isShowSupplierQty'>
			</compare-qty>
			<view class="text_packQty"  style="margin-top: 5rpx; margin-right: 20rpx;" v-if="isShowPackCount" >
				{{dataContent.fromPackCount}}/{{dataContent.toPackCount}}
			</view>
			
		</view>
	
	</view>
</template>
<script>
	import item from '@/mycomponents/item/item.vue'
	import qty from '@/mycomponents/qty/qty.vue'
	import recommendQty from '@/mycomponents/qty/recommendHandleQty.vue'
	import compareQty from '@/mycomponents/qty/compareQty.vue'
	import balanceQty from '@/mycomponents/qty/balanceQty.vue'

	export default {
		components: {
			item,
			recommendQty,
			compareQty,
			balanceQty
		},
		data() {
			return {

			};
		},
		// 此处定义传入的数据
		props: {
			type: {
				type: String,
				default: 'recommend' //recommend:推荐 compare:对比 
			},
			dataContent: {
				type: Object,
				default: {}
			},
			handleQty: {
				type: Number,
				default: 0
			},
			isShowPackUnit: {
				type: Boolean,
				default: true
			},
			objTextStyle: {
				type: Object,
				default: null
			},
			isShowPackCount: {
				type: Boolean,
				default: false
			},
			isShowSupplierQty: {
				type: Boolean,
				default: false
			},
			isSpecial: {
				type: Boolean,
				default: false
			},
		},
		watch: {

		},
		methods: {

		},
	}
</script>

<style>
</style>