[发货单退货单详情名称统一发货单退货单流程跑通及退货单调用子组件接口不好用完善接口]
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
<view class="name nowrap">{{info.shop.name}}</view>
|
||||
</view>
|
||||
<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>
|
||||
</view>
|
||||
@@ -40,9 +40,21 @@
|
||||
</view>
|
||||
</view>
|
||||
<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>{{info.qty}}个</span></view>
|
||||
<view class="goods-type">{{listType === 'deliver'?'发货':'退货'}}数量 <span>{{info.qty}}个</span></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>
|
||||
|
||||
<!-- 操作相关 -->
|
||||
@@ -70,6 +82,11 @@
|
||||
uni.navigateBack({
|
||||
delta: 1
|
||||
})
|
||||
},
|
||||
call(number){
|
||||
uni.makePhoneCall({
|
||||
phoneNumber:number
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -144,7 +161,7 @@
|
||||
font-weight: bold;
|
||||
}
|
||||
.no {
|
||||
margin-top: 16rpx;
|
||||
margin-top: 30rpx !important;
|
||||
font-size: $title-size*0.8;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
@@ -12,7 +12,8 @@
|
||||
<view class="no nowrap" v-if="listType == 'deliver'">退货单号: {{item.shipment_no}}</view>
|
||||
<view class="no nowrap" v-else>退货单号: {{item.refund_no}}</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>
|
||||
<view class="status" style="color:#ff5500;" v-else>{{item.state.text}}</view>
|
||||
</view>
|
||||
<view class="goods-info" @click="goDetail(item.goods_sku.goods_id)" v-if="item.goods_sku">
|
||||
@@ -25,14 +26,26 @@
|
||||
</view>
|
||||
<view class="actions">
|
||||
<view v-if="item.can">
|
||||
<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.sign" @click="goSign(item.refund_id, index)" class="nowPay actions-color">订单签收</view>
|
||||
<view v-if="item.can.reToken" @click="goReToken(item.refund_id, index)" class="nowPay actions-color">确认退货</view>
|
||||
<view v-if="item.can.logistic" @click="$Router.push({name: 'Logistic', params: {id: item.shipment_no}})" 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.audit"
|
||||
@click="$Router.push({name: 'Examine', params: {id: item.refund_id}})"
|
||||
class="nowPay actions-color">订单审核</view>
|
||||
<view v-if="item.can.sign" @click="goSigns(item.refund_id, index)" class="nowPay actions-color">
|
||||
订单签收</view>
|
||||
<view v-if="item.can.reToken" @click="goReTokens(item.refund_id, index)"
|
||||
class="nowPay actions-color">确认退货</view>
|
||||
<view v-if="item.can.logistic"
|
||||
@click="$Router.push({name: 'Logistic', params: {id: item.shipment_no}})"
|
||||
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>
|
||||
<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 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>
|
||||
@@ -59,9 +72,17 @@
|
||||
toast: {
|
||||
type: String,
|
||||
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>
|
||||
|
||||
@@ -78,6 +99,7 @@
|
||||
position: relative;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
// 顶部信息
|
||||
.top {
|
||||
display: flex;
|
||||
@@ -89,15 +111,18 @@
|
||||
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;
|
||||
@@ -107,11 +132,13 @@
|
||||
box-sizing: border-box;
|
||||
}
|
||||
}
|
||||
|
||||
.no {
|
||||
margin-top: 10rpx;
|
||||
font-size: $title-size*0.8;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.status {
|
||||
color: #999;
|
||||
font-size: $title-size*.9;
|
||||
@@ -135,15 +162,18 @@
|
||||
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;
|
||||
@@ -193,6 +223,7 @@
|
||||
color: #fff;
|
||||
border-top: solid 1rpx #EFF4F2;
|
||||
margin-top: $margin;
|
||||
|
||||
.nowPay {
|
||||
padding: 4rpx 20rpx;
|
||||
border-radius: 40rpx;
|
||||
@@ -200,11 +231,13 @@
|
||||
margin-top: 20rpx;
|
||||
color: #999;
|
||||
border: solid 1rpx #cacaca;
|
||||
|
||||
&.actions-color {
|
||||
color: #e1293f;
|
||||
border-color: #ec96a0;
|
||||
}
|
||||
}
|
||||
|
||||
.cancelOrder {
|
||||
padding: 10rpx 30rpx;
|
||||
border-radius: 40rpx;
|
||||
@@ -212,6 +245,7 @@
|
||||
margin-top: 20rpx;
|
||||
background-color: #DD524D;
|
||||
}
|
||||
|
||||
.logistics {
|
||||
background-color: $main-color;
|
||||
padding: 10rpx 30rpx;
|
||||
@@ -219,6 +253,7 @@
|
||||
margin-left: 20rpx;
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
|
||||
.sign {
|
||||
background-color: #DD524D;
|
||||
padding: 10rpx 30rpx;
|
||||
@@ -226,6 +261,7 @@
|
||||
margin-left: 20rpx;
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
|
||||
.evaluate {
|
||||
background-color: $main-color;
|
||||
padding: 10rpx 30rpx;
|
||||
@@ -241,6 +277,7 @@
|
||||
font-size: $title-size-sm;
|
||||
color: $text-gray;
|
||||
padding-top: 50%;
|
||||
|
||||
image {
|
||||
width: $uni-img-size-lg * 2;
|
||||
height: $uni-img-size-lg * 2;
|
||||
|
||||
@@ -190,7 +190,7 @@
|
||||
"enablePullDownRefresh": true,
|
||||
"navigationBarTextStyle": "white",
|
||||
"navigationBarBackgroundColor": "#e93340",
|
||||
"navigationBarTitleText": "已使用订单"
|
||||
"navigationBarTitleText": "已使用服务类订单"
|
||||
}
|
||||
},{
|
||||
"path": "pages/property/order/servicesOrderInfo",
|
||||
|
||||
@@ -2,13 +2,14 @@
|
||||
<view>
|
||||
<!-- 订单分类 -->
|
||||
<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':'']"
|
||||
v-for="(item,index) in navList" :key="index" @click="selectNav(item.id)">
|
||||
{{item.name}}
|
||||
</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>
|
||||
@@ -16,7 +17,11 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { storeReturn, storeSign, storeToken } from '@/apis/interfaces/store'
|
||||
import {
|
||||
storeReturn,
|
||||
storeSign,
|
||||
storeToken
|
||||
} from '@/apis/interfaces/store'
|
||||
import storeOrder from '@/components/store-order/store-order'
|
||||
export default {
|
||||
comments: {
|
||||
@@ -37,10 +42,11 @@
|
||||
}, {
|
||||
name: '待签收',
|
||||
id: 'delivered'
|
||||
},{
|
||||
name : '已签收',
|
||||
id : 'signed'
|
||||
},
|
||||
// {
|
||||
// name: '已签收',
|
||||
// id: 'signed'
|
||||
// },
|
||||
{
|
||||
name: '待确认退货',
|
||||
id: 'process'
|
||||
@@ -57,8 +63,7 @@
|
||||
page: 1
|
||||
}
|
||||
},
|
||||
created() {
|
||||
},
|
||||
created() {},
|
||||
onShow() {
|
||||
// 获取退货单列表
|
||||
this.returnData();
|
||||
@@ -88,19 +93,23 @@
|
||||
},
|
||||
|
||||
// 签收订单
|
||||
goSign(orderNo,index) {
|
||||
goSign(info) {
|
||||
console.log('goSign',info)
|
||||
let id = info.id
|
||||
let index = info.index
|
||||
uni.showModal({
|
||||
title: '是否签收此订单?',
|
||||
success: res => {
|
||||
if (res.confirm) {
|
||||
storeSign(orderNo).then(() => {
|
||||
storeSign(id).then(() => {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '签收成功'
|
||||
})
|
||||
setTimeout(() => {
|
||||
this.returnData()
|
||||
},3000)
|
||||
this.returnInfo.splice(index,1)
|
||||
// this.returnData()
|
||||
}, 500)
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
@@ -113,19 +122,22 @@
|
||||
},
|
||||
|
||||
// 确认退货
|
||||
goReToken(orderNo,index) {
|
||||
goReToken(info) {
|
||||
let id = info.id
|
||||
let index = info.index
|
||||
uni.showModal({
|
||||
title: '是否确认退货此订单?',
|
||||
success: res => {
|
||||
if (res.confirm) {
|
||||
storeToken(orderNo).then(() => {
|
||||
storeToken(id).then(() => {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '退货成功'
|
||||
})
|
||||
setTimeout(() => {
|
||||
this.returnData()
|
||||
},3000)
|
||||
// this.returnData()
|
||||
this.returnInfo.splice(index,1)
|
||||
}, 500)
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
@@ -168,12 +180,14 @@
|
||||
position: sticky;
|
||||
top: 0rpx;
|
||||
z-index: 1;
|
||||
|
||||
.nav-item {
|
||||
display: inline-block;
|
||||
border-bottom: solid 4rpx #fff;
|
||||
padding: 30rpx 10rpx;
|
||||
margin-right: 10rpx;
|
||||
}
|
||||
|
||||
.nav-item-selected {
|
||||
border-bottom: solid 4rpx $main-color;
|
||||
color: $main-color;
|
||||
|
||||
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