|
|
@@ -26,9 +26,7 @@
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item>
|
|
|
<template slot="label"> 采购日期 </template>
|
|
|
- {{
|
|
|
- basicInfo.warehouseDetail && basicInfo.warehouseDetail.procurementTime
|
|
|
- }}
|
|
|
+ {{ info.productTime}}
|
|
|
</el-descriptions-item>
|
|
|
<!-- <el-descriptions-item>
|
|
|
<template slot="label"> 生产日期 </template>
|
|
|
@@ -36,7 +34,7 @@
|
|
|
</el-descriptions-item> -->
|
|
|
<el-descriptions-item>
|
|
|
<template slot="label"> 过保日期 </template>
|
|
|
- {{ basicInfo.expirationTime }}
|
|
|
+ {{ info.expirationTime }}
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item>
|
|
|
<template slot="label"> 计量单位 </template>
|
|
|
@@ -178,8 +176,8 @@
|
|
|
prodOpt: [
|
|
|
{ label: '固资编码', key: 'fixCode', value: '' },
|
|
|
{ label: '投产日期', key: 'startUpTime', value: '' },
|
|
|
- { label: '所属工厂', key: 'factoryName', value: '' },
|
|
|
- { label: '所属工序', key: 'roteName', value: '' },
|
|
|
+ { label: '所属厂房', key: 'factoryRoomName', value: '' },
|
|
|
+ // { label: '所属工序', key: 'roteName', value: '' },
|
|
|
{ label: '维护部门', key: 'repairGroupName', value: '' },
|
|
|
{ label: '维护人', key: 'repairUserName', value: '' },
|
|
|
{ label: '维护人电话', key: 'repairUserMobile', value: '' },
|
|
|
@@ -231,7 +229,7 @@
|
|
|
getInfo () {
|
|
|
getAssetInfo(this.id).then((data) => {
|
|
|
this.info = data;
|
|
|
- this.basicInfo = data.category;
|
|
|
+ this.basicInfo = data.category.category;
|
|
|
if (data.attUrl && data.attUrl.length > 0) {
|
|
|
// 文档信息
|
|
|
data.attUrl.forEach((item, index) => {
|
|
|
@@ -242,7 +240,7 @@
|
|
|
for (const item of this.prodOpt) {
|
|
|
// 地址
|
|
|
if (item.key == 'detailLocation') {
|
|
|
- item.value = data.positionList[0]?.pathName
|
|
|
+ item.value = data.positionList[0]?.pathName +'/'+ data.positionList[0]?.detailPosition
|
|
|
// ?.map((i) => i.name)
|
|
|
// .join(',');
|
|
|
} else {
|
|
|
@@ -250,8 +248,10 @@
|
|
|
}
|
|
|
}
|
|
|
// 设备图片
|
|
|
- if(typeof data.imageUrl !='string' ){
|
|
|
+ if(data.imageUrl.storePath ){
|
|
|
this.imageUrl = getImageUrl(data.imageUrl.storePath)
|
|
|
+ }else{
|
|
|
+ this.imageUrl = null
|
|
|
}
|
|
|
});
|
|
|
},
|