<template>
	<view class="std_pack" v-if="dataContent.stdPackQty!=undefined">
		<text>
			{{Number(dataContent.stdPackQty)}}•{{getStdPackUnit(dataContent.uom)}}
		</text>
	</view>
</template>
<script>
	import {
		// getStdPackUnitInfo,
		getUnitInfo
	} from "@/common/directory.js"
	export default {
		data() {
			return {

			};
		},
		// 此处定义传入的数据
		props: {
			dataContent: {
				stdPackQty: 1000,
				uom: "EA",
			},
		},
		methods: {
			getStdPackUnit(stdPackUnit) {
				let std = getUnitInfo(stdPackUnit);
				console.log("单位",std.label)
				return std == "" ? stdPackUnit : std.label;
			}
		}
	}
</script>


<style>
</style>
