diff --git a/pages-home/home/home.vue b/pages-home/home/home.vue index cb84110..4827412 100644 --- a/pages-home/home/home.vue +++ b/pages-home/home/home.vue @@ -191,7 +191,7 @@ export default { flag:1, ticketsStatus:order.ticketsStatus, ticketsWorkStatus:order.ticketsWorkStatus, - flagStr:getOrderStatusText(order), + flagStr:getOrderStatusText(order.ticketsStatus,order.ticketsWorkStatus), carNum:order.carNo, carModel:order.carBrandName, userName:order.userName, diff --git a/utils/utils.js b/utils/utils.js index abade69..c7f9afa 100644 --- a/utils/utils.js +++ b/utils/utils.js @@ -30,26 +30,27 @@ function getWXStatusHeight() { /** * 根据订单的状态获取订单的文字展示状态 - * @param orderInfo + * @param ticketsStatus 订单状态 + * @param workStatus 维修工作状态 */ -function getOrderStatusText(orderInfo){ +function getOrderStatusText(ticketsStatus,workStatus){ let str = ""; - if("04"==orderInfo.ticketsStatus){ + if("04"==ticketsStatus){ //待派工 str = "待派工" - }else if("05"==orderInfo.ticketsStatus){ + }else if("05"==ticketsStatus){ //维修中 str = "维修中" - }else if("01"==orderInfo.ticketsStatus){ + }else if("01"==ticketsStatus){ //待结算 str = "待结算" - }else if("06"==orderInfo.ticketsStatus){ + }else if("06"==ticketsStatus){ //挂单/记账 str = "挂单/记账" - }else if("02"==orderInfo.ticketsStatus){ + }else if("02"==ticketsStatus){ //已结账 str = "已结账" - }else if("03"==orderInfo.ticketsStatus){ + }else if("03"==ticketsStatus){ //已作废 str = "已作废" }