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