Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
client
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
d5ca3c95
authored
Sep 18, 2025
by
Jony.L
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
发票预览2.0
parent
c80026ef
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
4 deletions
+24
-4
.env.development
+2
-2
src/views/console/myOrder.vue
+22
-2
No files found.
.env.development
View file @
d5ca3c95
...
...
@@ -6,5 +6,5 @@ VITE_APP_ENV = 'development'
# 面向科创园区的普惠算力公共服务平台/开发环境
#VITE_APP_BASE_API = 'http://192.168.1.112:48080/app-api/'
VITE_APP_BASE_API = 'https://client.phsl.lijinqi.com/app-api/'
#VITE_APP_BASE_API = 'http://localhost:48080/
'
#
VITE_APP_BASE_API = 'https://client.phsl.lijinqi.com/app-api/'
VITE_APP_BASE_API = 'http://localhost:48080/app-api
'
src/views/console/myOrder.vue
View file @
d5ca3c95
...
...
@@ -127,8 +127,8 @@
</
template
>
</el-table-column>
<el-table-column
label=
"订单状态"
align=
"center"
prop=
"statusName"
/>
<el-table-column
label=
"发票链接"
align=
"center"
prop=
"invoiceUrl"
/
>
<el-table-column
label=
"开票状态"
align=
"center"
prop=
"invoiceStatus"
>
<!-- <el-table-column label="发票链接" align="center" prop="invoiceUrl"/>--
>
<el-table-column
label=
"开票状态"
align=
"center"
prop=
"invoiceStatus
Name
"
>
<
template
#
default=
"scope"
>
<!--
<dict-tag
:type=
"invoice_status"
:value=
"scope.row.invoiceStatus"
/>
-->
</
template
>
...
...
@@ -152,12 +152,22 @@
详情
<
/el-button
>
<
el
-
button
v
-
if
=
"scope.row.invoiceStatus === InvoiceRequestEnum.UNINVOICED.type"
link
type
=
"primary"
@
click
=
"invoiceRequest(scope.row)"
>
申请开票
<
/el-button
>
<
el
-
button
v
-
if
=
"scope.row.invoiceStatus === InvoiceRequestEnum.INVOICED.type"
link
type
=
"success"
plain
@
click
=
"viewInvoice(scope.row)"
>
展示发票
<
/el-button
>
<
/template
>
<
/el-table-column
>
<
/el-table
>
...
...
@@ -219,6 +229,9 @@
<
/el-dialog
>
<
/div
>
<
OrderViewInvoiceForm
ref
=
"OrderViewInvoiceFormRef"
@
success
=
"getList"
/>
<
/template
>
<
script
setup
name
=
"MyOrder"
>
...
...
@@ -229,6 +242,8 @@ import {appInvoiceRequest} from '@/api/computility/order'
import
{
parseTime
}
from
"../../utils/ruoyi.js"
;
import
{
getResources
}
from
"@/api/computility/resources.js"
;
import
{
ElMessage
}
from
"element-plus"
;
import
{
InvoiceRequestEnum
}
from
"@/utils/constants.js"
;
import
OrderViewInvoiceForm
from
"@/views/console/OrderViewInvoiceForm.vue"
;
const
{
proxy
}
=
getCurrentInstance
()
const
orderList
=
ref
([])
...
...
@@ -300,6 +315,11 @@ function getList() {
}
)
}
const
OrderViewInvoiceFormRef
=
ref
()
const
viewInvoice
=
(
row
)
=>
{
OrderViewInvoiceFormRef
.
value
.
open
(
row
)
}
// 取消按钮
function
cancel
()
{
open
.
value
=
false
...
...
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