Commit e392c2af by Jony.L

修复上传发票功能

parent 96cb4f43
......@@ -31,7 +31,7 @@ VITE_OUT_DIR=dist
VITE_MALL_H5_DOMAIN='http://mall.yudao.iocoder.cn'
# 验证码的开关
VITE_APP_CAPTCHA_ENABLE=true
VITE_APP_CAPTCHA_ENABLE=false
# GoView域名
VITE_GOVIEW_URL='http://127.0.0.1:3000'
......@@ -249,6 +249,7 @@
import type { FormInstance } from 'element-plus'
import OrderDeliveryForm from '@/views/mall/trade/order/form/OrderDeliveryForm.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 PickUpStoreApi from '@/api/mall/trade/delivery/pickUpStore'
import { DICT_TYPE, getIntDictOptions, getStrDictOptions } from '@/utils/dict'
......@@ -357,6 +358,14 @@ const handleCommand = (command: string, row: TradeOrderApi.OrderVO) => {
deliveryFormRef.value?.open(row)
break
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)
break
case 'viewInvoice':
......
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