|
|
|
@ -45,9 +45,6 @@ |
|
|
|
<el-option label="已到达" value="已到达"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="'更换核心配件编码'"> |
|
|
|
<el-input v-model="searchData.corePartNo" clearable style="width: 120px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="'单据来源'"> |
|
|
|
<el-select v-model="searchData.documentSource" clearable style="width: 100px"> |
|
|
|
<el-option label="设备点检" value="设备点检"></el-option> |
|
|
|
@ -251,7 +248,7 @@ |
|
|
|
<el-button type="primary" @click="uploadSparPartImageModal">备件图片</el-button> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="' '"> |
|
|
|
<el-button type="primary" @click="coreComponentModal">核心配件</el-button> |
|
|
|
<el-button type="primary" @click="coreComponentModal">核心备件</el-button> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-form :inline="true" :model="saveData" label-position="top" :rules="rules" style="margin-top: 15px"> |
|
|
|
@ -427,6 +424,31 @@ |
|
|
|
</el-pagination> |
|
|
|
</div> |
|
|
|
</el-tab-pane> |
|
|
|
<el-tab-pane label="核心备件" name="core_component"> |
|
|
|
<div class="rq "> |
|
|
|
<el-table |
|
|
|
:height="280" |
|
|
|
:data="corePartSpareList" |
|
|
|
border |
|
|
|
style="width: 100%;"> |
|
|
|
<el-table-column |
|
|
|
v-for="(item,index) in columnCoreComponent" :key="index" |
|
|
|
:sortable="item.columnSortable" |
|
|
|
:prop="item.columnProp" |
|
|
|
:header-align="item.headerAlign" |
|
|
|
:show-overflow-tooltip="item.showOverflowTooltip" |
|
|
|
:align="item.align" |
|
|
|
:fixed="item.fixed==''?false:item.fixed" |
|
|
|
:min-width="item.columnWidth" |
|
|
|
:label="item.columnLabel"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span> |
|
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</div> |
|
|
|
</el-tab-pane> |
|
|
|
<!-- <el-tab-pane label="设备知识库" name="eam_knowledge">--> |
|
|
|
<!-- <div class="rq ">--> |
|
|
|
<!-- <el-table--> |
|
|
|
@ -555,20 +577,20 @@ |
|
|
|
</el-footer> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<el-dialog title="核心配件" :close-on-click-modal="false" v-drag :visible.sync="coreComponentFlag" width="460px"> |
|
|
|
<el-dialog title="核心备件" :close-on-click-modal="false" v-drag :visible.sync="coreComponentFlag" width="450px"> |
|
|
|
<el-form :inline="true" label-position="top"> |
|
|
|
<el-form-item label="备件编码"> |
|
|
|
<el-select v-model="coreComponentData.partNo" placeholder="请选择" clearable @change="componentChange" style="width: 200px"> |
|
|
|
<el-select v-model="coreComponentData.partNo" placeholder="请选择" clearable @change="componentChange" style="width: 120px"> |
|
|
|
<el-option |
|
|
|
v-for = "i in corePartSpareList" |
|
|
|
:key = "i.partNo" |
|
|
|
:label = "i.partNo+'-'+i.partDescription" |
|
|
|
:label = "i.partNo" |
|
|
|
:value = "i.partNo"> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="备件名称"> |
|
|
|
<el-input v-model="coreComponentData.partDescription" disabled style="width: 200px"></el-input> |
|
|
|
<el-input v-model="coreComponentData.partDescription" disabled style="width: 280px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-form :inline="true" label-position="top"> |
|
|
|
@ -726,17 +748,17 @@ export default { |
|
|
|
title: '', |
|
|
|
orderNo: '' |
|
|
|
}, |
|
|
|
corePartSpareList:[], |
|
|
|
coreComponentData:{ |
|
|
|
site:'', |
|
|
|
orderNo:'', |
|
|
|
buNo:'', |
|
|
|
objectID:'', |
|
|
|
partNo:'', |
|
|
|
partDescription:'', |
|
|
|
createdBy:'', |
|
|
|
oldSerialNo:'', |
|
|
|
newSerialNo:'', |
|
|
|
corePartSpareList: [], |
|
|
|
coreComponentData: { |
|
|
|
site: '', |
|
|
|
orderNo: '', |
|
|
|
buNo: '', |
|
|
|
objectID: '', |
|
|
|
partNo: '', |
|
|
|
partDescription: '', |
|
|
|
createdBy: '', |
|
|
|
oldSerialNo: '', |
|
|
|
newSerialNo: '', |
|
|
|
}, |
|
|
|
fileData: { |
|
|
|
file: [], |
|
|
|
@ -758,7 +780,6 @@ export default { |
|
|
|
exportList: [], |
|
|
|
// 导出 end |
|
|
|
searchData: { |
|
|
|
corePartNo: '', |
|
|
|
site: '', |
|
|
|
userName: this.$store.state.user.name, |
|
|
|
orderNo: '', |
|
|
|
@ -805,7 +826,7 @@ export default { |
|
|
|
tableName: "维修执行表", |
|
|
|
columnProp: 'orderNo', |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
align: "left", |
|
|
|
columnLabel: '工单编码', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
@ -813,7 +834,7 @@ export default { |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 107, |
|
|
|
columnWidth: 100, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
@ -823,7 +844,7 @@ export default { |
|
|
|
tableName: "维修执行表", |
|
|
|
columnProp: 'planID', |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
align: "left", |
|
|
|
columnLabel: '反馈单号', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
@ -831,7 +852,7 @@ export default { |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 107, |
|
|
|
columnWidth: 100, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
@ -841,7 +862,7 @@ export default { |
|
|
|
tableName: "维修执行表", |
|
|
|
columnProp: 'feedBackDesc', |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
align: "left", |
|
|
|
columnLabel: '反馈描述', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
@ -849,7 +870,7 @@ export default { |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 107, |
|
|
|
columnWidth: 200, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
@ -859,7 +880,7 @@ export default { |
|
|
|
tableName: "维修执行表", |
|
|
|
columnProp: 'defectID', |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
align: "left", |
|
|
|
columnLabel: '故障编码', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
@ -867,7 +888,7 @@ export default { |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 107, |
|
|
|
columnWidth: 80, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
@ -877,7 +898,7 @@ export default { |
|
|
|
tableName: "维修执行表", |
|
|
|
columnProp: 'defectDesc', |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
align: "left", |
|
|
|
columnLabel: '故障名称', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
@ -885,7 +906,7 @@ export default { |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 107, |
|
|
|
columnWidth: 120, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
@ -895,7 +916,7 @@ export default { |
|
|
|
tableName: "维修执行表", |
|
|
|
columnProp: 'objectID', |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
align: "left", |
|
|
|
columnLabel: '设备编码', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
@ -903,7 +924,7 @@ export default { |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 107, |
|
|
|
columnWidth: 100, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
@ -913,7 +934,7 @@ export default { |
|
|
|
tableName: "维修执行表", |
|
|
|
columnProp: 'objectDesc', |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
align: "left", |
|
|
|
columnLabel: '设备名称', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
@ -921,7 +942,7 @@ export default { |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 107, |
|
|
|
columnWidth: 150, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
@ -939,7 +960,7 @@ export default { |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 107, |
|
|
|
columnWidth: 100, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
@ -957,7 +978,7 @@ export default { |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 107, |
|
|
|
columnWidth: 80, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
@ -975,7 +996,7 @@ export default { |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 107, |
|
|
|
columnWidth: 100, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
@ -993,7 +1014,7 @@ export default { |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 107, |
|
|
|
columnWidth: 100, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
@ -1011,7 +1032,7 @@ export default { |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 107, |
|
|
|
columnWidth: 200, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
@ -1029,80 +1050,8 @@ export default { |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 107, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 101004005, |
|
|
|
serialNumber: '101004005Table1CorePartNo', |
|
|
|
tableId: "101004005Table1", |
|
|
|
tableName: "维修执行表", |
|
|
|
columnProp: 'corePartNo', |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
columnLabel: '更换配件编码', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 100, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 101004005, |
|
|
|
serialNumber: '101004005Table1CorePartDescription', |
|
|
|
tableId: "101004005Table1", |
|
|
|
tableName: "维修执行表", |
|
|
|
columnProp: 'corePartDescription', |
|
|
|
headerAlign: "center", |
|
|
|
align: "left", |
|
|
|
columnLabel: '更换配件名称', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 100, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 101004005, |
|
|
|
serialNumber: '101004005Table1OldSerialNo', |
|
|
|
tableId: "101004005Table1", |
|
|
|
tableName: "维修执行表", |
|
|
|
columnProp: 'oldSerialNo', |
|
|
|
headerAlign: "center", |
|
|
|
align: "left", |
|
|
|
columnLabel: '老序列号', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 120, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 101004005, |
|
|
|
serialNumber: '101004005Table1NewSerialNo', |
|
|
|
tableId: "101004005Table1", |
|
|
|
tableName: "维修执行表", |
|
|
|
columnProp: 'newSerialNo', |
|
|
|
headerAlign: "center", |
|
|
|
align: "left", |
|
|
|
columnLabel: '新序列号', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 120, |
|
|
|
}, |
|
|
|
], |
|
|
|
detailModelFlag: false, |
|
|
|
detailList: [], |
|
|
|
@ -1135,10 +1084,6 @@ export default { |
|
|
|
feedBackDesc: '', |
|
|
|
faultReason: '', |
|
|
|
preventiveMeasure: '', |
|
|
|
corePartNo: '', |
|
|
|
corePartDescription: '', |
|
|
|
oldSerialNo: '', |
|
|
|
newSerialNo: '', |
|
|
|
repairReportingType: '', |
|
|
|
repairType: '', |
|
|
|
createBy: '', |
|
|
|
@ -1331,6 +1276,52 @@ export default { |
|
|
|
columnWidth: 100, |
|
|
|
}, |
|
|
|
], |
|
|
|
columnCoreComponent: [ |
|
|
|
{ |
|
|
|
columnProp: 'partNo', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'left', |
|
|
|
columnLabel: '备件编码', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
status: true, |
|
|
|
fixed: false, |
|
|
|
columnWidth: 120, |
|
|
|
}, |
|
|
|
{ |
|
|
|
columnProp: 'partDescription', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'left', |
|
|
|
columnLabel: '备件名称', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
status: true, |
|
|
|
fixed: false, |
|
|
|
columnWidth: 200, |
|
|
|
}, |
|
|
|
{ |
|
|
|
columnProp: 'oldSerialNo', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'left', |
|
|
|
columnLabel: '老序列号', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
status: true, |
|
|
|
fixed: false, |
|
|
|
columnWidth: 120, |
|
|
|
}, |
|
|
|
{ |
|
|
|
columnProp: 'newSerialNo', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'left', |
|
|
|
columnLabel: '新序列号', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
status: true, |
|
|
|
fixed: false, |
|
|
|
columnWidth: 120, |
|
|
|
}, |
|
|
|
], |
|
|
|
// 日期限制 |
|
|
|
pickerOptions: { |
|
|
|
disabledDate(time) { |
|
|
|
@ -1342,6 +1333,7 @@ export default { |
|
|
|
feedBackImages: [], |
|
|
|
sparPartImages: [], |
|
|
|
partSpareList: [], |
|
|
|
coreComponentList: [], |
|
|
|
columnHistoryList: [ |
|
|
|
{ |
|
|
|
columnWidth: 100, |
|
|
|
@ -2250,10 +2242,6 @@ export default { |
|
|
|
faultReason: row.faultReason, |
|
|
|
preventiveMeasure: row.preventiveMeasure, |
|
|
|
result: row.result, |
|
|
|
corePartNo: row.corePartNo, |
|
|
|
corePartDescription: row.corePartDescription, |
|
|
|
oldSerialNo: row.oldSerialNo, |
|
|
|
newSerialNo: row.newSerialNo, |
|
|
|
repairReportingType: row.repairReportingType, |
|
|
|
repairType: row.repairType, |
|
|
|
createBy: row.createBy, |
|
|
|
@ -2362,6 +2350,8 @@ export default { |
|
|
|
this.queryKnowledgeRecord() |
|
|
|
} else if (this.activeTable === 'spar_part_img') { |
|
|
|
this.getSparPartImages() |
|
|
|
} else if (this.activeTable === 'core_component') { |
|
|
|
this.getCorePartSpareList() |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
@ -2649,7 +2639,6 @@ export default { |
|
|
|
} |
|
|
|
await getTableUserListLanguage(queryTableUser).then(({data}) => { |
|
|
|
if (data.rows.length > 0) { |
|
|
|
//this.columnList1 = [] |
|
|
|
switch (columnId) { |
|
|
|
case 1: |
|
|
|
this.columnList = data.rows |
|
|
|
@ -2657,12 +2646,6 @@ export default { |
|
|
|
case 2: |
|
|
|
this.columnHistoryList = data.rows |
|
|
|
break; |
|
|
|
// case 3: |
|
|
|
// this.columnList2 = data.rows |
|
|
|
// break; |
|
|
|
// case 4: |
|
|
|
// this.columnList3 = data.rows |
|
|
|
// break; |
|
|
|
} |
|
|
|
} else { |
|
|
|
this.getColumnList(tableId, columnId) |
|
|
|
@ -2678,7 +2661,7 @@ export default { |
|
|
|
languageCode: this.$i18n.locale |
|
|
|
} |
|
|
|
await getTableDefaultListLanguage(queryTable).then(({data}) => { |
|
|
|
if (!data.rows.length == 0) { |
|
|
|
if (!data.rows.length === 0) { |
|
|
|
switch (columnId) { |
|
|
|
case 1: |
|
|
|
this.columnList = data.rows |
|
|
|
@ -2686,15 +2669,7 @@ export default { |
|
|
|
case 2: |
|
|
|
this.columnHistoryList = data.rows |
|
|
|
break; |
|
|
|
// case 3: |
|
|
|
// this.columnList2 = data.rows |
|
|
|
// break; |
|
|
|
// case 4: |
|
|
|
// this.columnList3 = data.rows |
|
|
|
// break; |
|
|
|
} |
|
|
|
} else { |
|
|
|
// this.showDefault = true. |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
@ -2709,13 +2684,15 @@ export default { |
|
|
|
this.authReach = !reachFlag |
|
|
|
this.authReport = !reportFlag |
|
|
|
}, |
|
|
|
getCorePartSpareList(){ |
|
|
|
|
|
|
|
getCorePartSpareList () { |
|
|
|
let tempData = { |
|
|
|
site: this.saveData.site, |
|
|
|
objectID: this.saveData.objectID |
|
|
|
buNo: this.saveData.buNo, |
|
|
|
objectID: this.saveData.objectID, |
|
|
|
orderNo: this.saveData.orderNo, |
|
|
|
} |
|
|
|
getDeviceCorePartList(tempData).then(({data}) => { |
|
|
|
// 区分请求成功和失败的状况 |
|
|
|
if (data && data.code === 200) { |
|
|
|
this.corePartSpareList = data.rows |
|
|
|
} else { |
|
|
|
@ -2723,29 +2700,35 @@ export default { |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
coreComponentModal(){ |
|
|
|
this.getCorePartSpareList(); |
|
|
|
this.coreComponentData={ |
|
|
|
site:this.saveData.site, |
|
|
|
buNo:this.saveData.buNo, |
|
|
|
orderNo:this.saveData.orderNo, |
|
|
|
objectID:this.saveData.objectID, |
|
|
|
partNo:this.saveData.corePartNo, |
|
|
|
partDescription:this.saveData.corePartDescription, |
|
|
|
createdBy:this.$store.state.user.name, |
|
|
|
oldSerialNo:this.saveData.oldSerialNo, |
|
|
|
newSerialNo:this.saveData.newSerialNo, |
|
|
|
|
|
|
|
coreComponentModal () { |
|
|
|
this.getCorePartSpareList() |
|
|
|
this.coreComponentData = { |
|
|
|
site: this.saveData.site, |
|
|
|
buNo: this.saveData.buNo, |
|
|
|
orderNo: this.saveData.orderNo, |
|
|
|
objectID: this.saveData.objectID, |
|
|
|
createdBy: this.$store.state.user.name, |
|
|
|
partNo: '', |
|
|
|
partDescription: '', |
|
|
|
oldSerialNo: '', |
|
|
|
newSerialNo: '', |
|
|
|
} |
|
|
|
this.coreComponentFlag=true; |
|
|
|
this.coreComponentFlag = true |
|
|
|
}, |
|
|
|
saveCoreComponent(){ |
|
|
|
|
|
|
|
saveCoreComponent () { |
|
|
|
if (this.coreComponentData.orderNo === '' || this.coreComponentData.orderNo == null) { |
|
|
|
this.$message.warning('未绑定维修工单号!') |
|
|
|
return |
|
|
|
} |
|
|
|
if (this.coreComponentData.partNo === '' || this.coreComponentData.partNo == null) { |
|
|
|
this.$message.warning('请选择备件!') |
|
|
|
return |
|
|
|
} |
|
|
|
saveCoreComponent(this.coreComponentData).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.saveData.corePartNo=this.coreComponentData.partNo |
|
|
|
this.saveData.corePartDescription=this.coreComponentData.partDescription |
|
|
|
this.saveData.oldSerialNo=this.coreComponentData.oldSerialNo |
|
|
|
this.saveData.newSerialNo=this.coreComponentData.newSerialNo |
|
|
|
this.getDataList() |
|
|
|
this.getCorePartSpareList() |
|
|
|
this.coreComponentFlag = false |
|
|
|
this.$message({ |
|
|
|
message: '操作成功', |
|
|
|
@ -2760,11 +2743,17 @@ export default { |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
componentChange(value){ |
|
|
|
if(value&&value!==''){ |
|
|
|
this.coreComponentData.partDescription=this.corePartSpareList.filter(item => item.partNo === value)[0].partDescription; |
|
|
|
}else { |
|
|
|
this.coreComponentData.partDescription='' |
|
|
|
|
|
|
|
componentChange (value) { |
|
|
|
if (value && value !== '') { |
|
|
|
let tempData = this.corePartSpareList.filter(item => item.partNo === value)[0] |
|
|
|
this.coreComponentData.partDescription = tempData.partDescription |
|
|
|
this.coreComponentData.oldSerialNo = tempData.oldSerialNo |
|
|
|
this.coreComponentData.newSerialNo = tempData.newSerialNo |
|
|
|
} else { |
|
|
|
this.coreComponentData.partDescription = '' |
|
|
|
this.coreComponentData.oldSerialNo = '' |
|
|
|
this.coreComponentData.newSerialNo = '' |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|