Browse Source

增加查看电签报表按钮

duy 1 year ago
parent
commit
4b325c92db
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/views/debit-pay/admin/certificate.vue

+ 5 - 1
src/views/debit-pay/admin/certificate.vue

@@ -9,6 +9,7 @@
             </template>
             <hc-table :column="tableColumn" :datas="tableData" :loading="tableLoading" is-new :index-style="{ width: 60 }">
                 <template #action="{ row }">
+                    <el-link type="primary" :disabled="!row.rawUrl" @click="rowViewRawPdf(row)">查看电签报表</el-link>
                     <el-link type="primary" @click="rowViewPdf(row)">查看报表</el-link>
                     <el-link type="success" :disabled="row.isLock === 1" @click="rowEditClick(row)">修改</el-link>
                     <el-link type="danger" :disabled="row.isLock === 1" @click="rowDelClick(row)">删除</el-link>
@@ -84,7 +85,7 @@ const tableColumn = ref([
     { key: 'printDate', name: '打印日期' },
     { key: 'calculateDate', name: '重新计算时间' },
     { key: 'payMoney', name: '支付金额' },
-    { key: 'action', name: '操作', width: 280 },
+    { key: 'action', name: '操作', width: 330 },
 ])
 const tableData = ref([])
 const getTableData = async () => {
@@ -178,6 +179,9 @@ const rowViewPdf = (row)=>{
     }
  
 }
+const rowViewRawPdf = (row)=>{
+    toPdfPage(row?.rawUrl)
+}
 </script>
 
 <style scoped lang="scss">