售后信息展示,单价展示问题处理
parent
b59da2c101
commit
589b7fc7c5
|
@ -38,10 +38,7 @@
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<div class="hover-color" @click="goodsDetail(order.skuId, order.goodsId)">{{ order.goodsName }}</div>
|
<div class="hover-color" @click="goodsDetail(order.skuId, order.goodsId)">{{ order.goodsName }}</div>
|
||||||
<div class="mt_10">
|
<div class="mt_10"> x {{ order.num }}
|
||||||
<span class="global_color"
|
|
||||||
>{{ order.flowPrice | unitPrice("¥") }} </span
|
|
||||||
>x {{ order.num }}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -54,8 +51,11 @@
|
||||||
<Button @click="openModal(order)"
|
<Button @click="openModal(order)"
|
||||||
v-if="order.serviceStatus == 'PASS' &&
|
v-if="order.serviceStatus == 'PASS' &&
|
||||||
order.serviceType != 'RETURN_MONEY'"
|
order.serviceType != 'RETURN_MONEY'"
|
||||||
type="warning" size="small">提交物流</Button>
|
type="warning" size="small">提交物流
|
||||||
<Button @click="cancel(order.sn)" type="error" v-if="order.afterSaleAllowOperationVO.cancel" size="small">取消售后</Button>
|
</Button>
|
||||||
|
<Button @click="cancel(order.sn)" type="error" v-if="order.afterSaleAllowOperationVO.cancel" size="small">
|
||||||
|
取消售后
|
||||||
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -76,9 +76,12 @@
|
||||||
</p>
|
</p>
|
||||||
<div>
|
<div>
|
||||||
<div class="goods-list modal-goods">
|
<div class="goods-list modal-goods">
|
||||||
<img @click="goodsDetail(singleOrder.skuId, singleOrder.goodsId)" class="hover-color" :src="singleOrder.goodsImage" alt="" />
|
<img @click="goodsDetail(singleOrder.skuId, singleOrder.goodsId)" class="hover-color"
|
||||||
|
:src="singleOrder.goodsImage" alt=""/>
|
||||||
<div>
|
<div>
|
||||||
<div class="hover-color" @click="goodsDetail(singleOrder.skuId, singleOrder.goodsId)">{{ singleOrder.goodsName }}</div>
|
<div class="hover-color" @click="goodsDetail(singleOrder.skuId, singleOrder.goodsId)">
|
||||||
|
{{ singleOrder.goodsName }}
|
||||||
|
</div>
|
||||||
<div class="mt_10">
|
<div class="mt_10">
|
||||||
<span class="global_color"
|
<span class="global_color"
|
||||||
>{{ singleOrder.flowPrice | unitPrice("¥") }} </span
|
>{{ singleOrder.flowPrice | unitPrice("¥") }} </span
|
||||||
|
@ -96,7 +99,8 @@
|
||||||
<Input v-model="form.logisticsNo" placeholder="请填写快递单号"></Input>
|
<Input v-model="form.logisticsNo" placeholder="请填写快递单号"></Input>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
<FormItem label="发货时间" prop="mDeliverTime">
|
<FormItem label="发货时间" prop="mDeliverTime">
|
||||||
<DatePicker type="date" style="width:100%" v-model="form.mDeliverTime" @on-change="changeTime" format="yyyy-MM-dd" placeholder="选择发货时间"></DatePicker>
|
<DatePicker type="date" style="width:100%" v-model="form.mDeliverTime" @on-change="changeTime"
|
||||||
|
format="yyyy-MM-dd" placeholder="选择发货时间"></DatePicker>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
</Form>
|
</Form>
|
||||||
</div>
|
</div>
|
||||||
|
@ -112,6 +116,7 @@
|
||||||
import {afterSaleList, cancelAfterSale} from '@/api/member.js';
|
import {afterSaleList, cancelAfterSale} from '@/api/member.js';
|
||||||
import {afterSaleDelivery, getLogisticsCompany} from '@/api/order.js';
|
import {afterSaleDelivery, getLogisticsCompany} from '@/api/order.js';
|
||||||
import {afterSaleStatusList} from '../enumeration.js'
|
import {afterSaleStatusList} from '../enumeration.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'AfterSale',
|
name: 'AfterSale',
|
||||||
data() {
|
data() {
|
||||||
|
@ -167,7 +172,8 @@ export default {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
onCancel: () => {}
|
onCancel: () => {
|
||||||
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
goodsDetail(skuId, goodsId) {
|
goodsDetail(skuId, goodsId) {
|
||||||
|
@ -207,7 +213,9 @@ export default {
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
filterOrderStatus(status) { // 获取订单状态中文
|
filterOrderStatus(status) { // 获取订单状态中文
|
||||||
const ob = this.afterSaleStatusList.filter(e => { return e.status === status });
|
const ob = this.afterSaleStatusList.filter(e => {
|
||||||
|
return e.status === status
|
||||||
|
});
|
||||||
return ob[0].name
|
return ob[0].name
|
||||||
},
|
},
|
||||||
// 获取物流公司列表
|
// 获取物流公司列表
|
||||||
|
@ -255,15 +263,18 @@ export default {
|
||||||
.wrapper {
|
.wrapper {
|
||||||
margin-bottom: 40px;
|
margin-bottom: 40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.box {
|
.box {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.page-size {
|
.page-size {
|
||||||
margin: 15px 0px;
|
margin: 15px 0px;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 订单列表 */
|
/** 订单列表 */
|
||||||
.order-list {
|
.order-list {
|
||||||
border: 1px solid #ddd;
|
border: 1px solid #ddd;
|
||||||
|
@ -271,8 +282,11 @@ export default {
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
.del-btn{visibility: visible;}
|
.del-btn {
|
||||||
|
visibility: visible;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.del-btn {
|
.del-btn {
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
}
|
}
|
||||||
|
@ -283,12 +297,14 @@ export default {
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
border-bottom: 1px solid #ddd;
|
border-bottom: 1px solid #ddd;
|
||||||
|
|
||||||
> div:nth-child(1) > div:nth-child(2) {
|
> div:nth-child(1) > div:nth-child(2) {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
color: #999;
|
color: #999;
|
||||||
margin-top: 3px;
|
margin-top: 3px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.order-body {
|
.order-body {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
@ -298,16 +314,20 @@ export default {
|
||||||
> div:nth-child(2) {
|
> div:nth-child(2) {
|
||||||
width: 150px;
|
width: 150px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
span {
|
span {
|
||||||
color: #438cde;
|
color: #438cde;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
color: $theme_color;
|
color: $theme_color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.ivu-icon {
|
.ivu-icon {
|
||||||
color: #ff8f23;
|
color: #ff8f23;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
color: $theme_color;
|
color: $theme_color;
|
||||||
}
|
}
|
||||||
|
@ -316,25 +336,30 @@ export default {
|
||||||
|
|
||||||
> div:nth-child(3) {
|
> div:nth-child(3) {
|
||||||
width: 100px;
|
width: 100px;
|
||||||
|
|
||||||
.ivu-btn {
|
.ivu-btn {
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.goods-list {
|
.goods-list {
|
||||||
width: 500px;
|
width: 500px;
|
||||||
display: flex;
|
display: flex;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
width: 60px;
|
width: 60px;
|
||||||
height: 60px;
|
height: 60px;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
> div {
|
> div {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal-goods {
|
.modal-goods {
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
background-color: #eee;
|
background-color: #eee;
|
||||||
|
|
|
@ -619,13 +619,13 @@ export default {
|
||||||
key: "unitPrice",
|
key: "unitPrice",
|
||||||
minWidth: 100,
|
minWidth: 100,
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
if (!params.row.priceDetailDTO.unitPrice) {
|
if (!params.row.unitPrice) {
|
||||||
return h("div", this.$options.filters.unitPrice(0, "¥"));
|
return h("div", this.$options.filters.unitPrice(0, "¥"));
|
||||||
}
|
}
|
||||||
return h(
|
return h(
|
||||||
"div",
|
"div",
|
||||||
this.$options.filters.unitPrice(
|
this.$options.filters.unitPrice(
|
||||||
params.row.priceDetailDTO.unitPrice,
|
params.row.unitPrice,
|
||||||
"¥"
|
"¥"
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue