d39c19a0 by zhangmeng

票务

1 parent 900d42f9
...@@ -113,16 +113,19 @@ ...@@ -113,16 +113,19 @@
113 <div v-if="type == 'ticket'"> 113 <div v-if="type == 'ticket'">
114 <div class="leftboderTT">{{ language == 0 ? '购票信息' : 'Ticket Information' }}</div> 114 <div class="leftboderTT">{{ language == 0 ? '购票信息' : 'Ticket Information' }}</div>
115 <div class="border-info mt20"> 115 <div class="border-info mt20">
116 <h3>{{ form?.extJson?.ticketType?.name }}</h3> 116 <h3>{{ matchForm.name }}</h3>
117 <el-row> 117 <el-row>
118 <el-col> 118 <el-col>
119 {{ language == 0 ? '地址' : 'Address' }} 119 {{ language == 0 ? '地址' : 'Address' }}
120 <span v-if="language == 0">{{ form.provinceName }} {{ form.cityName }} {{ form.areaName }} </span>
121 {{ matchForm.address }} 120 {{ matchForm.address }}
122 </el-col> 121 </el-col>
123 <el-col> 122 <el-col>
124 {{ language == 0 ? '票档' : 'Check-in&Check-out' }}{{ form?.extJson?.ticketDate?.name }} x 1 123 {{ language == 0 ? '票档' : 'Check-in&Check-out' }}{{ form?.extJson?.ticketType?.name }}
125 {{ language == 0 ? '张' : 'Tickets' }} 124 </el-col>
125 <el-col>
126 {{
127 language == 0 ? '时间' : 'Room Information'
128 }}{{ dayjs(form?.extJson?.ticketDate?.ticketStart).format('YYYY-MM-DD') }}
126 </el-col> 129 </el-col>
127 <el-col> 130 <el-col>
128 {{ 131 {{
...@@ -132,11 +135,7 @@ ...@@ -132,11 +135,7 @@
132 }}{{ language == 0 ? '元' : 'Euro' }} x 1 135 }}{{ language == 0 ? '元' : 'Euro' }} x 1
133 {{ language == 0 ? '张' : 'Tickets' }} 136 {{ language == 0 ? '张' : 'Tickets' }}
134 </el-col> 137 </el-col>
135 <el-col> 138
136 {{
137 language == 0 ? '时间' : 'Room Information'
138 }}{{ dayjs(form?.extJson?.ticketDate?.ticketStart).format('YYYY-MM-DD') }}
139 </el-col>
140 </el-row> 139 </el-row>
141 </div> 140 </div>
142 </div> 141 </div>
...@@ -648,11 +647,13 @@ async function getTicketOrderInfoFN() { ...@@ -648,11 +647,13 @@ async function getTicketOrderInfoFN() {
648 647
649 } 648 }
650 console.log(form.value) 649 console.log(form.value)
650
651 } 651 }
652 652
653 async function getDetail(activeId) { 653 async function getDetail(activeId) {
654 const res = await getTicketInfoByActivityId({activityId: activeId}) 654 const res = await getTicketInfoByActivityId({activityId: activeId})
655 matchForm.value = res.data 655 matchForm.value = res.data
656 console.log(matchForm.value)
656 } 657 }
657 658
658 659
......
...@@ -48,15 +48,15 @@ ...@@ -48,15 +48,15 @@
48 <el-col :lg="9" :md="12" :sm="12" :xs="24"> 48 <el-col :lg="9" :md="12" :sm="12" :xs="24">
49 <h3 class="m0">{{ b.name }}</h3> 49 <h3 class="m0">{{ b.name }}</h3>
50 <p> {{ language == 0 ? "时间" : "Event Date & Time" }}{{ 50 <p> {{ language == 0 ? "时间" : "Event Date & Time" }}{{
51 b.dateStr 51 b.messageObj.ticketDate.name
52 }}</p> 52 }}</p>
53 <p class="common"> 53 <p class="common">
54 {{ language == 0 ? "张数" : "Location" }}{{ b.ticketNum }}{{ language == 0 ? "张" : "tickets" }} 54 {{ language == 0 ? "张数" : "Location" }}{{ b.messageObj.num }}{{ language == 0 ? "张" : "tickets" }}
55 </p> 55 </p>
56 </el-col> 56 </el-col>
57 <el-col :lg="3" :md="6" :sm="6" :xs="6" class="text-center"> 57 <el-col :lg="3" :md="6" :sm="6" :xs="6" class="text-center">
58 <span class="text-warning"> {{ b.payType == '2' ? '€' : '¥' }} 58 <span class="text-warning"> {{ b.payType == '2' ? '€' : '¥' }}
59 <span class="bigMoney">{{ b.payAmount }}</span> 59 <span class="bigMoney">{{ b.total }}</span>
60 </span> 60 </span>
61 </el-col> 61 </el-col>
62 <el-col :lg="6" :md="16" :sm="16" :xs="16"> 62 <el-col :lg="6" :md="16" :sm="16" :xs="16">
...@@ -281,9 +281,13 @@ const getList = () => { ...@@ -281,9 +281,13 @@ const getList = () => {
281 }).then(res => { 281 }).then(res => {
282 list.value = res.rows 282 list.value = res.rows
283 for (let b of list.value) { 283 for (let b of list.value) {
284 b.messageObj = JSON.parse(b.message) 284 b.messageObj = JSON.parse(b.extJson)
285 b.messageObj.ticketDate = JSON.parse(b.messageObj.ticketDate)
286 b.messageObj.ticketType = JSON.parse(b.messageObj.ticketType)
285 } 287 }
286 loading.value = false 288 loading.value = false
289 console.log(list.value)
290
287 }) 291 })
288 } else { 292 } else {
289 getCanInvoiceBills(query.value).then(res => { 293 getCanInvoiceBills(query.value).then(res => {
...@@ -327,7 +331,8 @@ const gokp = (item) => { ...@@ -327,7 +331,8 @@ const gokp = (item) => {
327 query: { 331 query: {
328 orders: encodeURIComponent(JSON.stringify(item)), 332 orders: encodeURIComponent(JSON.stringify(item)),
329 totalMoney: item.totalStr || item.totalPayAmount || item.payAmount || item.totalAmount, 333 totalMoney: item.totalStr || item.totalPayAmount || item.payAmount || item.totalAmount,
330 paymentType: query.value.orderType == 6 || query.value.orderType == 5 ? item.payType : item.paymentType, 334 orderId: item.id,
335 paymentType: query.value.orderType == 5 ? item.payType : item.paymentType,
331 orderType: query.value.orderType, 336 orderType: query.value.orderType,
332 orderSn: query.value.orderType == 6 ? item.orderSn : null 337 orderSn: query.value.orderType == 6 ? item.orderSn : null
333 } 338 }
...@@ -338,11 +343,12 @@ const editkp = (item) => { ...@@ -338,11 +343,12 @@ const editkp = (item) => {
338 name: 'addInvoice', 343 name: 'addInvoice',
339 query: { 344 query: {
340 invoiceId: query.value.orderType == 6 ? item.invoiceIdStr : item.invoiceId, 345 invoiceId: query.value.orderType == 6 ? item.invoiceIdStr : item.invoiceId,
346 orderId: item.id,
341 type: activeName.value, 347 type: activeName.value,
342 isEdit: true, 348 isEdit: true,
343 orderType: query.value.orderType, 349 orderType: query.value.orderType,
344 paymentType: query.value.orderType == 6 || query.value.orderType == 5 ? item.payType : item.paymentType, 350 paymentType: query.value.orderType == 5 ? item.payType : item.paymentType,
345 orderSn: query.value.orderType == 6 ? item.orderSn : null 351 // orderSn: query.value.orderType == 6 ? item.orderSn : null
346 } 352 }
347 }) 353 })
348 } 354 }
...@@ -354,7 +360,7 @@ const showDetail = (item) => { ...@@ -354,7 +360,7 @@ const showDetail = (item) => {
354 type: activeName.value, 360 type: activeName.value,
355 orderType: query.value.orderType, 361 orderType: query.value.orderType,
356 paymentType: query.value.orderType == 6 || query.value.orderType == 5 ? item.payType : item.paymentType, 362 paymentType: query.value.orderType == 6 || query.value.orderType == 5 ? item.payType : item.paymentType,
357 orderSn: query.value.orderType == 6 ? item.orderSn : null 363 // orderSn: query.value.orderType == 6 ? item.orderSn : null
358 } 364 }
359 }) 365 })
360 } 366 }
......
...@@ -18,8 +18,8 @@ ...@@ -18,8 +18,8 @@
18 <label v-if="b.orderType == 2" class="orangeTag"> {{ language == 0 ? '餐饮' : 'DINING' }} </label> 18 <label v-if="b.orderType == 2" class="orangeTag"> {{ language == 0 ? '餐饮' : 'DINING' }} </label>
19 <label v-if="b.orderType == 3" class="orangeTag"> {{ language == 0 ? '化妆' : 'MakeUp' }} </label> 19 <label v-if="b.orderType == 3" class="orangeTag"> {{ language == 0 ? '化妆' : 'MakeUp' }} </label>
20 <label v-if="b.orderType == 4" class="orangeTag"> {{ language == 0 ? '拍摄' : 'Shooting ' }} </label> 20 <label v-if="b.orderType == 4" class="orangeTag"> {{ language == 0 ? '拍摄' : 'Shooting ' }} </label>
21 <span>{{ language == 0 ? '订单编号:' : 'No.' }} {{ b.id }}</span>
22 <label v-if="b.orderType == 5" class="orangeTag"> {{ language == 0 ? '票务' : 'TICKETING ' }} </label> 21 <label v-if="b.orderType == 5" class="orangeTag"> {{ language == 0 ? '票务' : 'TICKETING ' }} </label>
22
23 <span>{{ language == 0 ? '订单编号:' : 'No.' }} {{ b.id }}</span> 23 <span>{{ language == 0 ? '订单编号:' : 'No.' }} {{ b.id }}</span>
24 </div> 24 </div>
25 25
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!