完善功能

This commit is contained in:
wangxiaowei
2026-03-02 17:08:36 +08:00
parent 18e0423699
commit bd461f3e18
17 changed files with 607 additions and 5 deletions

View File

@ -135,7 +135,7 @@
<button class="theme-btn del-btn" @click="onDelOrder(item.id)">删除订单</button>
</block>
<block v-if="item.order_status == 3 && item.fp_status == 0">
<block v-if="item.order_status == 3 && item.fp_status == 0 && item.pay_type == 0">
<button class="theme-btn pay-btn" @click="toInvoice(item.id)">去开票</button>
</block>
@ -606,7 +606,7 @@
toInvoice(order_id) {
console.log("🚀 ~ methods.toInvoice:")
uni.navigateTo({
url: `/pages/order/invoice?order_id=${order_id}`
url: `/pages/order/invoice?order_id=${order_id}&type=1`
});
},

View File

@ -23,6 +23,7 @@
data() {
return {
order_id: 0,
type: 1, // 1是订单发票 2是充值发票
form: {
gmfnsrsbh: '',
gmfmc: '',
@ -32,7 +33,7 @@
},
onLoad(args) {
this.order_id = args.order_id;
console.log('order_id', this.order_id);
this.type = args.type || 1;
},
methods: {
submit() {
@ -68,6 +69,7 @@
'invoice.invoice/getInvoice',
{
order_id: self.order_id,
type: self.type,
emails: self.form.emials,
gmfmc: self.form.gmfmc,
gmfnsrsbh: self.form.gmfnsrsbh