<template>
	<view class="uom">
		{{getUom(uom)}}
	</view>
</template>


<script setup lang="ts">
	import {
		getUomInfo
	} from '@/common/directory.js';
	const props = defineProps({
		uom: {
			type: String,
			default: ''
		},
	})
	const getUom = (uom) => {
		let item = getUomInfo(uom);
		if (item == '') {
			return uom;
		} else {
			return item.label
		}
	}
</script>


<style>
</style>