|
|
@ -1,12 +1,15 @@ |
|
|
|
<template> |
|
|
|
<view class="uni-flex uni-row space-between uni-inline-item" style="background-color: #fff"> |
|
|
|
<view class="uni-flex uni-row space-between uni-inline-item" style="margin-left: 10px;"> |
|
|
|
<view> |
|
|
|
<item :dataContent="dataContent"></item> |
|
|
|
</view> |
|
|
|
<view style="width: 40%; display: flex; justify-content: flex-end; margin-right: 10rpx; word-break: break-word"> |
|
|
|
<view style="width: 40%; display: flex; flex-direction: column; justify-content: flex-end; margin-right: 10rpx; word-break: break-word"> |
|
|
|
<recommend-qty v-if="handleQty == 0" :dataContent="dataContent" :isShowStatus="false" :isShowStdPack="true"></recommend-qty> |
|
|
|
<compare-qty v-else :dataContent="dataContent" :recommendQty="Number(dataContent.qty)" :handleQty="Number(handleQty)" :isShowStatus="false" :isShowPackUnit="isShowPackUnit"> </compare-qty> |
|
|
|
</view> |
|
|
|
<view class="text_packQty" style="margin-top: 5rpx; margin-right: 20rpx;" v-if="isShowPackCount" > |
|
|
|
{{dataContent.fromPackCount}}/{{dataContent.toPackCount}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
<script setup lang="ts"> |
|
|
@ -36,6 +39,10 @@ const props = defineProps({ |
|
|
|
objTextStyle: { |
|
|
|
type: Object, |
|
|
|
default: null |
|
|
|
}, |
|
|
|
isShowPackCount: { |
|
|
|
type: Boolean, |
|
|
|
default: false |
|
|
|
} |
|
|
|
}) |
|
|
|
</script> |
|
|
|