From 7db0c4b6048ce2e534b7ad33cfdc4ecaa37a5e8c Mon Sep 17 00:00:00 2001 From: Vinjor Date: Sun, 27 Oct 2024 16:11:58 +0800 Subject: [PATCH] 1 --- pages-order/orderList/orderList.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pages-order/orderList/orderList.vue b/pages-order/orderList/orderList.vue index cd8ca46..5af9bc7 100644 --- a/pages-order/orderList/orderList.vue +++ b/pages-order/orderList/orderList.vue @@ -19,7 +19,7 @@ 订单编号:{{ item.orderNo }} - {{ getStatus(item.orderStatus,item.mainStatus,item.payType) }} + {{ getStatus(item.orderStatus,item.mainStatus,item.payType,item.payTime) }} @@ -216,7 +216,7 @@ export default { * @param payType 支付方式 * @returns {string} */ - getStatus(orderStatus,mainStatus,payType) { + getStatus(orderStatus,mainStatus,payType,payTime) { let str = ""; if("0"==orderStatus){ //未支付的情况下,返回工单的状态 @@ -238,7 +238,11 @@ export default { str = "挂单/记账" }else if("02"==mainStatus){ //已结账 - str = "已结账" + if(!payTime){ + str = "待支付" + }else{ + str = "已结账" + } }else if("03"==mainStatus){ //已作废 str = "已作废"