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

64 lines
3.2 KiB

<!--pages/process/order-list/index.wxml-->
<cu-custom bgColor="bg-white" isBack="{{true}}">
<view slot="content">出货单列表</view>
</cu-custom>
<van-tabs sticky active="{{tabIndex}}" color="#008AFF" bind:change="onTabChange" line-height="2px" swipe-threshold="5">
<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 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="bg-white" style="border-bottom:1rpx solid #f3f3f3" data-page="{{pageIndex}}" data-index="{{index}}" bindtap="lookItem">
<view class="flex flex-justify" style="padding:24rpx 32rpx 0rpx 32rpx;">
<view class="flex">
<text class="text-black text-sg text-bold">{{item.consigneeName}} — {{item.plateNumber}}</text>
</view>
<view class="text-df" style="color:#FA541C" wx:if="{{item.status == 0}}">待审核</view>
<view class="text-df" style="color:#FBBD08" wx:elif="{{item.status == 1}}">待收款</view>
<view class="text-df" style="color:#028A00" wx:elif="{{item.status == 2}}">已完成</view>
<view class="text-df" style="color:#CCCCCC" wx:elif="{{item.status == 3}}">已关闭</view>
</view>
<view class="flex flex-justify text-gray" style="padding:0rpx 32rpx;margin-top:16rpx">
<text>品类:{{item.productName}}</text>
<text>净重(公斤):{{item.netWeight || ''}}</text>
</view>
<view class="text-gray" style="padding:0rpx 32rpx 24rpx 32rpx;margin-top:16rpx">出货人:{{item.operaterName || ''}}</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>
<van-dialog id="van-dialog" />
<notification id="qn-notification"/>
<wxs module="statusOrder">
function statusOrder(status) {
if(status == 0){
return '待审核'
} else if(status == 1){
return '待收款'
} else if(status == 2){
return '已完成'
} else if(status == 3){
return '已关闭'
}
}
module.exports = statusOrder
</wxs>