完善功能
This commit is contained in:
@ -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`
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user