|
@@ -38,9 +38,7 @@
|
|
|
</el-descriptions-item>
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item>
|
|
<el-descriptions-item>
|
|
|
<template slot="label"> 生命周期</template>
|
|
<template slot="label"> 生命周期</template>
|
|
|
- <!-- <div v-if="queryInfo.source==1" style="color: #70B603">在用</div>
|
|
|
|
|
- <div v-if="queryInfo.source==2" style="color: #F59A23">在库</div>
|
|
|
|
|
- <div v-if="queryInfo.source==3" style="color: #AAAAAA">消耗</div> -->
|
|
|
|
|
|
|
+ {{getDictValue('生命周期', sourceType)}}
|
|
|
</el-descriptions-item>
|
|
</el-descriptions-item>
|
|
|
</el-descriptions>
|
|
</el-descriptions>
|
|
|
|
|
|
|
@@ -65,7 +63,7 @@
|
|
|
{{info.supplierMobile}}
|
|
{{info.supplierMobile}}
|
|
|
</el-descriptions-item>
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item :span="2">
|
|
<el-descriptions-item :span="2">
|
|
|
- <template slot="label"> {{queryInfo.source==2?'入库单号':'出库单号'}} </template>
|
|
|
|
|
|
|
+ <template slot="label"> {{sourceType==1?'入库单号':'出库单号'}} </template>
|
|
|
<!-- <el-link style="color: #70B603" @click="jumpDetails">{{info.warehouseDetail.bizNum}}</el-link> -->
|
|
<!-- <el-link style="color: #70B603" @click="jumpDetails">{{info.warehouseDetail.bizNum}}</el-link> -->
|
|
|
</el-descriptions-item>
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item>
|
|
<el-descriptions-item>
|
|
@@ -132,7 +130,9 @@
|
|
|
import {
|
|
import {
|
|
|
getDetails
|
|
getDetails
|
|
|
} from '@/api/classifyManage/itemInformation';
|
|
} from '@/api/classifyManage/itemInformation';
|
|
|
|
|
+ import dictMixins from '@/mixins/dictMixins';
|
|
|
export default {
|
|
export default {
|
|
|
|
|
+ mixins: [dictMixins],
|
|
|
props: {
|
|
props: {
|
|
|
rowId:{
|
|
rowId:{
|
|
|
type:String ,
|
|
type:String ,
|
|
@@ -148,19 +148,19 @@ export default {
|
|
|
},
|
|
},
|
|
|
// 设备图片
|
|
// 设备图片
|
|
|
imageUrl: "",
|
|
imageUrl: "",
|
|
|
- queryInfo:{}
|
|
|
|
|
-
|
|
|
|
|
|
|
+ sourceType:null
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
created () {
|
|
created () {
|
|
|
- // let id = this.queryInfo.id
|
|
|
|
|
this.getDetilInfo()
|
|
this.getDetilInfo()
|
|
|
|
|
+ this.requestDict('生命周期');
|
|
|
},
|
|
},
|
|
|
methods:{
|
|
methods:{
|
|
|
async getDetilInfo(){
|
|
async getDetilInfo(){
|
|
|
const res = await getAssetInfo(this.rowId)
|
|
const res = await getAssetInfo(this.rowId)
|
|
|
if (res){
|
|
if (res){
|
|
|
this.info = res
|
|
this.info = res
|
|
|
|
|
+ this.sourceType = res.positionList[0].type
|
|
|
this.$set(this.info, 'category', res.category)
|
|
this.$set(this.info, 'category', res.category)
|
|
|
this.$set(this.info, 'extInfoSelf', res.extInfoSelf?res.extInfoSelf:[])
|
|
this.$set(this.info, 'extInfoSelf', res.extInfoSelf?res.extInfoSelf:[])
|
|
|
// this.$set(this.info, 'warehouseDetail', res.data.warehouseDetail)
|
|
// this.$set(this.info, 'warehouseDetail', res.data.warehouseDetail)
|
|
@@ -176,7 +176,7 @@ export default {
|
|
|
if(!this.info.warehouseDetail){
|
|
if(!this.info.warehouseDetail){
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
- this.$refs.detailsDialogRef.init(this.info.warehouseDetail,this.queryInfo.source)
|
|
|
|
|
|
|
+ this.$refs.detailsDialogRef.init(this.info.warehouseDetail,this.sourceType)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|