[发货单退货单详情名称统一发货单退货单流程跑通及退货单调用子组件接口不好用完善接口]
This commit is contained in:
@@ -26,7 +26,7 @@
|
|||||||
<view class="name nowrap">{{info.shop.name}}</view>
|
<view class="name nowrap">{{info.shop.name}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="flexrow">
|
<view class="flexrow">
|
||||||
<view class="no nowrap" v-if="listType == 'deliver'">退货单号: {{info.shipment_no}}</view>
|
<view class="no nowrap" v-if="listType == 'deliver'">发货单号: {{info.shipment_no}}</view>
|
||||||
<view class="no nowrap" v-else>退货单号: {{info.refund_no}}</view>
|
<view class="no nowrap" v-else>退货单号: {{info.refund_no}}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -39,12 +39,24 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="goods-info1">
|
<view class="goods-info1" >
|
||||||
<view class="goods-type">创建退货时间 <span>{{info.created_at}}</span></view>
|
<view class="goods-type">创建{{listType == 'deliver'?'发货':'退货'}}时间 <span>{{info.created_at}}</span></view>
|
||||||
<view class="goods-type">运费 <span>自行承担运费</span></view>
|
<view class="goods-type">运费 <span>自行承担运费</span></view>
|
||||||
<view class="goods-type">退货数量 <span>{{info.qty}}个</span></view>
|
<view class="goods-type">{{listType === 'deliver'?'发货':'退货'}}数量 <span>{{info.qty}}个</span></view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
<view class="goods-info1" v-if="listType === 'deliver' && info.express">
|
||||||
|
<view class="goods-type" v-if="info.express">收件人姓名 <span>{{info.express.name || '--'}}</span></view>
|
||||||
|
<view class="goods-type" v-if="info.express" @click="call(info.express.mobile)">收件人电话 <span>{{info.express.mobile || '--'}}</span></view>
|
||||||
|
<view class="goods-type" v-if="info.express">收货地址 <span>{{info.express.full_address || '--'}}</span></view>
|
||||||
|
<view class="goods-type" v-if="info.express">发货快递 <span>{{info.express.express_name || '--'}}</span></view>
|
||||||
|
<view class="goods-type" v-if="info.express">快递单号 <span>{{info.express.express_no || '--'}}</span></view>
|
||||||
|
</view>
|
||||||
|
<view class="goods-info1" v-else>
|
||||||
|
<view class="goods-type" v-if="info.express">退货单快递<span>{{info.express.company || '--'}}</span></view>
|
||||||
|
<view class="goods-type" v-if="info.express">退货快递单号 <span>{{info.express.number || '--'}}</span></view>
|
||||||
|
</view>
|
||||||
|
|
||||||
<!-- 操作相关 -->
|
<!-- 操作相关 -->
|
||||||
<view class="actions">
|
<view class="actions">
|
||||||
<view class="nowPay" @click="orderRun">返回列表</view>
|
<view class="nowPay" @click="orderRun">返回列表</view>
|
||||||
@@ -70,7 +82,12 @@
|
|||||||
uni.navigateBack({
|
uni.navigateBack({
|
||||||
delta: 1
|
delta: 1
|
||||||
})
|
})
|
||||||
}
|
},
|
||||||
|
call(number){
|
||||||
|
uni.makePhoneCall({
|
||||||
|
phoneNumber:number
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
@@ -144,7 +161,7 @@
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
.no {
|
.no {
|
||||||
margin-top: 16rpx;
|
margin-top: 30rpx !important;
|
||||||
font-size: $title-size*0.8;
|
font-size: $title-size*0.8;
|
||||||
color: #999;
|
color: #999;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,251 +1,288 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="returnCont">
|
<view class="returnCont">
|
||||||
<block v-if="list.length > 0">
|
<block v-if="list.length > 0">
|
||||||
<view class="returnList" v-for="(item, index) in list" :key="index">
|
<view class="returnList" v-for="(item, index) in list" :key="index">
|
||||||
<view class="MallRefundsTemplate">
|
<view class="MallRefundsTemplate">
|
||||||
<view class="top">
|
<view class="top">
|
||||||
<view class="company">
|
<view class="company">
|
||||||
<view class="company-logo" v-if="item.shop">
|
<view class="company-logo" v-if="item.shop">
|
||||||
<image :src="item.shop.cover" mode="aspectFill" />
|
<image :src="item.shop.cover" mode="aspectFill" />
|
||||||
<view class="company-name nowrap">{{item.shop.name}}</view>
|
<view class="company-name nowrap">{{item.shop.name}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="no nowrap" v-if="listType == 'deliver'">退货单号: {{item.shipment_no}}</view>
|
<view class="no nowrap" v-if="listType == 'deliver'">退货单号: {{item.shipment_no}}</view>
|
||||||
<view class="no nowrap" v-else>退货单号: {{item.refund_no}}</view>
|
<view class="no nowrap" v-else>退货单号: {{item.refund_no}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="status" style="color:#ff5500;" v-if="listType == 'deliver'">{{item.state_text}}</view>
|
<view class="status" style="color:#ff5500;" v-if="listType == 'deliver'">{{item.state_text}}
|
||||||
<view class="status" style="color:#ff5500;" v-else>{{item.state.text}}</view>
|
</view>
|
||||||
</view>
|
<view class="status" style="color:#ff5500;" v-else>{{item.state.text}}</view>
|
||||||
<view class="goods-info" @click="goDetail(item.goods_sku.goods_id)" v-if="item.goods_sku">
|
</view>
|
||||||
<image class="goods-img" :src="item.goods_sku.cover" mode="aspectFill" />
|
<view class="goods-info" @click="goDetail(item.goods_sku.goods_id)" v-if="item.goods_sku">
|
||||||
<view class="goods">
|
<image class="goods-img" :src="item.goods_sku.cover" mode="aspectFill" />
|
||||||
<view class="name nowrap">{{item.goods_sku.goods_name}}</view>
|
<view class="goods">
|
||||||
<view class="sku">数权个数 <span>x {{item.qty}}</span> </view>
|
<view class="name nowrap">{{item.goods_sku.goods_name}}</view>
|
||||||
</view>
|
<view class="sku">数权个数 <span>x {{item.qty}}</span> </view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="actions">
|
</view>
|
||||||
<view v-if="item.can">
|
<view class="actions">
|
||||||
<view v-if="item.can.audit" @click="$Router.push({name: 'Examine', params: {id: item.refund_id}})" class="nowPay actions-color">订单审核</view>
|
<view v-if="item.can">
|
||||||
<view v-if="item.can.sign" @click="goSign(item.refund_id, index)" class="nowPay actions-color">订单签收</view>
|
<view v-if="item.can.audit"
|
||||||
<view v-if="item.can.reToken" @click="goReToken(item.refund_id, index)" class="nowPay actions-color">确认退货</view>
|
@click="$Router.push({name: 'Examine', params: {id: item.refund_id}})"
|
||||||
<view v-if="item.can.logistic" @click="$Router.push({name: 'Logistic', params: {id: item.shipment_no}})" class="nowPay actions-color">查看物流</view>
|
class="nowPay actions-color">订单审核</view>
|
||||||
<view v-if="item.can.deliver" @click="$Router.push({name: 'DeliverForm', params: {id: item.shipment_no}})" class="nowPay actions-color">我要发货</view>
|
<view v-if="item.can.sign" @click="goSigns(item.refund_id, index)" class="nowPay actions-color">
|
||||||
</view>
|
订单签收</view>
|
||||||
<view v-if="listType == 'deliver'" class="nowPay" @click="$Router.push({name: 'storeOrderDetails', params: {id: item.shipment_no, type: listType}})">查看详情</view>
|
<view v-if="item.can.reToken" @click="goReTokens(item.refund_id, index)"
|
||||||
<view v-else class="nowPay" @click="$Router.push({name: 'storeOrderDetails', params: {id: item.refund_id, type: 'return'}})">查看详情</view>
|
class="nowPay actions-color">确认退货</view>
|
||||||
</view>
|
<view v-if="item.can.logistic"
|
||||||
</view>
|
@click="$Router.push({name: 'Logistic', params: {id: item.shipment_no}})"
|
||||||
</block>
|
class="nowPay actions-color">查看物流</view>
|
||||||
<view v-else class="pack-center">
|
<view v-if="item.can.deliver"
|
||||||
<image src="/static/icons/order-null.png"></image>
|
@click="$Router.push({name: 'DeliverForm', params: {id: item.shipment_no}})"
|
||||||
<view>{{toast}}</view>
|
class="nowPay actions-color">我要发货</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
<view v-if="listType == 'deliver'" class="nowPay"
|
||||||
|
@click="$Router.push({name: 'storeOrderDetails', params: {id: item.shipment_no, type: listType}})">
|
||||||
|
查看详情</view>
|
||||||
|
<view v-else class="nowPay"
|
||||||
|
@click="$Router.push({name: 'storeOrderDetails', params: {id: item.refund_id, type: 'return'}})">
|
||||||
|
查看详情</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</block>
|
||||||
|
<view v-else class="pack-center">
|
||||||
|
<image src="/static/icons/order-null.png"></image>
|
||||||
|
<view>{{toast}}</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name:"goodsList",
|
name: "goodsList",
|
||||||
props:{
|
props: {
|
||||||
// 数据列表
|
// 数据列表
|
||||||
list: {
|
list: {
|
||||||
type : Array,
|
type: Array,
|
||||||
default : () => {
|
default: () => {
|
||||||
return new Array
|
return new Array
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
listType: '',
|
listType: '',
|
||||||
// 列表空提示
|
// 列表空提示
|
||||||
toast : {
|
toast: {
|
||||||
type : String,
|
type: String,
|
||||||
default : '暂无订单数据 -_-!'
|
default: '暂无订单数据 -_-!'
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
created() {}
|
created() {},
|
||||||
}
|
methods: {
|
||||||
|
goSigns(id,index) {
|
||||||
|
this.$emit('goSign',{id:id,index:index});
|
||||||
|
},
|
||||||
|
goReTokens(id,index){
|
||||||
|
this.$emit('goReToken',{id:id,index:index});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
// 列表
|
// 列表
|
||||||
.returnList {
|
.returnList {
|
||||||
background-color: #FFFFFF;
|
background-color: #FFFFFF;
|
||||||
padding: $padding;
|
padding: $padding;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
margin-top: $margin;
|
margin-top: $margin;
|
||||||
}
|
}
|
||||||
|
|
||||||
.MallRefundsTemplate{
|
.MallRefundsTemplate {
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 0;
|
z-index: 0;
|
||||||
}
|
}
|
||||||
// 顶部信息
|
|
||||||
.top {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: row;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: space-between;
|
|
||||||
box-sizing: border-box;
|
|
||||||
padding-bottom: 20rpx;
|
|
||||||
border-bottom: solid 1rpx #f7f7f7;
|
|
||||||
position: relative;
|
|
||||||
z-index: 0;
|
|
||||||
.company-logo {
|
|
||||||
display: flex;
|
|
||||||
width: 90%;
|
|
||||||
image {
|
|
||||||
width: 40rpx;
|
|
||||||
height: 40rpx;
|
|
||||||
border-radius: 50%;
|
|
||||||
margin-right: 20rpx;
|
|
||||||
}
|
|
||||||
.company-name {
|
|
||||||
font-size: 30rpx;
|
|
||||||
color: #484848;
|
|
||||||
font-weight: bold;
|
|
||||||
width: calc(100% - 40rpx);
|
|
||||||
padding: 0 20rpx;
|
|
||||||
box-sizing: border-box;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.no {
|
|
||||||
margin-top: 10rpx;
|
|
||||||
font-size: $title-size*0.8;
|
|
||||||
color: #999;
|
|
||||||
}
|
|
||||||
.status {
|
|
||||||
color: #999;
|
|
||||||
font-size: $title-size*.9;
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
right: 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// 商品信息
|
// 顶部信息
|
||||||
.goods-info {
|
.top {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
align-items: flex-start;
|
align-items: center;
|
||||||
justify-content: flex-start;
|
justify-content: space-between;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
margin-top: 36rpx;
|
padding-bottom: 20rpx;
|
||||||
|
border-bottom: solid 1rpx #f7f7f7;
|
||||||
|
position: relative;
|
||||||
|
z-index: 0;
|
||||||
|
|
||||||
.goods-img {
|
.company-logo {
|
||||||
width: 120rpx;
|
display: flex;
|
||||||
height: 120rpx;
|
width: 90%;
|
||||||
border-radius: 10rpx;
|
|
||||||
}
|
|
||||||
.goods {
|
|
||||||
flex: 1;
|
|
||||||
width: calc(100% - 120rpx);
|
|
||||||
padding: 0 20rpx;
|
|
||||||
box-sizing: border-box;
|
|
||||||
margin-bottom: 10rpx;
|
|
||||||
.name {
|
|
||||||
width: 100%;
|
|
||||||
font-size: 30rpx;
|
|
||||||
span {
|
|
||||||
font-size: 32rpx;
|
|
||||||
font-weight: normal;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.sku {
|
image {
|
||||||
flex: 1;
|
width: 40rpx;
|
||||||
display: flex;
|
height: 40rpx;
|
||||||
flex-direction: row;
|
border-radius: 50%;
|
||||||
align-items: center;
|
margin-right: 20rpx;
|
||||||
justify-content: space-between;
|
}
|
||||||
box-sizing: border-box;
|
|
||||||
margin-top: 10rpx;
|
|
||||||
font-size: 28rpx;
|
|
||||||
color: #999;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.flexrow {
|
.company-name {
|
||||||
display: flex;
|
font-size: 30rpx;
|
||||||
flex-direction: row;
|
color: #484848;
|
||||||
align-items: center;
|
font-weight: bold;
|
||||||
justify-content: space-between;
|
width: calc(100% - 40rpx);
|
||||||
box-sizing: border-box;
|
padding: 0 20rpx;
|
||||||
width: 100%;
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.copy {
|
.no {
|
||||||
color: $main-color;
|
margin-top: 10rpx;
|
||||||
font-size: $title-size*0.8;
|
font-size: $title-size*0.8;
|
||||||
font-weight: 400;
|
color: #999;
|
||||||
padding: 0 30rpx;
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// 操作按钮
|
.status {
|
||||||
.actions {
|
color: #999;
|
||||||
display: flex;
|
font-size: $title-size*.9;
|
||||||
flex-direction: row;
|
position: absolute;
|
||||||
align-items: center;
|
top: 0;
|
||||||
justify-content: flex-end;
|
right: 0;
|
||||||
box-sizing: border-box;
|
}
|
||||||
flex-wrap: wrap;
|
}
|
||||||
flex: 1;
|
|
||||||
font-size: 28rpx;
|
|
||||||
color: #fff;
|
|
||||||
border-top: solid 1rpx #EFF4F2;
|
|
||||||
margin-top: $margin;
|
|
||||||
.nowPay {
|
|
||||||
padding: 4rpx 20rpx;
|
|
||||||
border-radius: 40rpx;
|
|
||||||
margin-left: 20rpx;
|
|
||||||
margin-top: 20rpx;
|
|
||||||
color: #999;
|
|
||||||
border:solid 1rpx #cacaca;
|
|
||||||
&.actions-color {
|
|
||||||
color: #e1293f;
|
|
||||||
border-color: #ec96a0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.cancelOrder {
|
|
||||||
padding: 10rpx 30rpx;
|
|
||||||
border-radius: 40rpx;
|
|
||||||
margin-left: 20rpx;
|
|
||||||
margin-top: 20rpx;
|
|
||||||
background-color: #DD524D;
|
|
||||||
}
|
|
||||||
.logistics {
|
|
||||||
background-color: $main-color;
|
|
||||||
padding: 10rpx 30rpx;
|
|
||||||
border-radius: 40rpx;
|
|
||||||
margin-left: 20rpx;
|
|
||||||
margin-top: 20rpx;
|
|
||||||
}
|
|
||||||
.sign {
|
|
||||||
background-color: #DD524D;
|
|
||||||
padding: 10rpx 30rpx;
|
|
||||||
border-radius: 40rpx;
|
|
||||||
margin-left: 20rpx;
|
|
||||||
margin-top: 20rpx;
|
|
||||||
}
|
|
||||||
.evaluate {
|
|
||||||
background-color: $main-color;
|
|
||||||
padding: 10rpx 30rpx;
|
|
||||||
border-radius: 40rpx;
|
|
||||||
margin-left: 20rpx;
|
|
||||||
margin-top: 20rpx;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// 暂无订单
|
// 商品信息
|
||||||
.pack-center {
|
.goods-info {
|
||||||
text-align: center;
|
display: flex;
|
||||||
font-size: $title-size-sm;
|
flex-direction: row;
|
||||||
color: $text-gray;
|
align-items: flex-start;
|
||||||
padding-top: 50%;
|
justify-content: flex-start;
|
||||||
image {
|
box-sizing: border-box;
|
||||||
width: $uni-img-size-lg * 2;
|
margin-top: 36rpx;
|
||||||
height:$uni-img-size-lg * 2;
|
|
||||||
border-radius: $uni-border-radius-circle;
|
.goods-img {
|
||||||
margin-bottom: $margin;
|
width: 120rpx;
|
||||||
}
|
height: 120rpx;
|
||||||
}
|
border-radius: 10rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.goods {
|
||||||
|
flex: 1;
|
||||||
|
width: calc(100% - 120rpx);
|
||||||
|
padding: 0 20rpx;
|
||||||
|
box-sizing: border-box;
|
||||||
|
margin-bottom: 10rpx;
|
||||||
|
|
||||||
|
.name {
|
||||||
|
width: 100%;
|
||||||
|
font-size: 30rpx;
|
||||||
|
|
||||||
|
span {
|
||||||
|
font-size: 32rpx;
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.sku {
|
||||||
|
flex: 1;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
box-sizing: border-box;
|
||||||
|
margin-top: 10rpx;
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #999;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.flexrow {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
box-sizing: border-box;
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
.copy {
|
||||||
|
color: $main-color;
|
||||||
|
font-size: $title-size*0.8;
|
||||||
|
font-weight: 400;
|
||||||
|
padding: 0 30rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 操作按钮
|
||||||
|
.actions {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: flex-end;
|
||||||
|
box-sizing: border-box;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
flex: 1;
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #fff;
|
||||||
|
border-top: solid 1rpx #EFF4F2;
|
||||||
|
margin-top: $margin;
|
||||||
|
|
||||||
|
.nowPay {
|
||||||
|
padding: 4rpx 20rpx;
|
||||||
|
border-radius: 40rpx;
|
||||||
|
margin-left: 20rpx;
|
||||||
|
margin-top: 20rpx;
|
||||||
|
color: #999;
|
||||||
|
border: solid 1rpx #cacaca;
|
||||||
|
|
||||||
|
&.actions-color {
|
||||||
|
color: #e1293f;
|
||||||
|
border-color: #ec96a0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.cancelOrder {
|
||||||
|
padding: 10rpx 30rpx;
|
||||||
|
border-radius: 40rpx;
|
||||||
|
margin-left: 20rpx;
|
||||||
|
margin-top: 20rpx;
|
||||||
|
background-color: #DD524D;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logistics {
|
||||||
|
background-color: $main-color;
|
||||||
|
padding: 10rpx 30rpx;
|
||||||
|
border-radius: 40rpx;
|
||||||
|
margin-left: 20rpx;
|
||||||
|
margin-top: 20rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sign {
|
||||||
|
background-color: #DD524D;
|
||||||
|
padding: 10rpx 30rpx;
|
||||||
|
border-radius: 40rpx;
|
||||||
|
margin-left: 20rpx;
|
||||||
|
margin-top: 20rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.evaluate {
|
||||||
|
background-color: $main-color;
|
||||||
|
padding: 10rpx 30rpx;
|
||||||
|
border-radius: 40rpx;
|
||||||
|
margin-left: 20rpx;
|
||||||
|
margin-top: 20rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 暂无订单
|
||||||
|
.pack-center {
|
||||||
|
text-align: center;
|
||||||
|
font-size: $title-size-sm;
|
||||||
|
color: $text-gray;
|
||||||
|
padding-top: 50%;
|
||||||
|
|
||||||
|
image {
|
||||||
|
width: $uni-img-size-lg * 2;
|
||||||
|
height: $uni-img-size-lg * 2;
|
||||||
|
border-radius: $uni-border-radius-circle;
|
||||||
|
margin-bottom: $margin;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -190,7 +190,7 @@
|
|||||||
"enablePullDownRefresh": true,
|
"enablePullDownRefresh": true,
|
||||||
"navigationBarTextStyle": "white",
|
"navigationBarTextStyle": "white",
|
||||||
"navigationBarBackgroundColor": "#e93340",
|
"navigationBarBackgroundColor": "#e93340",
|
||||||
"navigationBarTitleText": "已使用订单"
|
"navigationBarTitleText": "已使用服务类订单"
|
||||||
}
|
}
|
||||||
},{
|
},{
|
||||||
"path": "pages/property/order/servicesOrderInfo",
|
"path": "pages/property/order/servicesOrderInfo",
|
||||||
|
|||||||
@@ -1,182 +1,196 @@
|
|||||||
<template>
|
<template>
|
||||||
<view>
|
<view>
|
||||||
<!-- 订单分类 -->
|
<!-- 订单分类 -->
|
||||||
<scroll-view class="nav" scroll-x="true" scroll-with-animation="true">
|
<scroll-view class="nav" scroll-x="true" scroll-with-animation="true">
|
||||||
<view :class="['nav-item', selectNavId === item.id ? 'nav-item-selected':'']" v-for="(item,index) in navList" :key="index" @click="selectNav(item.id)">
|
<view :class="['nav-item', selectNavId === item.id ? 'nav-item-selected':'']"
|
||||||
{{item.name}}
|
v-for="(item,index) in navList" :key="index" @click="selectNav(item.id)">
|
||||||
</view>
|
{{item.name}}
|
||||||
</scroll-view>
|
</view>
|
||||||
|
</scroll-view>
|
||||||
|
|
||||||
<!-- 订单列表 -->
|
<!-- 订单列表 -->
|
||||||
<store-order :list="returnInfo" />
|
<store-order :list="returnInfo" @goSign="goSign" @goReToken="goReToken" />
|
||||||
|
|
||||||
<!-- 分页 -->
|
<!-- 分页 -->
|
||||||
<uni-load-more :status="pageStatus" :iconSize="16" v-if="returnInfo.length > 0"></uni-load-more>
|
<uni-load-more :status="pageStatus" :iconSize="16" v-if="returnInfo.length > 0"></uni-load-more>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { storeReturn, storeSign, storeToken } from '@/apis/interfaces/store'
|
import {
|
||||||
import storeOrder from '@/components/store-order/store-order'
|
storeReturn,
|
||||||
|
storeSign,
|
||||||
|
storeToken
|
||||||
|
} from '@/apis/interfaces/store'
|
||||||
|
import storeOrder from '@/components/store-order/store-order'
|
||||||
export default {
|
export default {
|
||||||
comments:{
|
comments: {
|
||||||
storeOrder
|
storeOrder
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
returnInfo : [] ,// 列表
|
returnInfo: [], // 列表
|
||||||
navList : [{
|
navList: [{
|
||||||
name : '待审核',
|
name: '待审核',
|
||||||
id : 'apply'
|
id: 'apply'
|
||||||
},{
|
}, {
|
||||||
name : '已驳回',
|
name: '已驳回',
|
||||||
id : 'refuse'
|
id: 'refuse'
|
||||||
},{
|
}, {
|
||||||
name : '待返货',
|
name: '待返货',
|
||||||
id : 'deliver'
|
id: 'deliver'
|
||||||
},{
|
}, {
|
||||||
name : '待签收',
|
name: '待签收',
|
||||||
id : 'delivered'
|
id: 'delivered'
|
||||||
},{
|
},
|
||||||
name : '已签收',
|
// {
|
||||||
id : 'signed'
|
// name: '已签收',
|
||||||
},
|
// id: 'signed'
|
||||||
{
|
// },
|
||||||
name : '待确认退货',
|
{
|
||||||
id : 'process'
|
name: '待确认退货',
|
||||||
},
|
id: 'process'
|
||||||
{
|
},
|
||||||
name : '完成退货',
|
{
|
||||||
id : 'completed'
|
name: '完成退货',
|
||||||
}
|
id: 'completed'
|
||||||
],
|
}
|
||||||
selectNavId : 'apply',
|
],
|
||||||
|
selectNavId: 'apply',
|
||||||
|
|
||||||
// 分页
|
// 分页
|
||||||
pageStatus : '',
|
pageStatus: '',
|
||||||
page : 1
|
page: 1
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {},
|
||||||
},
|
onShow() {
|
||||||
onShow() {
|
// 获取退货单列表
|
||||||
// 获取退货单列表
|
this.returnData();
|
||||||
this.returnData();
|
},
|
||||||
},
|
|
||||||
methods: {
|
methods: {
|
||||||
// 退货单列表
|
// 退货单列表
|
||||||
returnData(){
|
returnData() {
|
||||||
storeReturn({
|
storeReturn({
|
||||||
state: this.selectNavId,
|
state: this.selectNavId,
|
||||||
page : this.goodsPage
|
page: this.goodsPage
|
||||||
}).then(res=>{
|
}).then(res => {
|
||||||
if(res.page.current === 1){
|
if (res.page.current === 1) {
|
||||||
this.returnInfo = []
|
this.returnInfo = []
|
||||||
}
|
}
|
||||||
this.returnInfo = this.returnInfo.concat(res.data)
|
this.returnInfo = this.returnInfo.concat(res.data)
|
||||||
this.goodsPage = res.page.current
|
this.goodsPage = res.page.current
|
||||||
this.pageStatus = res.page.has_more ? 'more': 'noMore'
|
this.pageStatus = res.page.has_more ? 'more' : 'noMore'
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
// 选择订单
|
// 选择订单
|
||||||
selectNav(id) {
|
selectNav(id) {
|
||||||
if (this.selectNavId !== id) {
|
if (this.selectNavId !== id) {
|
||||||
this.selectNavId = id
|
this.selectNavId = id
|
||||||
this.returnData()
|
this.returnData()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
// 签收订单
|
// 签收订单
|
||||||
goSign(orderNo,index) {
|
goSign(info) {
|
||||||
uni.showModal({
|
console.log('goSign',info)
|
||||||
title: '是否签收此订单?',
|
let id = info.id
|
||||||
success: res => {
|
let index = info.index
|
||||||
if(res.confirm) {
|
uni.showModal({
|
||||||
storeSign(orderNo).then(() => {
|
title: '是否签收此订单?',
|
||||||
uni.showToast({
|
success: res => {
|
||||||
icon: 'none',
|
if (res.confirm) {
|
||||||
title: '签收成功'
|
storeSign(id).then(() => {
|
||||||
})
|
uni.showToast({
|
||||||
setTimeout(()=>{
|
icon: 'none',
|
||||||
this.returnData()
|
title: '签收成功'
|
||||||
},3000)
|
})
|
||||||
}).catch(err => {
|
setTimeout(() => {
|
||||||
uni.showToast({
|
this.returnInfo.splice(index,1)
|
||||||
icon: 'none',
|
// this.returnData()
|
||||||
title: err.message
|
}, 500)
|
||||||
})
|
}).catch(err => {
|
||||||
})
|
uni.showToast({
|
||||||
}
|
icon: 'none',
|
||||||
}
|
title: err.message
|
||||||
})
|
})
|
||||||
},
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
// 确认退货
|
// 确认退货
|
||||||
goReToken(orderNo,index) {
|
goReToken(info) {
|
||||||
uni.showModal({
|
let id = info.id
|
||||||
title: '是否确认退货此订单?',
|
let index = info.index
|
||||||
success: res => {
|
uni.showModal({
|
||||||
if(res.confirm) {
|
title: '是否确认退货此订单?',
|
||||||
storeToken(orderNo).then(() => {
|
success: res => {
|
||||||
uni.showToast({
|
if (res.confirm) {
|
||||||
icon: 'none',
|
storeToken(id).then(() => {
|
||||||
title: '退货成功'
|
uni.showToast({
|
||||||
})
|
icon: 'none',
|
||||||
setTimeout(()=>{
|
title: '退货成功'
|
||||||
this.returnData()
|
})
|
||||||
},3000)
|
setTimeout(() => {
|
||||||
}).catch(err => {
|
// this.returnData()
|
||||||
uni.showToast({
|
this.returnInfo.splice(index,1)
|
||||||
icon: 'none',
|
}, 500)
|
||||||
title: err.message
|
}).catch(err => {
|
||||||
})
|
uni.showToast({
|
||||||
})
|
icon: 'none',
|
||||||
}
|
title: err.message
|
||||||
}
|
})
|
||||||
})
|
})
|
||||||
},
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
// 下拉加载
|
// 下拉加载
|
||||||
onReachBottom() {
|
onReachBottom() {
|
||||||
if(this.pageStatus == 'more'){
|
if (this.pageStatus == 'more') {
|
||||||
this.pageStatus = 'loading'
|
this.pageStatus = 'loading'
|
||||||
if(this.tabIndex === 'apply') {
|
if (this.tabIndex === 'apply') {
|
||||||
this.goodsPage += 1
|
this.goodsPage += 1
|
||||||
// 获取退货单列表
|
// 获取退货单列表
|
||||||
this.returnData();
|
this.returnData();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
// 订单nav
|
// 订单nav
|
||||||
.nav {
|
.nav {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
font-size: $title-size*0.95;
|
font-size: $title-size*0.95;
|
||||||
padding: 0 30rpx;
|
padding: 0 30rpx;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
color: #666;
|
color: #666;
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: 0rpx;
|
top: 0rpx;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
.nav-item {
|
|
||||||
display: inline-block;
|
.nav-item {
|
||||||
border-bottom: solid 4rpx #fff;
|
display: inline-block;
|
||||||
padding: 30rpx 10rpx;
|
border-bottom: solid 4rpx #fff;
|
||||||
margin-right: 10rpx;
|
padding: 30rpx 10rpx;
|
||||||
}
|
margin-right: 10rpx;
|
||||||
.nav-item-selected {
|
}
|
||||||
border-bottom: solid 4rpx $main-color;
|
|
||||||
color: $main-color;
|
.nav-item-selected {
|
||||||
}
|
border-bottom: solid 4rpx $main-color;
|
||||||
}
|
color: $main-color;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
209
unpackage/dist/dev/app-plus/app-service.js
vendored
209
unpackage/dist/dev/app-plus/app-service.js
vendored
File diff suppressed because one or more lines are too long
146
unpackage/dist/dev/app-plus/app-view.js
vendored
146
unpackage/dist/dev/app-plus/app-view.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user