Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
654d8724
authored
Sep 19, 2025
by
Jony.L
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
发票预览有问题
parent
a73d4746
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
3 deletions
+27
-3
src/views/apihub/apiorder/index.vue
+27
-3
No files found.
src/views/apihub/apiorder/index.vue
View file @
654d8724
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment