调试申请开票的时候开票信息不存在的情况

This commit is contained in:
2024-05-06 17:27:21 +08:00
parent 2a6447e292
commit 45cb065d6f
4 changed files with 18 additions and 6 deletions

View File

@@ -1,5 +1,6 @@
import { getInvoiceInfoDetail } from "../../service/invoice";
import { getInvoiceInfoDetail, downloadInvoice } from "../../service/invoice";
import request from '../../utils/request'
const { OK } = request;
// pages/invoiceInfo/index.js
Page({
@@ -32,13 +33,14 @@ Page({
},
download() {
// console.log('---------')
const that = this;
wx.showActionSheet({
itemList: ['发票XML文件下载', '发票PDF文件下载'],
async success(res) {
console.log('res', res.tapIndex)
const { code, message, data } = await downloadInvoice(this.data.id, res.tapIndex);
const { code, message, data } = await downloadInvoice(that.data.id, res.tapIndex);
if (code !== OK) {
}
}
})