|
|
@ -69,7 +69,7 @@ |
|
|
<view class="delivery-status-title-row"> |
|
|
<view class="delivery-status-title-row"> |
|
|
<view class="delivery-status-title">今日接单状态</view> |
|
|
<view class="delivery-status-title">今日接单状态</view> |
|
|
<view class="delivery-status-pill" :class="{'delivery-status-pill--on': isOnLine == 1}"> |
|
|
<view class="delivery-status-pill" :class="{'delivery-status-pill--on': isOnLine == 1}"> |
|
|
{{isOnLine == 1 ? '已上线' : '已离线'}} |
|
|
{{isOnLine == 1 ? '已上线' : '已离线,新订单不再提醒'}} |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="delivery-status-desc">{{deliveryStatusText}}</view> |
|
|
<view class="delivery-status-desc">{{deliveryStatusText}}</view> |
|
|
@ -121,27 +121,25 @@ |
|
|
style="background: rgba(247, 248, 248, 0.6);height: 80rpx;line-height: 80rpx;font-weight: 500;padding: 0 20rpx;border-radius: 20rpx;"> |
|
|
style="background: rgba(247, 248, 248, 0.6);height: 80rpx;line-height: 80rpx;font-weight: 500;padding: 0 20rpx;border-radius: 20rpx;"> |
|
|
备注:{{item.remark}} |
|
|
备注:{{item.remark}} |
|
|
</view> |
|
|
</view> |
|
|
<view class="" v-if="item.deliveryType == 3 || item.deliveryType == 2" |
|
|
<view class="express-info-card" v-if="item.deliveryType == 3 || item.deliveryType == 2"> |
|
|
style="background: rgba(247, 248, 248, 0.6);line-height: 80rpx;font-weight: 700;padding: 0 20rpx;border-radius: 20rpx;margin-top: 20rpx;color: #777;"> |
|
|
<view class="express-info-row"> |
|
|
<view style="display: flex;"> |
|
|
<view class="express-info-item"> |
|
|
<view style="flex:1"> |
|
|
<text class="express-info-label">件数</text> |
|
|
{{item.allCount != null ? item.allCount : 0}}件 |
|
|
<text class="express-info-value">{{item.allCount != null ? item.allCount : 0}}件</text> |
|
|
</view> |
|
|
</view> |
|
|
<view class="" v-if="item.getPictures != null"> |
|
|
<view class="express-info-item express-info-item--code" v-if="item.getCodes != null && item.getCodes != ''"> |
|
|
取件码截图(分割一下) {{item.getPictures}} |
|
|
<text class="express-info-label">取件码</text> |
|
|
|
|
|
<text class="express-info-value">{{item.getCodes}}</text> |
|
|
</view> |
|
|
</view> |
|
|
<view class="" v-if="item.getCodes != null"> |
|
|
<view class="express-info-item" v-if="item.phoneNumber != null && item.phoneNumber != ''"> |
|
|
取件码{{item.getCodes}} |
|
|
<text class="express-info-label">手机尾号</text> |
|
|
</view> |
|
|
<text class="express-info-value">{{item.phoneNumber}}</text> |
|
|
<view style="flex:1;text-align: right;" v-if="item.phoneNumber != null"> |
|
|
|
|
|
手机尾号:{{item.phoneNumber}} |
|
|
|
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
<view class="express-picture-list" v-if="getPickupPictures(item).length > 0"> |
|
|
<view style="display: flex;padding: 20rpx 0;"> |
|
|
<view class="express-picture-title">取件码截图</view> |
|
|
<img @tap="largeImg" |
|
|
<image class="express-picture" v-for="(pic,picIndex) in getPickupPictures(item)" :key="picIndex" |
|
|
src="https://jewel-shop.oss-cn-beijing.aliyuncs.com/1f77398a73454a6595c12a3c18731599.png" |
|
|
:src="pic" mode="aspectFill" @tap.stop="largeImg(pic)"></image> |
|
|
alt="" style="width: 90rpx;height: 106rpx;background-size: 100%;margin-right:20rpx;" /> |
|
|
|
|
|
</view> |
|
|
</view> |
|
|
<!-- <view style="display: flex;padding: 10px 0;"> |
|
|
<!-- <view style="display: flex;padding: 10px 0;"> |
|
|
<view class="code-box" style="margin-right:10px;"> |
|
|
<view class="code-box" style="margin-right:10px;"> |
|
|
@ -377,7 +375,7 @@ |
|
|
<!-- 查看大图弹出层 --> |
|
|
<!-- 查看大图弹出层 --> |
|
|
<uni-popup ref="imgPopup" background-color="#fff"> |
|
|
<uni-popup ref="imgPopup" background-color="#fff"> |
|
|
<view class="img-popup-content"> |
|
|
<view class="img-popup-content"> |
|
|
<img :src="bigImg" alt="" style="width: 100%;height: 100%;"> |
|
|
<image :src="bigImg" mode="aspectFit" style="width: 100%;height: 100%;"></image> |
|
|
</view> |
|
|
</view> |
|
|
</uni-popup> |
|
|
</uni-popup> |
|
|
|
|
|
|
|
|
@ -601,6 +599,25 @@ |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
getPickupPictures(item) { |
|
|
|
|
|
const pictures = item && item.getPictures |
|
|
|
|
|
if (!pictures) return [] |
|
|
|
|
|
if (Array.isArray(pictures)) { |
|
|
|
|
|
return pictures.filter(pic => pic) |
|
|
|
|
|
} |
|
|
|
|
|
if (typeof pictures === 'string') { |
|
|
|
|
|
let value = pictures.trim() |
|
|
|
|
|
if (!value) return [] |
|
|
|
|
|
try { |
|
|
|
|
|
const parsed = JSON.parse(value) |
|
|
|
|
|
if (Array.isArray(parsed)) { |
|
|
|
|
|
return parsed.filter(pic => pic) |
|
|
|
|
|
} |
|
|
|
|
|
} catch (e) {} |
|
|
|
|
|
return value.split(/[,,\s]+/).map(pic => pic.trim()).filter(pic => pic) |
|
|
|
|
|
} |
|
|
|
|
|
return [] |
|
|
|
|
|
}, |
|
|
loadDeliveryStatusCounts() { |
|
|
loadDeliveryStatusCounts() { |
|
|
this.setDeliveryStatusCounts(uni.getStorageSync('deliveryStatusCounts') || {}) |
|
|
this.setDeliveryStatusCounts(uni.getStorageSync('deliveryStatusCounts') || {}) |
|
|
}, |
|
|
}, |
|
|
@ -891,7 +908,8 @@ |
|
|
}, |
|
|
}, |
|
|
//查看大图 |
|
|
//查看大图 |
|
|
largeImg(img) { |
|
|
largeImg(img) { |
|
|
this.bigImg = 'https://jewel-shop.oss-cn-beijing.aliyuncs.com/00b1f011787c4549bbea650d95a4eb39.png' |
|
|
if (!img) return |
|
|
|
|
|
this.bigImg = img |
|
|
this.$refs.imgPopup.open() |
|
|
this.$refs.imgPopup.open() |
|
|
}, |
|
|
}, |
|
|
zhipaiChange(e) { |
|
|
zhipaiChange(e) { |
|
|
@ -1209,7 +1227,7 @@ |
|
|
worker.isOnLine = value; |
|
|
worker.isOnLine = value; |
|
|
this.isOnLine = value |
|
|
this.isOnLine = value |
|
|
uni.setStorageSync('worker', worker); |
|
|
uni.setStorageSync('worker', worker); |
|
|
this.tui.toast(res.message) |
|
|
this.tui.toast(value == 0 ? '下线后不再接收新订单通知' : res.message) |
|
|
} else { |
|
|
} else { |
|
|
this.tui.toast(res.message) |
|
|
this.tui.toast(res.message) |
|
|
} |
|
|
} |
|
|
@ -1620,6 +1638,84 @@ |
|
|
white-space: normal; |
|
|
white-space: normal; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.express-info-card { |
|
|
|
|
|
margin-top: 16rpx; |
|
|
|
|
|
padding: 16rpx 18rpx; |
|
|
|
|
|
border-radius: 18rpx; |
|
|
|
|
|
background: rgba(247, 248, 248, 0.72); |
|
|
|
|
|
color: #596560; |
|
|
|
|
|
box-sizing: border-box; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.express-info-row { |
|
|
|
|
|
display: flex; |
|
|
|
|
|
align-items: center; |
|
|
|
|
|
flex-wrap: wrap; |
|
|
|
|
|
gap: 12rpx; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.express-info-item { |
|
|
|
|
|
min-height: 48rpx; |
|
|
|
|
|
padding: 0 16rpx; |
|
|
|
|
|
display: flex; |
|
|
|
|
|
align-items: center; |
|
|
|
|
|
border-radius: 999rpx; |
|
|
|
|
|
background: #fff; |
|
|
|
|
|
box-sizing: border-box; |
|
|
|
|
|
max-width: 100%; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.express-info-item--code { |
|
|
|
|
|
flex: 1; |
|
|
|
|
|
min-width: 220rpx; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.express-info-label { |
|
|
|
|
|
flex-shrink: 0; |
|
|
|
|
|
margin-right: 8rpx; |
|
|
|
|
|
color: #8a9691; |
|
|
|
|
|
font-size: 22rpx; |
|
|
|
|
|
font-weight: 700; |
|
|
|
|
|
line-height: 32rpx; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.express-info-value { |
|
|
|
|
|
min-width: 0; |
|
|
|
|
|
color: #313b37; |
|
|
|
|
|
font-size: 24rpx; |
|
|
|
|
|
font-weight: 900; |
|
|
|
|
|
line-height: 34rpx; |
|
|
|
|
|
word-break: break-all; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.express-picture-list { |
|
|
|
|
|
margin-top: 14rpx; |
|
|
|
|
|
display: flex; |
|
|
|
|
|
align-items: center; |
|
|
|
|
|
flex-wrap: wrap; |
|
|
|
|
|
gap: 12rpx; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.express-picture-title { |
|
|
|
|
|
height: 44rpx; |
|
|
|
|
|
line-height: 44rpx; |
|
|
|
|
|
padding: 0 14rpx; |
|
|
|
|
|
border-radius: 999rpx; |
|
|
|
|
|
background: rgba(166, 255, 234, 0.46); |
|
|
|
|
|
color: #0b6b5a; |
|
|
|
|
|
font-size: 22rpx; |
|
|
|
|
|
font-weight: 800; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.express-picture { |
|
|
|
|
|
width: 112rpx; |
|
|
|
|
|
height: 112rpx; |
|
|
|
|
|
border-radius: 14rpx; |
|
|
|
|
|
background: #eef4f1; |
|
|
|
|
|
border: 1px solid rgba(0, 35, 28, 0.08); |
|
|
|
|
|
box-sizing: border-box; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
.refund-status { |
|
|
.refund-status { |
|
|
width: 100%; |
|
|
width: 100%; |
|
|
margin-top: 24rpx; |
|
|
margin-top: 24rpx; |
|
|
|