You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

78 lines
1.2 KiB

12 months ago
<template>
<view class="">
<uni-popup ref="popup">
<detail-common-info :dataContent='dataContent' @onClose="closeScanPopup()" ></detail-common-info>
12 months ago
</uni-popup>
</view>
</template>
<script>
import {
getInventoryStatusName,
getStdPackUnitInfo
} from '@/common/directory.js';
import detailCommonInfo from '@/mycomponents/detail/detailCommonInfo.vue'
export default {
components: {
detailCommonInfo
},
data() {
return {
dataContent: {}
}
},
props: {
title: {
type: String,
default: ""
},
},
methods: {
openScanPopup(val) {
this.dataContent = val;
this.$refs.popup.open('bottom')
},
closeScanPopup() {
this.$refs.popup.close()
},
getInventoryStatusInfo(value) {
return getInventoryStatusName(value).label
},
getStdPackUnit(uom) {
let item = getStdPackUnitInfo(uom);
if (item == '') {
return uom;
} else {
return item.name
}
}
}
}
</script>
<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>