diff --git a/src/components/order_list/club_rental/club_rental.vue b/src/components/order_list/club_rental/club_rental.vue
index d8440b5..c2ece31 100644
--- a/src/components/order_list/club_rental/club_rental.vue
+++ b/src/components/order_list/club_rental/club_rental.vue
@@ -11,12 +11,24 @@
订单编号:
-
- 租借时长:
-
-
- 租借时间:
-
+
+
+
+ 类型:
+
+
+ 支付时间:
+
+
+
+
+ 租借时长:
+
+
+ 租借时间:
+
+
+
合计支付:¥{{ orderInfo.pay_amount || '0' }}
diff --git a/src/pages/order_list/order_list.vue b/src/pages/order_list/order_list.vue
index 409cdf3..e55b026 100644
--- a/src/pages/order_list/order_list.vue
+++ b/src/pages/order_list/order_list.vue
@@ -410,7 +410,7 @@
// 设备接口/不同模板
isNotDeviceTemp(){
let { orderType } = this;
- return orderType == 7
+ return orderType == 7 || orderType == 16
},
// 请求列表订单参数
getQueryForList(){
diff --git a/src/subpackage/order/js/api.js b/src/subpackage/order/js/api.js
index 696b42c..5aab618 100644
--- a/src/subpackage/order/js/api.js
+++ b/src/subpackage/order/js/api.js
@@ -8,7 +8,7 @@ export const ORDER_API = {
userValueCardDeduct:`${ORIGIN}/admin/userValueCard/deduct`, // 用户储值卡-扣费_copy
userValueCardRecharge:`${ORIGIN}/admin/userValueCard/recharge`, // 用户储值卡-充值_copy
momentOrderInfo:`${ORIGIN}/admin/perfect/moment/order/get`, // 后台-高光时刻订单详情_copy
- hardwareOrderInfo:`${ORIGIN}/admin/stadium/hardware/order/details`, // 硬件管理-订单详情_copy
+ hardwareOrderInfo:`${ORIGIN}/admin/assistant/hardware/order/get`, // 硬件管理-订单详情_copy
rentballRefundDeposit:`${ORIGIN}/admin/stadium/rentball/order/refundDeposit`, // 退押金-后台
hardwareOrderGet:`${ORIGIN}/admin/assistant/hardware/order/get`, // 硬件订单详情 储物柜/售货柜/水阀/咖啡机/租售柜
lockEndBill:`${ORIGIN}/admin/stadium/locker/endBill`, // 储物柜-结束计费
@@ -21,6 +21,7 @@ export const ORDER_API = {
shop2OrderLogistics:`${ORIGIN}/admin/shop2/orderLogistics`, // 商城订单管理 - 发货_
logisticsCompanyLs:`${ORIGIN}/shop2/logisticsCompany/List`, // 商城订单管理 - 快递公司列表
orderGoodsRefund:`${ORIGIN}/admin/shop2/orderGoodsRefund`, // 商城-商品退款_copy
+ rentballOrderEnd:`${ORIGIN}/admin/assistant/rentball/order/end`, // 租球机-结束计费
}
diff --git a/src/subpackage/order/pages/club_rental/detail/detail.vue b/src/subpackage/order/pages/club_rental/detail/detail.vue
index a766a2a..d63d202 100644
--- a/src/subpackage/order/pages/club_rental/detail/detail.vue
+++ b/src/subpackage/order/pages/club_rental/detail/detail.vue
@@ -2,77 +2,110 @@
-
- 租用详情
-
- 设备名称:
-
-
- 租用设备:
-
-
- 柜子编号:
-
-
- 订单编号:
-
-
- 租借时间:
-
-
- 归还时间:
-
-
- 租借时长:
-
-
-
- 费用详情
-
- 收费标准:
-
-
- 产生费用:
-
-
- 积分抵扣
- ¥{{ orderInfo.deduction_amount || 0 }}
-
-
- 折扣金额
- -¥{{ orderInfo.discount_amount || 0 }}
+
+
+ 租用详情
+
+ 租用设备:
+
+
+ 订单编号:
+
+
+ 押金金额:
+
+
+ 积分抵扣
+ ¥{{ orderInfo.deduction_amount || 0 }}
+
+
+ 折扣金额
+ -¥{{ orderInfo.discount_amount || 0 }}
+
+
+ 优惠券优惠
+ -¥{{ orderInfo.coupons_amount || 0 }}
+
+
+ 合计支付:¥{{ orderInfo.pay_amount || 0 }}
+
-
- 优惠券优惠
- -¥{{ orderInfo.coupons_amount || 0 }}
+
+
+
+ 租用详情
+
+ 设备名称:
+
+
+ 租用设备:
+
+
+ 柜子编号:
+
+
+ 订单编号:
+
+
+ 租借时间:
+
+
+ 归还时间:
+
+
+ 租借时长:
+
-
- 合计支付:¥{{ orderInfo.pay_amount || 0 }}
+
+ 费用详情
+
+ 收费标准:
+
+
+ 产生费用:
+
+
+ 购买金额:
+
+
+ 积分抵扣
+ ¥{{ orderInfo.deduction_amount || 0 }}
+
+
+ 折扣金额
+ ¥{{ orderInfo.discount_amount || 0 }}
+
+
+ 优惠券优惠
+ ¥{{ orderInfo.coupons_amount || 0 }}
+
+
+ 合计支付:¥{{ orderInfo.pay_amount || 0 }}
+
-
-
+
- 费用详情
+ 支付详情
订单编号
{{ orderInfo.order_no || '-' }}
支付方式
- {{ orderInfo.pay_type || '-' }}
+ {{ payTypeTxt(orderInfo.pay_type) }}
支付时间
@@ -82,20 +115,25 @@
交易流水号
{{ orderInfo.trade_no || '-' }}
-
- 退款单号
- {{ orderInfo.refund_no || '-' }}
-
-
- 退款时间
- {{ orderInfo.refund_time || '-' }}
-
-
- 退款金额
- ¥{{ orderInfo.refund_amount || 0 }}
-
+
+
+ 退款单号
+ {{ orderInfo.refund_no || '-' }}
+
+
+ 退款时间
+ {{ orderInfo.refund_time || '-' }}
+
+
+ 退款金额
+ ¥{{ orderInfo.refund_amount || 0 }}
+
+
+
+
- 退押金
+ 退押金
+ 结束计费
@@ -104,6 +142,8 @@ import { ORDER_API } from '../../../js/api';
import server from '../../../js/server';
import a_line from '../../../../../components/order_list/a_line/a_line.vue';
import util from '../../../../../utils/util';
+// 租用中 1 已完成2 已退款4
+// 押金类型只有2,4
export default {
components: {
'a-line': a_line,
@@ -111,7 +151,8 @@ export default {
data(){
return {
orderInfo: {
- extension: {}
+ extension: {},
+ cabinet: {},
}
}
},
@@ -119,14 +160,38 @@ export default {
this.getOrderInfo(options.order_no);
},
methods: {
+ overBillingBtn: util.debounce(function(){
+ util.showLoad();
+ let { orderInfo } = this;
+ server.post({
+ url: ORDER_API.rentballOrderEnd,
+ data: {
+ order_no: orderInfo.order_no
+ },
+ isDefaultGet: false,
+ })
+ .then(res => {
+ util.hideLoad();
+ if(res.data.code == 0){
+ util.showNone(res.data.message || '操作成功!');
+ setTimeout(_=>this.getOrderInfo(orderInfo.order_no), 1200);
+ }else{
+ util.showNone(res.data.message || '操作失败!');
+ }
+ })
+ .catch(util.hideLoad)
+ }),
+ payTypeTxt: util.order_pay_type_txt,
getOrderInfo(order_no = ''){
+ util.showLoad();
server.get({
url: ORDER_API.hardwareOrderInfo,
data: { order_no },
failMsg: '加载失败!'
})
.then(res=>{
- let _order = res.order || { extension: {} };
+ util.hideLoad();
+ let _order = res || { extension: {} };
this.orderInfo = _order;
})
},
@@ -143,6 +208,7 @@ export default {
.then(res => {
util.hideLoad();
if(res.data.code == 0){
+ setTimeout(_=>this.getOrderInfo(orderInfo.order_no), 1200);
util.showNone(res.data.message || '操作成功!');
}else{
util.showNone(res.data.message || '操作失败!');
@@ -199,7 +265,7 @@ export default {
}
&+view{
flex-shrink: 0;
- color: #EA5061;
+ color: $themeColor;
}
}
}