Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
罗超
SuperMan
Commits
48c0abf6
Commit
48c0abf6
authored
Jan 12, 2023
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
073611ae
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
534 additions
and
763 deletions
+534
-763
OrderPreview.vue
src/components/scenicSpot/Singleticket/OrderPreview.vue
+5
-5
SingleticketList.vue
src/components/scenicSpot/Singleticket/SingleticketList.vue
+1
-1
SingleticketOrderList.vue
...ponents/scenicSpot/Singleticket/SingleticketOrderList.vue
+33
-416
OrderDetails.vue
...nents/scenicSpot/Singleticket/components/OrderDetails.vue
+3
-1
OrderList.vue
src/components/scenicSpot/reservation/OrderList.vue
+432
-269
ReservationOrder.vue
src/components/scenicSpot/reservation/ReservationOrder.vue
+60
-71
No files found.
src/components/scenicSpot/Singleticket/OrderPreview.vue
View file @
48c0abf6
...
...
@@ -428,6 +428,7 @@
<
script
>
import
TicketCard
from
'./components/OrderDetails.vue'
export
default
{
components
:
{
TicketCard
},
data
()
{
return
{
isCheck
:
true
,
...
...
@@ -454,7 +455,7 @@
detailsObj
:
{},
beforeCheck
:
{
disabledDate
:
time
=>
{
let
endTime
=
new
Date
(
this
.
getBeforeDate
(
-
1
,
new
Date
().
Format
(
"yyyy-MM-dd"
)));
let
endTime
=
new
Date
(
this
.
getBeforeDate
(
0
,
new
Date
().
Format
(
"yyyy-MM-dd"
)));
return
time
&&
endTime
.
getTime
()
>=
time
.
getTime
();
}
},
...
...
@@ -559,19 +560,17 @@
}
},
getInfo
(
value
){
console
.
log
(
value
,
'----'
)
let
time
if
(
this
.
OpenTime
!=
this
.
msg
.
UseDate
){
time
=
this
.
msg
.
UseDate
}
else
{
time
=
this
.
OpenTime
}
console
.
log
(
time
,
'----222'
)
if
(
time
){
this
.
apipost
(
"ticket_post_GetTicketCouponsInfo"
,
{
CouponsId
:
this
.
CouponsId
,
CouponsId
:
this
.
msg
.
CouponsId
,
OpenTime
:
time
,
},
res
=>
{
...
...
@@ -631,12 +630,13 @@
},
mounted
()
{
this
.
getInfo
()
},
created
()
{
this
.
msg
.
CouponsId
=
this
.
$route
.
query
.
id
this
.
OpenTime
=
this
.
$route
.
query
.
OpenTime
this
.
msg
.
UseDate
=
this
.
$route
.
query
.
OpenTime
this
.
getInfo
()
}
};
...
...
src/components/scenicSpot/Singleticket/SingleticketList.vue
View file @
48c0abf6
...
...
@@ -222,7 +222,7 @@
</el-image>
</div>
<div
class=
"card-centent"
>
<h6
@
click=
"showCardHandler(x)"
>
{{
x
.
Name
}}
}
</h6>
<h6
@
click=
"showCardHandler(x)"
>
{{
x
.
Name
}}
</h6>
<p>
地址: 日本
{{
x
.
ProvinceName
}}
{{
x
.
CityName
}}
{{
x
.
Address
}}
</p>
<div
class=
"card-text"
>
<b>
共
{{
x
.
TicketPriceList
.
length
}}
种票型
</b>
...
...
src/components/scenicSpot/Singleticket/SingleticketOrderList.vue
View file @
48c0abf6
This diff is collapsed.
Click to expand it.
src/components/scenicSpot/Singleticket/components/OrderDetails.vue
View file @
48c0abf6
...
...
@@ -126,7 +126,9 @@
watch
:
{
ticket
:
{
handler
:
function
(
val
,
oldVal
)
{
this
.
t
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
ticket
))
this
.
images
=
this
.
t
.
PicPathList
this
.
initMap
(
this
.
t
.
Lng
,
this
.
t
.
Lat
,
this
.
t
.
Name
)
},
deep
:
true
},
...
...
src/components/scenicSpot/reservation/OrderList.vue
View file @
48c0abf6
This diff is collapsed.
Click to expand it.
src/components/scenicSpot/reservation/ReservationOrder.vue
View file @
48c0abf6
...
...
@@ -43,25 +43,39 @@
</li>
<li>
<span><em>
{{
$t
(
'OrderList.search.orderNum'
)
}}
</em>
<el-input
type=
"Number"
v-model=
"msg.OrderNo"
:placeholder=
"$t('OrderList.search.orderNum')"
class=
"w200"
/>
<el-input
clearable
type=
"Number"
v-model=
"msg.OrderNo"
:placeholder=
"$t('OrderList.search.orderNum')"
class=
"w200"
/>
</span>
</li>
<li>
<span><em>
订单ID
</em>
<el-input
type=
"Number"
v-model=
"msg.OrderId"
placeholder=
"订单ID"
class=
"w200"
/>
<el-input
clearable
type=
"Number"
v-model=
"msg.OrderId"
placeholder=
"订单ID"
class=
"w200"
/>
</span>
</li>
<li>
<span><em>
客人名称
</em>
<el-input
clearable
v-model=
"msg.Name"
placeholder=
"客人名称"
class=
"w200"
/>
</span>
</li>
<li>
<span><em>
景区名称
</em>
<el-input
clearable
v-model=
"msg.CouponsName"
placeholder=
"景区名称"
class=
"w200"
/>
</span>
</li>
<li>
<span><em>
电话
</em>
<el-input
clearable
v-model=
"msg.ContactNumber"
placeholder=
"电话"
class=
"w200"
/>
</span>
</li>
<!--
<li>
<span>
<em>
{{
$t
(
'hotel.hotel'
)
}}
</em>
<!-- multiple_input w300 multiple collapse-tags-->
<el-select
v-model=
"msg.HotelId"
:placeholder=
"$t('pub.pleaseSel')"
style=
"height: 34px;"
filterable
>
<el-option
:key=
"0"
:value=
"0"
:label=
"$t('OrderList.search.allHotel')"
></el-option>
<el-option
v-for=
"item in HotelList"
:key=
"item.ID"
:label=
"item.Name"
:value=
"item.ID"
></el-option>
</el-select>
</span>
</li>
</li>
-->
<li>
<span>
<em>
{{
$t
(
'OrderList.search.daterange'
)
}}
</em>
...
...
@@ -76,32 +90,31 @@
</el-date-picker>
</span>
</li>
<!--
<li>
<span><em>
{{
$t
(
'OrderList.search.orderId'
)
}}
</em>
<el-input
type=
"Number"
v-model=
"msg.orderId"
:placeholder=
"$t('OrderList.search.orderId')"
class=
"w200"
/>
</span>
</li>
-->
<li>
<span>
<em>
{{
$t
(
'OrderList.search.roomType'
)
}}
</em>
<el-select
v-model=
"msg.RoomType"
:placeholder=
"$t('OrderList.rooms.roomType')"
class=
"w110 HworkInput"
>
<el-option
:key=
"0"
:value=
"0"
:label=
"$t('OrderList.rooms.default')"
></el-option>
<el-option
v-for=
"item in roomType"
:key=
"item.ID"
:label=
"item.Name"
:value=
"item.ID"
></el-option>
</el-select>
<em>
门票时间
</em>
<el-date-picker
style=
"height: 34px;"
value-format=
"yyyy-MM-dd"
v-model=
"DatelistUse"
type=
"daterange"
:range-separator=
"$t('OrderList.zhi')"
:start-placeholder=
"$t('OrderList.star')"
:end-placeholder=
"$t('OrderList.end')"
@
change=
"getDates"
>
</el-date-picker>
</span>
</li>
<
!--
<
li>
<li>
<span>
<em>
{{
$t
(
'OrderList.search.orderType'
)
}}
</em>
<el-select
v-model=
"msg.
orderType"
:placeholder=
"$t('OrderList.search.orderType')
"
class=
"w110 HworkInput"
>
<el-option
:key=
"
0"
:value=
"0"
:label=
"$t('OrderList.orderType.default')
"
></el-option>
<el-option
v-for=
"item in
order
Type"
:key=
"item.ID"
:label=
"item.Name"
:value=
"item.ID"
></el-option>
<em>
取券方式
</em>
<el-select
v-model=
"msg.
MailingState"
placeholder=
"取券方式
"
class=
"w110 HworkInput"
>
<el-option
:key=
"
-1"
:value=
"-1"
label=
"所有类型
"
></el-option>
<el-option
v-for=
"item in
MailingState
Type"
:key=
"item.ID"
:label=
"item.Name"
:value=
"item.ID"
></el-option>
</el-select>
</span>
</li>
-->
</li>
<li>
<input
type=
"button"
class=
"normalBtn"
:value=
"$t('pub.searchBtn')"
@
click=
"msg.pageIndex=1,currentPage=1,GetList()"
/>
<!--
<input
type=
"button"
class=
"normalBtn"
:value=
"$t('adm.adm_download')"
@
click=
"DownLoadHotelWork()"
/>
-->
</li>
</ul>
</div>
...
...
@@ -132,15 +145,17 @@
msg
:{
pageIndex
:
1
,
pageSize
:
5
,
HotelId
:
0
,
RoomType
:
0
,
Name
:
''
,
StartTime
:
''
,
//new Date().Format("yyyy-MM-dd")
EndTime
:
''
,
//this.setEdate()
UseSTime
:
''
,
UseETime
:
''
,
OrderStatus
:
0
,
OrderNo
:
''
,
OrderId
:
''
// RoomType: 0,
// orderType: 0
OrderId
:
''
,
MailingState
:
-
1
,
CouponsName
:
''
,
//景区名称
ContactNumber
:
''
,
//电话
},
total
:
0
,
currentPage
:
1
,
...
...
@@ -150,18 +165,16 @@
{
Name
:
this
.
$t
(
'OrderList.orderStatus.cancel'
),
ID
:
'3'
},
{
Name
:
this
.
$t
(
'OrderList.orderStatus.sun'
),
ID
:
'4'
},
],
roomType
:[
{
Name
:
this
.
$t
(
'OrderList.rooms.normal'
),
ID
:
'1'
},
{
Name
:
this
.
$t
(
'OrderList.rooms.big'
),
ID
:
'2'
},
{
Name
:
this
.
$t
(
'OrderList.rooms.sing'
),
ID
:
'3'
},
{
Name
:
this
.
$t
(
'OrderList.rooms.three'
),
ID
:
'4'
},
{
Name
:
this
.
$t
(
'OrderList.rooms.driver'
),
ID
:
'5'
},
MailingStateType
:[
{
Name
:
'自行取票'
,
ID
:
'1'
},
{
Name
:
'邮寄票券'
,
ID
:
'2'
},
],
orderType
:[
{
Name
:
this
.
$t
(
'OrderList.orderType.tour'
),
ID
:
'1'
},
{
Name
:
this
.
$t
(
'OrderList.orderType.guest'
),
ID
:
'2'
},
],
Datelist
:
''
Datelist
:
''
,
DatelistUse
:
''
,
};
},
watch
:
{
...
...
@@ -170,6 +183,14 @@
}
},
methods
:
{
getDatesUse
(){
console
.
log
(
this
.
Datelist
)
if
(
this
.
DatelistUse
[
0
]){
this
.
msg
.
UseSTime
=
this
.
DatelistUse
[
0
]
}
if
(
this
.
DatelistUse
[
1
]){
this
.
msg
.
UseETime
=
this
.
DatelistUse
[
1
]
}
},
getDates
(){
console
.
log
(
this
.
Datelist
)
if
(
this
.
Datelist
[
0
]){
...
...
@@ -224,58 +245,26 @@
},
//获取酒店订单列表
GetList
()
{
// if(this.msg.StartTime==''){
// this.msg.StartTime = this.getyMDOne()
// }
// if(this.msg.EndTime==''){
// this.msg.EndTime = this.getyMDTwo()
// }
this
.
loading
=
true
let
url
// 销售 OP
if
(
this
.
pagesTitle
==
'销售'
){
url
=
"
dict_post_GetMySaleCustomer
OrderPageList"
url
=
"
ticket_post_GetMySaleTicket
OrderPageList"
}
else
{
url
=
"
dict_post_GetAdminCustomer
OrderPageList"
url
=
"
ticket_post_GetAdminTicket
OrderPageList"
}
this
.
apipost
(
url
,
this
.
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
let
data
=
res
.
data
.
data
.
pageData
let
addList
=
function
(
arr
){
arr
.
forEach
(
x
=>
{
x
.
list
=
[]
// x.Tax = 0
// x.Tax2 = 0
})
}
addList
(
data
)
data
.
forEach
(
item
=>
{
item
.
DetailList
.
forEach
(
x
=>
{
x
.
Number
=
0
x
.
PeopleNumber
=
0
x
.
RoomList
.
forEach
(
r
=>
{
x
.
Number
+=
r
.
Number
x
.
PeopleNumber
+=
r
.
PeopleNumber
})
x
.
Tax
=
x
.
TaxesPrice
*
x
.
Number
x
.
Tax2
=
x
.
PriceInTangTax
*
x
.
PeopleNumber
x
.
Money
=
x
.
HotelMoeny
+
x
.
TaxesPrice
data
.
forEach
((
x
)
=>
{
x
.
Money
=
0
x
.
DetailList
.
forEach
((
y
)
=>
{
x
.
Money
+=
y
.
Money
})
})
this
.
OrderList
=
data
;
this
.
OrderList
.
forEach
(
item
=>
{
let
datas
=
{
Income
:
item
.
Income
,
CostMoney
:
item
.
CostMoney
,
PlatformTax
:
item
.
PlatformTax
,
Refund
:
item
.
Refund
,
HandFittingIncome
:
item
.
HandFittingIncome
,
HandFittingTax
:
item
.
HandFittingTax
}
item
.
list
.
push
(
datas
)
})
this
.
total
=
res
.
data
.
data
.
count
;
}
else
{
this
.
Error
(
res
.
data
.
message
);
...
...
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