添加发票对接功能

This commit is contained in:
wangxiaowei
2026-01-08 17:23:46 +08:00
parent a564ef78bd
commit 83bc147a48
5 changed files with 165 additions and 14 deletions

View File

@ -134,6 +134,10 @@
<block v-if="item.order_status >= 2">
<button class="theme-btn del-btn" @click="onDelOrder(item.id)">删除订单</button>
</block>
<block v-if="item.order_status == 3 && item.fp_status == 0">
<button class="theme-btn pay-btn" @click="toInvoice(item.id)">去开票</button>
</block>
<!-- 在篮球场下且订单是已预约有个人脸录入 -->
<block v-if="item.order_status == 1 && ballType == 2 && item.face_status == 0">
@ -469,13 +473,17 @@
// 跳转支付页面
onPayOrder(groundId = 0, orderId = 0) {
let self = this;
console.log("🚀 ~ methods.onPayOrder:", groundId, orderId, self.ballType)
if (self.ballType == 1) {
// 网球场
self.gotoPage(`/bundle/reserve/confirm?orderId=${orderId}&venueId=${groundId}&typeId=1`);
return
} else if (self.ballType == 2) {
// 篮球场
self.gotoPage(`/bundle/reserve/confirm?orderId=${orderId}&venueId=${groundId}&typeId=2`);
return
}
},
cancelAdvance(e) {
let self = this;
@ -587,7 +595,15 @@
uni.navigateTo({
url: `/bundle/face/face-info?order_id=${order_id}`
});
}
},
// 去开票
toInvoice(order_id) {
console.log("🚀 ~ methods.toInvoice:")
uni.navigateTo({
url: `/pages/order/invoice?order_id=${order_id}`
});
},
}
};
</script>