|
|
|
@ -201,6 +201,9 @@ |
|
|
|
<el-form-item :label="' '"> |
|
|
|
<el-button type="primary" @click="uploadSparPartImageModal">备件图片</el-button> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="' '"> |
|
|
|
<el-button type="primary" @click="coreComponentModal">核心配件</el-button> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-form :inline="true" :model="saveData" label-position="top" :rules="rules"> |
|
|
|
<el-form-item prop="operatorName" :rules="rules.operatorName"> |
|
|
|
@ -437,6 +440,36 @@ |
|
|
|
</el-footer> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<el-dialog title="核心配件" :close-on-click-modal="false" v-drag :visible.sync="coreComponentFlag" width="460px"> |
|
|
|
<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-option |
|
|
|
v-for = "i in partSpareList" |
|
|
|
:key = "i.partNo" |
|
|
|
:label = "i.partNo+'-'+i.partDescription" |
|
|
|
: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-form-item> |
|
|
|
</el-form> |
|
|
|
<el-form :inline="true" label-position="top"> |
|
|
|
<el-form-item label="老序列号"> |
|
|
|
<el-input v-model="coreComponentData.oldSerialNo" style="width: 200px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="新序列号"> |
|
|
|
<el-input v-model="coreComponentData.newSerialNo" style="width: 200px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-footer style="height:40px;margin-top: 20px;text-align:center"> |
|
|
|
<el-button type="primary" @click="saveCoreComponent()">保存</el-button> |
|
|
|
<el-button type="primary" @click="coreComponentFlag = false">关闭</el-button> |
|
|
|
</el-footer> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<el-dialog title="图片查看" :close-on-click-modal="false" v-drag :visible.sync="imageModalFlag" width="390px" style="height: 550px;"> |
|
|
|
<div v-viewer> |
|
|
|
<img v-for="(item, index) in descImages" :src="item" :key="index" style="width: 100px;height: 100px"/> |
|
|
|
@ -534,6 +567,7 @@ |
|
|
|
deleteObjectFile, |
|
|
|
getInventoryStockList, // 获取领用出库信息 |
|
|
|
saveTrans, // 维修出库 |
|
|
|
saveCoreComponent, |
|
|
|
} from "@/api/eam/eam.js" |
|
|
|
import {downLoadObjectFile, getDevicePartList} from '@/api/eam/eam_object_list.js'; |
|
|
|
import {getTableDefaultListLanguage, getTableUserListLanguage} from "@/api/table.js" |
|
|
|
@ -563,12 +597,24 @@ |
|
|
|
}, |
|
|
|
data () { |
|
|
|
return { |
|
|
|
coreComponentFlag: false, |
|
|
|
uploadDialog: false, |
|
|
|
uploadData: { |
|
|
|
folder: '', |
|
|
|
title: '', |
|
|
|
orderNo: '' |
|
|
|
}, |
|
|
|
coreComponentData:{ |
|
|
|
site:'', |
|
|
|
orderNo:'', |
|
|
|
buNo:'', |
|
|
|
objectID:'', |
|
|
|
partNo:'', |
|
|
|
partDescription:'', |
|
|
|
createdBy:'', |
|
|
|
oldSerialNo:'', |
|
|
|
newSerialNo:'', |
|
|
|
}, |
|
|
|
fileData: { |
|
|
|
file: [], |
|
|
|
orderRef1: '', |
|
|
|
@ -853,6 +899,78 @@ |
|
|
|
fixed: '', |
|
|
|
columnWidth: 107, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 101004003, |
|
|
|
serialNumber: '101004003Table1CorePartNo', |
|
|
|
tableId: "101004003Table1", |
|
|
|
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: 101004003, |
|
|
|
serialNumber: '101004003Table1CorePartDescription', |
|
|
|
tableId: "101004003Table1", |
|
|
|
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: 101004003, |
|
|
|
serialNumber: '101004003Table1OldSerialNo', |
|
|
|
tableId: "101004003Table1", |
|
|
|
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: 101004003, |
|
|
|
serialNumber: '101004003Table1NewSerialNo', |
|
|
|
tableId: "101004003Table1", |
|
|
|
tableName: "维修执行表", |
|
|
|
columnProp: 'newSerialNo', |
|
|
|
headerAlign: "center", |
|
|
|
align: "left", |
|
|
|
columnLabel: '新序列号', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 120, |
|
|
|
}, |
|
|
|
], |
|
|
|
detailModelFlag: false, |
|
|
|
detailList: [], |
|
|
|
@ -1841,7 +1959,11 @@ |
|
|
|
feedBackDesc: row.feedBackDesc, |
|
|
|
faultReason: row.faultReason, |
|
|
|
preventiveMeasure: row.preventiveMeasure, |
|
|
|
result: row.result |
|
|
|
result: row.result, |
|
|
|
corePartNo:row.corePartNo, |
|
|
|
corePartDescription:row.corePartDescription, |
|
|
|
oldSerialNo:row.oldSerialNo, |
|
|
|
newSerialNo:row.newSerialNo, |
|
|
|
} |
|
|
|
this.activeTable = 'inspection_form' |
|
|
|
this.queryHistoryRecord() |
|
|
|
@ -2230,6 +2352,50 @@ |
|
|
|
this.authReach = !reachFlag |
|
|
|
this.authReport = !reportFlag |
|
|
|
}, |
|
|
|
coreComponentModal(){ |
|
|
|
this.getPartSpareList(); |
|
|
|
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, |
|
|
|
} |
|
|
|
this.coreComponentFlag=true; |
|
|
|
}, |
|
|
|
saveCoreComponent(){ |
|
|
|
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.coreComponentFlag = false |
|
|
|
this.$message({ |
|
|
|
message: '操作成功', |
|
|
|
type: 'success', |
|
|
|
duration: 1500, |
|
|
|
onClose: () => {} |
|
|
|
}) |
|
|
|
} else { |
|
|
|
this.$alert(data.msg, '错误', { |
|
|
|
confirmButtonText: '确定' |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
componentChange(value){ |
|
|
|
if(value&&value!==''){ |
|
|
|
this.coreComponentData.partDescription=this.partSpareList.filter(item => item.partNo === value)[0].partDescription; |
|
|
|
}else { |
|
|
|
this.coreComponentData.partDescription='' |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
|