|
|
@@ -79,8 +79,7 @@
|
|
|
<!-- {{info.warehouseDetail.createTime}} -->
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item :span="2">
|
|
|
- <template slot="label"> 出库单号 </template>
|
|
|
- <!-- <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-descriptions-item>
|
|
|
<el-descriptions-item>
|
|
|
@@ -182,6 +181,7 @@ export default {
|
|
|
},
|
|
|
// 设备图片
|
|
|
imageUrl: "",
|
|
|
+ sourceType:null
|
|
|
}
|
|
|
},
|
|
|
created () {
|
|
|
@@ -191,10 +191,11 @@ export default {
|
|
|
async getDetilInfo(){
|
|
|
const res = await getAssetInfo(this.rowId)
|
|
|
if (res){
|
|
|
- this.info = res.data
|
|
|
- this.$set(this.info, 'extraInfo', JSON.parse(res.data.category.extendField))
|
|
|
- this.$set(this.info, 'category', res.data.category)
|
|
|
- this.$set(this.info, 'extInfoSelf', res.data.extInfoSelf?res.data.extInfoSelf:[])
|
|
|
+ this.info = res
|
|
|
+ this.$set(this.info, 'extraInfo', JSON.parse(res.category.extendField))
|
|
|
+ this.$set(this.info, 'category', res.category)
|
|
|
+ this.$set(this.info, 'extInfoSelf', res.extInfoSelf?res.extInfoSelf:[])
|
|
|
+ this.sourceType = res.positionList[0].type
|
|
|
// // 设备图片
|
|
|
// if (res.data.imageUrl) {
|
|
|
// imageView(res.data.imageUrl).then((res) => {
|
|
|
@@ -216,7 +217,7 @@ export default {
|
|
|
if(!this.info.warehouseDetail){
|
|
|
return
|
|
|
}
|
|
|
- this.$refs.detailsDialogRef.init(this.info.warehouseDetail,this.queryInfo.source)
|
|
|
+ this.$refs.detailsDialogRef.init(this.info.warehouseDetail,this.sourceType)
|
|
|
},
|
|
|
|
|
|
openfile(row) {
|