Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bigwood
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
bigwood
Commits
48af0970
Commit
48af0970
authored
Mar 30, 2023
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
24c4a5fd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
45 deletions
+36
-45
TripOrderList.vue
src/components/trip/order/TripOrderList.vue
+35
-44
TripOrder.vue
src/pages/scheduledTrip/TripOrder.vue
+1
-1
No files found.
src/components/trip/order/TripOrderList.vue
View file @
48af0970
<
template
>
<
template
>
<div>
<div>
<div
class=
"q-py-sm"
></div>
<div
class=
"q-py-sm"
></div>
<q-card
class=
"light-shadow q-pa-md bg-white rounded-borders q-mb-md"
flat
>
<q-card
class=
"light-shadow q-pa-md bg-white rounded-borders q-mb-md"
flat
<!-- desktop-only -->
v-for=
"(x,index) in orders"
>
<div
class=
""
>
<div
class=
"row wrap justify-between"
>
<div
class=
"row wrap justify-between"
>
<span
class=
"f12 text-grey-6"
>
<span
class=
"f12 text-grey-6"
>
{{
$t
(
'hotelorder.search.orderNum'
)
}}
:
{{
x
.
orderId
}}
</span>
<template
v-if=
"$q.platform.is.desktop"
>
{{
$t
(
'hotelorder.search.orderNum'
)
}}
:
</
template
>
<!--
<span
class=
"text-center f12 text-grey-6"
>
44089
</span>
<template
v-if=
"$q.platform.is.desktop"
>
{{
$t
(
'v102.ticket.sj'
)
}}
:
</
template
>
<span
class=
"text-center f12 text-grey-6"
>
{{x.serviceName}} {{x.servicePhone}}
<
template
v-if=
"$q.platform.is.desktop"
>
{{
$t
(
'v102.ticket.sj'
)
}}
:
</
template
>
</span>
-->
李建波(武) 18224442258
</span>
<span
class=
"f12 text-grey-6"
>
{{ $t('hotelorder.createTime') }}:{{x.createDate}}
</span>
<span
class=
"f12 text-grey-6"
>
</div>
<
template
v-if=
"$q.platform.is.desktop"
>
{{
$t
(
'hotelorder.createTime'
)
}}
:
</
template
>
<div
class=
"q-pt-sm"
:class=
"{'row justify-between':$q.platform.is.desktop,'column col':$q.platform.is.mobile}"
>
2023-03-06 14:20:56
</span>
<div
:class=
"{'row col':$q.platform.is.desktop}"
>
</div>
<div
:style=
"{'width':$q.platform.is.desktop?'150px':'100%'}"
>
<div
class=
"q-pt-sm"
:class=
"{'row justify-between':$q.platform.is.desktop,'column':$q.platform.is.mobile}"
>
<q-img
class=
"rounded-borders"
:style=
"{'width':$q.platform.is.desktop?'150px':'100%'}"
:ratio=
"16 / 9"
src=
"http://imgfile.oytour.com/Upload/DMC/yEiRE8pRWE5ZF8cPNRnAiQST8WbyaGQc.jpg"
spinner-color=
"grey"
spinner-size=
"50px"
fit=
"cover"
/>
<div
:class=
"{'row col':$q.platform.is.desktop}"
>
<div
:style=
"{'width':$q.platform.is.desktop?'150px':'100%'}"
>
<q-img
class=
"rounded-borders"
:style=
"{'width':$q.platform.is.desktop?'150px':'100%'}"
:ratio=
"16 / 9"
src=
"http://imgfile.oytour.com/Upload/DMC/yEiRE8pRWE5ZF8cPNRnAiQST8WbyaGQc.jpg"
spinner-color=
"grey"
spinner-size=
"50px"
fit=
"cover"
/>
</div>
<div
class=
"column"
:class=
"{'q-pl-lg':$q.platform.is.desktop,'q-pt-sm':$q.platform.is.mobile}"
>
<span
class=
"text-subtitle1 text-weight-bolder ellipsis cursor-pointer"
>
“绿野仙踪”斯里兰卡8天7日游(昆明)
</span>
<span
class=
"f12 text-grey-700 ellipsis q-py-sm"
>
绿野仙踪系列
</span>
<span
class=
"f13 text-grey-700"
>
团号:13313 (
<span
class=
"text-red"
>
3
</span>
旅客 )
</span>
</div>
</div>
<div
class=
"column"
:class=
"{'q-pl-lg':$q.platform.is.desktop,'q-pt-sm':$q.platform.is.mobile}"
>
<span
class=
"text-subtitle1 text-weight-bolder ellipsis cursor-pointer"
>
{{x.title}}
</span>
<span
class=
"f12 text-grey-700 ellipsis q-py-sm"
>
{{x.ltName}}
</span>
<span
class=
"f13 text-grey-700"
>
团号:{{x.tcid}} (
<span
class=
"text-red"
>
{{ x.guestNum }}
</span>
旅客 )
</span>
</div>
</div>
<div
:class=
"{'row items-end':$q.platform.is.desktop}"
style=
"flex-shrink: 0;"
>
</div
>
<div
class=
"column text-right
"
>
<div
:class=
"{'row items-end':$q.platform.is.desktop}"
:style=
"{'flex-shrink': $q.platform.is.desktop?0:'inherit'}
"
>
<div
class=
"fz13"
:class=
"{'row justify-end q-pt-lg q-pb-xs':$q.platform.is.mobile||$q.platform.is.desktop}
"
>
<div
class=
"column text-right
"
>
<span
class=
""
>
总金额:
<span
class=
"fz15"
>
¥45200
</span>
</span>
<div
class=
"fz13"
:class=
"{'row justify-end q-pt-lg q-pb-xs':$q.platform.is.mobile||$q.platform.is.desktop}"
>
<div
class=
"q-pl-lg"
:class=
"{'':$q.platform.is.desktop}"
>
<span
class=
""
>
总金额:
<span
class=
"fz15"
>
¥{{moneyFormat(x.preferPrice)}}
</span>
</span>
<span
class=
" text-red"
>
优惠金额:
<span
class=
"fz15"
>
¥202855
</span></span
>
<div
v-if=
"x.discountMoney>0"
class=
"q-pl-lg"
:class=
"{'':$q.platform.is.desktop}"
>
<
/div
>
<
span
class=
" text-red"
>
优惠金额:
<span
class=
"fz15"
>
¥{{moneyFormat(x.discountMoney)}}
</span></span
>
</div>
</div>
<span
class=
"fz14 text-orange-7"
>
已付总额:
<span
class=
"fz17"
>
¥0.00
</span>
</span>
</div>
</div>
<span
class=
"fz14 text-orange-7"
>
已付总额:
<span
class=
"fz17"
>
¥{{moneyFormat(x.customerPayMoney)}}
</span>
</span>
</div>
</div>
</div>
</div>
</div>
<div
class=
"mobile-only"
>
</div>
</div>
</q-card>
</q-card>
<q-card
class=
"light-shadow q-pa-md bg-white rounded-borders q-mb-md"
v-if=
"pages.pageCount > 0"
flat
>
<q-card
class=
"light-shadow q-pa-md bg-white rounded-borders q-mb-md"
v-if=
"pages.pageCount > 0"
flat
>
...
@@ -126,16 +118,15 @@ export default defineComponent({
...
@@ -126,16 +118,15 @@ export default defineComponent({
data
.
loading
=
false
data
.
loading
=
false
if
(
r
.
data
.
resultCode
==
ApiResult
.
SUCCESS
)
{
if
(
r
.
data
.
resultCode
==
ApiResult
.
SUCCESS
)
{
console
.
log
(
r
.
data
.
data
,
'===='
)
console
.
log
(
r
.
data
.
data
,
'===='
)
return
r
.
data
.
data
.
pageData
.
forEach
((
x
:
any
)
=>
{
r
.
data
.
data
.
pageData
.
forEach
((
x
:
any
)
=>
{
x
.
typeInfo
=
data
.
status
.
find
(
y
=>
y
.
StatusId
==
x
.
OrderStatus
)
??
data
.
status
[
1
]
x
.
typeInfo
=
data
.
status
.
find
(
y
=>
y
.
StatusId
==
x
.
OrderStatus
)
??
data
.
status
[
1
]
x
.
SendType
=
data
.
sends
.
find
(
y
=>
y
.
Id
==
x
.
MailingState
)
??
data
.
sends
[
0
]
x
.
SendType
=
data
.
sends
.
find
(
y
=>
y
.
Id
==
x
.
MailingState
)
??
data
.
sends
[
0
]
x
.
Money
=
0
//
x.Money = 0
let
Money
=
0
//
let Money = 0
x
.
DetailList
.
forEach
((
y
:
any
)
=>
{
//
x.DetailList.forEach((y:any)=>{
Money
+=
y
.
Money
//
Money+=y.Money
})
//
})
x
.
Money
=
Number
(
Money
+
x
.
MailingMoney
)
//
x.Money= Number(Money+x.MailingMoney)
})
})
data
.
orders
=
r
.
data
.
data
.
pageData
data
.
orders
=
r
.
data
.
data
.
pageData
data
.
pages
.
pageCount
=
r
.
data
.
data
.
pageCount
data
.
pages
.
pageCount
=
r
.
data
.
data
.
pageCount
...
...
src/pages/scheduledTrip/TripOrder.vue
View file @
48af0970
...
@@ -28,7 +28,7 @@ export default defineComponent({
...
@@ -28,7 +28,7 @@ export default defineComponent({
CustomerId
=
Store
.
state
.
user
?.
userDetail
?.
customerId
CustomerId
=
Store
.
state
.
user
?.
userDetail
?.
customerId
}
}
const
search
=
reactive
({
const
search
=
reactive
({
orderType
:
7
,
//7
跟团订单
orderType
:
1
,
//1
跟团订单
queryDays
:
0
,
//10天内
queryDays
:
0
,
//10天内
orderState
:
-
1
,
//订单状态
orderState
:
-
1
,
//订单状态
CustomerId
:
CustomerId
,
//用户id
CustomerId
:
CustomerId
,
//用户id
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment