|
|
@ -3,16 +3,20 @@ |
|
|
|
<status v-if="isShowStatus" :status='dataContent.inventoryStatus'></status> |
|
|
|
|
|
|
|
<view class="uni-flex uni-row center"> |
|
|
|
<view class="text_recommend " :style='objTextStyle'> |
|
|
|
<view class="text_recommend "> |
|
|
|
{{Number(dataContent.qty)}} |
|
|
|
</view> |
|
|
|
<!-- /{{Number(dataContent.packQty)}} --> |
|
|
|
<!-- v-show="!isShowStdPack" --> |
|
|
|
<uom :uom="dataContent.uom"></uom> |
|
|
|
<view v-if="dataContent.packQty!=undefined" class="uni-flex uni-row "> |
|
|
|
<view class="uom">/</view> |
|
|
|
<view class="text_packQty">{{ calc(dataContent.qty,dataContent.packQty)}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view> |
|
|
|
<!-- {{dataContent}} --> |
|
|
|
<pack-unit :dataContent="dataContent"></pack-unit> |
|
|
|
<!-- <std-pack-qty v-show="isShowStdPack" :dataContent="dataContent"></std-pack-qty> --> |
|
|
|
</view> |
|
|
@ -66,7 +70,7 @@ |
|
|
|
type: Boolean, |
|
|
|
default: true |
|
|
|
}, |
|
|
|
objTextStyle:{ |
|
|
|
objTextStyle: { |
|
|
|
type: Object, |
|
|
|
default: null |
|
|
|
} |
|
|
@ -75,7 +79,9 @@ |
|
|
|
|
|
|
|
}, |
|
|
|
methods: { |
|
|
|
|
|
|
|
calc(qty, packQty) { |
|
|
|
return Math.ceil(Number(qty) / Number(packQty)); |
|
|
|
} |
|
|
|
}, |
|
|
|
} |
|
|
|
</script> |
|
|
|