|
@@ -700,12 +700,19 @@
|
|
|
})
|
|
|
// #endif
|
|
|
},
|
|
|
- invoice(){
|
|
|
+ async invoice(){
|
|
|
console.log('orderDetails',this.orderDetails);
|
|
|
+
|
|
|
if(this.orderDetails.ifInvoice===0){
|
|
|
- uni.$u.route('/center/invoice', {
|
|
|
- id: this.orderDetails.id
|
|
|
- });
|
|
|
+ try{
|
|
|
+ let invoiceInfo = await this.$u.api.getInvoiceInfo({orderId:this.id});
|
|
|
+ uni.$u.route('/center/invoice', {
|
|
|
+ id: this.orderDetails.id
|
|
|
+ });
|
|
|
+ console.log('invoiceInfo',invoiceInfo);
|
|
|
+ }catch(err){
|
|
|
+ console.log('invoice',err);
|
|
|
+ }
|
|
|
}else{
|
|
|
uni.$u.route('/center/invoicedetails', {
|
|
|
id: this.orderDetails.id
|