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.
103 lines
3.9 KiB
103 lines
3.9 KiB
<wxs module="formate" src="../../../pages/formate.wxs"></wxs>
|
|
<view wx:if="{{item.isShowDateQd}}" style="padding: 12rpx 36rpx 8rpx 36rpx;height:56rpx;"><text>{{stringUtil.sub(item.createTime)}}</text></view>
|
|
<view class="flex flex-justify item-content" style="border-bottom:2rpx solid #f3f3f3" bindtap="lookItem">
|
|
<view class="flex flex-center">
|
|
<wux-image width="{{20}}" height="{{20}}" shape="circle" src="{{item.logoImg}}" mode="aspectFill">
|
|
<image class="image-load" slot="loading" src="/assets/image/def_image.png"></image>
|
|
<image class="image-load" slot="error" src="/assets/image/def_image.png"></image>
|
|
</wux-image>
|
|
<highlight-text content="{{item.paperMillName}}" keyword="{{keyword}}" class="text-sg text-bold" style="margin-left:8rpx"/>
|
|
</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 text-df" style="width:75%">
|
|
<highlight-text content="{{orderItem.logisticcsInfo.plateNumber}}" keyword="{{keyword}}" class="text-df text-bold"/>
|
|
<text class="text-bold">「</text>
|
|
<highlight-text content="{{orderItem.paperCategoryName || item.paperCategoryName}}" keyword="{{keyword}}" class="text-df text-bold"/>
|
|
<text class="text-bold">」</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>
|
|
<wux-timeline pending wx:else>
|
|
<wux-timeline-item custom>
|
|
<text slot="dot" class="cuIcon-title" style="font-size: 16px;color:#E7643B"></text>
|
|
<view style="height:54rpx;margin-top:-4rpx;color:#E7643B">{{orderStatus(orderItem.displayStatus)}}</view>
|
|
</wux-timeline-item>
|
|
<wux-timeline-item custom>
|
|
<text slot="dot" class="cuIcon-title" style="font-size: 16px;color:#999999"></text>
|
|
<view class="text-sm text-gray" style="text-align: right">{{orderNextStatus(orderItem.displayStatus,orderItem.activityOrderAuditPassnum)}}</view>
|
|
</wux-timeline-item>
|
|
</wux-timeline>
|
|
</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>
|
|
<wxs module="stringUtil">
|
|
var sub = function(val) {
|
|
return val.substring(0, 10)
|
|
}
|
|
module.exports.sub = sub;
|
|
</wxs>
|