|
@@ -99,7 +99,7 @@
|
|
|
<template #footer>
|
|
|
<div class="hc-task-dialog-footer">
|
|
|
<el-button :disabled="tabsKey !== 1" @click="rejectionClick">驳回审批</el-button>
|
|
|
- <el-button v-if="rowInfo.meterType > 0 && rowInfo.meterType <= 3" type="warning" @click="rowViewPdf">查看报表</el-button>
|
|
|
+ <el-button v-if="rowInfo.meterType > 0 && rowInfo.meterType <= 3" type="warning" :loading="rowViewLoading" @click="rowViewPdf">查看报表</el-button>
|
|
|
<el-button type="primary" :loading="confirmLoading" :disabled="tabsKey !== 1" @click="confirmClick">同意审批</el-button>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -411,16 +411,19 @@ const taskTabsClick = (key) => {
|
|
|
}
|
|
|
|
|
|
//查看报表
|
|
|
+const rowViewLoading = ref(false)
|
|
|
const rowViewPdf = async () => {
|
|
|
const { type, reportId } = detailInfo.value
|
|
|
if (isNullES(reportId)) {
|
|
|
window.$message.warning('参数异常')
|
|
|
return
|
|
|
}
|
|
|
+ rowViewLoading.value = true
|
|
|
const { code, msg, data } = await certificateApi.recalculate({
|
|
|
reportId: reportId,
|
|
|
type: type,
|
|
|
})
|
|
|
+ rowViewLoading.value = false
|
|
|
if (code === 200 && !isNullES(data)) {
|
|
|
window.$message.success('操作成功')
|
|
|
toPdfPage(data)
|