e834e848 by zhangmeng

开票

1 parent 4c4040a4
......@@ -287,8 +287,16 @@ async function paymentHandle() {
cancelButtonText: language.value == 0 ? '取消' : 'Cancel',
type: 'warning'
}).then(async () => {
try {
const res = await submitOrderTicket({
...orderForm.value,
activeId: orderForm.value.activeId,
acId: orderForm.value.acId,
attId: orderForm.value.attId,
tickType: orderForm.value.tickType,
ticketDate: orderForm.value.ticketDate,
phone: orderForm.value.phone,
customerList: orderForm.value.customerList,
num: orderForm.value.num,
message: JSON.stringify(orderForm.value.message),
total: language.value == 0 ? price.value.total_cn : price.value.total_en
})
......@@ -317,6 +325,12 @@ async function paymentHandle() {
} else {
ElMessage.error(language.value == 0 ? '下单失败,' : 'Order failure')
}
} catch (e) {
console.log(e)
} finally {
ElMessage.error(language.value == 0 ? '下单失败,' : 'Order failure')
}
})
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!