|
@@ -331,7 +331,7 @@
|
|
|
<el-table-column label="操作" align="center" min-width="150px" fixed="right">
|
|
<el-table-column label="操作" align="center" min-width="150px" fixed="right">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
<div class="flex flex-col gap-1">
|
|
<div class="flex flex-col gap-1">
|
|
|
- <el-button link type="primary" @click="handleEdit(scope.row.id)"> 编制报告 </el-button>
|
|
|
|
|
|
|
+ <el-button link type="primary" @click="handleEdit(scope.row)"> 编制报告 </el-button>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -694,14 +694,23 @@ const resetQuery = () => {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 修改后的编辑/查看详情操作
|
|
// 修改后的编辑/查看详情操作
|
|
|
-const handleEdit = (id: string) => {
|
|
|
|
|
- router.push({ name: 'PipeCheckerTaskDetail', query: { id, type: 'PipeReportPreparationList' } })
|
|
|
|
|
|
|
+const handleEdit = (row: Record<string, any>) => {
|
|
|
|
|
+
|
|
|
|
|
+ //判断报告编制时是否有结束检验日期
|
|
|
|
|
+ if (row.taskStatus >= PressureTaskOrderTaskStatus.REPORT_INPUT){
|
|
|
|
|
+ if (!row.endCheckDate) {
|
|
|
|
|
+ ElMessage.error('请添加结束检验时间再进行编制!')
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ router.push({ name: 'PipeCheckerTaskDetail', query: { id:row.id, orderId:row.orderId, type: 'PipeReportPreparationList' } })
|
|
|
}
|
|
}
|
|
|
const handleRowDblclick = (row: Record<string, any>) => {
|
|
const handleRowDblclick = (row: Record<string, any>) => {
|
|
|
if (row.isClaim === false) {
|
|
if (row.isClaim === false) {
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
- router.push({ name: 'PipeCheckerTaskDetail', query: { id: row.id, type: 'PipeReportPreparationList' } })
|
|
|
|
|
|
|
+ // router.push({ name: 'PipeCheckerTaskDetail', query: { id:row.id, orderId:row.orderId, type: 'PipeReportPreparationList' } })
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//------------人员选择弹窗------------------------
|
|
//------------人员选择弹窗------------------------
|