This commit is contained in:
Vinjor 2024-10-18 17:33:53 +08:00
parent 8774bb17a2
commit 265afebf94
2 changed files with 10 additions and 9 deletions

View File

@ -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,

View File

@ -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 = "已作废"
}