|
|
@ -1,16 +1,17 @@ |
|
|
|
<template> |
|
|
|
|
|
|
|
<view class=""> |
|
|
|
<comListItem :dataList="dataList"></comListItem> |
|
|
|
</view> |
|
|
|
<detail-basic-info :dataContent="dataContent"></detail-basic-info> |
|
|
|
<!-- <comListItem :dataList="dataList"></comListItem> --> |
|
|
|
|
|
|
|
</view> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import comListItem from '@/mycomponents/common/comListItem.vue'; |
|
|
|
|
|
|
|
import detailBasicInfo from '@/mycomponents/detail/detailBasicInfo.vue' |
|
|
|
export default { |
|
|
|
components: { |
|
|
|
comListItem |
|
|
|
detailBasicInfo |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
@ -18,46 +19,7 @@ |
|
|
|
} |
|
|
|
}, |
|
|
|
watch: { |
|
|
|
dataContent: { |
|
|
|
handler(newName, oldName) { |
|
|
|
this.dataList = [ { |
|
|
|
title: '物品描述1', |
|
|
|
content: this.dataContent.itemDesc1, |
|
|
|
}, { |
|
|
|
title: '物品描述2', |
|
|
|
content: this.dataContent.itemDesc2, |
|
|
|
}, { |
|
|
|
title: '数量', |
|
|
|
content: this.dataContent.qty, |
|
|
|
}, { |
|
|
|
title: '计量单位', |
|
|
|
content: this.dataContent.uom, |
|
|
|
type:"uom" |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '项目代码', |
|
|
|
content: this.dataContent.projectCode, |
|
|
|
},{ |
|
|
|
title: '最后更新时间', |
|
|
|
content: this.dataContent.updateTime, |
|
|
|
type:"dateTime" |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '最后更新者Id', |
|
|
|
content: this.dataContent.lastModifierId, |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '最后更新者用户名', |
|
|
|
content: this.dataContent.lastModiferName, |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '并发乐观锁', |
|
|
|
content: this.dataContent.concurrencyStamp, |
|
|
|
}]; |
|
|
|
}, |
|
|
|
immediate: true, |
|
|
|
deep: true |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
mounted() {}, |
|
|
@ -68,7 +30,11 @@ |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
methods: {} |
|
|
|
methods: { |
|
|
|
getUnitInfo(value){ |
|
|
|
return getUnitInfo(value).label |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
|
|
|
|