<template>

	<view class="">
		<comListItem :dataList="dataList"></comListItem>
	</view>

</template>

<script>
	import comListItem from '@/mycomponents/common/comListItem.vue';
	export default {
		components: {
			comListItem
		},
		data() {
			return {
				dataList: []
			}
		},
		watch: {
			dataContent: {
				handler(newName, oldName) {
					this.dataList = [{
						title: '物品代码',
						content: this.dataContent.itemCode
					}, {
						title: '物品名称',
						content: this.dataContent.itemName
					}, {
						title: '物品描述1',
						content: this.dataContent.itemDesc1,
					}, {
						title: '物品描述2',
						content: this.dataContent.itemDesc2,
					}, {
						title: '项目代码',
						content: this.dataContent.projectCode,
					}, {
						title: '数量',
						content: this.dataContent.qty,
					}, {
						title: '计量单位',
						content: this.dataContent.uom,
						type:"uom"
					}];
				},
				immediate: true,
				deep: true
			}
		},

		mounted() {},
		props: {
			dataContent: {
				type: Object,
				default: {}
			}
		},

		methods: {}
	}
</script>

<style>

</style>
