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.

66 lines
1.1 KiB

1 year ago
<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,
}];
},
immediate: true,
deep: true
}
},
mounted() {},
props: {
dataContent: {
type: Object,
default: {}
}
},
methods: {}
}
</script>
<style>
</style>