Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
杨炀
/
dance-pc
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
42f91580
authored
2025-07-11 17:49:00 +0800
by
zhangmeng
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
收据
1 parent
88f5a7bf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
3 deletions
src/apiPc/booking.js
src/viewsPc/booking/pay.vue
src/viewsPc/center/myReservation.vue
src/apiPc/booking.js
View file @
42f9158
...
...
@@ -96,6 +96,13 @@ export function getCarBilldetailbyId(params) {
})
}
export
function
checkReceipt
(
orderId
)
{
return
request
({
url
:
`/ota/norder/checkReceipt/
${
orderId
}
`
,
method
:
'post'
})
}
export
function
getFoodBilldetailbyId
(
params
)
{
return
request
({
url
:
`/ota/orderFood/getFoodOrderInfoByOrder`
,
...
...
src/viewsPc/booking/pay.vue
View file @
42f9158
...
...
@@ -508,6 +508,19 @@
</el-icon>
{{
language
==
0
?
'导出酒店预订单'
:
'Download Confirmation'
}}
</el-button>
<el-button
v-if=
"(form.viewStatus=='1'||form.viewStatus=='5')&&(type=='makeUp'||type=='hotel'||type=='ticket'||type=='car')"
class=
"btn-lineG w200px"
round
type=
"primary"
@
click=
"downInvoice"
>
<el-icon>
<Download
/>
</el-icon>
{{
language
==
0
?
'下载收据'
:
'DownLoad Invoice'
}}
</el-button>
<el-button
v-if=
"form.viewStatus == '5'"
round
@
click=
"unsubscribe"
>
{{
language
==
0
?
'退订'
:
'Unsubscribe'
}}
</el-button>
...
...
@@ -655,13 +668,15 @@ function getData() {
form
.
value
=
{
pickUpBo
:
{}
}
return
booking
.
getCarBilldetailbyId
({
orderId
:
orderId
.
value
}).
then
(
res
=>
{
booking
.
getCarBilldetailbyId
({
orderId
:
orderId
.
value
}).
then
(
res
=>
{
form
.
value
=
res
.
data
matchId
.
value
=
res
.
data
.
activeId
if
(
language
.
value
==
0
)
{
totalFee
.
value
=
res
.
data
.
total
}
else
{
totalFee
.
value
=
res
.
data
.
totalEn
}
checkReceipt
()
}).
catch
(
err
=>
{
console
.
log
(
err
)
errorBox
.
value
=
true
...
...
@@ -712,6 +727,14 @@ function getData() {
}
}
function
checkReceipt
()
{
booking
.
checkReceipt
(
orderId
.
value
).
then
(
res
=>
{
form
.
value
.
receiptFlag
=
res
.
msg
||
0
console
.
log
(
res
)
})
}
// 旅游订单详情
const
getTravelOrderInfo
=
()
=>
{
return
booking
.
getScenicOrderInfo
({
orderId
:
orderId
.
value
}).
then
(
res
=>
{
...
...
@@ -735,8 +758,9 @@ async function getTicketOrderInfoFN() {
try
{
await
getDetail
(
form
.
value
.
activeId
)
matchId
.
value
=
form
.
value
.
activeId
totalFee
.
value
=
language
.
value
==
0
?
form
.
value
.
total
:
form
.
value
.
totalEn
checkReceipt
()
}
catch
(
e
)
{
console
.
log
(
e
)
}
finally
{
...
...
@@ -943,6 +967,7 @@ function handleView() {
function
downInvoice
()
{
getremark
()
debugger
if
(
form
.
value
.
receiptFlag
==
'0'
)
{
showSJDialog
.
value
=
true
}
else
{
...
...
src/viewsPc/center/myReservation.vue
View file @
42f9158
...
...
@@ -227,7 +227,8 @@ function goDetail(b) {
name
:
'bookingPay'
,
query
:
{
orderId
:
b
.
id
,
orderType
:
b
.
orderType
orderType
:
b
.
orderType
,
matchId
:
b
.
activeId
}
})
}
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment