纸通宝小程序
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.
 

503 lines
27 KiB

<!--pages/agent/detail/index.wxml-->
<wxs module="agent" src="../../agent/index.wxs"></wxs>
<wxs module="formate" src="../../../pages/formate.wxs"></wxs>
<cu-custom bgColor="bg-white" isBack="{{true}}">
<view slot="content">订单详情</view>
</cu-custom>
<!-- 顶部的header -->
<view class="bg-{{agent.backStatus(orderInfo.status)}} flex" style="padding:30rpx" wx:if="{{orderInfo}}">
<text class="cuIcon-{{agent.iconStatus(orderInfo.status)}} text-white" style="font-size:30px"></text>
<text class="text-xxl text-white" style="margin-left:16rpx">{{agent.orderStatus(orderInfo.status)}}</text>
</view>
<!--订单在结算中和已完成-->
<view wx:if="{{orderInfo && (orderInfo.status == 53 || orderInfo.status == 54||(orderInfo.activityId!=null&&(orderInfo.status==51||orderInfo.status==52)))}}">
<view class="bg-white text-df text-gray" style="border-bottom:2rpx solid #f3f3f3;padding:24rpx 30rpx">
车辆信息({{orderInfo.orderItems.length}}辆车)
</view>
<view wx:for="{{orderInfoStep}}" wx:key="index" style="margin-top:{{index == 0 ? 0 : 16}}rpx">
<!-- <view class="bg-white flex flex-justify text-sg" style="padding: 24rpx 30rpx">
<text class="text-sg text-bold">货车车牌:{{item.logisticcsInfo.plateNumber}}</text>
<text class="text-black" style="padding: 4rpx 0rpx 4rpx 16rpx">{{agent.orderStatus(item.status)}}</text>
</view> -->
<!-- 车辆信息 -->
<wux-accordion-group>
<wux-accordion>
<view slot="header" class="flex flex-justify" style="width: 100%">
<view class="flex">
<text class="text-sg text-black text-bold">{{item.logisticcsInfo.plateNumber}}</text>
<text class="text-sg text-black text-bold" style="margin-left:8rpx">「{{item.paperCategoryName || orderInfo.paperCategoryName}}」</text>
</view>
<view class="text-df text-gray" style="padding-right:16rpx;">进度详情</view>
</view>
<wux-steps direction="vertical">
<wux-step wx:for-item="timeItem" wx:for-index="oindex" wx:for="{{item.orderItemTimeList}}" wx:key="oindex"
title="{{timeItem.description}}" status="{{statusStep(timeItem.status)}}" content="{{timeItem.time}}"/>
</wux-steps>
</wux-accordion>
</wux-accordion-group>
<view class="bg-white" wx:if="{{item.weightnoteInfo && item.weightnoteInfo.id}}" style="padding: 24rpx 30rpx">
<view class="flex flex-justify text-sg">
<text class="text-black">结算单价</text>
<text class="text-gray">{{formate.formatePrice2(item.weightnoteInfo.settleUtiPrice)}}</text>
</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx">
<text class="text-black">净重</text>
<text class="text-gray">{{formate.formateWeight(item.weightnoteInfo.netWeight)}}</text>
</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx" wx:if="{{item.weightnoteInfo.settleWeight}}">
<text class="text-black">结算重量</text>
<text class="text-gray">{{formate.formateWeight(item.weightnoteInfo.settleWeight)}}</text>
</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx" wx:if="{{item.weightnoteInfo.deductedPoint}}">
<text class="text-black">扣点</text>
<text class="text-gray">{{item.weightnoteInfo.deductedPoint}}%</text>
</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx">
<text class="text-black">代卖费</text>
<text class="text-gray">{{formate.formatePrice2(item.unitSurcharge==null?0:item.unitSurcharge)}}</text>
</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx">
<text class="text-black">调节费</text>
<text class="text-gray">{{item.adjustMoney > 0 ? '+' : ''}}{{formate.formateAmount(item.adjustMoney)}}元</text>
</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx">
<text class="text-black">磅单图片</text>
</view>
<view style="margin-top:20rpx">
<sudoku-image image-list="{{item.weightnoteInfo.imageUrls}}" square="{{true}}" clickable="{{true}}"></sudoku-image>
</view>
</view>
<!-- 预付款 -->
<view class="bg-white" style="padding: 24rpx 30rpx;margin-top:16rpx" wx:if="{{item.activityOrderAuditPassNum == 1}}">
<view class="flex flex-justify text-sg">
<text class="text-black">预计总金额</text>
<text style="color:#F5222D">{{formate.formateAmount(item.preTotalMoney)}}元</text>
</view>
<view class="flex flex-justify text-sm" style="margin-top:2rpx">
<text class="text-gray">结算单价 x 净重</text>
<text class="text-gray">{{formate.formatePrice2(item.unitPrice)}} x {{formate.formateWeight3(item.weightnoteInfo.netWeight)}}</text>
</view>
<view class="flex flex-justify text-sg" style="margin-top:24rpx;border-top:2rpx solid #f3f3f3;padding-top:16rpx">
<text class="text-black">首笔应收金额</text>
<text style="color:#F5222D">{{formate.formateAmount(item.prepayMoney)}}元</text>
</view>
<view class="flex flex-justify text-sm" style="margin-top:2rpx">
<text class="text-gray">预估总金额 x {{agent.getActivitySettleType(orderInfo.activitySettleType)}}</text>
<text class="text-gray">{{formate.formateAmount(item.preTotalMoney)}}元 x {{agent.getActivitySettleType(orderInfo.activitySettleType)}}</text>
</view>
<view class="flex flex-justify text-sg" style="margin-top:24rpx;border-top:2rpx solid #f3f3f3;padding-top:16rpx">
<text class="text-black">代卖费</text>
<text style="color:#F5222D">{{formate.formateAmount(item.proxyAmount) || 0}}元</text>
</view>
<view class="flex flex-justify text-sm" style="margin-top:2rpx">
<text class="text-gray">代卖费单价 x 净重</text>
<text class="text-gray">{{formate.formatePrice2(item.unitSurcharge)}} x {{formate.formateWeight3(item.weightnoteInfo.netWeight)}}</text>
</view>
<view class="flex text-sg" style="justify-content: flex-end;margin-top:24rpx;border-top:2rpx solid #f3f3f3;padding-top:24rpx">
<text class="text-black text-bold">首笔实收金额:</text>
<text class="text-gray" style="color:#F5222D">{{formate.formateAmount(item.preSettleMoney)}}元</text>
</view>
</view>
<!-- 尾款 -->
<view wx:elif="{{item.activityOrderAuditPassNum == 2}}">
<view class="bg-white" style="padding: 24rpx 30rpx;margin-top:16rpx">
<view class="flex flex-justify text-sg">
<text class="text-black">预计总金额</text>
<text style="color:#F5222D">{{formate.formateAmount(item.preTotalMoney)}}元</text>
</view>
<view class="flex flex-justify text-xs" style="margin-top:2rpx">
<text class="text-gray">结算单价 x 净重</text>
<text class="text-gray">{{formate.formatePrice2(item.unitPrice)}} x {{formate.formateWeight3(item.weightnoteInfo.netWeight)}}</text>
</view>
<view class="flex flex-justify text-sg" style="margin-top:24rpx;border-top:2rpx solid #f3f3f3;padding-top:16rpx">
<text class="text-black">首笔应收金额</text>
<text style="color:#F5222D">{{formate.formateAmount(item.prepayMoney)}}元</text>
</view>
<view class="flex flex-justify text-xs" style="margin-top:2rpx">
<text class="text-gray">预估总金额 x {{agent.getActivitySettleType(orderInfo.activitySettleType)}}</text>
<text class="text-gray">{{formate.formateAmount(item.preTotalMoney)}}元 x {{agent.getActivitySettleType(orderInfo.activitySettleType)}}</text>
</view>
<view class="flex flex-justify text-sg" style="margin-top:24rpx;border-top:2rpx solid #f3f3f3;padding-top:16rpx">
<text class="text-black">代卖费</text>
<text style="color:#F5222D">{{formate.formateAmount(item.proxyAmount) || 0}}元</text>
</view>
<view class="flex flex-justify text-xs" style="margin-top:2rpx">
<text class="text-gray">代卖费单价 x 净重</text>
<text class="text-gray">{{formate.formatePrice2(item.unitSurcharge)}} x {{formate.formateWeight3(item.weightnoteInfo.netWeight)}}</text>
</view>
<view class="flex flex-justify text-sg" style="margin-top:24rpx;border-top:2rpx solid #f3f3f3;padding-top:24rpx">
<text class="text-black text-bold">首笔实收金额:</text>
<text class="text-gray" style="color:#F5222D">{{formate.formateAmount(item.preSettleMoney)}}元</text>
</view>
</view>
<view class="bg-white" style="padding: 24rpx 30rpx;margin-top:16rpx">
<view class="flex flex-justify text-sg">
<text class="text-black">未结算金额</text>
<text style="color:#F5222D">{{formate.formateAmount(item.unSettleMoney)}}元</text>
</view>
<view class="flex flex-justify text-xs" style="margin-top:2rpx">
<text class="text-gray">单价 x 结算重量 - 首笔应收金额</text>
<text class="text-gray">{{formate.formatePrice2(item.unitPrice)}} x {{formate.formateWeight3(item.weightnoteInfo.settleWeight)}} - {{formate.formateAmount(item.prepayMoney)}}元</text>
</view>
<view class="flex flex-justify text-sg" style="margin-top:24rpx;border-top:2rpx solid #f3f3f3;padding-top:24rpx" wx:if="{{item.adjustMoney && item.adjustMoney != 0}}">
<text class="text-black">调节费</text>
<text style="color:#F5222D">-{{formate.formateAmount(item.adjustMoney)}}元</text>
</view>
<view class="flex flex-justify text-sg" style="margin-top:24rpx;border-top:2rpx solid #f3f3f3;padding-top:24rpx">
<text class="text-black text-bold">尾款实收金额:</text>
<text style="color:#F5222D">{{formate.formateAmount(item.finalPayMoney)}}元</text>
</view>
<view class="flex flex-justify text-sg" style=";margin-top:24rpx;border-top:2rpx solid #f3f3f3;padding-top:24rpx">
<text class="text-black text-bold">总收款金额:</text>
<text style="color:#F5222D">{{formate.formateAmount(item.finalSettlePrice)}}元</text>
</view>
</view>
</view>
<!-- 全款 -->
<view wx:if="{{item.paymentType == 3||orderInfo.activityId==null}}" class="bg-white" style="padding: 24rpx 30rpx;margin-top:16rpx">
<view class="flex flex-justify text-sg">
<text class="text-black">总金额</text>
<text style="color:#F5222D">{{formate.formateAmount(item.sumAmount)}}元</text>
</view>
<view class="flex flex-justify text-xs" style="margin-top:2rpx">
<text class="text-gray">结算单价 x 结算重量</text>
<text class="text-gray">{{formate.formatePrice2(item.weightnoteInfo.settleUtiPrice)}} x {{formate.formateWeight(item.weightnoteInfo.settleWeight)}}</text>
</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx;border-top:2rpx solid #f3f3f3;padding-top:16rpx">
<text class="text-black">代卖费</text>
<text style="color:#F5222D">{{formate.formateAmount(item.surcharge) || 0}}元</text>
</view>
<view class="flex flex-justify text-xs" style="margin-top:2rpx" wx:if="{{item.orderType == 1}}">
<text class="text-gray">代卖费单价 x 结算重量</text>
<text class="text-gray">{{formate.formatePrice2(item.unitSurcharge==null?0:item.unitSurcharge)}} x {{formate.formateWeight(item.weightnoteInfo.settleWeight)}}</text>
</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx;border-top:2rpx solid #f3f3f3;padding-top:16rpx" wx:if="{{item.adjustMoney && item.adjustMoney}}">
<text class="text-black">调节费</text>
<text style="color:#F5222D">{{item.adjustMoney > 0 ? '+' : ''}}{{formate.formateAmount(item.adjustMoney)}}元</text>
</view>
<view class="flex flex-justify text-xs" style="margin-top:2rpx" wx:else>
<text class="text-gray">代卖费单价 x 净重</text>
<text class="text-gray">{{formate.formatePrice2(item.unitSurcharge)}} x {{formate.formateWeight(item.weightnoteInfo.netWeight)}}</text>
</view>
<view class="flex flex-justify text-sg" style="margin-top:24rpx;border-top:2rpx solid #f3f3f3;padding-top:20rpx">
<text class="text-black text-bold">总收款金额:</text>
<text style="color:#F5222D">{{formate.formateAmount(item.weightnoteInfo.settlePrice)}}元</text>
</view>
</view>
</view>
<view class="bg-white margin-top" style="padding:24rpx 30rpx" wx:if="{{orderInfo.millSupplierId}}">
<view class="text-df text-gray" style="border-bottom:2rpx solid #f3f3f3;padding-bottom:24rpx">送货信息</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx">
<text class="text-black">纸厂开户账号</text>
<view class="flex flex-center">
<text class="text-gray" style="margin-right:12rpx">{{orderInfo.millSupplierId || ''}}</text>
<wux-button outline type="positive" size="copy" bind:click="clipboard" wx:if="{{orderInfo.millSupplierId}}">复制</wux-button>
</view>
</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx">
<text class="text-black">纸厂订单号</text>
<text class="text-gray">{{orderInfo.millDeliveryOrderId || ''}}</text>
</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx">
<text class="text-black">货到时间</text>
<text class="text-gray">{{orderInfo.paperMillDeliveryTime || ''}}</text>
</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx;align-items: flex-start">
<text class="text-black" style="min-width:180rpx">注意事项</text>
<text class="text-gray">{{orderInfo.attenssion || ''}}</text>
</view>
</view>
<view class="flex flex-justify bg-white margin-top" style="padding:30rpx" wx:if="{{orderInfo}}">
<image class="image-load" src="/assets/image/ico_address.png"></image>
<view style="margin-left:24rpx;flex:1">
<view class="text-sg">{{orderInfo.paperMillName}}</view>
<view class="text-sm text-gray" style="margin-top:8rpx">地址:{{orderInfo.paperMillAddress}}</view>
</view>
</view>
<view class="bg-white margin-top"></view>
<wux-accordion-group>
<wux-accordion>
<view slot="header" class="text-gray">预约信息</view>
<view class="flex flex-justify text-sg">
<text class="text-black">纸品品类</text>
<text class="text-gray">{{orderInfo.paperCategoryName}}</text>
</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx">
<text class="text-black">预估单价</text>
<text class="text-gray">{{formate.formatePrice2(orderInfo.paperCategoryPrice)}}</text>
</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx">
<text class="text-black">预计重量</text>
<text class="text-gray">{{formate.formateWeight(orderInfo.totalEstimatedWeight)}}</text>
</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx">
<text class="text-black">货车数量</text>
<text class="text-gray">{{orderInfo.orderItems.length}}</text>
</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx">
<text class="text-black">货到时间</text>
<text class="text-gray">{{orderInfo.deliveryTime}}</text>
</view>
</wux-accordion>
</wux-accordion-group>
</view>
<!--待送货、收货待审核-->
<view wx:elif="{{orderInfo && (orderInfo.status == 51 || orderInfo.status == 52)}}">
<view class="flex flex-justify bg-white" style="padding:30rpx" wx:if="{{orderInfo}}">
<image class="image-load" src="/assets/image/ico_address.png"></image>
<view style="margin-left:24rpx;flex:1">
<view class="text-sg">{{orderInfo.paperMillName}}</view>
<view class="text-sm text-gray" style="margin-top:8rpx">地址:{{orderInfo.paperMillAddress}}</view>
</view>
</view>
<view class="bg-white margin-top" style="padding:24rpx 30rpx">
<view class="text-df text-gray" style="border-bottom:2rpx solid #f3f3f3;padding-bottom:24rpx">送货信息</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx">
<text class="text-black">纸厂开户账号</text>
<view class="flex flex-center">
<text class="text-gray" style="margin-right:12rpx">{{orderInfo.millSupplierId || ''}}</text>
<wux-button outline type="positive" size="copy" bind:click="clipboard" wx:if="{{orderInfo.millSupplierId}}">复制</wux-button>
</view>
</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx">
<text class="text-black">纸厂订单号</text>
<text class="text-gray">{{orderInfo.millDeliveryOrderId || ''}}</text>
</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx">
<text class="text-black">货到时间</text>
<text class="text-gray">{{orderInfo.paperMillDeliveryTime || ''}}</text>
</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx">
<text class="text-black">信息费</text>
<text class="text-gray">{{formate.formatePrice2(orderInfo.unitSurcharge)}}</text>
</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx;align-items: flex-start">
<text class="text-black" style="min-width:180rpx">注意事项</text>
<text class="text-gray">{{orderInfo.attenssion || ''}}</text>
</view>
</view>
<view class="bg-white margin-top text-df text-gray" style="border-bottom:2rpx solid #f3f3f3;padding:24rpx 30rpx">
车辆信息({{orderInfo.orderItems.length}}辆车)
</view>
<wux-accordion-group>
<wux-accordion wx:for="{{orderInfoStep}}" wx:key="index">
<view slot="header" class="flex flex-justify" style="width: 100%">
<view class="flex">
<text class="text-sg text-black text-bold">{{item.logisticcsInfo.plateNumber}}</text>
<text class="text-sg text-black text-bold" style="margin-left:8rpx">「{{item.paperCategoryName || orderInfo.paperCategoryName}}」</text>
</view>
<view class="text-df text-gray" style="padding-right:16rpx;">进度详情</view>
</view>
<wux-steps direction="vertical">
<wux-step wx:for-item="timeItem" wx:for-index="oindex" wx:for="{{item.orderItemTimeList}}" wx:key="oindex"
title="{{timeItem.description}}" status="{{statusStep(timeItem.status)}}" content="{{timeItem.time}}"/>
</wux-steps>
</wux-accordion>
</wux-accordion-group>
<wux-accordion-group>
<wux-accordion>
<view slot="header" class="text-gray">预约信息</view>
<view class="flex flex-justify text-sg">
<text class="text-black">纸品品类</text>
<text class="text-gray">{{orderInfo.paperCategoryName}}</text>
</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx">
<text class="text-black">预估单价</text>
<text class="text-gray">{{formate.formatePrice2(orderInfo.paperCategoryPrice)}}</text>
</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx">
<text class="text-black">预计重量</text>
<text class="text-gray">{{formate.formateWeight(orderInfo.totalEstimatedWeight)}}</text>
</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx">
<text class="text-black">货车数量</text>
<text class="text-gray">{{orderInfo.orderItems.length}}</text>
</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx">
<text class="text-black">货到时间</text>
<text class="text-gray">{{orderInfo.deliveryTime}}</text>
</view>
</wux-accordion>
</wux-accordion-group>
</view>
<!--已关闭-->
<view wx:elif="{{orderInfo && orderInfo.status == 55}}">
<view class="bg-white text-df text-gray" style="border-bottom:2rpx solid #f3f3f3;padding:24rpx 30rpx">
车辆信息({{orderInfo.orderItems.length}}辆车)
</view>
<wux-accordion-group>
<wux-accordion wx:for="{{orderInfoStep}}" wx:key="index">
<view slot="header" class="flex flex-justify" style="width: 100%">
<view class="flex">
<text class="text-sg text-black text-bold">{{item.logisticcsInfo.plateNumber}}</text>
<text class="text-sg text-black text-bold" style="margin-left:8rpx">「{{item.paperCategoryName || orderInfo.paperCategoryName}}」</text>
</view>
<view class="text-df text-gray" style="padding-right:16rpx;">进度详情</view>
</view>
<wux-steps direction="vertical">
<wux-step wx:for-item="timeItem" wx:for-index="oindex" wx:for="{{item.orderItemTimeList}}" wx:key="oindex"
title="{{timeItem.description}}" status="{{statusStep(timeItem.status)}}" content="{{timeItem.time}}"/>
</wux-steps>
</wux-accordion>
</wux-accordion-group>
<view class="flex flex-justify bg-white margin-top" style="padding:30rpx" wx:if="{{orderInfo}}">
<image class="image-load" src="/assets/image/ico_address.png"></image>
<view style="margin-left:24rpx;flex:1">
<view class="text-sg">{{orderInfo.paperMillName}}</view>
<view class="text-sm text-gray" style="margin-top:8rpx">地址:{{orderInfo.paperMillAddress}}</view>
</view>
</view>
<view class="bg-white margin-top" style="padding:24rpx 30rpx" wx:if="{{orderInfo.millSupplierId}}">
<view class="text-df text-gray" style="border-bottom:2rpx solid #f3f3f3;padding-bottom:24rpx">送货信息</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx">
<text class="text-black">纸厂开户账号</text>
<view class="flex flex-center">
<text class="text-gray" style="margin-right:12rpx">{{orderInfo.millSupplierId || ''}}</text>
<wux-button outline type="positive" size="copy" bind:click="clipboard" wx:if="{{orderInfo.millSupplierId}}">复制</wux-button>
</view>
</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx">
<text class="text-black">纸厂订单号</text>
<text class="text-gray">{{orderInfo.millDeliveryOrderId || ''}}</text>
</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx">
<text class="text-black">货到时间</text>
<text class="text-gray">{{orderInfo.paperMillDeliveryTime || ''}}</text>
</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx">
<text class="text-black">信息费</text>
<text class="text-gray">{{formate.formatePrice2(orderInfo.unitSurcharge)}}</text>
</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx;align-items: flex-start">
<text class="text-black" style="min-width:180rpx">注意事项</text>
<text class="text-gray">{{orderInfo.attenssion}}</text>
</view>
</view>
<view class="bg-white margin-top" style="padding:24rpx 30rpx 0rpx 30rpx">
<view class="text-df text-gray" style="border-bottom:2rpx solid #f3f3f3;padding-bottom:24rpx">预约信息</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx">
<text class="text-black">纸品品类</text>
<text class="text-gray">{{orderInfo.paperCategoryName}}</text>
</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx">
<text class="text-black">预估单价</text>
<text class="text-gray">{{formate.formatePrice2(orderInfo.paperCategoryPrice)}}</text>
</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx">
<text class="text-black">预计重量</text>
<text class="text-gray">{{formate.formateWeight(orderInfo.totalEstimatedWeight)}}</text>
</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx">
<text class="text-black">货车数量</text>
<text class="text-gray">{{orderInfo.orderItems.length}}</text>
</view>
<view class="flex flex-justify text-sg" style="padding:20rpx 0rpx" >
<text class="text-black">货到时间</text>
<text class="text-gray">{{orderInfo.deliveryTime}}</text>
</view>
</view>
</view>
<!--待预约-->
<view wx:elif="{{orderInfo}}">
<view class="flex flex-justify bg-white margin-top" style="padding:30rpx" wx:if="{{orderInfo}}">
<image class="image-load" src="/assets/image/ico_address.png"></image>
<view style="margin-left:24rpx;flex:1">
<view class="text-sg">{{orderInfo.paperMillName}}</view>
<view class="text-sm text-gray" style="margin-top:8rpx">地址:{{orderInfo.paperMillAddress}}</view>
</view>
</view>
<view class="bg-white margin-top " style="padding:24rpx 30rpx 0rpx 30rpx">
<view id="info2" class="flex flex-justify" style="border-bottom:2rpx solid #f3f3f3;padding-bottom:24rpx">
<view class="text-df text-gray">预约信息</view>
</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx">
<text class="text-black">纸品品类</text>
<text class="text-gray">{{orderInfo.paperCategoryName}}</text>
</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx">
<text class="text-black">预估单价</text>
<text class="text-gray">{{formate.formatePrice2(orderInfo.paperCategoryPrice)}}</text>
</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx">
<text class="text-black">预计重量</text>
<text class="text-gray">{{formate.formateWeight(orderInfo.totalEstimatedWeight)}}</text>
</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx">
<text class="text-black">货车数量</text>
<text class="text-gray">{{orderInfo.orderItems.length}}</text>
</view>
<view class="flex flex-justify text-sg" style="padding:20rpx 0rpx">
<text class="text-black">货到时间</text>
<text class="text-gray">{{orderInfo.deliveryTime}}</text>
</view>
</view>
<view class="bg-white margin-top text-df text-gray" style="border-bottom:2rpx solid #f3f3f3;padding:24rpx 30rpx">
车辆信息({{orderInfo.orderItems.length}}辆车)
</view>
<wux-accordion-group>
<wux-accordion wx:for="{{orderInfoStep}}" wx:key="index">
<view slot="header" class="flex flex-justify" style="width: 100%">
<view class="flex">
<text class="text-sg text-black text-bold">{{item.logisticcsInfo.plateNumber}}</text>
<text class="text-sg text-black text-bold" style="margin-left:8rpx">「{{item.paperCategoryName || orderInfo.paperCategoryName}}」</text>
</view>
<view class="text-df text-gray" style="padding-right:16rpx;">进度详情</view>
</view>
<wux-steps direction="vertical">
<wux-step wx:for-item="timeItem" wx:for-index="oindex" wx:for="{{item.orderItemTimeList}}" wx:key="oindex"
title="{{timeItem.description}}" status="{{statusStep(timeItem.status)}}" content="{{timeItem.time}}"/>
</wux-steps>
</wux-accordion>
</wux-accordion-group>
</view>
<view class="bg-white margin-top"></view>
<wux-accordion-group wx:if="{{orderInfo}}">
<wux-accordion>
<view slot="header" class="text-gray">订单信息</view>
<view class="flex flex-justify text-sg">
<text class="text-black">订单编号</text>
<text class="text-gray">{{orderInfo.orderId}}</text>
</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx">
<text class="text-black">创建时间</text>
<text class="text-gray">{{orderInfo.createTime}}</text>
</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx;align-items: flex-start">
<text class="text-black" style="min-width:200rpx">订单备注</text>
<text class="text-gray">{{orderInfo.remark || ''}}</text>
</view>
</wux-accordion>
</wux-accordion-group>
<view style="height:16rpx"></view>
<view style="height:{{116 + safeBottom}}rpx;" wx:if="{{orderInfo && ((cancel && orderInfo.status == 51) || orderInfo.status == 50)}}"></view>
<view class="cu-bar bg-white foot flex flex-center" style="height:{{100 + safeBottom}}rpx;padding: 32rpx 32rpx {{safeBottom + 32}}rpx 32rpx;justify-content: flex-end"
wx:if="{{orderInfo && ((cancel && orderInfo.status == 51) || orderInfo.status == 50)}}">
<!-- <wux-button outline style="margin-right:24rpx" type="assertive" size="agent" bind:click="refuseOrder" wx:if="{{orderInfo.status == 51}}">更改预约</wux-button> -->
<wux-button outline type="stable" size="agent" bind:click="cancelOrder" wx:if="{{orderInfo.status == 50 || orderInfo.status == 51}}">取消订单</wux-button>
</view>
<wux-dialog id="wux-dialog" />
<wxs module="statusStep">
function statusStep(status) {
return status==1?"process":"wait";
}
module.exports = statusStep
</wxs>