Kaynağa Gözat

查看电签报表

duy 7 ay önce
ebeveyn
işleme
63ff5d210b

+ 9 - 8
src/views/debit-pay/admin/certificate.vue

@@ -29,7 +29,7 @@
             >
                 <template #action="{ row }">
                     <el-link
-                        v-loading="rowViewLoading"
+                        v-loading="row.rowViewLoading"
                         type="primary"
                         :disabled="!row.rawUrl"
                         @click="rowViewRawPdf(row)"
@@ -290,11 +290,12 @@ const rowViewPdf = (row) => {
 }
 const rowViewRawPdf = (row) => {
 const { status } = row
-if (status === 1) {
-    viewPdf(row)
-} else {
-    toPdfPage(row?.rawUrl)
-}
+ if (status === 1) {
+     viewPdf(row)
+ } else {
+     toPdfPage(row?.rawUrl)
+ }
+
    
 }
 
@@ -302,14 +303,14 @@ if (status === 1) {
 const rowViewLoading = ref(false)
 const viewPdf = async (row) => {
     const { id, taskId } = row
-    rowViewLoading.value = true
+    row.rowViewLoading = true
     const { code, msg, data } = await taskApi.taskMeterPdfInfo({
         reportId: id,
         type: 0,
         taskType: 10,
         taskId: taskId,
     })
-    rowViewLoading.value = false
+    row.rowViewLoading = false
     if (code === 200 && !isNullES(data)) {
         window.$message.success('操作成功')
         toPdfPage(data)

+ 5 - 4
src/views/debit-pay/material/book.vue

@@ -14,7 +14,7 @@
             is-check :check-style="{ width: 29 }" @selection-change="tableSelectionChange"
         >
             <template #action="{ row }">
-                <el-link v-loading="rowViewLoading" type="primary" :disabled="!row.rawUrl" @click="rowViewRawPdf(row)">查看电签报表</el-link>
+                <el-link v-loading="row.rowViewLoading" type="primary" :disabled="!row.rawUrl" @click="rowViewRawPdf(row)">查看电签报表</el-link>
                 <el-link type="primary" @click="viewPdf(row)">查看报表</el-link>
                 <el-link type="primary" :disabled="row.approveStatus === 0" @click="eVisaRowClick(row)">查看电签流程</el-link>
                 <el-link type="success" @click="editRow(row)">修改</el-link>
@@ -304,19 +304,20 @@ const rowViewRawPdf = (row)=>{
         } else {
             toPdfPage(row?.rawUrl)
         }
+   
 }
 //查看报表
-const rowViewLoading = ref(false)
+
 const handleViewPdf = async (row) => {
     const { id, taskId } = row
-    rowViewLoading.value = true
+    row.rowViewLoading = true
     const { code, msg, data } = await taskApi.taskMeterPdfInfo({
         reportId: id,
         type: 1,
         taskType: 10,
         taskId: taskId,
     })
-    rowViewLoading.value = false
+    row.rowViewLoading = false
     if (code === 200 && !isNullES(data)) {
         window.$message.success('操作成功')
         toPdfPage(data)

+ 4 - 3
src/views/debit-pay/start-work/book.vue

@@ -14,7 +14,7 @@
             is-check :check-style="{ width: 29 }" @selection-change="tableSelectionChange"
         >
             <template #action="{ row }">
-                <el-link v-loading="rowViewLoading" type="primary" :disabled="!row.rawUrl" @click="rowViewRawPdf(row)">查看电签报表</el-link>
+                <el-link v-loading="row.rowViewLoading" type="primary" :disabled="!row.rawUrl" @click="rowViewRawPdf(row)">查看电签报表</el-link>
                 <el-link type="primary" @click="viewPdf(row)">查看报表</el-link>
                 <el-link type="primary" :disabled="row.approveStatus === 0" @click="eVisaRowClick(row)">查看电签流程</el-link>
                 <el-link type="success" @click="editRow(row)">修改</el-link>
@@ -301,19 +301,20 @@ const rowViewRawPdf = (row)=>{
         } else {
             toPdfPage(row?.rawUrl)
         }
+     
 }
 //查看报表
 const rowViewLoading = ref(false)
 const handleViewPdf = async (row) => {
     const { id, taskId } = row
-    rowViewLoading.value = true
+    row.rowViewLoading = true
     const { code, msg, data } = await taskApi.taskMeterPdfInfo({
         reportId: id,
         type: 2,
         taskType: 10,
         taskId: taskId,
     })
-    rowViewLoading.value = false
+    row.rowViewLoading = false
     if (code === 200 && !isNullES(data)) {
         window.$message.success('操作成功')
         toPdfPage(data)

+ 2 - 2
src/views/tasks/hc-data.vue

@@ -98,7 +98,7 @@ const tabsClick = ({ key }) => {
 
 //搜索条件
 const searchForm = ref({
-    selectedType: 1, typeValue: '', statusValue: '', batchValue: '', queryValue: '', startTimeValue: '', endTimeValue: '',
+    selectedType: 1, typeValue: '', statusValue: '4', batchValue: '', queryValue: '', startTimeValue: '', endTimeValue: '',
     current: 1, size: 100, total: 0,
 })
 
@@ -115,7 +115,7 @@ const tasksStatus = ref([])
 const queryTaskStatus = async () => {
     const { data } = await mainApi.queryTaskStatus({ typeOrStatus: 'task_status' })
     tasksStatus.value = getArrValue(data)
-    //tasksStatus.value = [{ dictKey: '1', dictValue: '待审批' }, { dictKey: '2', dictValue: '已审批' }, { dictKey: '3', dictValue: '已废除' }, { dictKey: '4', dictValue: '可审批' }] 
+    tasksStatus.value = [{ dictKey: '1', dictValue: '待审批' }, { dictKey: '2', dictValue: '已审批' }, { dictKey: '3', dictValue: '已废除' }, { dictKey: '4', dictValue: '可审批' }] 
 }
 
 //日期范围选择