王志国
4 weeks ago
4 changed files with 176 additions and 3 deletions
@ -0,0 +1,85 @@ |
|||||
|
<template> |
||||
|
<view :class="detail.scaned?'scan_view':''" style="background-color: #ffffff;"> |
||||
|
<view class="space_between center"> |
||||
|
<view style="word-break: break-all;width: 60%;"> |
||||
|
<pack title='外包装' v-if="detail.parentPackingNumber" |
||||
|
:packingCode="detail.parentPackingNumber"></pack> |
||||
|
<pack v-if="isShowPack" :packingCode="detail.packingNumber"></pack> |
||||
|
<batch v-if="isShowBatch" :batch="detail.batch"></batch> |
||||
|
<location v-if="isShowLocation" :locationCode="detail.fromLocationCode"></location> |
||||
|
</view> |
||||
|
<view style="word-break: break-all;"> |
||||
|
<recommend-qty v-if="detail.record==null || detail.record==undefined" :dataContent="detail" |
||||
|
:isShowStatus='isShowStatus' :isShowStdPack="true" :isShowCount='false'></recommend-qty> |
||||
|
|
||||
|
<compare-qty v-else :dataContent="detail" :recommendQty="detail.qty" :handleQty="detail.record.qty" |
||||
|
:isShowStatus='isShowStatus' :isShowStdPack="true"> |
||||
|
</compare-qty> |
||||
|
</view> |
||||
|
</view> |
||||
|
</view> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import pack from '@/mycomponents/balance/pack.vue' |
||||
|
import location from '@/mycomponents/balance/location.vue' |
||||
|
import batch from '@/mycomponents/balance/batch.vue' |
||||
|
import recommendQty from '@/mycomponents/qty/recommendQty.vue' |
||||
|
import compareQty from '@/mycomponents/qty/compareQty.vue' |
||||
|
|
||||
|
export default { |
||||
|
components: { |
||||
|
pack, |
||||
|
location, |
||||
|
batch, |
||||
|
recommendQty, |
||||
|
compareQty |
||||
|
}, |
||||
|
|
||||
|
data() { |
||||
|
return { |
||||
|
|
||||
|
} |
||||
|
}, |
||||
|
props: { |
||||
|
detail: { |
||||
|
type: Object, |
||||
|
default: {} |
||||
|
}, |
||||
|
isShowPack: { |
||||
|
type: Boolean, |
||||
|
default: true |
||||
|
}, |
||||
|
isShowBatch: { |
||||
|
type: Boolean, |
||||
|
default: true |
||||
|
}, |
||||
|
isShowLocation: { |
||||
|
type: Boolean, |
||||
|
default: true |
||||
|
}, |
||||
|
isShowStatus: { |
||||
|
type: Boolean, |
||||
|
default: true |
||||
|
}, |
||||
|
}, |
||||
|
watch: { |
||||
|
|
||||
|
}, |
||||
|
methods: { |
||||
|
|
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style> |
||||
|
.recommend { |
||||
|
position: absolute; |
||||
|
left: 25px; |
||||
|
top: 70px; |
||||
|
width: 10px; |
||||
|
height: 30px; |
||||
|
opacity: 1; |
||||
|
|
||||
|
} |
||||
|
</style> |
@ -0,0 +1,77 @@ |
|||||
|
<template> |
||||
|
<view> |
||||
|
<view class="uni-flex uni-row space-between center "> |
||||
|
<view class="uni-flex uni-row " style="width: 60%;" > |
||||
|
<view style=" width: 25rpx;color: #32C1E8;"> |
||||
|
推荐 |
||||
|
</view> |
||||
|
<view style="word-break: break-all"> |
||||
|
<pack v-if="isShowPack&&detail.packingNumber" :packingCode="detail.packingNumber"></pack> |
||||
|
<batch v-if="isShowBatch&&detail.batch" :batch="detail.batch"></batch> |
||||
|
<location v-if="isShowLocation" :locationCode="detail.fromLocationCode"></location> |
||||
|
</view> |
||||
|
</view> |
||||
|
</view> |
||||
|
</view> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import pack from '@/mycomponents/balance/pack.vue' |
||||
|
import location from '@/mycomponents/balance/location.vue' |
||||
|
import batch from '@/mycomponents/balance/batch.vue' |
||||
|
import recommendQty from '@/mycomponents/qty/recommendQty.vue' |
||||
|
import compareQty from '@/mycomponents/qty/compareQty.vue' |
||||
|
|
||||
|
export default { |
||||
|
components: { |
||||
|
pack, |
||||
|
location, |
||||
|
batch, |
||||
|
recommendQty, |
||||
|
compareQty |
||||
|
}, |
||||
|
|
||||
|
data() { |
||||
|
return { |
||||
|
|
||||
|
} |
||||
|
}, |
||||
|
props: { |
||||
|
detail: { |
||||
|
type: Object, |
||||
|
default: {} |
||||
|
}, |
||||
|
isShowPack: { |
||||
|
type: Boolean, |
||||
|
default: true |
||||
|
}, |
||||
|
isShowBatch: { |
||||
|
type: Boolean, |
||||
|
default: true |
||||
|
}, |
||||
|
isShowLocation: { |
||||
|
type: Boolean, |
||||
|
default: true |
||||
|
}, |
||||
|
|
||||
|
}, |
||||
|
watch: { |
||||
|
|
||||
|
}, |
||||
|
methods: { |
||||
|
|
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style> |
||||
|
.recommend { |
||||
|
position: absolute; |
||||
|
left: 25px; |
||||
|
top: 70px; |
||||
|
width: 10px; |
||||
|
height: 30px; |
||||
|
opacity: 1; |
||||
|
|
||||
|
} |
||||
|
</style> |
Loading…
Reference in new issue