You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
101 lines
3.8 KiB
101 lines
3.8 KiB
<!--pages/message/index.wxml-->
|
|
<wxs module="formate" src="../../../pages/formate.wxs"></wxs>
|
|
<view style="background-color:#f3f3f3;" wx:if="{{item.tipsTime}}">
|
|
<text class="text-sg" style="line-height:64rpx;padding-left:32rpx">{{item.tipsTime}}</text>
|
|
</view>
|
|
<view class="flex flex-justify item-content" style="border-bottom:2rpx solid #f3f3f3" bindtap="lookItem">
|
|
<view class="flex flex-center">
|
|
<van-image use-loading-slot width="40rpx" height="40rpx" round lazy-load src="{{item.logoImg}}">
|
|
<image class="image-load" slot="loading" src="/assets/image/def_image.png"></image>
|
|
</van-image>
|
|
<text class="text-sg text-bold" style="margin-left:8rpx">{{item.paperMillName}}</text>
|
|
</view>
|
|
<view class="page-name" style="color:#8992A3">{{item.orderItems.length}}辆车</view>
|
|
</view>
|
|
<view class="bg-white" style="padding: 24rpx 30rpx" bindtap="lookItem">
|
|
<view wx:for-item="orderItem" wx:for-index="oindex" wx:for="{{item.orderItems}}" wx:key="oindex">
|
|
<view style="height:24rpx" wx:if="{{oindex != 0 }}"></view>
|
|
<view class="item-order flex flex-justify">
|
|
<view style="width:75%">
|
|
<view class="flex flex-justify text-df" style="width:75%">
|
|
<text class="text-bold">{{orderItem.logisticcsInfo.plateNumber}}「{{ orderItem.paperCategoryName || item.paperCategoryName }}」</text>
|
|
<!-- <text class="text-bold" style="margin-right:45rpx"></text> -->
|
|
</view>
|
|
<view class="text-sm text-gray" style="margin-top:12rpx">{{orderItem.promptMessage}}</view>
|
|
</view>
|
|
<view style="margin-top:12rpx">
|
|
<view class="flex" style="height: 80rpx" wx:if="{{orderItem.status == 54 || orderItem.status == 55}}">
|
|
<text class="cuIcon-title" style="font-size: 16px;color:#E7643B"></text>
|
|
<view style="margin-top:-4rpx;color:#E7643B">{{orderStatus(orderItem.status)}}</view>
|
|
</view>
|
|
<view class="flex" wx:else>
|
|
<view class="flex flex-center flex-column">
|
|
<text slot="dot" class="cuIcon-title" style="font-size: 16px;color:#E7643B"></text>
|
|
<text style="height:24rpx;width:2rpx;border-left:4rpx dashed #ccc;border-left-style: dotted;"></text>
|
|
<text slot="dot" class="cuIcon-title" style="font-size: 16px;color:#999999"></text>
|
|
</view>
|
|
<view class="flex flex-center flex-column">
|
|
<view style="margin-top:-6rpx;color:#E7643B;width:90rpx">{{orderStatus(orderItem.displayStatus)}}</view>
|
|
<text style="height:24rpx;width:2rpx;"></text>
|
|
<view class="text-sm text-gray" style="text-align: right;width:76rpx">{{orderNextStatus(orderItem.displayStatus,orderItem.activityOrderAuditPassnum)}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<wxs module="orderStatus">
|
|
function orderStatus(status) {
|
|
if (status == 50) {
|
|
return '待预约'
|
|
} else if (status == 51) {
|
|
return '待送货'
|
|
} else if (status == 52) {
|
|
return '待审核'
|
|
} else if (status == 53) {
|
|
return '结算中'
|
|
} else if (status == 54) {
|
|
return '已完成'
|
|
} else if (status == 55) {
|
|
return '已关闭'
|
|
} else if (status == 56) {
|
|
return '待质检'
|
|
} else if (status == 57) {
|
|
return '待审核'
|
|
} else if (status == 58) {
|
|
return '结算中'
|
|
}
|
|
return ''
|
|
}
|
|
|
|
module.exports = orderStatus;
|
|
</wxs>
|
|
|
|
|
|
<wxs module="orderNextStatus">
|
|
|
|
function orderNextStatus(status,activityOrderAuditPassnum) {
|
|
if (status == 50) {
|
|
return '待送货'
|
|
} else if (status == 51) {
|
|
return '待审核'
|
|
} else if (status == 52) {
|
|
return '结算中'
|
|
} else if (status == 53) {
|
|
return activityOrderAuditPassnum==2?"待质检":"已完成"
|
|
} else if (status == 54) {
|
|
return ''
|
|
} else if (status == 55) {
|
|
return ''
|
|
} else if (status == 56) {
|
|
return '待审核'
|
|
} else if (status == 57) {
|
|
return '结算中'
|
|
} else if (status == 58) {
|
|
return '已完成'
|
|
}
|
|
return ''
|
|
}
|
|
module.exports = orderNextStatus;
|
|
</wxs>
|