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.

41 lines
505 B

10 months ago
<template>
<view class="uom">
{{getStdPackUnit(uom)}}
</view>
</template>
<script>
import {
getStdPackUnitInfo
} from '@/common/directory.js';
export default {
data() {
return {
};
},
// 此处定义传入的数据
props: {
uom: {
type: String,
default: ''
},
},
methods: {
getStdPackUnit(uom) {
let item = getStdPackUnitInfo(uom);
if (item == '') {
return uom;
} else {
return item.label
}
}
}
}
</script>
<style>
</style>