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
e392c2af
authored
Sep 17, 2025
by
Jony.L
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复上传发票功能
parent
96cb4f43
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletions
+10
-1
.env.dev
+1
-1
src/views/mall/trade/order/index.vue
+9
-0
No files found.
.env.dev
View file @
e392c2af
...
@@ -31,7 +31,7 @@ VITE_OUT_DIR=dist
...
@@ -31,7 +31,7 @@ VITE_OUT_DIR=dist
VITE_MALL_H5_DOMAIN='http://mall.yudao.iocoder.cn'
VITE_MALL_H5_DOMAIN='http://mall.yudao.iocoder.cn'
# 验证码的开关
# 验证码的开关
VITE_APP_CAPTCHA_ENABLE=
tru
e
VITE_APP_CAPTCHA_ENABLE=
fals
e
# GoView域名
# GoView域名
VITE_GOVIEW_URL='http://127.0.0.1:3000'
VITE_GOVIEW_URL='http://127.0.0.1:3000'
src/views/mall/trade/order/index.vue
View file @
e392c2af
...
@@ -249,6 +249,7 @@
...
@@ -249,6 +249,7 @@
import
type
{
FormInstance
}
from
'element-plus'
import
type
{
FormInstance
}
from
'element-plus'
import
OrderDeliveryForm
from
'@/views/mall/trade/order/form/OrderDeliveryForm.vue'
import
OrderDeliveryForm
from
'@/views/mall/trade/order/form/OrderDeliveryForm.vue'
import
OrderUpdateRemarkForm
from
'@/views/mall/trade/order/form/OrderUpdateRemarkForm.vue'
import
OrderUpdateRemarkForm
from
'@/views/mall/trade/order/form/OrderUpdateRemarkForm.vue'
import
OrderIssueInvoiceForm
from
"@/views/mall/trade/order/form/OrderIssueInvoiceForm.vue"
;
import
*
as
TradeOrderApi
from
'@/api/mall/trade/order'
import
*
as
TradeOrderApi
from
'@/api/mall/trade/order'
import
*
as
PickUpStoreApi
from
'@/api/mall/trade/delivery/pickUpStore'
import
*
as
PickUpStoreApi
from
'@/api/mall/trade/delivery/pickUpStore'
import
{
DICT_TYPE
,
getIntDictOptions
,
getStrDictOptions
}
from
'@/utils/dict'
import
{
DICT_TYPE
,
getIntDictOptions
,
getStrDictOptions
}
from
'@/utils/dict'
...
@@ -357,6 +358,14 @@ const handleCommand = (command: string, row: TradeOrderApi.OrderVO) => {
...
@@ -357,6 +358,14 @@ const handleCommand = (command: string, row: TradeOrderApi.OrderVO) => {
deliveryFormRef
.
value
?.
open
(
row
)
deliveryFormRef
.
value
?.
open
(
row
)
break
break
case
'issueInvoice'
:
case
'issueInvoice'
:
// 调试:查看 ref 是否拿到组件实例
console
.
log
(
'issueInvoiceFormRef.value:'
,
issueInvoiceFormRef
.
value
);
if
(
!
issueInvoiceFormRef
.
value
)
{
alert
(
'组件未加载成功,请检查导入路径!'
);
return
;
}
// 调试:查看实例上是否有 open 方法
console
.
log
(
'是否有 open 方法:'
,
typeof
issueInvoiceFormRef
.
value
.
open
===
'function'
);
issueInvoiceFormRef
.
value
?.
open
(
row
)
issueInvoiceFormRef
.
value
?.
open
(
row
)
break
break
case
'viewInvoice'
:
case
'viewInvoice'
:
...
...
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