Commit 654d8724 by Jony.L

发票预览有问题

parent a73d4746
...@@ -236,6 +236,19 @@ scope.row.invoiceStatus === InvoiceRequestEnum.INVOICING.type" ...@@ -236,6 +236,19 @@ scope.row.invoiceStatus === InvoiceRequestEnum.INVOICING.type"
v-model:limit="queryParams.pageSize" v-model:limit="queryParams.pageSize"
@pagination="getList" @pagination="getList"
/> />
<!-- 发票预览弹窗 -->
<el-dialog
v-model="pdfDialogVisible"
title="发票预览"
width="80%"
top="5vh"
>
<iframe
v-if="invoiceUrl"
:src="invoiceUrl"
style="width: 100%; height: 80vh; border: none;"
></iframe>
</el-dialog>
</ContentWrap> </ContentWrap>
<!-- 表单弹窗:添加/修改 --> <!-- 表单弹窗:添加/修改 -->
...@@ -318,10 +331,21 @@ const issueInvoice = (row) => { ...@@ -318,10 +331,21 @@ const issueInvoice = (row) => {
issueInvoiceFormRef.value.open(row); issueInvoiceFormRef.value.open(row);
} }
const OrderViewInvoiceFormRef = ref() // const OrderViewInvoiceFormRef = ref()
const viewInvoice = (row) => { // const viewInvoice = (row) => {
OrderViewInvoiceFormRef.value.open(row) // // OrderViewInvoiceFormRef.value.open(row)
//
// }
const pdfDialogVisible = ref(false)
const invoiceUrl = ref('')
function viewInvoice(row) {
debugger;
invoiceUrl.value = import.meta.env.VITE_BASE_URL+'/admin-api/infra/file/preview?url=' + row.invoiceUrl // 从接口带回的 pdf 地址
pdfDialogVisible.value = true
} }
/** 删除按钮操作 */ /** 删除按钮操作 */
const handleDelete = async (id: number) => { const handleDelete = async (id: number) => {
try { try {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment