This commit is contained in:
PQZ 2024-10-18 17:34:09 +08:00
commit 5b7b7571c1
2 changed files with 10 additions and 9 deletions

View File

@ -191,7 +191,7 @@ export default {
flag:1, flag:1,
ticketsStatus:order.ticketsStatus, ticketsStatus:order.ticketsStatus,
ticketsWorkStatus:order.ticketsWorkStatus, ticketsWorkStatus:order.ticketsWorkStatus,
flagStr:getOrderStatusText(order), flagStr:getOrderStatusText(order.ticketsStatus,order.ticketsWorkStatus),
carNum:order.carNo, carNum:order.carNo,
carModel:order.carBrandName, carModel:order.carBrandName,
userName:order.userName, userName:order.userName,

View File

@ -30,26 +30,27 @@ function getWXStatusHeight() {
/** /**
* 根据订单的状态获取订单的文字展示状态 * 根据订单的状态获取订单的文字展示状态
* @param orderInfo * @param ticketsStatus 订单状态
* @param workStatus 维修工作状态
*/ */
function getOrderStatusText(orderInfo){ function getOrderStatusText(ticketsStatus,workStatus){
let str = ""; let str = "";
if("04"==orderInfo.ticketsStatus){ if("04"==ticketsStatus){
//待派工 //待派工
str = "待派工" str = "待派工"
}else if("05"==orderInfo.ticketsStatus){ }else if("05"==ticketsStatus){
//维修中 //维修中
str = "维修中" str = "维修中"
}else if("01"==orderInfo.ticketsStatus){ }else if("01"==ticketsStatus){
//待结算 //待结算
str = "待结算" str = "待结算"
}else if("06"==orderInfo.ticketsStatus){ }else if("06"==ticketsStatus){
//挂单/记账 //挂单/记账
str = "挂单/记账" str = "挂单/记账"
}else if("02"==orderInfo.ticketsStatus){ }else if("02"==ticketsStatus){
//已结账 //已结账
str = "已结账" str = "已结账"
}else if("03"==orderInfo.ticketsStatus){ }else if("03"==ticketsStatus){
//已作废 //已作废
str = "已作废" str = "已作废"
} }