|
|
@ -28,6 +28,13 @@ |
|
|
<el-option label="已到达" value="已到达"></el-option> |
|
|
<el-option label="已到达" value="已到达"></el-option> |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item :label="'单据来源'"> |
|
|
|
|
|
<el-select v-model="searchData.documentSource" style="width: 100px"> |
|
|
|
|
|
<el-option label="全部" value=""></el-option> |
|
|
|
|
|
<el-option label="设备点检" value="设备点检"></el-option> |
|
|
|
|
|
<el-option label="设备维修" value="设备维修"></el-option> |
|
|
|
|
|
</el-select> |
|
|
|
|
|
</el-form-item> |
|
|
<el-form-item :label="'计划执行日期:'"> |
|
|
<el-form-item :label="'计划执行日期:'"> |
|
|
<el-date-picker |
|
|
<el-date-picker |
|
|
style="width: 120px" |
|
|
style="width: 120px" |
|
|
@ -396,7 +403,8 @@ |
|
|
endDate:'', |
|
|
endDate:'', |
|
|
page: 1, |
|
|
page: 1, |
|
|
limit: 10, |
|
|
limit: 10, |
|
|
searchType: 'reportDefect' |
|
|
|
|
|
|
|
|
searchType: 'reportDefect', |
|
|
|
|
|
documentSource: '' |
|
|
}, |
|
|
}, |
|
|
height: 200, |
|
|
height: 200, |
|
|
pageIndex: 1, |
|
|
pageIndex: 1, |
|
|
@ -690,6 +698,23 @@ |
|
|
status: true, |
|
|
status: true, |
|
|
fixed: '', |
|
|
fixed: '', |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
functionId: 101020, |
|
|
|
|
|
serialNumber: '101020TableActualRemark', |
|
|
|
|
|
tableId: "101020Table", |
|
|
|
|
|
tableName: "common", |
|
|
|
|
|
columnProp: 'documentSource', |
|
|
|
|
|
headerAlign: "center", |
|
|
|
|
|
align: "center", |
|
|
|
|
|
columnLabel: '单据来源', |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
columnSortable: false, |
|
|
|
|
|
sortLv: 0, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: '', |
|
|
|
|
|
}, |
|
|
], |
|
|
], |
|
|
detailModelFlag:false, |
|
|
detailModelFlag:false, |
|
|
detailList:[], |
|
|
detailList:[], |
|
|
@ -1243,7 +1268,7 @@ |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 执行 |
|
|
// 执行 |
|
|
reportModal(row){ |
|
|
|
|
|
|
|
|
reportModal (row) { |
|
|
this.saveData = { |
|
|
this.saveData = { |
|
|
site: row.site, |
|
|
site: row.site, |
|
|
functionType: 'C', |
|
|
functionType: 'C', |
|
|
@ -1274,23 +1299,23 @@ |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
saveCheckReport () { |
|
|
saveCheckReport () { |
|
|
if(this.saveData.defectID === '' || this.saveData.defectID == null){ |
|
|
|
|
|
|
|
|
if (this.saveData.defectID === '' || this.saveData.defectID == null) { |
|
|
this.$message.warning('请选择故障编码!') |
|
|
this.$message.warning('请选择故障编码!') |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
if(this.saveData.result === '' || this.saveData.result == null){ |
|
|
|
|
|
|
|
|
if (this.saveData.result === '' || this.saveData.result == null) { |
|
|
this.$message.warning('请选择维修结果!') |
|
|
this.$message.warning('请选择维修结果!') |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
if(this.saveData.result === '维修失败' && (this.saveData.disposalMeasures == null || this.saveData.disposalMeasures === '')){ |
|
|
|
|
|
|
|
|
if (this.saveData.result === '维修失败' && (this.saveData.disposalMeasures == null || this.saveData.disposalMeasures === '')) { |
|
|
this.$message.warning('请选择处置措施!') |
|
|
this.$message.warning('请选择处置措施!') |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
if(this.saveData.operator == null || this.saveData.operator === ''){ |
|
|
|
|
|
|
|
|
if (this.saveData.operator == null || this.saveData.operator === '') { |
|
|
this.$message.warning('请选择维修人员!') |
|
|
this.$message.warning('请选择维修人员!') |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
if(this.saveData.handlingMethod == null || this.saveData.handlingMethod === ''){ |
|
|
|
|
|
|
|
|
if (this.saveData.handlingMethod == null || this.saveData.handlingMethod === '') { |
|
|
this.$message.warning('请填写处理方式!') |
|
|
this.$message.warning('请填写处理方式!') |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
@ -1313,13 +1338,13 @@ |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 上传故障图片 |
|
|
// 上传故障图片 |
|
|
uploadFaultImageModal(){ |
|
|
|
|
|
|
|
|
uploadFaultImageModal () { |
|
|
let currentData = { |
|
|
let currentData = { |
|
|
site: this.$store.state.user.site, |
|
|
site: this.$store.state.user.site, |
|
|
createBy: this.$store.state.user.name, |
|
|
createBy: this.$store.state.user.name, |
|
|
orderNo: this.saveData.orderNo, |
|
|
orderNo: this.saveData.orderNo, |
|
|
folder: 'reportFault', |
|
|
folder: 'reportFault', |
|
|
}; |
|
|
|
|
|
|
|
|
} |
|
|
//打开组件 去做新增业务 |
|
|
//打开组件 去做新增业务 |
|
|
this.$nextTick(() => { |
|
|
this.$nextTick(() => { |
|
|
this.$refs.reportImageUpload.init(currentData); |
|
|
this.$refs.reportImageUpload.init(currentData); |
|
|
@ -1333,7 +1358,7 @@ |
|
|
createBy: this.$store.state.user.name, |
|
|
createBy: this.$store.state.user.name, |
|
|
orderNo: this.saveData.orderNo, |
|
|
orderNo: this.saveData.orderNo, |
|
|
folder: 'reportSparPart', |
|
|
folder: 'reportSparPart', |
|
|
}; |
|
|
|
|
|
|
|
|
} |
|
|
//打开组件 去做新增业务 |
|
|
//打开组件 去做新增业务 |
|
|
this.$nextTick(() => { |
|
|
this.$nextTick(() => { |
|
|
this.$refs.reportImageUpload.init(currentData); |
|
|
this.$refs.reportImageUpload.init(currentData); |
|
|
|