获取订单状态描述

This commit is contained in:
2023-03-16 17:15:44 +08:00
parent 1c66b70f43
commit a81567b9f5
2 changed files with 4 additions and 19 deletions

View File

@@ -29,7 +29,7 @@
></el-step>
<el-step
title="开始充电"
:description="status(orderInfo[0].orderStatus)"
:description="orderInfo[0].orderStatusDescribe"
></el-step>
<el-step
title="结束充电"
@@ -49,11 +49,7 @@
align="center"
width="280"
></el-table-column>
<el-table-column prop="orderStatus" label="订单状态" align="center">
<template slot-scope="scope">
<span>{{ status(scope.row.orderStatus) }}</span>
</template>
</el-table-column>
<el-table-column prop="orderStatusDescribe" label="订单状态描述" align="center"/>
<el-table-column prop="createTime" label="创建时间" align="center"/>
<el-table-column prop="startTime" label="开始时间" align="center"/>
<el-table-column prop="endTime" label="结束时间" align="center"/>
@@ -212,19 +208,6 @@ export default {
this.orderRealTimeInfo = [data.orderRealTimeInfo];
this.orderDetail = [data.billingDetails];
},
status(e) {
let arr = [
"未启动",
"充电中",
"待结算",
"待补缴",
"异常",
"可疑",
"订单完成",
"超时关闭",
];
return e ? arr[e] : arr[0];
},
},
};
</script>