|
|
@@ -30,6 +30,7 @@
|
|
|
class="tab-item"
|
|
|
:class="{ active: showReportPdfType === 'report' }"
|
|
|
@click="handleChangeShowReportPdf('report')"
|
|
|
+ v-if="hasReport"
|
|
|
>
|
|
|
<span>报告</span>
|
|
|
</div>
|
|
|
@@ -1078,6 +1079,7 @@ const showReportPdfType = ref('record')
|
|
|
const refreshPdfFlag = ref(true)
|
|
|
|
|
|
const hasRecord = ref(false)
|
|
|
+const hasReport = ref(false)
|
|
|
// 获取可以批量提交的报告
|
|
|
const getCanSubmitRecheckReport = computed(() => {
|
|
|
if(!props.reportList || !props.reportList.length) return []
|
|
|
@@ -1281,6 +1283,8 @@ watch(
|
|
|
props.taskId && getReportAuditInfo()
|
|
|
console.log('切换项目', props.selectedItem)
|
|
|
hasRecord.value = props.selectedItem.templateId != null
|
|
|
+ // 是否已生成报告:处于报告编制/审核/审批/办结状态
|
|
|
+ hasReport.value = [PressureCheckerMyTaskStatus.REPORT_INPUT,PressureCheckerMyTaskStatus.REPORT_AUDIT,PressureCheckerMyTaskStatus.REPORT_APPROVE,PressureCheckerMyTaskStatus.REPORT_END].includes(props.selectedItem.taskStatus)
|
|
|
if (props.selectedItem?.reportTemplateId == null){
|
|
|
showReportPdfType.value = 'record'
|
|
|
}
|