|
|
|
@ -18,7 +18,8 @@
|
|
|
|
|
<div class="grid-title">概括名称:</div>
|
|
|
|
|
<div class="grid-value-btn">
|
|
|
|
|
<el-tooltip class="item" effect="light" :content="audioInfo.title" placement="top">
|
|
|
|
|
<el-input class="grid-value-value" v-loading="InputLoading" @blur="titleBlur" v-model="audioInfo.title" placeholder="概括名称" :disabled="disabled"></el-input>
|
|
|
|
|
<!-- @blur="titleBlur" -->
|
|
|
|
|
<el-input class="grid-value-value" v-loading="InputLoading" v-model="audioInfo.title" placeholder="概括名称" :disabled="disabled"></el-input>
|
|
|
|
|
</el-tooltip>
|
|
|
|
|
<el-button size="mini" @click="changeTitle"><img src="@/assets/images/changeTitle.png" alt=""> 修改标题</el-button>
|
|
|
|
|
</div>
|
|
|
|
@ -36,7 +37,7 @@
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<div class="grid-content">
|
|
|
|
|
<div class="grid-title">预警时间:</div>
|
|
|
|
|
<div class="grid-value">{{ audioInfo.firstWarnTime || audioInfo.caseDate }}</div>
|
|
|
|
|
<div class="grid-value">{{ audioInfo.firstWarnTimeDate || audioInfo.caseDate }}</div>
|
|
|
|
|
</div>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
@ -117,6 +118,7 @@
|
|
|
|
|
<el-button type="primary" @click="reported(1)">上报驾驶舱</el-button>
|
|
|
|
|
<!-- <el-button type="info" plain>不上报</el-button> -->
|
|
|
|
|
<el-button type="danger" @click="reported(2)">退回重训练</el-button>
|
|
|
|
|
<el-button type="success" @click="reported(3)">审核通过</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
<el-dialog
|
|
|
|
|
width="30%"
|
|
|
|
@ -124,8 +126,8 @@
|
|
|
|
|
:visible.sync="innerVisible"
|
|
|
|
|
append-to-body>
|
|
|
|
|
<el-descriptions :column="1">
|
|
|
|
|
<el-descriptions-item label="修改前标题">{{ audioInfo.title }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="修改后标题">{{ audioInfo.titleBefore }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="当前标题">{{ audioInfo.title }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="历史标题">{{ audioInfo.titleBefore }}</el-descriptions-item>
|
|
|
|
|
</el-descriptions>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
<urgency-audit title="工单详情" ref="urgencyAudit" :auditStatus="auditStatusTwo"></urgency-audit>
|
|
|
|
@ -226,21 +228,56 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
// 上报驾驶舱/退回重训练
|
|
|
|
|
reported(id){
|
|
|
|
|
this.$confirm(`确定要${id == 1 ? '重新上报驾驶仓' : '退回重训练'}吗?`, "警告", {
|
|
|
|
|
this.$confirm(`确定要${id == 1 ? '重新上报驾驶仓' : id == 2 ? '退回重训练' : id == 3 ? '审核通过':''}吗?`, "警告", {
|
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
|
cancelButtonText: "取消",
|
|
|
|
|
type: "warning",
|
|
|
|
|
}).then(() => {
|
|
|
|
|
eventChangeIsReport({isReport:id,caseSerial:this.multipleSelection,innerEventId:this.audioInfo.innerEventId}).then(res=>{
|
|
|
|
|
// console.log(res);
|
|
|
|
|
this.multipleSelection = [];
|
|
|
|
|
this.$message({
|
|
|
|
|
type: "success",
|
|
|
|
|
message: id == 1 ? '已上报驾驶舱' : '已退回重训练' + "!",
|
|
|
|
|
});
|
|
|
|
|
this.$emit('closeDialog')
|
|
|
|
|
this.close();
|
|
|
|
|
})
|
|
|
|
|
if(id !== 3) {
|
|
|
|
|
if(this.multipleSelection.length > 0 || this.backupsInfo.title !== this.audioInfo.title) {
|
|
|
|
|
if(this.backupsInfo.title !== this.audioInfo.title) {
|
|
|
|
|
eventChangeIsReport({isReport:id,caseSerial:this.multipleSelection,innerEventId:this.audioInfo.innerEventId,newTitle:this.audioInfo.title,oldTitle:this.backupsInfo.title}).then(res=>{
|
|
|
|
|
// console.log(res);
|
|
|
|
|
this.multipleSelection = [];
|
|
|
|
|
this.$message({
|
|
|
|
|
type: "success",
|
|
|
|
|
message: id == 1 ? '已上报驾驶舱' : '已退回重训练' + "!",
|
|
|
|
|
});
|
|
|
|
|
this.$emit('closeDialog')
|
|
|
|
|
this.close();
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
eventChangeIsReport({isReport:id,caseSerial:this.multipleSelection,innerEventId:this.audioInfo.innerEventId}).then(res=>{
|
|
|
|
|
// console.log(res);
|
|
|
|
|
this.multipleSelection = [];
|
|
|
|
|
this.$message({
|
|
|
|
|
type: "success",
|
|
|
|
|
message: id == 1 ? '已上报驾驶舱' : '已退回重训练' + "!",
|
|
|
|
|
});
|
|
|
|
|
this.$emit('closeDialog')
|
|
|
|
|
this.close();
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(`您未做任何操作,请修改后再${id == 1 ? '上报驾驶仓' : id == 2 ? '退回重训练' : ''}`);
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
if(this.backupsInfo.title !== this.audioInfo.title) {
|
|
|
|
|
this.$message.error(`您已修改标题,请上报驾驶舱或退回重训练`);
|
|
|
|
|
} else if(this.multipleSelection.length > 0) {
|
|
|
|
|
this.$message.error(`您已标记工单为不符合,请上报驾驶舱或退回重训练`);
|
|
|
|
|
} else {
|
|
|
|
|
eventChangeIsReport({isReport:id,innerEventId:this.audioInfo.innerEventId}).then(res=>{
|
|
|
|
|
// console.log(res);
|
|
|
|
|
this.$message({
|
|
|
|
|
type: "success",
|
|
|
|
|
message: "审核完成",
|
|
|
|
|
});
|
|
|
|
|
this.$emit('closeDialog')
|
|
|
|
|
this.close();
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
// 查看标题按钮
|
|
|
|
@ -255,18 +292,18 @@ export default {
|
|
|
|
|
titleBlur(){
|
|
|
|
|
this.disabled = true;
|
|
|
|
|
if(this.backupsInfo.title !== this.audioInfo.title) {
|
|
|
|
|
this.InputLoading = true;
|
|
|
|
|
editTitle({title:this.audioInfo.title, innerEventId:this.audioInfo.innerEventId}).then(res=>{
|
|
|
|
|
if(res.code == 200) {
|
|
|
|
|
this.$message({
|
|
|
|
|
type: "success",
|
|
|
|
|
message: "标题修改成功!",
|
|
|
|
|
});
|
|
|
|
|
this.InputLoading = false;
|
|
|
|
|
}
|
|
|
|
|
}).catch(err=>{
|
|
|
|
|
this.InputLoading = false;
|
|
|
|
|
})
|
|
|
|
|
// this.InputLoading = true;
|
|
|
|
|
// editTitle({title:this.audioInfo.title, innerEventId:this.audioInfo.innerEventId}).then(res=>{
|
|
|
|
|
// if(res.code == 200) {
|
|
|
|
|
// this.$message({
|
|
|
|
|
// type: "success",
|
|
|
|
|
// message: "标题修改成功!",
|
|
|
|
|
// });
|
|
|
|
|
// this.InputLoading = false;
|
|
|
|
|
// }
|
|
|
|
|
// }).catch(err=>{
|
|
|
|
|
// this.InputLoading = false;
|
|
|
|
|
// })
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// 获取页码
|
|
|
|
|