|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<div style="max-height: calc(100vh - 200px); overflow: hidden auto">
|
|
|
- <div id="pdfDom" style="padding: 20px">
|
|
|
+ <div id="pdfDom" style="padding: 10px">
|
|
|
<el-table :data="formData.data.items" style="width: 100%">
|
|
|
<el-table-column label="交易时间" prop="tradingTime" width="110" />
|
|
|
<el-table-column label="交易类型" width="110">
|
|
@@ -24,7 +24,7 @@
|
|
|
</el-table>
|
|
|
</div>
|
|
|
<div style="text-align: center; padding: 8px">
|
|
|
- <el-button type="primary" @click="clickDownload()" size="large">下载PDF</el-button>
|
|
|
+ <el-button type="primary" v-print="printObj" size="large">打印</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -48,9 +48,6 @@ const printObj = ref({
|
|
|
extraCss: 'https://cdn.bootcdn.net/ajax/libs/animate.css/4.1.1/animate.compat.css, https://cdn.bootcdn.net/ajax/libs/hover.css/2.3.1/css/hover-min.css',
|
|
|
extraHead: '<meta http-equiv="Content-Language"content="zh-cn"/>'
|
|
|
})
|
|
|
-const clickDownload = () => {
|
|
|
- getPdf(props.rowData.contractNo + '交易明细PDF文件')
|
|
|
-}
|
|
|
onMounted(() => {
|
|
|
getTransactionList({ id: props.rowData.id }).then((res) => {
|
|
|
formData.data.items = res
|