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

89 lines
3.5 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-info orderInfo="{{orderInfo}}" />
<!-- -------------------- -->
<!-- ------特殊信息------ -->
<!-- -------------------- -->
<view wx:if="{{orderInfo && (orderInfo.status == 50 || orderInfo.status == 51)}}">
<view class="flex flex-justify bg-white margin-top" style="padding:30rpx">
<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 wx:if="{{orderInfo.status==50}}">
<reserve-info orderInfo="{{orderInfo}}" />
<view style="height:16rpx"> </view>
</view>
<!-- 待送货状态下送货信息放在前面 -->
<delivery-info orderInfo="{{orderInfo}}" wx:if="{{orderInfo.status==51}}" />
</view>
<!-- -------------------- -->
<!-- ------车辆信息------ -->
<!-- -------------------- -->
<!-- 总共多少辆车,单独放在顶部 -->
<view style="height:16rpx"> </view>
<!-- 每一辆车,进度信息和结算信息 -->
<view wx:for="{{orderInfoStep}}" wx:key="index" style="margin-top:{{index == 0 ? 0 : 16}}rpx">
<view class="bg-white text-df text-gray" style="border-bottom:2rpx solid #f3f3f3;padding:24rpx 30rpx">
车辆信息{{index+1}}
</view>
<!-- 进度 -->
<item-car-info orderInfo="{{orderInfo}}" item="{{item}}" />
<!-- 磅单 -->
<pound-info orderInfo="{{orderInfo}}" item="{{item}}" />
<!-- 金额 -->
<item-money-info orderInfo="{{orderInfo}}" item="{{item}}" />
</view>
<!-- -------------------- -->
<!-- ------送货信息------ -->
<!-- -------------------- -->
<!-- 预约和送货状态下的送货信息已在前面展示过了,所以不需要展示 -->
<delivery-info orderInfo="{{orderInfo}}" wx:if="{{orderInfo.status>51}}" />
<!-- -------------------- -->
<!-- ------预约信息------ -->
<!-- -------------------- -->
<!-- 预约和送货状态下的预约信息已在前面展示过了,所以不需要展示 -->
<reserve-info orderInfo="{{orderInfo}}" wx:if="{{orderInfo.status>51}}" />
<!-- -------------------- -->
<!-- ------订单信息------ -->
<!-- -------------------- -->
<order-info orderInfo="{{orderInfo}}" />
<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>