PC端订单货物展示退款状态与实际退款金额
parent
21ae217369
commit
560199944d
|
@ -51,12 +51,11 @@
|
||||||
<div>
|
<div>
|
||||||
<div class="hover-color" @click="goodsDetail(goods.skuId, goods.goodsId)">{{ goods.name }}</div>
|
<div class="hover-color" @click="goodsDetail(goods.skuId, goods.goodsId)">{{ goods.name }}</div>
|
||||||
<div class="mt_10">
|
<div class="mt_10">
|
||||||
<span class="global_color"
|
<span class="global_color">{{ goods.goodsPrice | unitPrice("¥") }} </span>x {{ goods.num }}
|
||||||
>{{ goods.goodsPrice | unitPrice("¥") }} </span
|
<span style="margin-left: 10px;color: #ff9900;">{{refundPriceList(goods.isRefund)}} {{ goods.refundPrice | unitPrice("¥") }}</span>
|
||||||
>x {{ goods.num }}
|
|
||||||
</div>
|
</div>
|
||||||
<Button v-if="goods.commentStatus == 'UNFINISHED'" @click="comment(order.sn, goodsIndex)" size="small" type="success" class="fontsize_12" style="position:relative;top:-22px;left:100px;margin-right:10px">评价</Button>
|
<Button v-if="goods.commentStatus == 'UNFINISHED'" @click="comment(order.sn, goodsIndex)" size="small" type="success" class="fontsize_12" style="position:relative;top:-22px;left:190px;margin-right:10px">评价</Button>
|
||||||
<Button v-if="goods.complainStatus == 'NO_APPLY'" @click="complain(order.sn, goodsIndex)" type="warning" class="fontsize_12" size="small" style="position:relative;top:-22px;left:100px">投诉</Button>
|
<Button v-if="goods.complainStatus == 'NO_APPLY'" @click="complain(order.sn, goodsIndex)" type="warning" class="fontsize_12" size="small" style="position:relative;top:-22px;left:190px">投诉</Button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -155,6 +154,21 @@ export default {
|
||||||
this.getList();
|
this.getList();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 退款状态枚举
|
||||||
|
refundPriceList(status) {
|
||||||
|
switch (status) {
|
||||||
|
case 'ALL_REFUND':
|
||||||
|
return "全部退款";
|
||||||
|
case 'PART_REFUND':
|
||||||
|
return "部分退款";
|
||||||
|
case 'NO_REFUND':
|
||||||
|
return "未退款";
|
||||||
|
case 'REFUNDING':
|
||||||
|
return "退款中";
|
||||||
|
default:
|
||||||
|
return "未退款";
|
||||||
|
}
|
||||||
|
},
|
||||||
goodsDetail (skuId, goodsId) {
|
goodsDetail (skuId, goodsId) {
|
||||||
// 跳转商品详情
|
// 跳转商品详情
|
||||||
let routeUrl = this.$router.resolve({
|
let routeUrl = this.$router.resolve({
|
||||||
|
|
|
@ -106,17 +106,17 @@
|
||||||
<!-- 订单商品 -->
|
<!-- 订单商品 -->
|
||||||
<div class="goods">
|
<div class="goods">
|
||||||
<div class="shop-name">
|
<div class="shop-name">
|
||||||
<span @click="shopPage(order.order.storeId)">{{
|
<span @click="shopPage(order.order.storeId)">{{order.order.storeName}}</span>
|
||||||
order.order.storeName
|
|
||||||
}}</span>
|
|
||||||
</div>
|
</div>
|
||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th width="40%">商品</th>
|
<th width="30%">商品</th>
|
||||||
<th width="20%">货号</th>
|
<th width="15%">货号</th>
|
||||||
<th width="10%">单价</th>
|
<th width="10%">单价</th>
|
||||||
<th width="10%">数量</th>
|
<th width="5%">数量</th>
|
||||||
|
<th width="10%">退款状态</th>
|
||||||
|
<th width="10%">实际退款金额</th>
|
||||||
<th width="10%">小计</th>
|
<th width="10%">小计</th>
|
||||||
<th width="10%">操作</th>
|
<th width="10%">操作</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -141,6 +141,8 @@
|
||||||
<td>{{ goods.id }}</td>
|
<td>{{ goods.id }}</td>
|
||||||
<td>{{ goods.goodsPrice | unitPrice("¥") }}</td>
|
<td>{{ goods.goodsPrice | unitPrice("¥") }}</td>
|
||||||
<td>{{ goods.num }}</td>
|
<td>{{ goods.num }}</td>
|
||||||
|
<td>{{refundPriceList(goods.isRefund)}}</td>
|
||||||
|
<td>{{ goods.refundPrice | unitPrice("¥") }}</td>
|
||||||
<td>{{ (goods.goodsPrice * goods.num) | unitPrice("¥") }}</td>
|
<td>{{ (goods.goodsPrice * goods.num) | unitPrice("¥") }}</td>
|
||||||
<td>
|
<td>
|
||||||
<Button
|
<Button
|
||||||
|
@ -253,6 +255,21 @@ export default {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 退款状态枚举
|
||||||
|
refundPriceList(status) {
|
||||||
|
switch (status) {
|
||||||
|
case 'ALL_REFUND':
|
||||||
|
return "全部退款";
|
||||||
|
case 'PART_REFUND':
|
||||||
|
return "部分退款";
|
||||||
|
case 'NO_REFUND':
|
||||||
|
return "未退款";
|
||||||
|
case 'REFUNDING':
|
||||||
|
return "退款中";
|
||||||
|
default:
|
||||||
|
return "未退款";
|
||||||
|
}
|
||||||
|
},
|
||||||
goodsDetail(skuId, goodsId) {
|
goodsDetail(skuId, goodsId) {
|
||||||
// 跳转商品详情
|
// 跳转商品详情
|
||||||
let routeUrl = this.$router.resolve({
|
let routeUrl = this.$router.resolve({
|
||||||
|
|
Loading…
Reference in New Issue