|
|
@@ -1,42 +1,26 @@
|
|
|
<template>
|
|
|
<view class="step-content_box">
|
|
|
- <view
|
|
|
- v-if="!$util.isEmpty(orderComData)"
|
|
|
- class="step-view_box">
|
|
|
- <view
|
|
|
- v-for="(item,index) in orderComData"
|
|
|
- :key="index"
|
|
|
- class="step-li_box">
|
|
|
+ <view v-if="!$util.isEmpty(orderComData)" class="step-view_box">
|
|
|
+ <view v-for="(item,index) in orderComData" :key="index" class="step-li_box">
|
|
|
<view class="step-head_box">
|
|
|
- <view
|
|
|
- v-if="index == 0"
|
|
|
- class="step-icon_num">
|
|
|
+ <view v-if="index == 0" class="step-icon_num">
|
|
|
<view class="dot"></view>
|
|
|
</view>
|
|
|
- <view
|
|
|
- v-else
|
|
|
- class="step-icon-def">
|
|
|
+ <view v-else class="step-icon-def">
|
|
|
<view class="dot"></view>
|
|
|
</view>
|
|
|
<view v-if="stepList.length - 1 !== index " class="step-line"></view>
|
|
|
</view>
|
|
|
<view class="step-main_box">
|
|
|
- <view class="step-tit">
|
|
|
- {{item.actionName}}
|
|
|
- </view>
|
|
|
+ <view class="step-tit">{{item.actionName}}</view>
|
|
|
<view class="step-content_box">
|
|
|
<!-- 送达 -->
|
|
|
<template v-if="item.actionSign === 'reach'">
|
|
|
<view class="reach-content_box">
|
|
|
- <button
|
|
|
- @click="affirmSend(item)"
|
|
|
- v-if="item.status == 0"
|
|
|
- class="admin-button-com blue big">
|
|
|
+ <button @click="affirmSend(item)" v-if="item.status == 0" class="admin-button-com blue big">
|
|
|
确认送达
|
|
|
</button>
|
|
|
- <view
|
|
|
- v-else
|
|
|
- class="reach-time_box">
|
|
|
+ <view v-else class="reach-time_box">
|
|
|
{{item.finishTime}}
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -44,41 +28,32 @@
|
|
|
<!-- 发货 -->
|
|
|
<template v-else-if="item.actionSign === 'deliver'">
|
|
|
<!-- 没有选择发货方式0 -->
|
|
|
- <view
|
|
|
- v-if="item.option == 0&&item.status == 0"
|
|
|
- class="deliver-opiton_0">
|
|
|
- <button
|
|
|
- @click="selfSend"
|
|
|
- class="admin-button-com blue big">
|
|
|
+ <view v-if="item.option == 0&&item.status == 0" class="deliver-opiton_0">
|
|
|
+ <button @click="selfSend" class="admin-button-com blue big">
|
|
|
本店送
|
|
|
</button>
|
|
|
- <button
|
|
|
- @click="sendParcel"
|
|
|
- class="admin-button-com blue big">
|
|
|
+ <button @click="sendParcel" class="admin-button-com blue big">
|
|
|
发快递
|
|
|
- </button>
|
|
|
+ </button>
|
|
|
</view>
|
|
|
- <view
|
|
|
- v-else-if="item.option == 2"
|
|
|
- class="deliver-opiton_1">
|
|
|
+ <view v-else-if="item.option == 1" class="deliver-opiton_1">
|
|
|
+ <view class="shipments-status_box">
|
|
|
+ <view class="reach-time_box">{{item.finishTime}}</view>
|
|
|
+ <view>本店送</view>
|
|
|
+ <button v-if="item.status!=1" @click="sendConfirm('本店送')" class="admin-button-com blue big">确定送达</button>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view v-else-if="item.option == 2" class="deliver-opiton_1">
|
|
|
<view class="shipments-status_box">
|
|
|
+ <view>配送方: {{item.sendInfo.expressName}}</view>
|
|
|
+ <view>距离: {{item.sendInfo.distance}}km</view>
|
|
|
+ <view>运费: {{item.sendInfo.cost}}</view>
|
|
|
+ <view>小费: {{item.sendInfo.tip}}</view>
|
|
|
+ <!--1待接单 2已接单 3已完成 4已取消-->
|
|
|
<view>
|
|
|
- 配送方: {{sendInfo.sendSide}}
|
|
|
- </view>
|
|
|
- <view>
|
|
|
- 距离: {{sendInfo.distance}}
|
|
|
- </view>
|
|
|
- <view>
|
|
|
- 消费: {{sendInfo.distance}}
|
|
|
- </view>
|
|
|
- <view>
|
|
|
- 小费: {{sendInfo.tip}}
|
|
|
- </view>
|
|
|
- <view
|
|
|
- :class="[sendInfo.status=='待接单'?'colorRed':'colorBlue']"
|
|
|
- >
|
|
|
- 状态: {{sendInfo.status}}
|
|
|
+ 状态: <text :class="[item.sendInfo.status==1||item.sendInfo.status==4?'colorRed':'colorBlue']">{{item.sendInfo.status==1?'待接单':item.sendInfo.status==2?'已接单':item.sendInfo.status==3?'已完成':'已取消'}} </text>
|
|
|
</view>
|
|
|
+ <button v-if="item.status!=1" @click="sendConfirm('发快递')" class="admin-button-com blue big">确定送达</button>
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- template -->
|
|
|
@@ -96,7 +71,7 @@
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
-<script>
|
|
|
+<script>
|
|
|
export default {
|
|
|
name:'stepShip',
|
|
|
comments:{
|
|
|
@@ -109,10 +84,23 @@
|
|
|
},
|
|
|
data(){
|
|
|
return {
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
methods:{
|
|
|
+ // type 本店送-发快递
|
|
|
+ // 确认送达
|
|
|
+ sendConfirm(type){
|
|
|
+ let self = this;
|
|
|
+ uni.showModal({
|
|
|
+ title: '提示',content: type=='本店送'?'确认送到了?':'快递送到后会自动确认,需要自己确定?',
|
|
|
+ success: function (res) {
|
|
|
+ if (res.confirm) {
|
|
|
+ self.$emit('sendConfirm',type)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
// 发快递
|
|
|
sendParcel(){
|
|
|
this.$emit('sendParcel')
|
|
|
@@ -161,7 +149,7 @@
|
|
|
top: 50%;
|
|
|
transform: translate(-50%,-50%);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
& > .step-icon_num {
|
|
|
width: 40px;
|
|
|
@@ -192,7 +180,7 @@
|
|
|
top: 50%;
|
|
|
transform: translate(-50%, -50%);
|
|
|
z-index: 45;
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
& > .step-main_box {
|
|
|
@@ -236,10 +224,13 @@
|
|
|
font-size: 24px;
|
|
|
font-weight: 400;
|
|
|
line-height: 50px;
|
|
|
- &.colorRed {
|
|
|
+ &.reach-time_box{
|
|
|
+ font-weight: 600;
|
|
|
+ }
|
|
|
+ .colorRed {
|
|
|
color: #F51608;
|
|
|
}
|
|
|
- & .colorBlue{
|
|
|
+ .colorBlue{
|
|
|
color: #049E2C;
|
|
|
}
|
|
|
}
|
|
|
@@ -255,4 +246,4 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|