|
|
|
@ -203,8 +203,8 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-footer style="height:40px;margin-top: 10px;text-align:center"> |
|
|
|
<el-button type="primary" @click="submitModel()">确定</el-button> |
|
|
|
<el-button type="primary" @click="submitModelFlag = false">取消</el-button> |
|
|
|
<el-button type="primary" @click="submitModel(1)">通过</el-button> |
|
|
|
<el-button type="primary" @click="submitModel(2)">退回</el-button> |
|
|
|
</el-footer> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
@ -279,7 +279,7 @@ |
|
|
|
<el-input v-model="detailData.actualOperatorName" disabled style="width: 523px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="' '"> |
|
|
|
<el-button v-if="detailData.status === '已完工'" type="primary" @click="checkModal()">审核退回</el-button> |
|
|
|
<el-button v-if="detailData.status === '已完工'" type="primary" @click="revokeModel()">审核撤销</el-button> |
|
|
|
<el-button v-if="detailData.status === '待审核'" type="primary" @click="checkModal()">审核</el-button> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="' '"> |
|
|
|
@ -1467,62 +1467,152 @@ |
|
|
|
this.submitData.remark = this.detailData.remark |
|
|
|
this.submitData.difficultyLevel = '' |
|
|
|
this.submitData.difficultyRemark = '' |
|
|
|
if (this.detailData.status === '已完工') { |
|
|
|
this.$confirm(`是否取消审核?`, '提示', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
}).then(() => { |
|
|
|
this.submitData.status = '已到达' |
|
|
|
submitDefect(this.submitData).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.getDataList() |
|
|
|
this.detailData.status = '待审核' |
|
|
|
this.$message({ |
|
|
|
message: '操作成功', |
|
|
|
type: 'success', |
|
|
|
duration: 1500, |
|
|
|
onClose: () => {} |
|
|
|
}) |
|
|
|
} else { |
|
|
|
this.$alert(data.msg, '错误', { |
|
|
|
confirmButtonText: '确定' |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
}).catch(() => { |
|
|
|
// if (this.detailData.status === '已完工') { |
|
|
|
// this.$confirm(`是否取消审核?`, '提示', { |
|
|
|
// confirmButtonText: '确定', |
|
|
|
// cancelButtonText: '取消', |
|
|
|
// type: 'warning' |
|
|
|
// }).then(() => { |
|
|
|
// this.submitData.status = '已到达' |
|
|
|
// submitDefect(this.submitData).then(({data}) => { |
|
|
|
// if (data && data.code === 0) { |
|
|
|
// this.getDataList() |
|
|
|
// this.detailData.status = '待审核' |
|
|
|
// this.$message({ |
|
|
|
// message: '操作成功', |
|
|
|
// type: 'success', |
|
|
|
// duration: 1500, |
|
|
|
// onClose: () => {} |
|
|
|
// }) |
|
|
|
// } else { |
|
|
|
// this.$alert(data.msg, '错误', { |
|
|
|
// confirmButtonText: '确定' |
|
|
|
// }) |
|
|
|
// } |
|
|
|
// }) |
|
|
|
// }).catch(() => { |
|
|
|
// }) |
|
|
|
// } else { |
|
|
|
// this.submitData.status = '已完工' |
|
|
|
// this.submitModelFlag = true |
|
|
|
// } |
|
|
|
this.submitData.status = '已完工' |
|
|
|
this.submitModelFlag = true |
|
|
|
}, |
|
|
|
revokeModel(){ |
|
|
|
this.$confirm(`是否撤销审核,回退到‘待审核’状态?`, '提示', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
}).then(() => { |
|
|
|
if (this.authCheck) { |
|
|
|
this.$message.warning('无审核权限!') |
|
|
|
return |
|
|
|
} |
|
|
|
this.submitData.site = this.detailData.site |
|
|
|
this.submitData.buNo = this.detailData.buNo |
|
|
|
this.submitData.orderNo = this.detailData.orderNo |
|
|
|
this.submitData.planID = this.detailData.planID |
|
|
|
this.submitData.objectID = this.detailData.objectID |
|
|
|
this.submitData.planDesc = this.detailData.feedBackDesc |
|
|
|
this.submitData.disposalMeasures = this.detailData.disposalMeasures |
|
|
|
this.submitData.defectID = this.detailData.defectID |
|
|
|
this.submitData.defectDesc = this.detailData.defectDesc |
|
|
|
this.submitData.remark = this.detailData.remark |
|
|
|
this.submitData.difficultyLevel = '' |
|
|
|
this.submitData.difficultyRemark = '' |
|
|
|
this.submitData.faultReason = this.detailData.faultReason |
|
|
|
this.submitData.handlingMethod = this.detailData.handlingMethod |
|
|
|
this.submitData.preventiveMeasure = this.detailData.preventiveMeasure |
|
|
|
this.submitData.feedbackBy = this.detailData.createBy |
|
|
|
this.submitData.actualOperatorName = this.detailData.actualOperatorName |
|
|
|
this.submitData.knowledgeFlag = this.detailData.knowledgeFlag |
|
|
|
this.submitData.updateBy = this.$store.state.user.name |
|
|
|
this.submitData.status = '待审核' |
|
|
|
submitDefect(this.submitData).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.getDataList() |
|
|
|
this.detailData.status = '待审核' |
|
|
|
this.$message({ |
|
|
|
message: '操作成功', |
|
|
|
type: 'success', |
|
|
|
duration: 1500, |
|
|
|
onClose: () => { |
|
|
|
} |
|
|
|
}) |
|
|
|
} else { |
|
|
|
this.$alert(data.msg, '错误', { |
|
|
|
confirmButtonText: '确定' |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
} else { |
|
|
|
this.submitData.status = '已完工' |
|
|
|
this.submitModelFlag = true |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
// 确认审核 |
|
|
|
submitModel () { |
|
|
|
submitModel (param) { |
|
|
|
if (this.submitData.difficultyLevel === ''||this.submitData.difficultyLevel == null) { |
|
|
|
this.$alert('请选择难度等级!', '提示', { |
|
|
|
confirmButtonText: '确定' |
|
|
|
}) |
|
|
|
return false |
|
|
|
} |
|
|
|
submitDefect(this.submitData).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.getDataList() |
|
|
|
this.detailData.status = '已完工' |
|
|
|
this.submitModelFlag = false |
|
|
|
this.$message({ |
|
|
|
message: '操作成功', |
|
|
|
type: 'success', |
|
|
|
duration: 1500, |
|
|
|
onClose: () => {} |
|
|
|
}) |
|
|
|
} else { |
|
|
|
this.$alert(data.msg, '错误', { |
|
|
|
confirmButtonText: '确定' |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
// submitDefect(this.submitData).then(({data}) => { |
|
|
|
// if (data && data.code === 0) { |
|
|
|
// this.getDataList() |
|
|
|
// this.detailData.status = '已完工' |
|
|
|
// this.submitModelFlag = false |
|
|
|
// this.$message({ |
|
|
|
// message: '操作成功', |
|
|
|
// type: 'success', |
|
|
|
// duration: 1500, |
|
|
|
// onClose: () => {} |
|
|
|
// }) |
|
|
|
// } else { |
|
|
|
// this.$alert(data.msg, '错误', { |
|
|
|
// confirmButtonText: '确定' |
|
|
|
// }) |
|
|
|
// } |
|
|
|
// }) |
|
|
|
if (param === 1) { |
|
|
|
submitDefect(this.submitData).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.getDataList() |
|
|
|
this.detailData.status = '已完工' |
|
|
|
this.submitModelFlag = false |
|
|
|
this.$message({ |
|
|
|
message: '操作成功', |
|
|
|
type: 'success', |
|
|
|
duration: 1500, |
|
|
|
onClose: () => {} |
|
|
|
}) |
|
|
|
} else { |
|
|
|
this.$alert(data.msg, '错误', { |
|
|
|
confirmButtonText: '确定' |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
} else { |
|
|
|
this.submitData.status = '已到达' |
|
|
|
submitDefect(this.submitData).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.getDataList() |
|
|
|
this.detailData.status = '待审核' |
|
|
|
this.submitModelFlag = false |
|
|
|
this.detailModelFlag = false |
|
|
|
this.$message({ |
|
|
|
message: '操作成功', |
|
|
|
type: 'success', |
|
|
|
duration: 1500, |
|
|
|
onClose: () => { |
|
|
|
} |
|
|
|
}) |
|
|
|
} else { |
|
|
|
this.$alert(data.msg, '错误', { |
|
|
|
confirmButtonText: '确定' |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
submitModels () { |
|
|
|
|