|
|
|
@ -37,17 +37,29 @@ const getMemberOrderByIdData = async (orderId) => {
|
|
|
|
|
// 到站下单
|
|
|
|
|
isOderTypeDZ.value = data.orderType?.code == '520193532170867013' || false
|
|
|
|
|
|
|
|
|
|
data.orderDetails?.forEach((q) => {
|
|
|
|
|
const arr = JSON.parse(q.product.photo)
|
|
|
|
|
const imgUrl = serviceDomain + arr[0].url
|
|
|
|
|
q.imgUrl = imgUrl
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
if (data.recyclerInfo) {
|
|
|
|
|
const arr = JSON.parse(data.recyclerInfo.headIcon)
|
|
|
|
|
const imgUrl = serviceDomain + arr[0].url
|
|
|
|
|
data.recyclerInfo.imgUrl = imgUrl
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (data.recycleStationInfo) {
|
|
|
|
|
const arr = JSON.parse(data.recycleStationInfo.stationImg)
|
|
|
|
|
const imgUrl = serviceDomain + arr[0].url
|
|
|
|
|
data.recycleStationInfo.imgUrl = imgUrl
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (isOrderTypeSH.value) {
|
|
|
|
|
const str = data.appointmentTimeStart?.slice(0, 10)
|
|
|
|
|
const start = data.appointmentTimeStart?.slice(11, 16)
|
|
|
|
|
const end = data.appointmentTimeEnd?.slice(11, 16)
|
|
|
|
|
data.appointmentTime = str + ' ' + start + '-' + end
|
|
|
|
|
|
|
|
|
|
data.orderDetails?.forEach((q) => {
|
|
|
|
|
const arr = JSON.parse(q.product.photo)
|
|
|
|
|
const imgUrl = serviceDomain + arr[0].url
|
|
|
|
|
q.imgUrl = imgUrl
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 定时回收
|
|
|
|
@ -76,61 +88,41 @@ const getMemberOrderByIdData = async (orderId) => {
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
</view>
|
|
|
|
|
<template v-if="isOrderTypeSH">
|
|
|
|
|
<view class="module">
|
|
|
|
|
<view class="title">订单编号:{{ order.orderNumber }}</view>
|
|
|
|
|
<view class="detail-title">回收品类:</view>
|
|
|
|
|
<view class="order-details">
|
|
|
|
|
<view class="detail-item" v-for="item in order.orderDetails" :key="item.id">
|
|
|
|
|
<view class="product-info">
|
|
|
|
|
<image class="img-url" :src="item.imgUrl"></image>
|
|
|
|
|
<view class="name">{{ item.product.name }}</view>
|
|
|
|
|
</view>
|
|
|
|
|
<template v-if="order.orderStatus.code == '520193049964319045'">
|
|
|
|
|
<view class="recovery-price">实际价格:{{ item.actualRecoveryPrice }}元</view>
|
|
|
|
|
<view class="recovery-weight">实际重量:{{ item.productActualWeight }}千克</view>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<view class="module">
|
|
|
|
|
<view class="title">订单编号:{{ order.orderNumber }}</view>
|
|
|
|
|
<view class="detail-title">回收品类:</view>
|
|
|
|
|
<view class="order-details">
|
|
|
|
|
<view class="detail-item" v-for="item in order.orderDetails" :key="item.id">
|
|
|
|
|
<view class="product-info">
|
|
|
|
|
<image class="img-url" :src="item.imgUrl"></image>
|
|
|
|
|
<view class="name">{{ item.product.name }}</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="recovery-price">回收价格:{{ item.recoveryPrice }}元</view>
|
|
|
|
|
<view class="recovery-price">实际价格:{{ item.actualRecoveryPrice }}元</view>
|
|
|
|
|
<view class="recovery-weight">实际重量:{{ item.productActualWeight }}千克</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="predict-weight">预估重量:{{ order.predictWeight?.desc }}</view>
|
|
|
|
|
<template v-if="order.recyclerInfo">
|
|
|
|
|
<view class="staffs-name">
|
|
|
|
|
回收员:{{ order.recyclerInfo?.staffsName }}</view>
|
|
|
|
|
<view class="staffs-phone">回收员手机号:{{ order.recyclerInfo?.mobilePhone }}</view>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
<view class="module info">
|
|
|
|
|
<view class="title">取件信息</view>
|
|
|
|
|
<view class="item">
|
|
|
|
|
<view class="label">取件时间:</view>
|
|
|
|
|
<view class="val">{{ order.appointmentTime }}</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="item" v-if="order.arrivalTime">
|
|
|
|
|
<view class="label">到达时间:</view>
|
|
|
|
|
<view class="val">{{ order.arrivalTime }}</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="item">
|
|
|
|
|
<view class="label">取件地址:</view>
|
|
|
|
|
<view class="val">{{ order.addressInfo?.receiveStreet }} {{ order.addressInfo?.receiveHouseNumber }}
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="item">
|
|
|
|
|
<view class="label">下单时间:</view>
|
|
|
|
|
<view class="val">{{ order.creatorTime }}</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="item" v-if="order.completeTime">
|
|
|
|
|
<view class="label">完成时间:</view>
|
|
|
|
|
<view class="val">{{ order.completeTime }}</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="item">
|
|
|
|
|
<view class="label">备注:</view>
|
|
|
|
|
<view class="val">{{ order.remark }}</view>
|
|
|
|
|
<view class="predict-weight">预估重量:{{ order.predictWeight?.desc || '-' }}</view>
|
|
|
|
|
<view class="predict-weight">下单时间:{{ order.creatorTime || '-' }}</view>
|
|
|
|
|
<view class="predict-weight" v-if="order.completeTime">完成时间:{{ order.completeTime || '-' }}</view>
|
|
|
|
|
<view class="predict-weight">备注:{{ order.remark || '-' }}</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="module info" v-if="isOrderTypeSH">
|
|
|
|
|
<view class="title">取件信息</view>
|
|
|
|
|
<view class="item">
|
|
|
|
|
<view class="label">取件时间:</view>
|
|
|
|
|
<view class="val">{{ order.appointmentTime }}</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="item" v-if="order.arrivalTime">
|
|
|
|
|
<view class="label">到达时间:</view>
|
|
|
|
|
<view class="val">{{ order.arrivalTime }}</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="item">
|
|
|
|
|
<view class="label">取件地址:</view>
|
|
|
|
|
<view class="val">{{ order.addressInfo?.receiveStreet }} {{ order.addressInfo?.receiveHouseNumber }}
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
<template v-if="isOderTypeTime">
|
|
|
|
|
<view class="module info">
|
|
|
|
|
<view class="title">小区信息</view>
|
|
|
|
@ -143,9 +135,9 @@ const getMemberOrderByIdData = async (orderId) => {
|
|
|
|
|
<view class="val">{{ order.housingEstateInfo.address }}</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="item">
|
|
|
|
|
<view class="label">回收时间:</view>
|
|
|
|
|
<view class="val">{{ order.housingEstateInfo.appointmentTimeStart }} -
|
|
|
|
|
{{ order.housingEstateInfo.appointmentTimeEnd }}</view>
|
|
|
|
|
<view class="label">定时时间:</view>
|
|
|
|
|
<view class="val">{{ order.housingEstateInfo?.appointmentTimeStart }} -
|
|
|
|
|
{{ order.housingEstateInfo?.appointmentTimeEnd }}</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
@ -188,8 +180,8 @@ const getMemberOrderByIdData = async (orderId) => {
|
|
|
|
|
</view>
|
|
|
|
|
<view class="item">
|
|
|
|
|
<view class="label">营业时间:</view>
|
|
|
|
|
<view class="val">{{ order.recycleStationInfo.appointmentTimeStart + ' - ' +
|
|
|
|
|
order.recycleStationInfo.appointmentTimeEnd }}</view>
|
|
|
|
|
<view class="val">{{ order.recycleStationInfo?.appointmentTimeStart + ' - ' +
|
|
|
|
|
order.recycleStationInfo?.appointmentTimeEnd }}</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
@ -322,7 +314,7 @@ page {
|
|
|
|
|
|
|
|
|
|
.predict-weight {
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
margin-top: 40rpx;
|
|
|
|
|
margin-top: 20rpx;
|
|
|
|
|
color: #3D3D3D;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -366,7 +358,6 @@ page {
|
|
|
|
|
color: #3D3D3D;
|
|
|
|
|
width: 160rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.val {
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
color: #3D3D3D;
|
|
|
|
|