纸通宝SAAS仓库
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.
 

90 lines
3.0 KiB

<!--pages/message/index.wxml-->
<wxs module="formate" src="../../../pages/formate.wxs"></wxs>
<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" radius="4" 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>
<van-steps dot direction="column" wx:key="index" wx:else>
<van-step title="已出餐"></van-step>
<van-step title="已出餐"></van-step>
</van-steps>
</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>