From 5968eaf2a674bd890ed9f7d7d71a7db6ffdf342a Mon Sep 17 00:00:00 2001 From: admin-lmm <2497833386@QQ.com> Date: Thu, 31 Aug 2023 16:42:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/order/order/orderDetail.vue | 70 +++++++++---------- 1 file changed, 34 insertions(+), 36 deletions(-) diff --git a/jsowell-ui/src/views/order/order/orderDetail.vue b/jsowell-ui/src/views/order/order/orderDetail.vue index 3c6658d2f..053c6f652 100644 --- a/jsowell-ui/src/views/order/order/orderDetail.vue +++ b/jsowell-ui/src/views/order/order/orderDetail.vue @@ -192,37 +192,36 @@
+

实时订单数据

- - - - - - - - - - - - + + {{ + orderRealTimeInfo.time + }} + {{ + orderRealTimeInfo.orderAmount === "0.0000" + ? "0" + : orderRealTimeInfo.orderAmount + }} + {{ + orderRealTimeInfo.chargedDegree === "0.0000" + ? "0" + : orderRealTimeInfo.chargedDegree + }} + {{ + orderRealTimeInfo.chargingTime + }} + {{ + orderRealTimeInfo.soc + }} +
@@ -480,21 +479,20 @@ export default { }, async getOrderDetail() { const { data } = await getOrder(this.orderCode); - - // console.log("getOrder", data); + console.log("getOrder", data); this.obj = data; this.orderInfo = data.orderInfo; - this.payDetail = data.payRecordList; - this.orderRefundInfoList = data.orderRefundInfoList; + this.payDetail = data.payRecordList; // 数组 + this.orderRefundInfoList = data.orderRefundInfoList; // 数组 this.userInfo = [data.memberInfo]; // console.log("this.userInfo", this.userInfo); this.pileIn = [data.pileInfo]; // console.log("this.pileIn", this.pileIn); this.orderRealTimeInfo = data.orderRealTimeInfo; this.orderDetail = [data.billingDetails]; - this.tableData = data.chargeDetails; + this.tableData = data.chargeDetails; // array this.lastMonitorData = data.lastMonitorData; - + console.log("orderInfo.orderStatus", this.orderInfo.orderStatus); // 是否显示重试退款按钮 // if (data.orderInfo.orderStatus === '6' && data.payRecordList[0].payMode === '4' && data.orderRefundInfoList.length === 0) { // this.retryRefundFlag = true; @@ -510,7 +508,7 @@ export default { if (this.orderInfo == null || this.orderInfo.orderStatus !== "6") { return false; } - if (this.payDetail[0] == null || this.payDetail.payMode[0] !== "4") { + if (this.payDetail[0] == null || this.payDetail[0].payMode !== "4") { return false; } if (