优化订单显示
This commit is contained in:
parent
3159d0b459
commit
81b15c1afe
|
|
@ -110,6 +110,10 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="状态">
|
<el-table-column label="状态">
|
||||||
<template v-slot="scope">
|
<template v-slot="scope">
|
||||||
|
<template v-if="scope.row.status == 'refund' && scope.row.orderType != 'return'">
|
||||||
|
<el-tag type="primary">已完成</el-tag>
|
||||||
|
</template>
|
||||||
|
<template v-else>
|
||||||
<el-tag type="primary" v-if="scope.row.status == 'closed'">
|
<el-tag type="primary" v-if="scope.row.status == 'closed'">
|
||||||
{{ scope.row.status | statusFilter }}
|
{{ scope.row.status | statusFilter }}
|
||||||
</el-tag>
|
</el-tag>
|
||||||
|
|
@ -117,6 +121,7 @@
|
||||||
{{ scope.row.status | statusFilter }}
|
{{ scope.row.status | statusFilter }}
|
||||||
</el-tag>
|
</el-tag>
|
||||||
</template>
|
</template>
|
||||||
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="创建时间">
|
<el-table-column label="创建时间">
|
||||||
<template v-slot="scope">
|
<template v-slot="scope">
|
||||||
|
|
@ -219,7 +224,7 @@ export default {
|
||||||
res.map(item => {
|
res.map(item => {
|
||||||
total += item.payAmount
|
total += item.payAmount
|
||||||
})
|
})
|
||||||
this.payCountTotal = total
|
this.payCountTotal = Math.floor(total * 100) / 100
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue