e834e848 by zhangmeng

开票

1 parent 4c4040a4
...@@ -287,8 +287,16 @@ async function paymentHandle() { ...@@ -287,8 +287,16 @@ async function paymentHandle() {
287 cancelButtonText: language.value == 0 ? '取消' : 'Cancel', 287 cancelButtonText: language.value == 0 ? '取消' : 'Cancel',
288 type: 'warning' 288 type: 'warning'
289 }).then(async () => { 289 }).then(async () => {
290 try {
290 const res = await submitOrderTicket({ 291 const res = await submitOrderTicket({
291 ...orderForm.value, 292 activeId: orderForm.value.activeId,
293 acId: orderForm.value.acId,
294 attId: orderForm.value.attId,
295 tickType: orderForm.value.tickType,
296 ticketDate: orderForm.value.ticketDate,
297 phone: orderForm.value.phone,
298 customerList: orderForm.value.customerList,
299 num: orderForm.value.num,
292 message: JSON.stringify(orderForm.value.message), 300 message: JSON.stringify(orderForm.value.message),
293 total: language.value == 0 ? price.value.total_cn : price.value.total_en 301 total: language.value == 0 ? price.value.total_cn : price.value.total_en
294 }) 302 })
...@@ -317,6 +325,12 @@ async function paymentHandle() { ...@@ -317,6 +325,12 @@ async function paymentHandle() {
317 } else { 325 } else {
318 ElMessage.error(language.value == 0 ? '下单失败,' : 'Order failure') 326 ElMessage.error(language.value == 0 ? '下单失败,' : 'Order failure')
319 } 327 }
328 } catch (e) {
329 console.log(e)
330 } finally {
331 ElMessage.error(language.value == 0 ? '下单失败,' : 'Order failure')
332 }
333
320 }) 334 })
321 } 335 }
322 336
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!