3544a940 by zhangmeng

票务

1 parent 9fc4ac21
...@@ -519,3 +519,12 @@ export function submitOrderTicket(data) { ...@@ -519,3 +519,12 @@ export function submitOrderTicket(data) {
519 data 519 data
520 }) 520 })
521 } 521 }
522
523 // 票务订单详情
524 export function getTicketOrderInfo(params) {
525 return request({
526 url: `/ota/orderTicket/getTicketOrderInfo`,
527 method: 'get',
528 params
529 })
530 }
......
...@@ -110,6 +110,36 @@ ...@@ -110,6 +110,36 @@
110 </el-row> 110 </el-row>
111 </div> 111 </div>
112 </div> 112 </div>
113 <div v-if="type == 'ticket'">
114 <div class="leftboderTT">{{ language == 0 ? '购票信息' : 'Ticket Information' }}</div>
115 <div class="border-info mt20">
116 <h3>{{ form?.extJson?.ticketType?.name }}</h3>
117 <el-row>
118 <el-col>
119 {{ language == 0 ? '地址' : 'Address' }}
120 <span v-if="language == 0">{{ form.provinceName }} {{ form.cityName }} {{ form.areaName }} </span>
121 {{ matchForm.address }}
122 </el-col>
123 <el-col>
124 {{ language == 0 ? '票档' : 'Check-in&Check-out' }}{{ form?.extJson?.ticketDate?.name }} x 1
125 {{ language == 0 ? '张' : 'Tickets' }}
126 </el-col>
127 <el-col>
128 {{
129 language == 0 ? '单价' : 'Unit Price'
130 }}{{
131 language == 0 ? form?.extJson?.ticketDate?.price : form?.extJson?.ticketDate?.priceEn
132 }}{{ language == 0 ? '元' : 'Euro' }} x 1
133 {{ language == 0 ? '张' : 'Tickets' }}
134 </el-col>
135 <el-col>
136 {{
137 language == 0 ? '时间' : 'Room Information'
138 }}{{ dayjs(form?.extJson?.ticketDate?.ticketStart).format('YYYY-MM-DD') }}
139 </el-col>
140 </el-row>
141 </div>
142 </div>
113 143
114 <div class="leftboderTT">{{ language == 0 ? '预订信息' : 'Booking information' }}</div> 144 <div class="leftboderTT">{{ language == 0 ? '预订信息' : 'Booking information' }}</div>
115 145
...@@ -247,6 +277,19 @@ ...@@ -247,6 +277,19 @@
247 </el-col> 277 </el-col>
248 <el-col :span="24">{{ language == 0 ? '备注' : 'Remarks' }}{{ form.remarks }}</el-col> 278 <el-col :span="24">{{ language == 0 ? '备注' : 'Remarks' }}{{ form.remarks }}</el-col>
249 </el-row> 279 </el-row>
280 <el-row v-if="type == 'ticket'">
281 <el-col :lg="8" :md="12" :sm="12" :xs="24">
282 <div>{{
283 language == 0 ? '购票数量' : 'Number of tickets purchased'
284 }}{{ form.num }}{{ language == 0 ? '张' : 'Tickets' }}
285 </div>
286 </el-col>
287 <el-col :lg="8" :md="12" :sm="12" :xs="24">{{
288 language == 0 ? '联系方式' : 'Contact Information'
289 }}{{ form.phone }}
290 </el-col>
291 <el-col :lg="8" :md="12" :sm="12" :xs="24"></el-col>
292 </el-row>
250 </div> 293 </div>
251 294
252 <el-row align="middle" justify="space-between"> 295 <el-row align="middle" justify="space-between">
...@@ -471,7 +514,7 @@ import { ...@@ -471,7 +514,7 @@ import {
471 cancelOrder2, getBaseInfoByActiveId, 514 cancelOrder2, getBaseInfoByActiveId,
472 getCarBilldetailbyId, 515 getCarBilldetailbyId,
473 getFoodBilldetailbyId, 516 getFoodBilldetailbyId,
474 getMealOrderInfoByLogex, getPhotoOrderInfo, getPhotoOrderInfoByLogex 517 getMealOrderInfoByLogex, getPhotoOrderInfo, getPhotoOrderInfoByLogex, getTicketInfoByActivityId, getTicketOrderInfo,
475 } from "@/apiPc/booking"; 518 } from "@/apiPc/booking";
476 import dayjs from 'dayjs' 519 import dayjs from 'dayjs'
477 import {delPerson} from "@/api/exam/person"; 520 import {delPerson} from "@/api/exam/person";
...@@ -489,6 +532,7 @@ const remark = ref('') ...@@ -489,6 +532,7 @@ const remark = ref('')
489 const showSJDialog = ref(false) 532 const showSJDialog = ref(false)
490 const loading = ref(false) 533 const loading = ref(false)
491 const lpName = ref('') 534 const lpName = ref('')
535 const matchForm = ref({})
492 536
493 const user = useUserStore().user 537 const user = useUserStore().user
494 if (useUserStore().user) { 538 if (useUserStore().user) {
...@@ -583,11 +627,37 @@ function getData() { ...@@ -583,11 +627,37 @@ function getData() {
583 // photographyInfo() 627 // photographyInfo()
584 } 628 }
585 if (type.value == 'ticket') { 629 if (type.value == 'ticket') {
586 630 getTicketOrderInfoFN()
587 } 631 }
588 console.log(payType.value) 632 console.log(payType.value)
589 } 633 }
590 634
635 // 票务订单详情
636 async function getTicketOrderInfoFN() {
637 const res = await getTicketOrderInfo({orderId: orderId.value})
638 form.value = res.data
639 form.value.extJson = JSON.parse(form.value.extJson)
640 try {
641 form.value.extJson.ticketDate = JSON.parse(form.value.extJson.ticketDate)
642 form.value.extJson.ticketType = JSON.parse(form.value.extJson.ticketType)
643 await getDetail(form.value.extJson.ticketDate.activityId)
644 totalFee.value = language.value == 0 ? form.value.total : form.value.totalEn
645 } catch (e) {
646 console.log(e)
647 } finally {
648
649 }
650
651
652 console.log(form.value)
653 }
654
655 async function getDetail(activeId) {
656 const res = await getTicketInfoByActivityId({activityId: activeId})
657 matchForm.value = res.data
658 }
659
660
591 function goHome() { 661 function goHome() {
592 router.push('/') 662 router.push('/')
593 } 663 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!