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.

30 lines
391 B

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