no message
Showing
3 changed files
with
110 additions
and
78 deletions
| ... | @@ -118,19 +118,19 @@ | ... | @@ -118,19 +118,19 @@ |
| 118 | <div class="leftboderTT">{{ language == 0 ? '购票信息' : 'Ticket Information' }}</div> | 118 | <div class="leftboderTT">{{ language == 0 ? '购票信息' : 'Ticket Information' }}</div> |
| 119 | <div class="border-info mt20"> | 119 | <div class="border-info mt20"> |
| 120 | <h3>{{ matchForm.name }}</h3> | 120 | <h3>{{ matchForm.name }}</h3> |
| 121 | <el-row> | 121 | <p> |
| 122 | <el-col> | ||
| 123 | {{ language == 0 ? '地址' : 'Address' }}: | 122 | {{ language == 0 ? '地址' : 'Address' }}: |
| 124 | {{ matchForm.address }} | 123 | {{ matchForm.address }} |
| 125 | </el-col> | 124 | </p> |
| 126 | <el-col> | 125 | <p> |
| 127 | {{ form?.extJson?.atName }} | 126 | {{ form?.extJson?.atName }} | |
| 128 | {{ form?.extJson?.atsName }} | 127 | {{ form?.extJson?.atsName }} | |
| 129 | {{ form?.extJson?.sessionType=='1000'?'日间场':'夜间场' }} | 128 | <span v-if="form?.extJson?.sessionType == '1000'">{{ language==0?'日间场':'Day' }}</span> |
| 130 | {{ form?.extJson?.ticketName }} | 129 | <span v-else>{{ language==0?'夜间场':'Night' }}</span> |
| 130 | {{ form?.extJson?.ticketName }} | | ||
| 131 | {{ form?.num }}{{ language == 0 ? '张' : 'Tickets' }} | 131 | {{ form?.num }}{{ language == 0 ? '张' : 'Tickets' }} |
| 132 | </el-col> | 132 | </p> |
| 133 | </el-row> | 133 | |
| 134 | </div> | 134 | </div> |
| 135 | </div> | 135 | </div> |
| 136 | <div v-if="type == 'travel'"> | 136 | <div v-if="type == 'travel'"> |
| ... | @@ -161,7 +161,7 @@ | ... | @@ -161,7 +161,7 @@ |
| 161 | language == 0 ? '联系方式' : 'Contact Information' | 161 | language == 0 ? '联系方式' : 'Contact Information' |
| 162 | }}:{{ form.phone }} | 162 | }}:{{ form.phone }} |
| 163 | </el-col> | 163 | </el-col> |
| 164 | <el-col :lg="8" :md="12" :sm="12" :xs="24" /> | 164 | <el-col :lg="8" :md="12" :sm="12" :xs="24"/> |
| 165 | </el-row> | 165 | </el-row> |
| 166 | <el-row v-if="type == 'car'"> | 166 | <el-row v-if="type == 'car'"> |
| 167 | <el-col :lg="12" :md="12" :sm="12" :xs="24"> | 167 | <el-col :lg="12" :md="12" :sm="12" :xs="24"> |
| ... | @@ -265,34 +265,34 @@ | ... | @@ -265,34 +265,34 @@ |
| 265 | <el-col :span="24">{{ language == 0 ? '备注' : 'Remarks' }}:{{ form.remarks }}</el-col> | 265 | <el-col :span="24">{{ language == 0 ? '备注' : 'Remarks' }}:{{ form.remarks }}</el-col> |
| 266 | </el-row> | 266 | </el-row> |
| 267 | <el-row v-if="type == 'ticket'" style="width: 100%"> | 267 | <el-row v-if="type == 'ticket'" style="width: 100%"> |
| 268 | <el-row v-for="(v,i) in form.extJson?.orderCustomerList" :key="i" style="width: 100%"> | 268 | <el-col :lg="12"> |
| 269 | <el-col :lg="8" :md="12" :sm="12" :xs="24"> | 269 | {{ language == 0 ? '联系人' : 'Contact' }}:{{form.contacts}} |
| 270 | <div>{{ v.name }} | ||
| 271 | </div> | ||
| 272 | </el-col> | 270 | </el-col> |
| 273 | <el-col :lg="8" :md="12" :sm="12" :xs="24"> | 271 | <el-col :lg="12"> |
| 274 | <div>{{ v.idCard }} | 272 | {{ language == 0 ? '联系方式' : 'Contact' }}:{{ form.phone }} |
| 275 | </div> | ||
| 276 | </el-col> | 273 | </el-col> |
| 277 | <el-col :lg="8" :md="12" :sm="12" :xs="24"> | 274 | <el-row v-for="(v,i) in form.extJson?.orderCustomerList" :key="i" style="width: 100%"> |
| 278 | <div v-if="language == 0 "> | 275 | <el-col :lg="12" :md="12" :sm="12" :xs="24"> |
| 279 | ¥ {{ form.price }} /张 | 276 | {{ v.name }} - |
| 280 | </div> | 277 | |
| 281 | <div v-else> | 278 | <span class="text-gray">{{ v.idCard }}</span> |
| 282 | € {{ form.priceEn }} /Tickets | 279 | </el-col> |
| 283 | </div> | 280 | <el-col :lg="12" :md="12" :sm="12" :xs="24" class="text-right"> |
| 281 | <span class="text-primary" v-if="language == 0 ">¥ {{ form.price }}</span> | ||
| 282 | <span v-else>€ {{ form.priceEn || 0}}</span> | ||
| 284 | </el-col> | 283 | </el-col> |
| 285 | </el-row> | 284 | </el-row> |
| 286 | <el-row style="width: 100%"> | 285 | <el-row style="width: 100%"> |
| 287 | <el-col :lg="8" :md="12" :sm="12" :xs="24"> | 286 | <el-col :lg="8" :md="12" :sm="12" :xs="24"> |
| 288 | <div> | 287 | <div> |
| 289 | {{ language == 0 ? '购票数量' : 'Number of tickets purchased' }}:{{ form.num }}{{ language == 0 ? '张' : 'Tickets' }} | 288 | {{ language == 0 ? '购票数量' : 'Number of tickets purchased' }}:{{ |
| 289 | form.num | ||
| 290 | }}{{ language == 0 ? '张' : 'Tickets' }} | ||
| 290 | </div> | 291 | </div> |
| 291 | </el-col> | 292 | </el-col> |
| 292 | <el-col :lg="8" :md="12" :sm="12" :xs="24"> | 293 | <el-col :lg="8" :md="12" :sm="12" :xs="24"> |
| 293 | {{ language == 0 ? '联系方式' : 'Contact Information' }}:{{ form.phone }} | ||
| 294 | </el-col> | 294 | </el-col> |
| 295 | <el-col :lg="8" :md="12" :sm="12" :xs="24"> | 295 | <el-col :lg="8" :md="12" :sm="12" :xs="24" class="text-right text-warning"> |
| 296 | {{ form.paymentType == '1' ? '共计' : 'total' }}:{{ | 296 | {{ form.paymentType == '1' ? '共计' : 'total' }}:{{ |
| 297 | form.paymentType == '1' ? '¥' : '€' | 297 | form.paymentType == '1' ? '¥' : '€' |
| 298 | }}{{ Number(totalFee).toFixed(2) }} | 298 | }}{{ Number(totalFee).toFixed(2) }} |
| ... | @@ -363,13 +363,13 @@ | ... | @@ -363,13 +363,13 @@ |
| 363 | </div> | 363 | </div> |
| 364 | </el-col> | 364 | </el-col> |
| 365 | <el-col :lg="24"> | 365 | <el-col :lg="24"> |
| 366 | <div class="text-center" /> | 366 | <div class="text-center"/> |
| 367 | </el-col> | 367 | </el-col> |
| 368 | </el-row> | 368 | </el-row> |
| 369 | </div> | 369 | </div> |
| 370 | </div> | 370 | </div> |
| 371 | <div v-else class="pd20 skeletonBox"> | 371 | <div v-else class="pd20 skeletonBox"> |
| 372 | <el-skeleton :rows="8" /> | 372 | <el-skeleton :rows="8"/> |
| 373 | <el-button | 373 | <el-button |
| 374 | :style="language == 0 ?'width:200px':'width:400px'" class="btn-lineG" round size="large" | 374 | :style="language == 0 ?'width:200px':'width:400px'" class="btn-lineG" round size="large" |
| 375 | type="primary" @click="showLogin" | 375 | type="primary" @click="showLogin" |
| ... | @@ -483,7 +483,7 @@ | ... | @@ -483,7 +483,7 @@ |
| 483 | <div v-if="form.payDate&&form.viewStatus=='1'"> | 483 | <div v-if="form.payDate&&form.viewStatus=='1'"> |
| 484 | <div class="text-center"> | 484 | <div class="text-center"> |
| 485 | <el-icon color="#32B16C" size="80"> | 485 | <el-icon color="#32B16C" size="80"> |
| 486 | <SuccessFilled /> | 486 | <SuccessFilled/> |
| 487 | </el-icon> | 487 | </el-icon> |
| 488 | <p class="text-success">{{ language == 0 ? '支付成功' : 'successful!' }}</p> | 488 | <p class="text-success">{{ language == 0 ? '支付成功' : 'successful!' }}</p> |
| 489 | <h3 class="wePrice">{{ language == 0 ? '¥' : '€' }}{{ totalFee || 0 }}</h3> | 489 | <h3 class="wePrice">{{ language == 0 ? '¥' : '€' }}{{ totalFee || 0 }}</h3> |
| ... | @@ -505,7 +505,7 @@ | ... | @@ -505,7 +505,7 @@ |
| 505 | </template> | 505 | </template> |
| 506 | </el-result> | 506 | </el-result> |
| 507 | </div> | 507 | </div> |
| 508 | <Dialog ref="DialogRef" /> | 508 | <Dialog ref="DialogRef"/> |
| 509 | 509 | ||
| 510 | <el-dialog | 510 | <el-dialog |
| 511 | v-model="showSJDialog" :close-on-click-modal="false" :close-on-press-escape="false" | 511 | v-model="showSJDialog" :close-on-click-modal="false" :close-on-press-escape="false" |
| ... | @@ -514,7 +514,7 @@ | ... | @@ -514,7 +514,7 @@ |
| 514 | <div class="flex"> | 514 | <div class="flex"> |
| 515 | <el-form-item :label="language==0?'开票人':'Name'"> | 515 | <el-form-item :label="language==0?'开票人':'Name'"> |
| 516 | <div class="flex"> | 516 | <div class="flex"> |
| 517 | <el-input v-model="lpName" :placeholder="language==0?'请输入开票人':'Please enter your name'" /> | 517 | <el-input v-model="lpName" :placeholder="language==0?'请输入开票人':'Please enter your name'"/> |
| 518 | <el-button type="primary" @click="submitSJ">{{ language == 0 ? '提交并下载' : 'Submit' }}</el-button> | 518 | <el-button type="primary" @click="submitSJ">{{ language == 0 ? '提交并下载' : 'Submit' }}</el-button> |
| 519 | </div> | 519 | </div> |
| 520 | </el-form-item> | 520 | </el-form-item> |
| ... | @@ -530,22 +530,22 @@ | ... | @@ -530,22 +530,22 @@ |
| 530 | </template> | 530 | </template> |
| 531 | 531 | ||
| 532 | <script setup> | 532 | <script setup> |
| 533 | import { getCurrentInstance, ref } from 'vue' | 533 | import {getCurrentInstance, ref} from 'vue' |
| 534 | import { onMounted } from '@vue/runtime-core' | 534 | import {onMounted} from '@vue/runtime-core' |
| 535 | import { useRoute, useRouter } from 'vue-router' | 535 | import {useRoute, useRouter} from 'vue-router' |
| 536 | import * as booking from '@/apiPc/booking' | 536 | import * as booking from '@/apiPc/booking' |
| 537 | import Dialog from '@/viewsPc/booking/component/dailog.vue' | 537 | import Dialog from '@/viewsPc/booking/component/dailog.vue' |
| 538 | 538 | ||
| 539 | 539 | ||
| 540 | const { proxy } = getCurrentInstance() | 540 | const {proxy} = getCurrentInstance() |
| 541 | const route = useRoute() | 541 | const route = useRoute() |
| 542 | const router = useRouter() | 542 | const router = useRouter() |
| 543 | const payType = ref('2') | 543 | const payType = ref('2') |
| 544 | const orderId = ref(route.query.orderId) | 544 | const orderId = ref(route.query.orderId) |
| 545 | const matchId = ref() | 545 | const matchId = ref() |
| 546 | import useUserStore from '@/store/modules/user' | 546 | import useUserStore from '@/store/modules/user' |
| 547 | import { useStorage } from '@vueuse/core/index' | 547 | import {useStorage} from '@vueuse/core/index' |
| 548 | import { ElMessage, ElMessageBox } from 'element-plus' | 548 | import {ElMessage, ElMessageBox} from 'element-plus' |
| 549 | import { | 549 | import { |
| 550 | cancelOrder, | 550 | cancelOrder, |
| 551 | cancelOrder2, | 551 | cancelOrder2, |
| ... | @@ -618,7 +618,7 @@ function getData() { | ... | @@ -618,7 +618,7 @@ function getData() { |
| 618 | form.value = { | 618 | form.value = { |
| 619 | pickUpBo: {} | 619 | pickUpBo: {} |
| 620 | } | 620 | } |
| 621 | return booking.getCarBilldetailbyId({ orderId: orderId.value }).then(res => { | 621 | return booking.getCarBilldetailbyId({orderId: orderId.value}).then(res => { |
| 622 | form.value = res.data | 622 | form.value = res.data |
| 623 | if (language.value == 0) { | 623 | if (language.value == 0) { |
| 624 | totalFee.value = res.data.total | 624 | totalFee.value = res.data.total |
| ... | @@ -631,7 +631,7 @@ function getData() { | ... | @@ -631,7 +631,7 @@ function getData() { |
| 631 | }) | 631 | }) |
| 632 | } | 632 | } |
| 633 | if (type.value == 'food') { | 633 | if (type.value == 'food') { |
| 634 | return booking.getFoodBilldetailbyId({ orderId: orderId.value }).then(res => { | 634 | return booking.getFoodBilldetailbyId({orderId: orderId.value}).then(res => { |
| 635 | if (language.value == 0) { | 635 | if (language.value == 0) { |
| 636 | totalFee.value = res.data.total | 636 | totalFee.value = res.data.total |
| 637 | } else { | 637 | } else { |
| ... | @@ -644,7 +644,7 @@ function getData() { | ... | @@ -644,7 +644,7 @@ function getData() { |
| 644 | }) | 644 | }) |
| 645 | } | 645 | } |
| 646 | if (type.value == 'hotel') { | 646 | if (type.value == 'hotel') { |
| 647 | return booking.getRoomBilldetailbyId({ orderId: orderId.value }).then(res => { | 647 | return booking.getRoomBilldetailbyId({orderId: orderId.value}).then(res => { |
| 648 | if (language.value == 0) { | 648 | if (language.value == 0) { |
| 649 | totalFee.value = res.data.total | 649 | totalFee.value = res.data.total |
| 650 | } else { | 650 | } else { |
| ... | @@ -677,7 +677,7 @@ function getData() { | ... | @@ -677,7 +677,7 @@ function getData() { |
| 677 | 677 | ||
| 678 | // 旅游订单详情 | 678 | // 旅游订单详情 |
| 679 | const getTravelOrderInfo = () => { | 679 | const getTravelOrderInfo = () => { |
| 680 | return booking.getScenicOrderInfo({ orderId: orderId.value }).then(res => { | 680 | return booking.getScenicOrderInfo({orderId: orderId.value}).then(res => { |
| 681 | form.value = res.data | 681 | form.value = res.data |
| 682 | totalFee.value = language.value == 0 ? form.value.total : form.value.totalEn | 682 | totalFee.value = language.value == 0 ? form.value.total : form.value.totalEn |
| 683 | matchId.value = form.value.activeId | 683 | matchId.value = form.value.activeId |
| ... | @@ -692,7 +692,7 @@ const getTravelOrderInfo = () => { | ... | @@ -692,7 +692,7 @@ const getTravelOrderInfo = () => { |
| 692 | 692 | ||
| 693 | // 票务订单详情 | 693 | // 票务订单详情 |
| 694 | async function getTicketOrderInfoFN() { | 694 | async function getTicketOrderInfoFN() { |
| 695 | const res = await getTicketOrderInfo({ orderId: orderId.value }) | 695 | const res = await getTicketOrderInfo({orderId: orderId.value}) |
| 696 | form.value = res.data | 696 | form.value = res.data |
| 697 | form.value.extJson = JSON.parse(form.value.extJson) | 697 | form.value.extJson = JSON.parse(form.value.extJson) |
| 698 | try { | 698 | try { |
| ... | @@ -708,7 +708,7 @@ async function getTicketOrderInfoFN() { | ... | @@ -708,7 +708,7 @@ async function getTicketOrderInfoFN() { |
| 708 | } | 708 | } |
| 709 | 709 | ||
| 710 | async function getDetail(activeId) { | 710 | async function getDetail(activeId) { |
| 711 | const res = await getTicketInfoByActivityId({ activityId: activeId }) | 711 | const res = await getTicketInfoByActivityId({activityId: activeId}) |
| 712 | matchForm.value = res.data | 712 | matchForm.value = res.data |
| 713 | console.log(matchForm.value) | 713 | console.log(matchForm.value) |
| 714 | } | 714 | } |
| ... | @@ -720,14 +720,14 @@ function goHome() { | ... | @@ -720,14 +720,14 @@ function goHome() { |
| 720 | 720 | ||
| 721 | function goPay() { | 721 | function goPay() { |
| 722 | if (payType.value == '2') { | 722 | if (payType.value == '2') { |
| 723 | booking.createWePay({ orderId: orderId.value }).then(res => { | 723 | booking.createWePay({orderId: orderId.value}).then(res => { |
| 724 | wePayCodeUrl.value = res.data | 724 | wePayCodeUrl.value = res.data |
| 725 | hideconfirmbtn.value = true | 725 | hideconfirmbtn.value = true |
| 726 | startforGetData() | 726 | startforGetData() |
| 727 | }) | 727 | }) |
| 728 | } | 728 | } |
| 729 | if (payType.value == '3') { | 729 | if (payType.value == '3') { |
| 730 | booking.createPalPay({ orderId: orderId.value }).then(res => { | 730 | booking.createPalPay({orderId: orderId.value}).then(res => { |
| 731 | if (res.data) { | 731 | if (res.data) { |
| 732 | location.href = res.data | 732 | location.href = res.data |
| 733 | } | 733 | } |
| ... | @@ -793,7 +793,7 @@ function showLogin() { | ... | @@ -793,7 +793,7 @@ function showLogin() { |
| 793 | 793 | ||
| 794 | 794 | ||
| 795 | function MakeUpOrder() { | 795 | function MakeUpOrder() { |
| 796 | return booking.getMealOrderInfo({ orderId: orderId.value }).then(res => { | 796 | return booking.getMealOrderInfo({orderId: orderId.value}).then(res => { |
| 797 | form.value = res.data | 797 | form.value = res.data |
| 798 | totalFee.value = language.value == 0 ? form.value.total : form.value.totalEn | 798 | totalFee.value = language.value == 0 ? form.value.total : form.value.totalEn |
| 799 | matchId.value = form.value.activeId | 799 | matchId.value = form.value.activeId |
| ... | @@ -806,7 +806,7 @@ function MakeUpOrder() { | ... | @@ -806,7 +806,7 @@ function MakeUpOrder() { |
| 806 | } | 806 | } |
| 807 | 807 | ||
| 808 | function MakeUpIno() { | 808 | function MakeUpIno() { |
| 809 | booking.getMealOrderInfoByLogex({ asmId: form.value.asmId }).then(res => { | 809 | booking.getMealOrderInfoByLogex({asmId: form.value.asmId}).then(res => { |
| 810 | formInfo.value = res.data | 810 | formInfo.value = res.data |
| 811 | console.log(res) | 811 | console.log(res) |
| 812 | }) | 812 | }) |
| ... | @@ -817,7 +817,7 @@ function MakeUpIno() { | ... | @@ -817,7 +817,7 @@ function MakeUpIno() { |
| 817 | } | 817 | } |
| 818 | 818 | ||
| 819 | function ScenicInfo() { | 819 | function ScenicInfo() { |
| 820 | booking.getLogexScenicVoById({ id: form.value.asId }).then(res => { | 820 | booking.getLogexScenicVoById({id: form.value.asId}).then(res => { |
| 821 | formInfo.value = res.data | 821 | formInfo.value = res.data |
| 822 | console.log(res) | 822 | console.log(res) |
| 823 | }).catch((e) => { | 823 | }).catch((e) => { |
| ... | @@ -828,7 +828,7 @@ function ScenicInfo() { | ... | @@ -828,7 +828,7 @@ function ScenicInfo() { |
| 828 | 828 | ||
| 829 | 829 | ||
| 830 | function photographyOrder() { | 830 | function photographyOrder() { |
| 831 | return booking.getPhotoOrderInfo({ orderId: orderId.value }).then(res => { | 831 | return booking.getPhotoOrderInfo({orderId: orderId.value}).then(res => { |
| 832 | form.value = res.data | 832 | form.value = res.data |
| 833 | totalFee.value = language.value == 0 ? form.value.total : form.value.totalEn | 833 | totalFee.value = language.value == 0 ? form.value.total : form.value.totalEn |
| 834 | photographyInfo() | 834 | photographyInfo() |
| ... | @@ -839,7 +839,7 @@ function photographyOrder() { | ... | @@ -839,7 +839,7 @@ function photographyOrder() { |
| 839 | } | 839 | } |
| 840 | 840 | ||
| 841 | function photographyInfo() { | 841 | function photographyInfo() { |
| 842 | booking.getPhotoOrderInfoByLogex({ aspId: form.value.aspId }).then(res => { | 842 | booking.getPhotoOrderInfoByLogex({aspId: form.value.aspId}).then(res => { |
| 843 | formInfo.value = res.data | 843 | formInfo.value = res.data |
| 844 | }) | 844 | }) |
| 845 | // .catch((e) => { | 845 | // .catch((e) => { | ... | ... |
| ... | @@ -14,36 +14,54 @@ | ... | @@ -14,36 +14,54 @@ |
| 14 | 14 | ||
| 15 | <div class="info"> | 15 | <div class="info"> |
| 16 | <div class="name">{{ TickForm2.ticketTypeName }}</div> | 16 | <div class="name">{{ TickForm2.ticketTypeName }}</div> |
| 17 | <div class="address">{{ TickForm2.stadiumName }}</div> | 17 | <div class="address"> |
| 18 | <div class="address">{{ TickForm2.sessionType=='1000'?'日间场':'夜间场' }}</div> | 18 | {{ TickForm2.stadiumName }} | |
| 19 | <div class="address">{{ TickForm2.ticketName }}</div> | 19 | <span v-if="TickForm2.sessionType=='1000'">{{ language == 0 ? '日间场' : 'Day' }}</span> |
| 20 | <span v-else>{{ language == 0 ? '夜间场' : 'Night' }}</span> | ||
| 21 | | {{ TickForm2.ticketName }} | ||
| 22 | </div> | ||
| 20 | 23 | ||
| 21 | <div v-if="TickForm2.ticketType=='0'" class="address">剩余数量: {{ leftCount }}</div> | 24 | <div v-if="TickForm2.ticketType=='0'" class="address">剩余数量: {{ leftCount }}</div> |
| 22 | </div> | 25 | </div> |
| 23 | 26 | ||
| 24 | <div class="ticket_info mb20"> | 27 | <div class="ticket_info mb20"> |
| 25 | <div class="tit_box"> | 28 | <div class="tit_box"> |
| 26 | <div class="line" /> | 29 | <div class="line"/> |
| 27 | <div class="txt"> | 30 | <div class="txt"> |
| 28 | {{ languageFormat(language, "订票信息", "Ticket Info") }} | 31 | {{ languageFormat(language, "订票信息", "Ticket Info") }} |
| 29 | </div> | 32 | </div> |
| 30 | </div> | 33 | </div> |
| 31 | 34 | ||
| 32 | <div class="form"> | 35 | <div class="form"> |
| 33 | <el-form ref="formRef" :model="orderForm" :rules="rules" label-width="120px"> | 36 | <el-form ref="formRef" :model="orderForm" :rules="rules" label-width="140px"> |
| 34 | <div v-if="TickForm2.ticketType == '1'"> | 37 | <div v-if="TickForm2.ticketType == '1'"> |
| 35 | <el-form-item :label="language == 0 ? '桌号' : 'zuohao'"> | 38 | <el-form-item :label="language == 0 ? '桌号' : 'Table'"> |
| 39 | |||
| 40 | <el-popover placement="right" :width="400" trigger="hover"> | ||
| 41 | <template #reference> | ||
| 42 | <div class="text-primary underline pointer" @click="showImg"> | ||
| 43 | {{ language == 0 ? '查看区域布局' : ' View Area Layout' }} | ||
| 44 | </div> | ||
| 45 | </template> | ||
| 46 | <el-image :src="fillImgUrl(tickImg)" style="width: 100%;" :preview-src-list="[fillImgUrl(tickImg)]"/> | ||
| 47 | </el-popover> | ||
| 48 | |||
| 49 | |||
| 36 | <el-radio-group v-model="currDesk"> | 50 | <el-radio-group v-model="currDesk"> |
| 37 | <el-radio-button v-for="(it, index) in deskList" :key="index" :label="it.deskNo" :value="it" :disabled="it.status!=0" /> | 51 | <el-radio-button v-for="(it, index) in deskList" :key="index" :label="it.deskNo" :value="it" |
| 52 | :disabled="it.status!=0"/> | ||
| 38 | </el-radio-group> | 53 | </el-radio-group> |
| 39 | </el-form-item> | 54 | </el-form-item> |
| 40 | <el-form-item :label="language == 0 ? '座位号' : 'zuoweihao'"> | 55 | <el-form-item :label="language == 0 ? '座位号' : 'Seat'"> |
| 41 | <el-checkbox-group v-model="currSeat"> | 56 | <el-checkbox-group v-model="currSeat"> |
| 42 | <el-checkbox-button v-for="(it, index) in currDesk?.seatList" :key="index" :label="it.seatNo" :value="it" :disabled="it.status!=0" /> | 57 | <el-checkbox-button v-for="(it, index) in currDesk?.seatList" :key="index" :label="it.seatNo" |
| 58 | :value="it" :disabled="it.status!=0"/> | ||
| 43 | </el-checkbox-group> | 59 | </el-checkbox-group> |
| 44 | </el-form-item> | 60 | </el-form-item> |
| 45 | <el-form-item label="已选座位号"> | 61 | <el-form-item :label="language == 0 ?'已选座位号':'Selected Seat'"> |
| 46 | <el-tag v-for="s in currSeat" :key="s.id">{{ s.deskNo }} - {{ s.seatNo }}</el-tag> | 62 | <el-tag class="mr10" v-for="(s,index) in currSeat" :key="s.id" closable @close="delSeat(s,index)"> |
| 63 | {{ s.deskNo }} - {{ s.seatNo }} | ||
| 64 | </el-tag> | ||
| 47 | </el-form-item> | 65 | </el-form-item> |
| 48 | </div> | 66 | </div> |
| 49 | <el-form-item | 67 | <el-form-item |
| ... | @@ -98,7 +116,7 @@ | ... | @@ -98,7 +116,7 @@ |
| 98 | 116 | ||
| 99 | <el-col :lg="8" class="right"> | 117 | <el-col :lg="8" class="right"> |
| 100 | <div class="tit_box"> | 118 | <div class="tit_box"> |
| 101 | <div class="line" /> | 119 | <div class="line"/> |
| 102 | <div class="txt"> | 120 | <div class="txt"> |
| 103 | {{ languageFormat(language, "订单明细", "Order summary") }} | 121 | {{ languageFormat(language, "订单明细", "Order summary") }} |
| 104 | </div> | 122 | </div> |
| ... | @@ -109,7 +127,7 @@ | ... | @@ -109,7 +127,7 @@ |
| 109 | <div class="time"> | 127 | <div class="time"> |
| 110 | {{ language == 0 ? '票价' : 'Cost Ticket' }} | 128 | {{ language == 0 ? '票价' : 'Cost Ticket' }} |
| 111 | </div> | 129 | </div> |
| 112 | <p /> | 130 | <p/> |
| 113 | <div class="ticket"> | 131 | <div class="ticket"> |
| 114 | {{ language == 0 ? TickForm2.price : TickForm2.priceEn }} | 132 | {{ language == 0 ? TickForm2.price : TickForm2.priceEn }} |
| 115 | <span> {{ language == 0 ? '元' : 'Euro' }}</span> | 133 | <span> {{ language == 0 ? '元' : 'Euro' }}</span> |
| ... | @@ -123,7 +141,9 @@ | ... | @@ -123,7 +141,9 @@ |
| 123 | </div> | 141 | </div> |
| 124 | <div class="price_num"> | 142 | <div class="price_num"> |
| 125 | <span>{{ language == 0 ? "¥" : "€" }}</span> | 143 | <span>{{ language == 0 ? "¥" : "€" }}</span> |
| 126 | {{ ((language == 0 ?TickForm2.price:TickForm2.priceEn) * orderForm.customerIds.length).toFixed(2) }} | 144 | {{ |
| 145 | ((language == 0 ? TickForm2.price : TickForm2.priceEn) * orderForm.customerIds.length).toFixed(2) | ||
| 146 | }} | ||
| 127 | </div> | 147 | </div> |
| 128 | </div> | 148 | </div> |
| 129 | </div> | 149 | </div> |
| ... | @@ -137,7 +157,7 @@ | ... | @@ -137,7 +157,7 @@ |
| 137 | </span> | 157 | </span> |
| 138 | <span class="value"> | 158 | <span class="value"> |
| 139 | <span>{{ language == 0 ? "¥" : "€" }}</span> | 159 | <span>{{ language == 0 ? "¥" : "€" }}</span> |
| 140 | {{ ((language == 0 ?TickForm2.price:TickForm2.priceEn) * orderForm.customerIds.length).toFixed(2) }} | 160 | {{ ((language == 0 ? TickForm2.price : TickForm2.priceEn) * orderForm.customerIds.length).toFixed(2) }} |
| 141 | </span> | 161 | </span> |
| 142 | </div> | 162 | </div> |
| 143 | <div class="pay" @click="paymentHandle"> | 163 | <div class="pay" @click="paymentHandle"> |
| ... | @@ -150,7 +170,7 @@ | ... | @@ -150,7 +170,7 @@ |
| 150 | </template> | 170 | </template> |
| 151 | 171 | ||
| 152 | <script setup> | 172 | <script setup> |
| 153 | import { ref, computed, onMounted } from 'vue' | 173 | import {ref, computed, onMounted} from 'vue' |
| 154 | import { | 174 | import { |
| 155 | customerListApi, | 175 | customerListApi, |
| 156 | submitOrderTicket, | 176 | submitOrderTicket, |
| ... | @@ -160,12 +180,12 @@ import { | ... | @@ -160,12 +180,12 @@ import { |
| 160 | checkPurchasedCustomers, | 180 | checkPurchasedCustomers, |
| 161 | getDeskInfo | 181 | getDeskInfo |
| 162 | } from '@/apiPc/booking' | 182 | } from '@/apiPc/booking' |
| 163 | import { ElMessage, ElMessageBox } from 'element-plus' | 183 | import {ElMessage, ElMessageBox} from 'element-plus' |
| 164 | import { languageFormat } from '@/viewsPc/seat/utils/language.js' | 184 | import {languageFormat} from '@/viewsPc/seat/utils/language.js' |
| 165 | import useUserStore from '/@/store/modules/user' | 185 | import useUserStore from '/@/store/modules/user' |
| 166 | import { useStorage } from '@vueuse/core/index' | 186 | import {useStorage} from '@vueuse/core/index' |
| 167 | import _ from 'lodash' | 187 | import _ from 'lodash' |
| 168 | import { useRoute, useRouter } from 'vue-router' | 188 | import {useRoute, useRouter} from 'vue-router' |
| 169 | 189 | ||
| 170 | const useStore = useUserStore() | 190 | const useStore = useUserStore() |
| 171 | 191 | ||
| ... | @@ -211,8 +231,9 @@ const leftCount = ref({}) | ... | @@ -211,8 +231,9 @@ const leftCount = ref({}) |
| 211 | const deskList = ref([]) | 231 | const deskList = ref([]) |
| 212 | const currDesk = ref(null) | 232 | const currDesk = ref(null) |
| 213 | const currSeat = ref([]) | 233 | const currSeat = ref([]) |
| 214 | 234 | const tickImg = ref() | |
| 215 | onMounted(() => { | 235 | onMounted(() => { |
| 236 | tickImg.value = route.query.tickImg | ||
| 216 | customerList() | 237 | customerList() |
| 217 | getDetail() | 238 | getDetail() |
| 218 | 239 | ||
| ... | @@ -241,6 +262,10 @@ onMounted(() => { | ... | @@ -241,6 +262,10 @@ onMounted(() => { |
| 241 | }) | 262 | }) |
| 242 | }) | 263 | }) |
| 243 | 264 | ||
| 265 | function delSeat(item, index) { | ||
| 266 | currSeat.value.splice(index, 1) | ||
| 267 | } | ||
| 268 | |||
| 244 | function changeGroup(e) { | 269 | function changeGroup(e) { |
| 245 | if (e.length > 0) { | 270 | if (e.length > 0) { |
| 246 | checkPurchasedCustomers({ | 271 | checkPurchasedCustomers({ |
| ... | @@ -300,7 +325,7 @@ async function paymentHandle() { | ... | @@ -300,7 +325,7 @@ async function paymentHandle() { |
| 300 | confirmButtonText: language.value == 0 ? '确定' : 'Confirm', | 325 | confirmButtonText: language.value == 0 ? '确定' : 'Confirm', |
| 301 | cancelButtonText: language.value == 0 ? '取消' : 'Cancel', | 326 | cancelButtonText: language.value == 0 ? '取消' : 'Cancel', |
| 302 | type: 'warning' | 327 | type: 'warning' |
| 303 | }).then(async() => { | 328 | }).then(async () => { |
| 304 | try { | 329 | try { |
| 305 | const orderCustomerList = [] | 330 | const orderCustomerList = [] |
| 306 | _.each(orderForm.value.customerIds, (id, index) => { | 331 | _.each(orderForm.value.customerIds, (id, index) => { |
| ... | @@ -369,7 +394,7 @@ async function paymentHandle() { | ... | @@ -369,7 +394,7 @@ async function paymentHandle() { |
| 369 | } | 394 | } |
| 370 | 395 | ||
| 371 | async function getDetail() { | 396 | async function getDetail() { |
| 372 | const res = await getTicketInfoByActivityId({ activityId: orderForm.value.activeId }) | 397 | const res = await getTicketInfoByActivityId({activityId: orderForm.value.activeId}) |
| 373 | TickForm.value = res.data | 398 | TickForm.value = res.data |
| 374 | } | 399 | } |
| 375 | 400 | ||
| ... | @@ -379,6 +404,10 @@ function addPeopl() { | ... | @@ -379,6 +404,10 @@ function addPeopl() { |
| 379 | path: '/booking/ticket/peopleManage' | 404 | path: '/booking/ticket/peopleManage' |
| 380 | }) | 405 | }) |
| 381 | } | 406 | } |
| 407 | |||
| 408 | const showImg = () => { | ||
| 409 | |||
| 410 | } | ||
| 382 | </script> | 411 | </script> |
| 383 | 412 | ||
| 384 | 413 | ||
| ... | @@ -503,7 +532,7 @@ div { | ... | @@ -503,7 +532,7 @@ div { |
| 503 | 532 | ||
| 504 | .name { | 533 | .name { |
| 505 | font-size: 16px; | 534 | font-size: 16px; |
| 506 | color: #929aa0; | 535 | //color: #929aa0; |
| 507 | margin-bottom: 20px; | 536 | margin-bottom: 20px; |
| 508 | 537 | ||
| 509 | .tag_t { | 538 | .tag_t { | ... | ... |
| ... | @@ -221,8 +221,8 @@ | ... | @@ -221,8 +221,8 @@ |
| 221 | 221 | ||
| 222 | <div class="container bottom"> | 222 | <div class="container bottom"> |
| 223 | <div style="display: flex"> | 223 | <div style="display: flex"> |
| 224 | <div :class="{'bg':active==1}" class="buBg" @click="active=1">购票说明</div> | 224 | <div :class="{'bg':active==1}" class="buBg" @click="active=1">{{ language==0?'购票说明':'Notice' }}</div> |
| 225 | <div :class="{'bg' :active==2}" class="buBg" @click="active=2">购票须知</div> | 225 | <div :class="{'bg' :active==2}" class="buBg" @click="active=2">{{ language==0?'购票须知':'Instructions' }}</div> |
| 226 | </div> | 226 | </div> |
| 227 | <div v-show="active==1" class="rich_content" v-html="matchForm.ticketDes" /> | 227 | <div v-show="active==1" class="rich_content" v-html="matchForm.ticketDes" /> |
| 228 | <div v-show="active==2" class="rich_content" v-html="matchForm.ticketNotice" /> | 228 | <div v-show="active==2" class="rich_content" v-html="matchForm.ticketNotice" /> |
| ... | @@ -394,6 +394,9 @@ function toSelectSeat() { | ... | @@ -394,6 +394,9 @@ function toSelectSeat() { |
| 394 | params: { | 394 | params: { |
| 395 | activeId: activeId.value, | 395 | activeId: activeId.value, |
| 396 | latstId: selectForm.value.latstId | 396 | latstId: selectForm.value.latstId |
| 397 | }, | ||
| 398 | query: { | ||
| 399 | tickImg: currTick.value.images | ||
| 397 | } | 400 | } |
| 398 | }) | 401 | }) |
| 399 | } else { | 402 | } else { | ... | ... |
-
Please register or sign in to post a comment