|
|
|
@ -709,6 +709,7 @@ |
|
|
|
} from "@/api/eam/eam.js" |
|
|
|
import { |
|
|
|
downLoadObjectFile, |
|
|
|
getDeviceCorePartListAll, |
|
|
|
getDeviceCorePartList, |
|
|
|
getDevicePartList, |
|
|
|
getKnowledgeBaseList, |
|
|
|
@ -749,6 +750,7 @@ |
|
|
|
orderNo: '' |
|
|
|
}, |
|
|
|
corePartSpareList: [], |
|
|
|
corePartSpareListAll: [], |
|
|
|
coreComponentData: { |
|
|
|
site: '', |
|
|
|
orderNo: '', |
|
|
|
@ -2687,6 +2689,23 @@ |
|
|
|
this.authReport = !reportFlag |
|
|
|
}, |
|
|
|
|
|
|
|
// 获取核心备件列表 |
|
|
|
getCorePartSpareListAll () { |
|
|
|
let tempData = { |
|
|
|
site: this.saveData.site, |
|
|
|
buNo: this.saveData.buNo, |
|
|
|
objectID: this.saveData.objectID, |
|
|
|
orderNo: this.saveData.orderNo, |
|
|
|
} |
|
|
|
getDeviceCorePartList(tempData).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.corePartSpareListAll = data.rows |
|
|
|
} else { |
|
|
|
this.corePartSpareListAll = [] |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
getCorePartSpareList () { |
|
|
|
let tempData = { |
|
|
|
site: this.saveData.site, |
|
|
|
@ -2695,7 +2714,7 @@ |
|
|
|
orderNo: this.saveData.orderNo, |
|
|
|
} |
|
|
|
getDeviceCorePartList(tempData).then(({data}) => { |
|
|
|
if (data && data.code === 200) { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.corePartSpareList = data.rows |
|
|
|
} else { |
|
|
|
this.corePartSpareList = [] |
|
|
|
|