调试申请开票的时候开票信息不存在的情况
This commit is contained in:
@@ -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) {
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
})
|
||||
|
Reference in New Issue
Block a user