|
@@ -83,7 +83,7 @@ const checkStatus = async () => {
|
|
// 查询是否可开发票
|
|
// 查询是否可开发票
|
|
const invoiceStatus = (payOrderId, status) => {
|
|
const invoiceStatus = (payOrderId, status) => {
|
|
// status: 0开票中 1已开票
|
|
// status: 0开票中 1已开票
|
|
- const obj = invoiceList.value.find(e => e.payOrderId === Number(payOrderId))
|
|
|
|
|
|
+ const obj = invoiceList.value.find(e => e.payOrderId === payOrderId)
|
|
if (status) return obj
|
|
if (status) return obj
|
|
if (obj) return true
|
|
if (obj) return true
|
|
}
|
|
}
|
|
@@ -164,7 +164,7 @@ const handleSubmit = async () => {
|
|
|
|
|
|
// 发票下载
|
|
// 发票下载
|
|
const handleDownload = (item) => {
|
|
const handleDownload = (item) => {
|
|
- const obj = invoiceList.value.find(e => e.payOrderId === Number(item.payOrderId))
|
|
|
|
|
|
+ const obj = invoiceList.value.find(e => e.payOrderId === item.payOrderId)
|
|
if (!obj) return Snackbar.warning('发票地址错误,下载失败')
|
|
if (!obj) return Snackbar.warning('发票地址错误,下载失败')
|
|
|
|
|
|
getBlob(obj.fileUrl).then(blob => {
|
|
getBlob(obj.fileUrl).then(blob => {
|