bd56e62c by 杨炀

no message

1 parent 2ef19ff1
...@@ -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 {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!