优化订单显示
This commit is contained in:
parent
3159d0b459
commit
81b15c1afe
|
|
@ -79,7 +79,7 @@
|
||||||
<div class="table_order_info">
|
<div class="table_order_info">
|
||||||
<div class="order_no">{{ scope.row.orderNo }}</div>
|
<div class="order_no">{{ scope.row.orderNo }}</div>
|
||||||
<!-- <div>会员 {{ scope.row.orderNo }}</div> -->
|
<!-- <div>会员 {{ scope.row.orderNo }}</div> -->
|
||||||
<div class="type">【{{ scope.row.orderType | orderTypeFilter }}{{ scope.row.sendType |
|
<div class="type">【{{ scope.row.orderType | orderTypeFilter }} {{ scope.row.sendType |
|
||||||
sendTypeFilter }}】</div>
|
sendTypeFilter }}】</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -110,12 +110,17 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="状态">
|
<el-table-column label="状态">
|
||||||
<template v-slot="scope">
|
<template v-slot="scope">
|
||||||
<el-tag type="primary" v-if="scope.row.status == 'closed'">
|
<template v-if="scope.row.status == 'refund' && scope.row.orderType != 'return'">
|
||||||
{{ scope.row.status | statusFilter }}
|
<el-tag type="primary">已完成</el-tag>
|
||||||
</el-tag>
|
</template>
|
||||||
<el-tag type="warning" v-if="scope.row.status != 'closed'">
|
<template v-else>
|
||||||
{{ scope.row.status | statusFilter }}
|
<el-tag type="primary" v-if="scope.row.status == 'closed'">
|
||||||
</el-tag>
|
{{ scope.row.status | statusFilter }}
|
||||||
|
</el-tag>
|
||||||
|
<el-tag type="warning" v-if="scope.row.status != 'closed'">
|
||||||
|
{{ scope.row.status | statusFilter }}
|
||||||
|
</el-tag>
|
||||||
|
</template>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="创建时间">
|
<el-table-column label="创建时间">
|
||||||
|
|
@ -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