|
|
@ -687,6 +687,7 @@ |
|
|
<el-footer style="height:30px;margin-top: 50px;text-align:center"> |
|
|
<el-footer style="height:30px;margin-top: 50px;text-align:center"> |
|
|
<el-button style="margin-left: -12px" type="primary" @click="confirmDefectOrder()">保存</el-button> |
|
|
<el-button style="margin-left: -12px" type="primary" @click="confirmDefectOrder()">保存</el-button> |
|
|
<el-button type="primary" @click="confirmDefectModal = false">关闭</el-button> |
|
|
<el-button type="primary" @click="confirmDefectModal = false">关闭</el-button> |
|
|
|
|
|
<el-button type="primary" @click="cancelDefectOrder()">取消工单</el-button> |
|
|
</el-footer> |
|
|
</el-footer> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
@ -731,6 +732,7 @@ import { |
|
|
updateReportResult, // 修改执行结果 |
|
|
updateReportResult, // 修改执行结果 |
|
|
getSiteAndBuByUserName, |
|
|
getSiteAndBuByUserName, |
|
|
confirmDefectOrder, // 维修确认 |
|
|
confirmDefectOrder, // 维修确认 |
|
|
|
|
|
cancelDefectOrder, // 维修确认-取消工单 |
|
|
submitDefects, // 批量审核 |
|
|
submitDefects, // 批量审核 |
|
|
getFeedBackImages, // 获取故障图片 |
|
|
getFeedBackImages, // 获取故障图片 |
|
|
queryHistoryRecord, // 查看维修历史 |
|
|
queryHistoryRecord, // 查看维修历史 |
|
|
@ -752,6 +754,7 @@ import {userFavoriteList, saveUserFavorite, removeUserFavorite} from '@/api/user |
|
|
import Chooselist from '@/views/modules/common/Chooselist_eam' |
|
|
import Chooselist from '@/views/modules/common/Chooselist_eam' |
|
|
import {isAuth} from '../../../utils' |
|
|
import {isAuth} from '../../../utils' |
|
|
import excel from "@/utils/excel-util.js"; |
|
|
import excel from "@/utils/excel-util.js"; |
|
|
|
|
|
import {deleteSchedulingRecord} from "../../../api/scheduling/scheduling"; |
|
|
export default { |
|
|
export default { |
|
|
components: { |
|
|
components: { |
|
|
Chooselist |
|
|
Chooselist |
|
|
@ -2391,6 +2394,26 @@ export default { |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
//取消工单按钮 |
|
|
|
|
|
cancelDefectOrder(){ |
|
|
|
|
|
this.$confirm('确定取消该工单吗?',{ |
|
|
|
|
|
confirmButtonText: '确定', |
|
|
|
|
|
cancelButtonText: '取消', |
|
|
|
|
|
type: 'warning' |
|
|
|
|
|
}).then(()=>{ |
|
|
|
|
|
cancelDefectOrder(this.confirmData).then(({data})=>{ |
|
|
|
|
|
if (data && data.code === 0) { |
|
|
|
|
|
this.$message.success(data.msg) |
|
|
|
|
|
this.getDataList() |
|
|
|
|
|
this.confirmDefectModal = false |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$message.warning(data.msg) |
|
|
|
|
|
} |
|
|
|
|
|
}).catch((error)=>{ |
|
|
|
|
|
this.$message.error(error) |
|
|
|
|
|
}) |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
// 查看故障图片 |
|
|
// 查看故障图片 |
|
|
checkFaultImageModal() { |
|
|
checkFaultImageModal() { |
|
|
|