|
|
|
@ -450,7 +450,7 @@ |
|
|
|
<el-form-item label="备件编码"> |
|
|
|
<el-select v-model="coreComponentData.partNo" placeholder="请选择" clearable @change="componentChange" style="width: 200px"> |
|
|
|
<el-option |
|
|
|
v-for = "i in partSpareList" |
|
|
|
v-for = "i in corePartSpareList" |
|
|
|
:key = "i.partNo" |
|
|
|
:label = "i.partNo+'-'+i.partDescription" |
|
|
|
:value = "i.partNo"> |
|
|
|
@ -573,8 +573,9 @@ |
|
|
|
getInventoryStockList, // 获取领用出库信息 |
|
|
|
saveTrans, // 维修出库 |
|
|
|
saveCoreComponent, |
|
|
|
|
|
|
|
} from "@/api/eam/eam.js" |
|
|
|
import {downLoadObjectFile, getDevicePartList} from '@/api/eam/eam_object_list.js'; |
|
|
|
import {downLoadObjectFile, getDeviceCorePartList, getDevicePartList} from '@/api/eam/eam_object_list.js'; |
|
|
|
import {getTableDefaultListLanguage, getTableUserListLanguage} from "@/api/table.js" |
|
|
|
import Chooselist from '@/views/modules/common/Chooselist_eam' |
|
|
|
import {userFavoriteList, saveUserFavorite, removeUserFavorite} from '@/api/userFavorite.js' |
|
|
|
@ -609,6 +610,7 @@ |
|
|
|
title: '', |
|
|
|
orderNo: '' |
|
|
|
}, |
|
|
|
corePartSpareList:[], |
|
|
|
coreComponentData:{ |
|
|
|
site:'', |
|
|
|
orderNo:'', |
|
|
|
@ -2358,8 +2360,22 @@ |
|
|
|
this.authReach = !reachFlag |
|
|
|
this.authReport = !reportFlag |
|
|
|
}, |
|
|
|
getCorePartSpareList(){ |
|
|
|
let tempData = { |
|
|
|
site: this.saveData.site, |
|
|
|
objectID: this.saveData.objectID |
|
|
|
} |
|
|
|
getDeviceCorePartList(tempData).then(({data}) => { |
|
|
|
// 区分请求成功和失败的状况 |
|
|
|
if (data && data.code === 200) { |
|
|
|
this.corePartSpareList = data.rows |
|
|
|
} else { |
|
|
|
this.corePartSpareList = [] |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
coreComponentModal(){ |
|
|
|
this.getPartSpareList(); |
|
|
|
this.getCorePartSpareList(); |
|
|
|
this.coreComponentData={ |
|
|
|
site:this.saveData.site, |
|
|
|
buNo:this.saveData.buNo, |
|
|
|
@ -2397,7 +2413,7 @@ |
|
|
|
}, |
|
|
|
componentChange(value){ |
|
|
|
if(value&&value!==''){ |
|
|
|
this.coreComponentData.partDescription=this.partSpareList.filter(item => item.partNo === value)[0].partDescription; |
|
|
|
this.coreComponentData.partDescription=this.corePartSpareList.filter(item => item.partNo === value)[0].partDescription; |
|
|
|
}else { |
|
|
|
this.coreComponentData.partDescription='' |
|
|
|
} |
|
|
|
|