8 changed files with 139 additions and 226 deletions
@ -1,77 +1,69 @@ |
|||||
<template> |
<template> |
||||
<view class=""> |
|
||||
<uni-popup ref="popup"> |
<uni-popup ref="popup"> |
||||
<recordDetailCommonInfo :dataContent='dataContent'></recordDetailCommonInfo> |
<view class="pop_detail" style="height:80%"> |
||||
</uni-popup> |
<com-item :dataContent="dataContent"></com-item> |
||||
|
<u-line></u-line> |
||||
|
<scroll-view style="height:320px "> |
||||
|
<!-- 物品 --> |
||||
|
<detail-item-info :dataContent="dataContent"></detail-item-info> |
||||
|
<u-line></u-line> |
||||
|
<!-- 库存余额 --> |
||||
|
<detail-balance-info :dataContent="dataContent"></detail-balance-info> |
||||
|
<u-line></u-line> |
||||
|
<!-- 包装 --> |
||||
|
<detail-package-info :dataContent="dataContent.package"></detail-package-info> |
||||
|
</scroll-view> |
||||
|
|
||||
|
<view class="uni-flex u-row-center "> |
||||
|
<view class="close_button" @click="closePopup"> |
||||
|
关闭</view> |
||||
|
<!-- button 滚动不好使 --> |
||||
</view> |
</view> |
||||
|
</view> |
||||
|
</uni-popup> |
||||
</template> |
</template> |
||||
|
|
||||
<script> |
<script> |
||||
import { |
import comItem from '@/mycomponents/item/item.vue' |
||||
getInventoryStatusName, |
import detailItemInfo from '@/mycomponents/detail/detailItemInfo.vue' |
||||
getStdPackUnitInfo |
import detailPackageInfo from '@/mycomponents/detail/detailPackageInfo.vue' |
||||
} from '@/common/directory.js'; |
import detailBalanceInfo from '@/mycomponents/detail/detailBalanceInfo.vue' |
||||
|
|
||||
import recordDetailCommonInfo from '@/mycomponents/detail/recordDetailCommonInfo.vue' |
|
||||
export default { |
export default { |
||||
|
emits: ['onClose'], |
||||
components: { |
components: { |
||||
recordDetailCommonInfo |
comItem, |
||||
|
detailItemInfo, |
||||
|
detailPackageInfo, |
||||
|
detailBalanceInfo |
||||
}, |
}, |
||||
data() { |
data() { |
||||
return { |
return { |
||||
dataContent: {} |
dataContent: { |
||||
|
type: Object, |
||||
|
default: {} |
||||
|
} |
||||
} |
} |
||||
}, |
}, |
||||
|
|
||||
|
mounted() {}, |
||||
props: { |
props: { |
||||
title: { |
|
||||
type: String, |
|
||||
default: "" |
|
||||
}, |
|
||||
|
|
||||
}, |
}, |
||||
|
|
||||
methods: { |
methods: { |
||||
openScanPopup(val) { |
openPopup(val) { |
||||
this.dataContent = val; |
this.dataContent = val; |
||||
this.$refs.popup.open('bottom') |
this.$refs.popup.open('bottom') |
||||
}, |
}, |
||||
closeScanPopup() { |
closePopup() { |
||||
this.$refs.popup.close() |
this.$refs.popup.close() |
||||
}, |
}, |
||||
getInventoryStatusInfo(value) { |
|
||||
return getInventoryStatusName(value).label |
|
||||
}, |
|
||||
getStdPackUnit(uom) { |
|
||||
let item = getStdPackUnitInfo(uom); |
|
||||
if (item == '') { |
|
||||
return uom; |
|
||||
} else { |
|
||||
return item.label |
|
||||
} |
|
||||
} |
|
||||
} |
} |
||||
} |
} |
||||
</script> |
</script> |
||||
|
|
||||
<style> |
<style> |
||||
.popup_box { |
|
||||
width: 500rpx; |
|
||||
height: 500rpx; |
|
||||
} |
|
||||
|
|
||||
.item_big_title { |
|
||||
color: #2196F3; |
|
||||
font-size: 35rpx; |
|
||||
margin-top: 15rpx; |
|
||||
margin-bottom: 15rpx; |
|
||||
} |
|
||||
|
|
||||
.item { |
|
||||
padding-top: 5rpx; |
|
||||
padding-bottom: 5rpx; |
|
||||
} |
|
||||
|
|
||||
.item_title { |
|
||||
color: #000000; |
|
||||
font-size: 32rpx; |
|
||||
} |
|
||||
</style> |
</style> |
||||
|
Loading…
Reference in new issue