合并master修改
commit
5ac39d0e93
|
@ -8,7 +8,7 @@
|
||||||
<div v-else>{{end}}</div>
|
<div v-else>{{end}}</div>
|
||||||
</div>
|
</div>
|
||||||
<span v-else class="cart-promotion">
|
<span v-else class="cart-promotion">
|
||||||
<span v-if="end === ''">据活动结束:<span>{{ hours }}</span> : <span>{{ minutes }}</span> : <span>{{ seconds }}</span></span>
|
<span v-if="end === ''">距活动结束:<span>{{ hours }}</span> : <span>{{ minutes }}</span> : <span>{{ seconds }}</span></span>
|
||||||
<span v-else>活动已结束</span>
|
<span v-else>活动已结束</span>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -75,6 +75,18 @@
|
||||||
<promotion :time="promotion.endTime" type="cart"></promotion>
|
<promotion :time="promotion.endTime" type="cart"></promotion>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
<template v-for="(promotion, promotionIndex) in goods.promotions">
|
||||||
|
<div class="promotion" :key="promotionIndex" v-if="promotion.promotionType === 'FULL_DISCOUNT'">
|
||||||
|
<span>满优惠活动</span>
|
||||||
|
<promotion :time="promotion.endTime" type="cart"></promotion>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<template v-for="(promotion, promotionIndex) in goods.promotions">
|
||||||
|
<div class="promotion" :key="promotionIndex" v-if="promotion.promotionType === 'COUPON'">
|
||||||
|
<span>优惠券</span>
|
||||||
|
<promotion :time="promotion.endTime" type="cart"></promotion>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="width_150">
|
<div class="width_150">
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<card _Title="我的售后" :_Size="16"></card>
|
<card _Title="我的售后" :_Size="16"></card>
|
||||||
<!-- 搜索 筛选 -->
|
<!-- 搜索 筛选 -->
|
||||||
<div class="mb_20 box">
|
<div class="mb_20 box">
|
||||||
<div class="global_float_right" >
|
<div class="global_float_right">
|
||||||
<Input
|
<Input
|
||||||
class="width_300"
|
class="width_300"
|
||||||
search
|
search
|
||||||
|
@ -16,15 +16,15 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- 列表 -->
|
<!-- 列表 -->
|
||||||
<empty v-if="orderList.length === 0" />
|
<empty v-if="orderList.length === 0"/>
|
||||||
<div class="order-content" v-else>
|
<div class="order-content" v-else>
|
||||||
<template v-for="(order, onderIndex) in orderList">
|
<template v-for="(order, onderIndex) in orderList">
|
||||||
<div class="order-list" :key="onderIndex">
|
<div class="order-list" :key="onderIndex">
|
||||||
<div class="order-header">
|
<div class="order-header">
|
||||||
<div>
|
<div>
|
||||||
<div v-if="order.serviceStatus">{{filterOrderStatus(order.serviceStatus)}}</div>
|
<div v-if="order.serviceStatus">{{ filterOrderStatus(order.serviceStatus) }}</div>
|
||||||
<div>
|
<div>
|
||||||
售后单号:{{ order.sn }} {{order.createTime}}
|
售后单号:{{ order.sn }} {{ order.createTime }}
|
||||||
{{ order.memberName | secrecyMobile }}
|
{{ order.memberName | secrecyMobile }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -34,14 +34,11 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="order-body">
|
<div class="order-body">
|
||||||
<div class="goods-list">
|
<div class="goods-list">
|
||||||
<img @click="goodsDetail(order.skuId, order.goodsId)" class="hover-color" :src="order.goodsImage" alt="" />
|
<img @click="goodsDetail(order.skuId, order.goodsId)" class="hover-color" :src="order.goodsImage" alt=""/>
|
||||||
|
|
||||||
<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>
|
||||||
|
@ -52,10 +49,13 @@
|
||||||
<!-- 订单基础操作 -->
|
<!-- 订单基础操作 -->
|
||||||
<Button @click="goDetail(order.sn)" type="info" size="small">售后详情</Button>
|
<Button @click="goDetail(order.sn)" type="info" size="small">售后详情</Button>
|
||||||
<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>
|
||||||
|
@ -65,9 +65,9 @@
|
||||||
<!-- 分页 -->
|
<!-- 分页 -->
|
||||||
<div class="page-size">
|
<div class="page-size">
|
||||||
<Page :total="total" @on-change="changePageNum"
|
<Page :total="total" @on-change="changePageNum"
|
||||||
@on-page-size-change="changePageSize"
|
@on-page-size-change="changePageSize"
|
||||||
:page-size="params.pageSize"
|
:page-size="params.pageSize"
|
||||||
show-sizer>
|
show-sizer>
|
||||||
</Page>
|
</Page>
|
||||||
</div>
|
</div>
|
||||||
<Modal v-model="logisticsShow" width="530">
|
<Modal v-model="logisticsShow" width="530">
|
||||||
|
@ -76,12 +76,15 @@
|
||||||
</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
|
||||||
>x {{ singleOrder.num }}
|
>x {{ singleOrder.num }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -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>
|
||||||
|
@ -109,12 +113,13 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
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() {
|
||||||
return {
|
return {
|
||||||
orderList: [], // 订单列表
|
orderList: [], // 订单列表
|
||||||
params: { // 请求参数
|
params: { // 请求参数
|
||||||
|
@ -138,24 +143,24 @@ export default {
|
||||||
mDeliverTime: ''
|
mDeliverTime: ''
|
||||||
},
|
},
|
||||||
rules: { // 必填校验
|
rules: { // 必填校验
|
||||||
logisticsId: [{ required: true, message: '请选择物流公司' }],
|
logisticsId: [{required: true, message: '请选择物流公司'}],
|
||||||
logisticsNo: [{ required: true, message: '请填写物流编号' }],
|
logisticsNo: [{required: true, message: '请填写物流编号'}],
|
||||||
mDeliverTime: [{ required: true, message: '请选择发货时间' }]
|
mDeliverTime: [{required: true, message: '请选择发货时间'}]
|
||||||
},
|
},
|
||||||
submitLoading: false // 提交加载状态
|
submitLoading: false // 提交加载状态
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted() {
|
||||||
this.getList();
|
this.getList();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
goDetail (sn) { // 跳转售后详情
|
goDetail(sn) { // 跳转售后详情
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: 'AfterSaleDetail',
|
name: 'AfterSaleDetail',
|
||||||
query: {sn}
|
query: {sn}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
cancel (sn) { // 取消售后申请
|
cancel(sn) { // 取消售后申请
|
||||||
this.$Modal.confirm({
|
this.$Modal.confirm({
|
||||||
title: '取消',
|
title: '取消',
|
||||||
content: '<p>确定取消此次售后申请吗?</p>',
|
content: '<p>确定取消此次售后申请吗?</p>',
|
||||||
|
@ -167,26 +172,27 @@ export default {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
onCancel: () => {}
|
onCancel: () => {
|
||||||
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
goodsDetail (skuId, goodsId) {
|
goodsDetail(skuId, goodsId) {
|
||||||
// 跳转商品详情
|
// 跳转商品详情
|
||||||
let routeUrl = this.$router.resolve({
|
let routeUrl = this.$router.resolve({
|
||||||
path: '/goodsDetail',
|
path: '/goodsDetail',
|
||||||
query: { skuId, goodsId }
|
query: {skuId, goodsId}
|
||||||
});
|
});
|
||||||
window.open(routeUrl.href, '_blank');
|
window.open(routeUrl.href, '_blank');
|
||||||
},
|
},
|
||||||
// 跳转店铺首页
|
// 跳转店铺首页
|
||||||
shopPage (id) {
|
shopPage(id) {
|
||||||
let routeUrl = this.$router.resolve({
|
let routeUrl = this.$router.resolve({
|
||||||
path: '/Merchant',
|
path: '/Merchant',
|
||||||
query: { id: id }
|
query: {id: id}
|
||||||
});
|
});
|
||||||
window.open(routeUrl.href, '_blank');
|
window.open(routeUrl.href, '_blank');
|
||||||
},
|
},
|
||||||
getList () { // 获取售后列表
|
getList() { // 获取售后列表
|
||||||
this.spinShow = true;
|
this.spinShow = true;
|
||||||
let params = JSON.parse(JSON.stringify(this.params))
|
let params = JSON.parse(JSON.stringify(this.params))
|
||||||
afterSaleList(params).then(res => {
|
afterSaleList(params).then(res => {
|
||||||
|
@ -197,21 +203,23 @@ export default {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
changePageNum (val) { // 修改页码
|
changePageNum(val) { // 修改页码
|
||||||
this.params.pageNumber = val;
|
this.params.pageNumber = val;
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
changePageSize (val) { // 修改页数
|
changePageSize(val) { // 修改页数
|
||||||
this.params.pageNumber = 1;
|
this.params.pageNumber = 1;
|
||||||
this.params.pageSize = val;
|
this.params.pageSize = val;
|
||||||
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
|
||||||
},
|
},
|
||||||
// 获取物流公司列表
|
// 获取物流公司列表
|
||||||
getCompany () {
|
getCompany() {
|
||||||
getLogisticsCompany().then(res => {
|
getLogisticsCompany().then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.companyList = res.result
|
this.companyList = res.result
|
||||||
|
@ -219,7 +227,7 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 提交物流信息
|
// 提交物流信息
|
||||||
submitDelivery () {
|
submitDelivery() {
|
||||||
this.submitLoading = true
|
this.submitLoading = true
|
||||||
afterSaleDelivery(this.form).then(res => {
|
afterSaleDelivery(this.form).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
|
@ -233,7 +241,7 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 提交物流modal
|
// 提交物流modal
|
||||||
openModal (row) {
|
openModal(row) {
|
||||||
console.log(row);
|
console.log(row);
|
||||||
this.singleOrder = row;
|
this.singleOrder = row;
|
||||||
this.form.afterSaleSn = row.sn
|
this.form.afterSaleSn = row.sn
|
||||||
|
@ -244,7 +252,7 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 格式化时间
|
// 格式化时间
|
||||||
changeTime (time) {
|
changeTime(time) {
|
||||||
this.form.mDeliverTime = time;
|
this.form.mDeliverTime = time;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -255,25 +263,31 @@ 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;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
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,26 +336,31 @@ 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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
<div class="div-item">
|
<div class="div-item">
|
||||||
<div class="div-item-left">订单来源:</div>
|
<div class="div-item-left">订单来源:</div>
|
||||||
<div class="div-item-right">
|
<div class="div-item-right">
|
||||||
{{ orderInfo.order.clientType | clientTypeWay}}
|
{{ orderInfo.order.clientType | clientTypeWay }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -45,7 +45,10 @@
|
||||||
|
|
||||||
<div class="div-item" v-if="orderInfo.order.needReceipt == true">
|
<div class="div-item" v-if="orderInfo.order.needReceipt == true">
|
||||||
<div class="div-item-left">发票抬头:</div>
|
<div class="div-item-left">发票抬头:</div>
|
||||||
<div class="div-item-right">{{ orderInfo.receipt.receiptTitle ? orderInfo.receipt.receiptTitle : '暂无' }}</div>
|
<div class="div-item-right">{{
|
||||||
|
orderInfo.receipt.receiptTitle ? orderInfo.receipt.receiptTitle : '暂无'
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="div-item" v-if="orderInfo.order.needReceipt == true && orderInfo.receipt.taxpayerId">
|
<div class="div-item" v-if="orderInfo.order.needReceipt == true && orderInfo.receipt.taxpayerId">
|
||||||
|
@ -55,12 +58,17 @@
|
||||||
|
|
||||||
<div class="div-item" v-if="orderInfo.order.needReceipt == true">
|
<div class="div-item" v-if="orderInfo.order.needReceipt == true">
|
||||||
<div class="div-item-left">发票内容:</div>
|
<div class="div-item-left">发票内容:</div>
|
||||||
<div class="div-item-right">{{ orderInfo.receipt.receiptContent ? orderInfo.receipt.receiptContent : '暂无' }}</div>
|
<div class="div-item-right">{{
|
||||||
|
orderInfo.receipt.receiptContent ? orderInfo.receipt.receiptContent : '暂无'
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="div-item" v-if="orderInfo.order.needReceipt == true">
|
<div class="div-item" v-if="orderInfo.order.needReceipt == true">
|
||||||
<div class="div-item-left">发票金额:</div>
|
<div class="div-item-left">发票金额:</div>
|
||||||
<div class="div-item-right">{{ orderInfo.receipt.receiptPrice ? orderInfo.receipt.receiptPrice : '暂无' | unitPrice('¥')}}</div>
|
<div class="div-item-right">
|
||||||
|
{{ orderInfo.receipt.receiptPrice ? orderInfo.receipt.receiptPrice : '暂无' | unitPrice('¥') }}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="div-item" v-if="orderInfo.order.needReceipt == true">
|
<div class="div-item" v-if="orderInfo.order.needReceipt == true">
|
||||||
|
@ -97,7 +105,10 @@
|
||||||
|
|
||||||
<div class="div-item" v-if="orderInfo.order.needReceipt == true">
|
<div class="div-item" v-if="orderInfo.order.needReceipt == true">
|
||||||
<div class="div-item-left">发票抬头:</div>
|
<div class="div-item-left">发票抬头:</div>
|
||||||
<div class="div-item-right">{{ orderInfo.receipt.receiptTitle ? orderInfo.receipt.receiptTitle : '暂无' }}</div>
|
<div class="div-item-right">{{
|
||||||
|
orderInfo.receipt.receiptTitle ? orderInfo.receipt.receiptTitle : '暂无'
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="div-item" v-if="orderInfo.order.needReceipt == true && orderInfo.receipt.taxpayerId">
|
<div class="div-item" v-if="orderInfo.order.needReceipt == true && orderInfo.receipt.taxpayerId">
|
||||||
|
@ -107,12 +118,17 @@
|
||||||
|
|
||||||
<div class="div-item" v-if="orderInfo.order.needReceipt == true">
|
<div class="div-item" v-if="orderInfo.order.needReceipt == true">
|
||||||
<div class="div-item-left">发票内容:</div>
|
<div class="div-item-left">发票内容:</div>
|
||||||
<div class="div-item-right">{{ orderInfo.receipt.receiptContent ? orderInfo.receipt.receiptContent : '暂无' }}</div>
|
<div class="div-item-right">{{
|
||||||
|
orderInfo.receipt.receiptContent ? orderInfo.receipt.receiptContent : '暂无'
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="div-item" v-if="orderInfo.order.needReceipt == true">
|
<div class="div-item" v-if="orderInfo.order.needReceipt == true">
|
||||||
<div class="div-item-left">发票金额:</div>
|
<div class="div-item-left">发票金额:</div>
|
||||||
<div class="div-item-right">{{ orderInfo.receipt.receiptPrice ? orderInfo.receipt.receiptPrice : '暂无' | unitPrice('¥')}}</div>
|
<div class="div-item-right">
|
||||||
|
{{ orderInfo.receipt.receiptPrice ? orderInfo.receipt.receiptPrice : '暂无' | unitPrice('¥') }}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="div-item" v-if="orderInfo.order.needReceipt == true">
|
<div class="div-item" v-if="orderInfo.order.needReceipt == true">
|
||||||
|
@ -134,21 +150,22 @@
|
||||||
<template slot="goodsSlot" slot-scope="{row}">
|
<template slot="goodsSlot" slot-scope="{row}">
|
||||||
<div style="margin-top: 5px; height: 80px; display: flex">
|
<div style="margin-top: 5px; height: 80px; display: flex">
|
||||||
<div style="">
|
<div style="">
|
||||||
<img :src="row.image" style="height: 60px; margin-top: 1px; width: 60px" />
|
<img :src="row.image" style="height: 60px; margin-top: 1px; width: 60px"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div style="margin-left: 13px">
|
<div style="margin-left: 13px">
|
||||||
<div class="div-zoom">
|
<div class="div-zoom">
|
||||||
<a @click="linkTo(row.goodsId,row.skuId)">{{row.goodsName}}</a>
|
<a @click="linkTo(row.goodsId,row.skuId)">{{ row.goodsName }}</a>
|
||||||
</div>
|
</div>
|
||||||
<span v-for="(item, key) in JSON.parse(row.specs)" :key="key">
|
<span v-for="(item, key) in JSON.parse(row.specs)" :key="key">
|
||||||
<span v-show="key!='images'" style="font-size: 12px;color: #999999;">
|
<span v-show="key!='images'" style="font-size: 12px;color: #999999;">
|
||||||
{{key}} : {{item}}
|
{{ key }} : {{ item }}
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
<Poptip trigger="hover" style="display: block;" title="扫码在手机中查看" transfer>
|
<Poptip trigger="hover" style="display: block;" title="扫码在手机中查看" transfer>
|
||||||
<div slot="content">
|
<div slot="content">
|
||||||
<vue-qr :text="wapLinkTo(row.goodsId,row.skuId)" :margin="0" colorDark="#000" colorLight="#fff" :size="150"></vue-qr>
|
<vue-qr :text="wapLinkTo(row.goodsId,row.skuId)" :margin="0" colorDark="#000" colorLight="#fff"
|
||||||
|
:size="150"></vue-qr>
|
||||||
</div>
|
</div>
|
||||||
<img src="../../../assets/qrcode.svg" class="hover-pointer" width="20" height="20" alt="">
|
<img src="../../../assets/qrcode.svg" class="hover-pointer" width="20" height="20" alt="">
|
||||||
</Poptip>
|
</Poptip>
|
||||||
|
@ -160,15 +177,20 @@
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<span class="label">商品总额:</span>
|
<span class="label">商品总额:</span>
|
||||||
<span class="txt">{{ orderInfo.order.priceDetailDTO.goodsPrice | unitPrice('¥') }}</span>
|
<span class="txt">{{ orderInfo.order.priceDetailDTO.goodsPrice | unitPrice('¥') }}</span>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li v-if="orderInfo.order.priceDetailDTO.discountPrice && orderInfo.order.priceDetailDTO.discountPrice > 0">
|
||||||
<span class="label">优惠金额:</span>
|
<span class="label">优惠金额:</span>
|
||||||
<span class="txt"> {{ orderInfo.order.discountPrice | unitPrice('¥')}} </span>
|
<span class="txt"> {{ orderInfo.order.priceDetailDTO.discountPrice | unitPrice('¥') }} </span>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li v-if="orderInfo.order.priceDetailDTO.couponPrice && orderInfo.order.priceDetailDTO.couponPrice > 0">
|
||||||
|
<span class="label">优惠券金额:</span>
|
||||||
|
<span class="txt"> {{ orderInfo.order.priceDetailDTO.couponPrice | unitPrice('¥') }} </span>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<span class="label">运费:</span>
|
<span class="label">运费:</span>
|
||||||
<span class="txt">{{ orderInfo.order.freightPrice | unitPrice('¥')}}</span>
|
<span class="txt">{{ orderInfo.order.freightPrice | unitPrice('¥') }}</span>
|
||||||
</li>
|
</li>
|
||||||
<li v-if="orderInfo.order.priceDetailDTO.updatePrice">
|
<li v-if="orderInfo.order.priceDetailDTO.updatePrice">
|
||||||
<span class="label">修改金额:</span>
|
<span class="label">修改金额:</span>
|
||||||
|
@ -176,7 +198,7 @@
|
||||||
</li>
|
</li>
|
||||||
<li v-if="orderInfo.order.priceDetailDTO.payPoint != 0">
|
<li v-if="orderInfo.order.priceDetailDTO.payPoint != 0">
|
||||||
<span class="label">使用积分:</span>
|
<span class="label">使用积分:</span>
|
||||||
<span class="txt flowPrice">{{orderInfo.order.priceDetailDTO.payPoint}}</span>
|
<span class="txt flowPrice">{{ orderInfo.order.priceDetailDTO.payPoint }}</span>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<span class="label">应付金额:</span>
|
<span class="label">应付金额:</span>
|
||||||
|
@ -193,9 +215,11 @@
|
||||||
<span>修改金额</span>
|
<span>修改金额</span>
|
||||||
</p>
|
</p>
|
||||||
<div>
|
<div>
|
||||||
<Form ref="modifyPriceForm" :model="modifyPriceForm" label-position="left" :label-width="100" :rules="modifyPriceValidate">
|
<Form ref="modifyPriceForm" :model="modifyPriceForm" label-position="left" :label-width="100"
|
||||||
|
:rules="modifyPriceValidate">
|
||||||
<FormItem label="订单金额" prop="price">
|
<FormItem label="订单金额" prop="price">
|
||||||
<Input v-model="modifyPriceForm.price" size="large" number maxlength="9"><span slot="append">元</span></Input>
|
<Input v-model="modifyPriceForm.price" size="large" number maxlength="9"><span
|
||||||
|
slot="append">元</span></Input>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
</Form>
|
</Form>
|
||||||
</div>
|
</div>
|
||||||
|
@ -211,9 +235,11 @@
|
||||||
<span>订单取消</span>
|
<span>订单取消</span>
|
||||||
</p>
|
</p>
|
||||||
<div>
|
<div>
|
||||||
<Form ref="orderCancelForm" :model="orderCancelForm" label-position="left" :label-width="100" :rules="orderCancelValidate">
|
<Form ref="orderCancelForm" :model="orderCancelForm" label-position="left" :label-width="100"
|
||||||
|
:rules="orderCancelValidate">
|
||||||
<FormItem label="取消原因" prop="reason">
|
<FormItem label="取消原因" prop="reason">
|
||||||
<Input v-model="orderCancelForm.reason" type="textarea" :autosize="{ minRows: 2, maxRows: 5 }" placeholder="请输入取消原因"></Input>
|
<Input v-model="orderCancelForm.reason" type="textarea" :autosize="{ minRows: 2, maxRows: 5 }"
|
||||||
|
placeholder="请输入取消原因"></Input>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
</Form>
|
</Form>
|
||||||
</div>
|
</div>
|
||||||
|
@ -237,10 +263,11 @@
|
||||||
<Input v-model="addressForm.consigneeMobile" size="large" maxlength="11"></Input>
|
<Input v-model="addressForm.consigneeMobile" size="large" maxlength="11"></Input>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
<FormItem label="地址信息" prop="consigneeAddressPath">
|
<FormItem label="地址信息" prop="consigneeAddressPath">
|
||||||
<Input v-model="region" disabled style="width: 305px" v-if="showRegion == false" />
|
<Input v-model="region" disabled style="width: 305px" v-if="showRegion == false"/>
|
||||||
<Button v-if="showRegion == false" @click="regionClick" :loading="submitLoading" type="primary" icon="ios-create-outline" style="margin-left: 8px">修改
|
<Button v-if="showRegion == false" @click="regionClick" :loading="submitLoading" type="primary"
|
||||||
|
icon="ios-create-outline" style="margin-left: 8px">修改
|
||||||
</Button>
|
</Button>
|
||||||
<region style="width: 400px" @selected="selectedRegion" v-if="showRegion == true" />
|
<region style="width: 400px" @selected="selectedRegion" v-if="showRegion == true"/>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
<FormItem label="详细地址" prop="consigneeDetail">
|
<FormItem label="详细地址" prop="consigneeDetail">
|
||||||
<Input v-model="addressForm.consigneeDetail" size="large" maxlength="50"></Input>
|
<Input v-model="addressForm.consigneeDetail" size="large" maxlength="50"></Input>
|
||||||
|
@ -258,7 +285,8 @@
|
||||||
<span>订单日志</span>
|
<span>订单日志</span>
|
||||||
</p>
|
</p>
|
||||||
<div class="order-log-div">
|
<div class="order-log-div">
|
||||||
<Table :loading="loading" border :columns="orderLogColumns" :data="orderInfo.orderLogs" ref="table" sortable="custom"></Table>
|
<Table :loading="loading" border :columns="orderLogColumns" :data="orderInfo.orderLogs" ref="table"
|
||||||
|
sortable="custom"></Table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div slot="footer" style="text-align: right">
|
<div slot="footer" style="text-align: right">
|
||||||
|
@ -318,7 +346,7 @@ export default {
|
||||||
//验证要调整的订单金额
|
//验证要调整的订单金额
|
||||||
modifyPriceValidate: {
|
modifyPriceValidate: {
|
||||||
reason: [
|
reason: [
|
||||||
{ required: true, message: "请输入大于0小于99999的合法金额" },
|
{required: true, message: "请输入大于0小于99999的合法金额"},
|
||||||
{
|
{
|
||||||
pattern: /^[1-9]\d{0,3}(\.\d{1,2})?$/,
|
pattern: /^[1-9]\d{0,3}(\.\d{1,2})?$/,
|
||||||
message: "请输入大于0小于9999的合法金额",
|
message: "请输入大于0小于9999的合法金额",
|
||||||
|
@ -330,7 +358,7 @@ export default {
|
||||||
//验证取消订单原因
|
//验证取消订单原因
|
||||||
orderCancelValidate: {
|
orderCancelValidate: {
|
||||||
reason: [
|
reason: [
|
||||||
{ required: true, message: "取消原因不能为空", trigger: "blur" },
|
{required: true, message: "取消原因不能为空", trigger: "blur"},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
addressModal: false, //弹出修改收件信息框
|
addressModal: false, //弹出修改收件信息框
|
||||||
|
@ -344,18 +372,18 @@ export default {
|
||||||
},
|
},
|
||||||
orderDeliverFormValidate: {
|
orderDeliverFormValidate: {
|
||||||
logisticsNo: [
|
logisticsNo: [
|
||||||
{ required: true, message: "发货单号不能为空", trigger: "change" },
|
{required: true, message: "发货单号不能为空", trigger: "change"},
|
||||||
],
|
],
|
||||||
logisticsId: [
|
logisticsId: [
|
||||||
{ required: true, message: "请选择物流公司", trigger: "blur" },
|
{required: true, message: "请选择物流公司", trigger: "blur"},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
addressRule: {
|
addressRule: {
|
||||||
consigneeName: [
|
consigneeName: [
|
||||||
{ required: true, message: "收货人姓名不能为空", trigger: "blur" },
|
{required: true, message: "收货人姓名不能为空", trigger: "blur"},
|
||||||
],
|
],
|
||||||
consigneeMobile: [
|
consigneeMobile: [
|
||||||
{ required: true, message: "联系方式不能为空", trigger: "blur" },
|
{required: true, message: "联系方式不能为空", trigger: "blur"},
|
||||||
{
|
{
|
||||||
pattern: RegExp.mobile,
|
pattern: RegExp.mobile,
|
||||||
trigger: "blur",
|
trigger: "blur",
|
||||||
|
@ -363,7 +391,7 @@ export default {
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
consigneeDetail: [
|
consigneeDetail: [
|
||||||
{ required: true, message: "详细地址不能为空", trigger: "blur" },
|
{required: true, message: "详细地址不能为空", trigger: "blur"},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -668,26 +696,31 @@ export default {
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
height: 150px;
|
height: 150px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
ul {
|
ul {
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
display: block;
|
display: block;
|
||||||
float: right;
|
float: right;
|
||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
|
|
||||||
li {
|
li {
|
||||||
text-align: -webkit-match-parent;
|
text-align: -webkit-match-parent;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.label {
|
.label {
|
||||||
float: left;
|
float: left;
|
||||||
width: 500px;
|
width: 500px;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
.txt {
|
.txt {
|
||||||
float: left;
|
float: left;
|
||||||
width: 130px;
|
width: 130px;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
font-family: verdana;
|
font-family: verdana;
|
||||||
}
|
}
|
||||||
|
|
||||||
.flowPrice {
|
.flowPrice {
|
||||||
color: #cc0000;
|
color: #cc0000;
|
||||||
font-size: 22px;
|
font-size: 22px;
|
||||||
|
|
|
@ -95,7 +95,7 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
title: "领取数量/总数量",
|
title: "已领取数量/总数量",
|
||||||
key: "publishNum",
|
key: "publishNum",
|
||||||
width: 130,
|
width: 130,
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
|
@ -308,7 +308,7 @@ export default {
|
||||||
this.total = this.data.length;
|
this.total = this.data.length;
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
},
|
},
|
||||||
|
|
||||||
edit(v) { // 跳转编辑页面
|
edit(v) { // 跳转编辑页面
|
||||||
this.$router.push({ name: "edit-platform-coupon", query: { id: v.id } });
|
this.$router.push({ name: "edit-platform-coupon", query: { id: v.id } });
|
||||||
},
|
},
|
||||||
|
|
|
@ -111,7 +111,7 @@
|
||||||
<div class="div-item-right">
|
<div class="div-item-right">
|
||||||
{{ orderInfo.receipt.receiptStatus == 0 ? "未开" : "已开" }}
|
{{ orderInfo.receipt.receiptStatus == 0 ? "未开" : "已开" }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</Col>
|
</Col>
|
||||||
<Col span="12">
|
<Col span="12">
|
||||||
|
@ -217,15 +217,14 @@
|
||||||
orderInfo.order.priceDetailDTO.goodsPrice | unitPrice("¥")
|
orderInfo.order.priceDetailDTO.goodsPrice | unitPrice("¥")
|
||||||
}}</span>
|
}}</span>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li v-if="orderInfo.order.priceDetailDTO.discountPrice && orderInfo.order.priceDetailDTO.discountPrice > 0">
|
||||||
<span class="label">优惠金额:</span>
|
<span class="label">优惠金额:</span>
|
||||||
<span class="txt">
|
<span class="txt"> {{ orderInfo.order.priceDetailDTO.discountPrice | unitPrice('¥') }} </span>
|
||||||
{{
|
</li>
|
||||||
(orderInfo.order.priceDetailDTO.couponPrice +
|
|
||||||
orderInfo.order.priceDetailDTO.discountPrice)
|
<li v-if="orderInfo.order.priceDetailDTO.couponPrice && orderInfo.order.priceDetailDTO.couponPrice > 0">
|
||||||
| unitPrice("¥")
|
<span class="label">优惠券金额:</span>
|
||||||
}}
|
<span class="txt"> {{ orderInfo.order.priceDetailDTO.couponPrice | unitPrice('¥') }} </span>
|
||||||
</span>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<span class="label">运费:</span>
|
<span class="label">运费:</span>
|
||||||
|
@ -619,13 +618,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,
|
||||||
"¥"
|
"¥"
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
|
@ -92,7 +92,7 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
title: "领取数量/总数量",
|
title: "已领取数量/总数量",
|
||||||
key: "publishNum",
|
key: "publishNum",
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
return h(
|
return h(
|
||||||
|
|
Loading…
Reference in New Issue