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

98 lines
7.3 KiB

<!--pages/process/order-list/index.wxml-->
<cu-custom bgColor="bg-white" isBack="{{true}}">
<view slot="content">{{title}}</view>
</cu-custom>
<van-tabs sticky active="{{tabIndex}}" color="#008AFF" bind:change="onTabChange" line-height="2px" swipe-threshold="4">
<van-tab wx:for="{{tabList}}" wx:key="index" title="{{item.name}}" title-style="color:{{tabIndex==index?'#008AFF':'#333333'}}"></van-tab>
</van-tabs>
<refresh-view id="refresh" bind:refresh="onRefreshList" height="{{height}}" bind:loadmore="fetchOrderList">
<view class="list-empty" style="height:{{height}}rpx" wx:if="{{!orderList.length}}">
<view style="margin-bottom:24px" wx:if="{{loading}}">
<van-loading type="spinner" size="32" />
</view>
<image class="img-empty" src="/assets/image/list_empty.png" wx:else></image>
<view class="text-empty">{{loading? '正在加载' : '暂无数据'}}</view>
</view>
<view wx:for-item="pageItem" wx:for-index="pageIndex" wx:for="{{orderList}}" wx:key="pageIndex">
<view class="bg-white" wx:for="{{pageItem}}" wx:key="index">
<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 style="background-color:#f3f3f3;height:16rpx" wx:else></view>
<view class="item-content" data-page="{{pageIndex}}" data-index="{{index}}" bindtap="lookItem">
<view class="flex flex-justify" style="border-bottom: 1rpx solid #f3f3f3;padding-bottom:16rpx">
<view class="flex flex-center">
<van-icon name="/assets/image/icon-logoc.png" size="56rpx"/>
<view class="flex flex-center text-sg text-black van-ellipsis text-bold" style="justify-content: flex-start;max-width: 480rpx;">
<text style="margin-left:24rpx;text-align: center;line-height: 18px;">{{item.factoryCustomerName}}</text>
<text style="text-align: center;line-height: 18px;" wx:if="{{item.factoryCustomerMobile}}">-{{item.factoryCustomerMobile}}</text>
</view>
</view>
<view class="text-df" style="color:#FA541C" wx:if="{{item.orderStatus == 0}}">待收货</view>
<view class="text-df" style="color:#028A00" wx:elif="{{item.orderStatus == 1}}">待定价</view>
<view class="text-df" style="color:#028A00" wx:elif="{{item.orderStatus == 3}}">过磅待审核</view>
<view class="text-df" style="color:#028A00" wx:elif="{{item.orderStatus == 4}}">待付款</view>
<view class="text-df" style="color:#028A00" wx:elif="{{item.orderStatus == 41}}">代付中</view>
<view class="text-df" style="color:#028A00" wx:elif="{{item.orderStatus == 42}}">待结算</view>
<view class="text-df" style="color:#028A00" wx:elif="{{item.orderStatus == 5}}">已完成</view>
<view class="text-df" style="color:#999999" wx:elif="{{item.orderStatus == 6}}">已取消</view>
</view>
<view style="position:relative">
<view class="flex flex-justify" style="margin-top:12rpx" wx:if="{{item.productCategoryName}}">
<view class="text-sm text-black" style="margin-left:80rpx">品类:</view>
<view class="text-sm text-black">{{item.productCategoryName}}</view>
</view>
<view class="flex flex-justify" style="margin-top:12rpx">
<view class="text-sm text-black" style="margin-left:80rpx">车牌号码:</view>
<view class="text-sm text-black">{{item.plateNumber || '- -'}}</view>
</view>
<view class="flex flex-justify" style="margin-top:12rpx">
<view class="text-sm text-black" style="margin-left:80rpx">结算重量(公斤):</view>
<view class="text-sm text-black">{{item.settleWeight || '- -'}}</view>
</view>
<view class="flex flex-justify" style="margin-top:12rpx">
<view class="text-sm text-black" style="margin-left:80rpx">结算金额(元):</view>
<view class="text-sm text-black">{{item.adjustedPrice || item.settlePrice || '- -'}}</view>
</view>
<image class="item-icon" src="/assets/image/icon-finish.png" wx:if="{{item.orderStatus == 5}}"></image>
<image class="item-icon" src="/assets/image/icon-delete.png" wx:if="{{item.orderStatus == 6}}"></image>
<image class="item-icon" src="/assets/image/icon-delete.png" wx:elif="{{item.status == 4 && item.isModify}}"></image>
</view>
<view class="flex" style="justify-content: flex-end;margin-top:16rpx">
<!-- <van-button round type="danger" custom-style="height:64rpx;width:200rpx" data-id="{{item.orderId}}"
bind:click="cancelItem" wx:if="{{item.orderStatus != 6 && item.orderStatus != 41 && item.orderStatus != 42}}">取消订单</van-button> -->
<van-button round type="warning" custom-style="margin-left:24rpx;height:64rpx;width:200rpx" data-page="{{pageIndex}}" data-index="{{index}}"
bind:click="editItem" wx:if="{{item.orderStatus == 0}}">修改订单</van-button>
<van-button round type="info" custom-style="margin-left:24rpx;height:64rpx;width:200rpx" data-page="{{pageIndex}}" data-index="{{index}}"
bind:click="lookItem" wx:if="{{item.orderStatus == 0}}">收货</van-button>
<van-button round type="info" custom-style="margin-left:24rpx;height:64rpx;width:200rpx" data-page="{{pageIndex}}" data-index="{{index}}"
bind:click="lookItem" wx:if="{{item.orderStatus == 1}}">确认定价</van-button>
<van-button round type="warning" custom-style="margin-left:24rpx;height:64rpx;width:200rpx" data-id="{{item.orderId}}"
bind:click="repriceOrder" wx:if="{{item.orderStatus == 3}}">重新定价</van-button>
<van-button round type="info" custom-style="margin-left:24rpx;height:64rpx;width:200rpx" data-page="{{pageIndex}}" data-index="{{index}}"
bind:click="lookItem" wx:if="{{item.orderStatus == 3}}">审核订单</van-button>
<van-button round type="info" custom-style="margin-left:24rpx;height:64rpx;width:200rpx" data-page="{{pageIndex}}" data-index="{{index}}"
bind:click="paymentItem" wx:if="{{item.orderStatus == 4 && admin}}">去支付</van-button>
<van-button round type="info" custom-style="margin-left:24rpx;height:64rpx;width:200rpx" data-page="{{pageIndex}}" data-index="{{index}}"
bind:click="paymentItem" wx:if="{{item.orderStatus == 42 && admin}}">去结算</van-button>
<van-button round type="default" custom-style="height:64rpx;margin-left:24rpx;width:200rpx" data-id="{{item.orderId}}"
bind:click="orderLogger" wx:if="{{item.orderStatus == 5 || item.orderStatus == 6}}">查看日志</van-button>
</view>
</view>
</view>
</view>
<!--加载更多的UI-->
<van-divider content-position="center" wx:if="{{ form.pageNum > 1}}" custom-style="padding:0rpx 120rpx">
<van-loading type="spinner" size="16" wx:if="{{!finished}}" />
<text class="text-sm" style="margin-left:8rpx">{{finished?'到底啦~':'加载中...'}}</text>
</van-divider>
</refresh-view>
<view style="border-radius: 50rpx;position: fixed;bottom:160rpx;right:50rpx" wx:if="{{admin}}">
<van-button round type="info" icon="plus" bind:click="addOutside" custom-style="width: 100rpx;height: 100rpx;"></van-button>
</view>
<van-dialog id="van-dialog" />
<notification id="qn-notification"/>