|
@@ -7,7 +7,7 @@ import { mapState } from 'vuex';
|
|
import uni from '@/utils/uniHooks';
|
|
import uni from '@/utils/uniHooks';
|
|
import { getUrlParams } from '@/utils/index.js';
|
|
import { getUrlParams } from '@/utils/index.js';
|
|
import { Dialog, Toast } from 'vant';
|
|
import { Dialog, Toast } from 'vant';
|
|
-import { invoicesDetail, submitInvoice } from '@/api/parking';
|
|
|
|
|
|
+import { invoicesDetail, submitInvoice, invoiceEmails } from '@/api/parking';
|
|
|
|
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
@@ -26,7 +26,7 @@ export default {
|
|
// invoiceCategory: 0, // 发票类型 0:停车缴费 1:活动
|
|
// invoiceCategory: 0, // 发票类型 0:停车缴费 1:活动
|
|
invoiceType: 'GVAT', // 发票类型:gvat-增值税普通发票svat-增值税专⽤发票gvate-增值税电⼦普票发票svate-增值税电⼦专⽤发票
|
|
invoiceType: 'GVAT', // 发票类型:gvat-增值税普通发票svat-增值税专⽤发票gvate-增值税电⼦普票发票svate-增值税电⼦专⽤发票
|
|
remark: '',
|
|
remark: '',
|
|
- invoiceTitle: [], // long|发票抬头id
|
|
|
|
|
|
+ invoiceTitle: {}, // long|发票抬头id
|
|
parkOrderList: [], // 被选中的缴费记录id
|
|
parkOrderList: [], // 被选中的缴费记录id
|
|
email: '',
|
|
email: '',
|
|
emailAsDefault: true
|
|
emailAsDefault: true
|
|
@@ -42,7 +42,7 @@ export default {
|
|
orderQuantity: 0,
|
|
orderQuantity: 0,
|
|
parkingOrder: null,
|
|
parkingOrder: null,
|
|
pagesize: 10,
|
|
pagesize: 10,
|
|
- page: 1,
|
|
|
|
|
|
+ page: 0,
|
|
parkingDetailList: []
|
|
parkingDetailList: []
|
|
};
|
|
};
|
|
},
|
|
},
|
|
@@ -64,6 +64,7 @@ export default {
|
|
title: '发票申请',
|
|
title: '发票申请',
|
|
});
|
|
});
|
|
}, 300);
|
|
}, 300);
|
|
|
|
+ this.getEmail()
|
|
// console.clear();
|
|
// console.clear();
|
|
const query = getUrlParams();
|
|
const query = getUrlParams();
|
|
// console.log('是否重新回到改页面', this.pageOptions);
|
|
// console.log('是否重新回到改页面', this.pageOptions);
|
|
@@ -108,6 +109,7 @@ export default {
|
|
if (options.header) {
|
|
if (options.header) {
|
|
if (typeof options.header == 'string') {
|
|
if (typeof options.header == 'string') {
|
|
this.headerInfo = JSON.parse(options.header);
|
|
this.headerInfo = JSON.parse(options.header);
|
|
|
|
+ console.log('this.headerInfo:::', this.headerInfo)
|
|
} else if (typeof options.header == 'object') {
|
|
} else if (typeof options.header == 'object') {
|
|
this.headerInfo = options.header;
|
|
this.headerInfo = options.header;
|
|
}
|
|
}
|
|
@@ -128,6 +130,31 @@ export default {
|
|
}),
|
|
}),
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ getInvoicesOrders: async function () {
|
|
|
|
+ try {
|
|
|
|
+ const res = await invoicesOrders()
|
|
|
|
+
|
|
|
|
+ console.log('1.28 查看发票关联的订单支付详情::::', res)
|
|
|
|
+ } catch {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: '服务器开小差了呢,请您稍后再试',
|
|
|
|
+ icon: 'none',
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ getEmail: async function () {
|
|
|
|
+ try {
|
|
|
|
+ const res = await invoiceEmails()
|
|
|
|
+ this.condition.email = res.email
|
|
|
|
+ this.condition.emailAsDefault = res.emailAsDefault
|
|
|
|
+ console.log('邮箱::::', res)
|
|
|
|
+ } catch {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: '服务器开小差了呢,请您稍后再试',
|
|
|
|
+ icon: 'none',
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ },
|
|
changeShowMore() {
|
|
changeShowMore() {
|
|
this.isShow = !this.isShow;
|
|
this.isShow = !this.isShow;
|
|
},
|
|
},
|
|
@@ -356,7 +383,7 @@ export default {
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
- params.invoiceTitle = [{id: this.headerInfo.id}]
|
|
|
|
|
|
+ params.invoiceTitle.id = this.headerInfo.id
|
|
params.totalAmount = Number(this.invoiceAmount)
|
|
params.totalAmount = Number(this.invoiceAmount)
|
|
console.log('params.parkOrderList::', params)
|
|
console.log('params.parkOrderList::', params)
|
|
// params.openid = this.openid;
|
|
// params.openid = this.openid;
|