|
@@ -62,12 +62,13 @@
|
|
|
<el-tag :type="row.cancel?'':'info'">{{row.cancel}}</el-tag>
|
|
<el-tag :type="row.cancel?'':'info'">{{row.cancel}}</el-tag>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column prop="rated" label="已评价"
|
|
|
|
|
|
|
+<!-- <el-table-column prop="rated" label="已评价"
|
|
|
>
|
|
>
|
|
|
<template slot-scope="{row}">
|
|
<template slot-scope="{row}">
|
|
|
<el-tag :type="row.rated?'':'info'">{{row.rated}}</el-tag>
|
|
<el-tag :type="row.rated?'':'info'">{{row.rated}}</el-tag>
|
|
|
</template>
|
|
</template>
|
|
|
- </el-table-column>
|
|
|
|
|
|
|
+ </el-table-column>-->
|
|
|
|
|
+ <el-table-column prop="status" label="状态" :formatter="statusFormatter"></el-table-column>
|
|
|
<el-table-column prop="orderTime" label="下单时间"
|
|
<el-table-column prop="orderTime" label="下单时间"
|
|
|
:formatter="datetimeFormatter"
|
|
:formatter="datetimeFormatter"
|
|
|
>
|
|
>
|
|
@@ -137,6 +138,14 @@
|
|
|
search: "",
|
|
search: "",
|
|
|
url: "/orderInfo/all",
|
|
url: "/orderInfo/all",
|
|
|
downloading: false,
|
|
downloading: false,
|
|
|
|
|
+ statusOptions:[{"label": "未支付", "value": "UNPAID"},
|
|
|
|
|
+ { "label": "已支付","value": "PAID"},
|
|
|
|
|
+ { "label": "待评价","value": "RATED"},
|
|
|
|
|
+ { "label": "已取消","value": "CANCELLED"},
|
|
|
|
|
+ { "label": "申请退款中","value": "PENDING"},
|
|
|
|
|
+ {"label": "已退款", "value": "REFUNDED"},
|
|
|
|
|
+ {"label": "已完成", "value": "COMPLETED"}],
|
|
|
|
|
+
|
|
|
merchantStatusOptions:[{"label": "接单", "value": "RECEIVED"}, {
|
|
merchantStatusOptions:[{"label": "接单", "value": "RECEIVED"}, {
|
|
|
"label": "未接单",
|
|
"label": "未接单",
|
|
|
"value": "NOT_RECEIVED"
|
|
"value": "NOT_RECEIVED"
|
|
@@ -159,6 +168,13 @@
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ statusFormatter(row, column, cellValue, index) {
|
|
|
|
|
+ let selectedOption = this.statusOptions.find(i => i.value === cellValue);
|
|
|
|
|
+ if (selectedOption) {
|
|
|
|
|
+ return selectedOption.label;
|
|
|
|
|
+ }
|
|
|
|
|
+ return '';
|
|
|
|
|
+ },
|
|
|
merchantStatusFormatter(row, column, cellValue, index) {
|
|
merchantStatusFormatter(row, column, cellValue, index) {
|
|
|
let selectedOption = this.merchantStatusOptions.find(i => i.value === cellValue);
|
|
let selectedOption = this.merchantStatusOptions.find(i => i.value === cellValue);
|
|
|
if (selectedOption) {
|
|
if (selectedOption) {
|