Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jz_Travel
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
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
zhengke
jz_Travel
Commits
90569659
Commit
90569659
authored
May 06, 2025
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
包车订单
parent
af98aba5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
41 additions
and
26 deletions
+41
-26
orders.vue
pages/AggregateOrders/components/orders.vue
+1
-0
busDetails.vue
pages/bus/busDetails.vue
+1
-1
order.vue
pages/bus/order.vue
+27
-17
orderdetails.vue
pages/bus/orderdetails.vue
+12
-8
No files found.
pages/AggregateOrders/components/orders.vue
View file @
90569659
...
...
@@ -340,6 +340,7 @@
msg
=
`orderId=`
+
item
.
erpOrderId
url
=
`hotel/orderdetails?`
;
}
else
if
(
item
.
goodsType
>
11
&&
item
.
goodsType
<
15
)
{
//目的地用车
msg
=
`orderId=`
+
item
.
erpOrderId
url
=
`bus/orderdetails?`
;
}
else
if
(
item
.
goodsType
==
15
)
url
=
`visa/visa_SureOrder?`
//签证
else
if
(
item
.
goodsType
==
16
)
url
=
`airTicket/airTicketOrderDetail?`
//机票
...
...
pages/bus/busDetails.vue
View file @
90569659
...
...
@@ -775,7 +775,7 @@
SmallShopId
=
u
.
UserSmallShopId
?
u
.
UserSmallShopId
:
0
;
}
return
{
title
:
this
.
dataList
.
name
?
this
.
dataList
.
n
ame
:
"帖子"
,
title
:
this
.
dataList
.
Name
?
this
.
dataList
.
N
ame
:
"帖子"
,
path
:
"/pages/index/index?id="
+
this
.
id
+
"&user_id="
+
...
...
pages/bus/order.vue
View file @
90569659
...
...
@@ -168,7 +168,8 @@
<
/view
>
<
view
class
=
"LastNameBox column val"
style
=
"width: 1px;flex: 1;"
>
<
view
class
=
"row items-center"
>
<
input
type
=
"number"
v
-
model
=
"orderMsg.ManNum"
placeholder
=
"请输入成人数"
/>
<
input
type
=
"number"
v
-
model
=
"orderMsg.ManNum"
placeholder
=
"请输入成人数"
@
change
=
"getPeoples"
/>
<
/view
>
<
/view
>
<
/view
>
...
...
@@ -516,14 +517,14 @@
let
msg
=
{
SurName
:
this
.
orderMsg
.
SurName
,
Name
:
this
.
orderMsg
.
Name
,
ContactNumber
:
this
.
customer
.
contactNumber
,
Mailbox
:
this
.
customer
.
Mailbox
,
ContactNumber
:
this
.
orderMsg
.
Mobile
,
Mailbox
:
this
.
orderMsg
.
ContactWay
,
GoodsId
:
this
.
orderMsg
.
ProductId
,
GoodsName
:
this
.
dataList
.
Name
,
GoodsPic
:
this
.
dataList
.
ImageList
[
0
]?
this
.
dataList
.
ImageList
[
0
]
:
''
,
GoodsType
:
GoodsType
,
OrderMake
:
`${this.orderMsg.OrderDate
}
${text
}
;${guestInfo
}
`
,
TotalPrice
:
this
.
price
,
TotalPrice
:
this
.
orderMsg
.
Money
,
PreferentialPrice
:
this
.
currentCoupon
.
discountMoney
,
ErpOrderId
:
OrderId
,
Country
:
0
,
...
...
@@ -541,14 +542,14 @@
title
:
'订单创建成功'
}
)
this
.
goPayHandler
(
res
.
data
.
OrderNo
);
}
else
{
uni
.
showToast
({
title
:
res
.
message
,
icon
:
'none'
,
duration
:
3000
}
)
this
.
submit
=
false
;
}
}
,
err
=>
{
uni
.
showToast
({
title
:
err
.
message
,
icon
:
'none'
,
duration
:
3000
}
)
this
.
submit
=
false
;
}
);
}
,
goPayHandler
(
item
)
{
...
...
@@ -569,7 +570,7 @@
setTimeout
(()
=>
{
//跳转到详情页面
uni
.
redirectTo
({
url
:
"/pages/bus/orderdetails?orderId="
+
item
.
ErpOrderId
,
url
:
"/pages/bus/orderdetails?orderId="
+
res
.
ErpOrderId
,
}
);
}
,
100
);
}
,
...
...
@@ -581,7 +582,7 @@
}
);
setTimeout
(()
=>
{
uni
.
redirectTo
({
url
:
"/pages/bus/orderdetails?orderId="
+
item
.
ErpOrderId
,
url
:
"/pages/bus/orderdetails?orderId="
+
res
.
ErpOrderId
,
}
);
}
,
100
);
}
,
...
...
@@ -623,7 +624,7 @@
}
,
//计算总价
CalTotalPrice
()
{
this
.
orderMsg
.
Money
=
this
.
getPrice
(
(
this
.
orderMsg
.
Unit_Price
*
this
.
orderMsg
.
Num
)
-
this
.
currentCoupon
.
discountMoney
)
this
.
orderMsg
.
Money
=
this
.
getPrice
(
this
.
orderMsg
.
Unit_Price
*
this
.
orderMsg
.
Num
)
}
,
initData
()
{
uni
.
showLoading
({
...
...
@@ -822,6 +823,12 @@
msg
=
'请输入航班号'
}
else
if
(
this
.
orderMsg
.
FlightTime
==
''
){
msg
=
`请选择航班${this.orderMsg.OrderType==1?'抵达':'起飞'
}
时间`
}
else
if
(
this
.
orderMsg
.
ManNum
==
''
||
!
this
.
orderMsg
.
ManNum
||
this
.
orderMsg
.
ManNum
<=
0
)
{
msg
=
'请输入至少 1 个成人人数'
}
else
if
(
this
.
orderMsg
.
peoples
>
this
.
orderMsg
.
PeopleNum
)
{
msg
=
`总人数不能大于${this.orderMsg.PeopleNum
}
`
}
}
else
if
(
this
.
orderMsg
.
SurName
==
''
)
{
msg
=
'请输入姓'
...
...
@@ -833,7 +840,9 @@
msg
=
'请输入正确的电话号码'
}
else
if
(
this
.
orderMsg
.
ContactWay
==
''
||
!
this
.
orderMsg
.
ContactWay
)
{
msg
=
'请输入联系方式'
}
else
if
(
this
.
orderMsg
.
ManNum
==
''
||
!
this
.
orderMsg
.
ManNum
||
this
.
orderMsg
.
ManNum
<=
0
)
{
}
else
if
(
this
.
orderMsg
.
ManNum
==
''
||
!
this
.
orderMsg
.
ManNum
||
this
.
orderMsg
.
ManNum
<=
0
)
{
msg
=
'请输入至少 1 个成人人数'
}
else
if
(
this
.
orderMsg
.
peoples
>
this
.
orderMsg
.
PeopleNum
)
{
msg
=
`总人数不能大于${this.orderMsg.PeopleNum
}
`
...
...
@@ -866,13 +875,14 @@
if
(
this
.
useCouponIds
.
length
>
0
){
CouponAllotIds
=
this
.
useCouponIds
.
join
(
','
)
}
let
Money
=
this
.
getPrice
((
this
.
orderMsg
.
Unit_Price
*
this
.
orderMsg
.
Num
)
-
this
.
currentCoupon
.
discountMoney
)
let
msg
=
{
OrderId
:
this
.
orderMsg
.
OrderId
,
// 订单ID 修改时传递
OrderType
:
this
.
orderMsg
.
OrderType
,
// 订单类型 1接机 2送机 3包车
OrderDate
:
this
.
orderMsg
.
OrderDate
,
// 预定日期 (送机、包车精确到分钟)
Unit_Price
:
this
.
orderMsg
.
Unit_Price
,
// 单价
Num
:
this
.
orderMsg
.
Num
,
// 数量
Money
:
this
.
orderMsg
.
Money
,
// 总金额
Money
:
Money
,
// 总金额
Sex
:
this
.
orderMsg
.
Sex
,
// 性别 1男 2女
SurName
:
this
.
orderMsg
.
SurName
,
// 姓
Name
:
this
.
orderMsg
.
Name
,
// 名
...
...
@@ -927,7 +937,7 @@
uni
.
setStorageSync
(
'coupons'
,
tempData
.
CounponList
)
}
// #ifdef MP-DI
this
.
submitB2COrderHandler
(
tempData
.
airOrder
Id
)
this
.
submitB2COrderHandler
(
tempData
.
Id
)
// #endif
// #ifdef MP-AG
uni
.
showToast
({
...
...
pages/bus/orderdetails.vue
View file @
90569659
...
...
@@ -630,24 +630,28 @@
);
// #endif
// #ifdef MP-DI
this
.
getOrderInfoByIdAndType
()
this
.
getOrderInfoByIdAndType
()
// #endif
}
},
err
=>
{
uni
.
showToast
({
title
:
err
.
message
,
icon
:
"none"
,
});
uni
.
hideLoading
();
}
);
},
getOrderInfoByIdAndType
(){
const
parameter
=
{
ErpOrderId
:
this
.
orderI
d
,
OrderTypeStr
:
'Vehicle'
}
const
parameter
=
{
ErpOrderId
:
this
.
i
d
,
OrderTypeStr
:
'Vehicle'
}
this
.
apipost
(
"GetDetailsByErpOrderId_post"
,
parameter
,
res
=>
{
if
(
res
.
resultCode
==
1
){
this
.
OrderNo
=
res
.
data
.
OrderNo
this
.
formatStatus
(
res
.
data
.
OrderStatus
,
null
,
null
);
this
.
OrderNo
=
res
.
data
.
OrderNo
this
.
formatStatus
(
res
.
data
.
OrderStatus
,
null
,
null
);
}
else
{
}
...
...
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