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
d76b4341
Commit
d76b4341
authored
May 07, 2025
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单取消
parent
b414444b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
149 deletions
+34
-149
orders.vue
pages/AggregateOrders/components/orders.vue
+0
-23
orderdetails.vue
pages/bus/orderdetails.vue
+34
-126
No files found.
pages/AggregateOrders/components/orders.vue
View file @
d76b4341
...
@@ -56,7 +56,6 @@
...
@@ -56,7 +56,6 @@
<view
v-if=
"item.orderStatus==1||item.orderStatus==2"
class=
"jz_Zailai"
<view
v-if=
"item.orderStatus==1||item.orderStatus==2"
class=
"jz_Zailai"
style=
"width: 110rpx;margin-left: 10rpx;"
@
click
.
stop=
"goCancelZK(item)"
>
取消
</view>
style=
"width: 110rpx;margin-left: 10rpx;"
@
click
.
stop=
"goCancelZK(item)"
>
取消
</view>
</
template
>
</
template
>
<view
v-if=
"item.orderStatus==1"
class=
"jz_Zailai jz_ZailaiZF"
<view
v-if=
"item.orderStatus==1"
class=
"jz_Zailai jz_ZailaiZF"
style=
"width: 150rpx;margin-left: 10rpx;"
@
click
.
stop=
"submitGetCodeByOrderNo(item)"
>
style=
"width: 150rpx;margin-left: 10rpx;"
@
click
.
stop=
"submitGetCodeByOrderNo(item)"
>
立即支付
</view>
立即支付
</view>
...
@@ -374,28 +373,6 @@
...
@@ -374,28 +373,6 @@
},
},
//取消订单(同行订单取消)
//取消订单(同行订单取消)
goCancel
(
item
)
{
goCancel
(
item
)
{
// #ifdef MP-DI
// #endif
// #ifdef MP-AG
if
(
item
.
goodsType
==
5
){
wx
.
showModal
({
title
:
'提示'
,
content
:
`
${
item
.
SalePhone
?
'确定拨打服务电话取消订单吗?'
:
'请联系服务人员进行取消?'
}
`
,
success
:
(
tip
)
=>
{
if
(
tip
.
confirm
)
{
if
(
item
.
SalePhone
){
uni
.
makePhoneCall
({
phoneNumber
:
item
.
SalePhone
,
});
}
}
}
})
return
}
// #endif
let
that
=
this
let
that
=
this
if
(
this
.
submit
||
this
.
submitCancel
)
return
if
(
this
.
submit
||
this
.
submitCancel
)
return
wx
.
showModal
({
wx
.
showModal
({
...
...
pages/bus/orderdetails.vue
View file @
d76b4341
...
@@ -225,7 +225,7 @@
...
@@ -225,7 +225,7 @@
</button>
</button>
<!-- #endif -->
<!-- #endif -->
<!-- #ifdef MP-AG -->
<!-- #ifdef MP-AG -->
<button
v-if=
"orderData.OrderStatus==1
||orderData.OrderStatus==5
"
class=
"jz_OrderReNow"
<button
v-if=
"orderData.OrderStatus==1"
class=
"jz_OrderReNow"
@
click=
"goCancel"
style=
"background: #fff; color: #111; border: 1px solid #111"
@
click=
"goCancel"
style=
"background: #fff; color: #111; border: 1px solid #111"
:disabled=
"submitCancel"
:loading=
"submitCancel"
>
:disabled=
"submitCancel"
:loading=
"submitCancel"
>
取消
取消
...
@@ -432,7 +432,7 @@
...
@@ -432,7 +432,7 @@
success
:
(
tip
)
=>
{
success
:
(
tip
)
=>
{
if
(
tip
.
confirm
)
{
if
(
tip
.
confirm
)
{
that
.
submitCancel
=
true
;
that
.
submitCancel
=
true
;
th
is
.
apipost
(
th
at
.
apipost
(
"GetCancelOrder_post"
,
{
"GetCancelOrder_post"
,
{
OrderNo
:
that
.
OrderNo
,
OrderNo
:
that
.
OrderNo
,
},
},
...
@@ -461,133 +461,41 @@
...
@@ -461,133 +461,41 @@
},
},
goCancel
()
{
goCancel
()
{
let
that
=
this
let
that
=
this
console
.
log
(
"this.orderData----"
,
that
.
SalePhone
);
if
(
this
.
submitCancel
)
return
// #ifdef MP-AG
//待付款-直接取消
if
(
this
.
orderData
.
OrderStatus
==
1
)
{
wx
.
showModal
({
wx
.
showModal
({
title
:
'提示'
,
title
:
'提示'
,
content
:
`
${
that
.
SalePhone
?
'确定拨打服务电话取消订单吗?'
:
'请联系服务人员进行取消?'
}
`
,
content
:
'确定取消订单?'
,
success
:
(
tip
)
=>
{
success
:
(
tip
)
=>
{
if
(
tip
.
confirm
)
{
if
(
tip
.
confirm
)
{
if
(
that
.
SalePhone
){
that
.
submitCancel
=
true
;
uni
.
makePhoneCall
({
that
.
apipost
(
phoneNumber
:
that
.
SalePhone
,
"b2b_get_GetB2BAllCancelOrder"
,
{
});
ID
:
that
.
id
,
}
OrderTypeStr
:
"5"
,
},
(
res
)
=>
{
if
(
res
.
resultCode
==
1
)
{
uni
.
showToast
({
title
:
"操作成功"
,
icon
:
"success"
,
});
that
.
getOrderDetail
()
}
},
(
err
)
=>
{
uni
.
showToast
({
title
:
err
.
message
,
icon
:
"none"
,
});
that
.
submitCancel
=
false
}
);
}
}
}
}
})
})
return
// #endif
if
(
this
.
submitCancel
)
return
this
.
submitCancel
=
true
;
var
cancelMsg
=
{
OrderNo
:
this
.
OrderNo
,
ErpOrderId
:
this
.
id
,
OrderTypeStr
:
"Hotel"
,
//订单类型为酒店
ConfirmID
:
""
,
};
//待付款-直接取消
if
(
this
.
orderData
.
OrderStatus
==
1
)
{
this
.
apipost
(
"b2b_get_GetB2BAllCancelOrder"
,
{
ID
:
this
.
id
,
OrderTypeStr
:
"5"
,
},
(
res
)
=>
{
if
(
res
.
resultCode
==
1
)
{
uni
.
showToast
({
title
:
"操作成功"
,
icon
:
"success"
,
});
this
.
getOrderDetail
()
}
},
(
err
)
=>
{
uni
.
showToast
({
title
:
err
.
message
,
icon
:
"none"
,
});
this
.
submitCancel
=
false
}
);
}
//已付款,可能会有取消费用
else
if
(
this
.
orderData
.
model
.
OrderStatus
==
5
)
{
var
didaMsg
=
{
BookingID
:
this
.
orderData
.
model
.
ThirdOrderNo
}
this
.
apipost
(
"dmc_post_GetDiDaBookingCancel"
,
didaMsg
,
(
res
)
=>
{
if
(
res
.
resultCode
==
1
)
{
var
tempData
=
res
.
data
;
console
.
log
(
"tempData"
,
tempData
);
if
(
tempData
)
{
cancelMsg
.
ConfirmID
=
tempData
.
ConfirmID
;
//有取消费用
if
(
tempData
.
Amount
&&
tempData
.
Amount
>
0
)
{
var
tipmsg
=
"取消订单将收取【"
+
tempData
.
Amount
+
"】取消费用,是否确认取消订单?"
wx
.
showModal
({
title
:
'提示'
,
content
:
tipmsg
,
success
:
(
tip
)
=>
{
if
(
tip
.
confirm
)
{
that
.
submitCancel
=
true
that
.
apipost
(
"post_CancelThirdHotelOrder"
,
cancelMsg
,
(
res
)
=>
{
that
.
submitCancel
=
false
if
(
res
.
resultCode
==
1
)
{
uni
.
showToast
({
title
:
"操作成功"
,
icon
:
"success"
,
});
that
.
$emit
(
'research'
);
}
},
(
err
)
=>
{
that
.
submitCancel
=
false
uni
.
showToast
({
title
:
err
.
message
,
icon
:
"none"
,
})
}
);
}
}
})
}
//无取消费用
else
{
that
.
apipost
(
"post_CancelThirdHotelOrder"
,
cancelMsg
,
(
res
)
=>
{
that
.
submitCancel
=
false
if
(
res
.
resultCode
==
1
)
{
uni
.
showToast
({
title
:
"操作成功"
,
icon
:
"success"
,
});
that
.
$emit
(
'research'
);
}
},
(
err
)
=>
{
that
.
submitCancel
=
false
uni
.
showToast
({
title
:
err
.
message
,
icon
:
"none"
,
})
}
);
}
}
}
},
(
err
)
=>
{
uni
.
showToast
({
title
:
err
.
message
,
icon
:
"none"
,
});
this
.
submitCancel
=
false
})
}
}
},
},
formatStatus
(
status
,
Income
,
TotalPrice
,
PlatformTax
)
{
formatStatus
(
status
,
Income
,
TotalPrice
,
PlatformTax
)
{
...
@@ -640,17 +548,17 @@
...
@@ -640,17 +548,17 @@
// this.orderStatus.text = "待出行";
// this.orderStatus.text = "待出行";
// this.showPayBtn = false;
// this.showPayBtn = false;
// }
// }
if
(
status
==
4
)
{
if
(
status
==
3
)
{
this
.
orderStatus
.
code
=
-
1
;
this
.
orderStatus
.
code
=
-
1
;
this
.
orderStatus
.
text
=
"已取消"
;
this
.
orderStatus
.
text
=
"已取消"
;
this
.
showPayBtn
=
false
;
this
.
showPayBtn
=
false
;
}
else
if
(
status
==
3
)
{
}
else
if
(
status
==
1
)
{
this
.
orderStatus
.
code
=
0
;
this
.
orderStatus
.
code
=
0
;
this
.
orderStatus
.
text
=
"待付款"
;
this
.
orderStatus
.
text
=
"待付款"
;
this
.
showPayBtn
=
true
;
this
.
showPayBtn
=
true
;
}
else
if
(
status
==
1
)
{
}
else
if
(
status
==
4
)
{
this
.
orderStatus
.
code
=
-
2
;
this
.
orderStatus
.
code
=
-
2
;
this
.
orderStatus
.
text
=
"
正常
"
;
this
.
orderStatus
.
text
=
"
已完成
"
;
this
.
showPayBtn
=
true
;
this
.
showPayBtn
=
true
;
}
else
if
(
status
==
2
)
{
}
else
if
(
status
==
2
)
{
this
.
orderStatus
.
code
=
1
;
this
.
orderStatus
.
code
=
1
;
...
...
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