723c1d4f by zhangmeng

Merge branch 'devmatch' into dev

2 parents 746e5385 42f91580
...@@ -96,6 +96,13 @@ export function getCarBilldetailbyId(params) { ...@@ -96,6 +96,13 @@ export function getCarBilldetailbyId(params) {
96 }) 96 })
97 } 97 }
98 98
99 export function checkReceipt(orderId) {
100 return request({
101 url: `/ota/norder/checkReceipt/${orderId}`,
102 method: 'post'
103 })
104 }
105
99 export function getFoodBilldetailbyId(params) { 106 export function getFoodBilldetailbyId(params) {
100 return request({ 107 return request({
101 url: `/ota/orderFood/getFoodOrderInfoByOrder`, 108 url: `/ota/orderFood/getFoodOrderInfoByOrder`,
......
...@@ -508,6 +508,19 @@ ...@@ -508,6 +508,19 @@
508 </el-icon> 508 </el-icon>
509 {{ language == 0 ? '导出酒店预订单' : 'Download Confirmation' }} 509 {{ language == 0 ? '导出酒店预订单' : 'Download Confirmation' }}
510 </el-button> 510 </el-button>
511
512 <el-button
513 v-if="(form.viewStatus=='1'||form.viewStatus=='5')&&(type=='makeUp'||type=='hotel'||type=='ticket'||type=='car')"
514 class="btn-lineG w200px" round
515 type="primary"
516 @click="downInvoice"
517 >
518 <el-icon>
519 <Download />
520 </el-icon>
521 {{ language == 0 ? '下载收据' : 'DownLoad Invoice' }}
522 </el-button>
523
511 <el-button v-if="form.viewStatus == '5'" round @click="unsubscribe"> 524 <el-button v-if="form.viewStatus == '5'" round @click="unsubscribe">
512 {{ language == 0 ? '退订' : 'Unsubscribe' }} 525 {{ language == 0 ? '退订' : 'Unsubscribe' }}
513 </el-button> 526 </el-button>
...@@ -655,13 +668,15 @@ function getData() { ...@@ -655,13 +668,15 @@ function getData() {
655 form.value = { 668 form.value = {
656 pickUpBo: {} 669 pickUpBo: {}
657 } 670 }
658 return booking.getCarBilldetailbyId({ orderId: orderId.value }).then(res => { 671 booking.getCarBilldetailbyId({ orderId: orderId.value }).then(res => {
659 form.value = res.data 672 form.value = res.data
673 matchId.value = res.data.activeId
660 if (language.value == 0) { 674 if (language.value == 0) {
661 totalFee.value = res.data.total 675 totalFee.value = res.data.total
662 } else { 676 } else {
663 totalFee.value = res.data.totalEn 677 totalFee.value = res.data.totalEn
664 } 678 }
679 checkReceipt()
665 }).catch(err => { 680 }).catch(err => {
666 console.log(err) 681 console.log(err)
667 errorBox.value = true 682 errorBox.value = true
...@@ -712,6 +727,14 @@ function getData() { ...@@ -712,6 +727,14 @@ function getData() {
712 } 727 }
713 } 728 }
714 729
730 function checkReceipt() {
731 booking.checkReceipt(orderId.value).then(res => {
732 form.value.receiptFlag = res.msg || 0
733 console.log(res)
734 })
735 }
736
737
715 // 旅游订单详情 738 // 旅游订单详情
716 const getTravelOrderInfo = () => { 739 const getTravelOrderInfo = () => {
717 return booking.getScenicOrderInfo({ orderId: orderId.value }).then(res => { 740 return booking.getScenicOrderInfo({ orderId: orderId.value }).then(res => {
...@@ -735,8 +758,9 @@ async function getTicketOrderInfoFN() { ...@@ -735,8 +758,9 @@ async function getTicketOrderInfoFN() {
735 try { 758 try {
736 await getDetail(form.value.activeId) 759 await getDetail(form.value.activeId)
737 matchId.value = form.value.activeId 760 matchId.value = form.value.activeId
738
739 totalFee.value = language.value == 0 ? form.value.total : form.value.totalEn 761 totalFee.value = language.value == 0 ? form.value.total : form.value.totalEn
762
763 checkReceipt()
740 } catch (e) { 764 } catch (e) {
741 console.log(e) 765 console.log(e)
742 } finally { 766 } finally {
...@@ -943,6 +967,7 @@ function handleView() { ...@@ -943,6 +967,7 @@ function handleView() {
943 967
944 function downInvoice() { 968 function downInvoice() {
945 getremark() 969 getremark()
970 debugger
946 if (form.value.receiptFlag == '0') { 971 if (form.value.receiptFlag == '0') {
947 showSJDialog.value = true 972 showSJDialog.value = true
948 } else { 973 } else {
......
...@@ -227,7 +227,8 @@ function goDetail(b) { ...@@ -227,7 +227,8 @@ function goDetail(b) {
227 name: 'bookingPay', 227 name: 'bookingPay',
228 query: { 228 query: {
229 orderId: b.id, 229 orderId: b.id,
230 orderType: b.orderType 230 orderType: b.orderType,
231 matchId: b.activeId
231 } 232 }
232 }) 233 })
233 } 234 }
......
...@@ -440,8 +440,7 @@ ...@@ -440,8 +440,7 @@
440 440
441 <!-- 邀请函--> 441 <!-- 邀请函-->
442 <div v-if="matchData.leagueId==0" class="fixed_gg_l yaoQing"> 442 <div v-if="matchData.leagueId==0" class="fixed_gg_l yaoQing">
443 <img v-if="language==0" src="@/assets/logo/Invitation_c.png" @click="applyInvitation"> 443 <img v-if="matchData.invitationSw==1" src="@/assets/logo/Invitation_c.png" @click="applyInvitation">
444 <img v-else src="@/assets/logo/Invitation_e.png" @click="applyInvitation">
445 <div v-if="clubImage" style="padding-left: 7px;"> 444 <div v-if="clubImage" style="padding-left: 7px;">
446 <el-image 445 <el-image
447 :preview-src-list="[clubImage]" 446 :preview-src-list="[clubImage]"
......
...@@ -421,8 +421,7 @@ ...@@ -421,8 +421,7 @@
421 421
422 <!-- 邀请函--> 422 <!-- 邀请函-->
423 <div v-if="matchData.leagueId==0" class="fixed_gg_l yaoQing"> 423 <div v-if="matchData.leagueId==0" class="fixed_gg_l yaoQing">
424 <img v-if="language==0" src="@/assets/logo/Invitation_c.png" @click="applyInvitation"> 424 <img v-if="matchData.invitationSw==1" src="@/assets/logo/Invitation_e.png" @click="applyInvitation">
425 <img v-else src="@/assets/logo/Invitation_e.png" @click="applyInvitation">
426 <div style="padding-left: 7px;"> 425 <div style="padding-left: 7px;">
427 <el-image 426 <el-image
428 v-if="clubImage" 427 v-if="clubImage"
......
...@@ -433,8 +433,11 @@ ...@@ -433,8 +433,11 @@
433 </div> 433 </div>
434 434
435 <div v-if="matchData.leagueId==0" class="fixed_gg_l" @click="applyInvitation"> 435 <div v-if="matchData.leagueId==0" class="fixed_gg_l" @click="applyInvitation">
436 <img v-if="language==0" src="@/assets/logo/Invitation_c.png"> 436 <div v-if="matchData.invitationSw==1">
437 <img v-else src="@/assets/logo/Invitation_e.png"> 437 <img v-if="language==0" src="@/assets/logo/Invitation_c.png">
438 <img v-else src="@/assets/logo/Invitation_e.png">
439 </div>
440
438 </div> 441 </div>
439 442
440 <affix-invitation ref="dialogInvitationRef" /> 443 <affix-invitation ref="dialogInvitationRef" />
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!