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.
38 lines
2.0 KiB
38 lines
2.0 KiB
<!--pages/moment/price/index.wxml-->
|
|
<wxs module="formate" src="../../../pages/formate.wxs"></wxs>
|
|
<cu-custom bgColor="bg-white" isBack="{{true}}">
|
|
<view slot="content">车辆排队情况</view>
|
|
</cu-custom>
|
|
|
|
<scroll-view scroll-y style="height: {{height}}rpx;" lower-threshold="200" bindscrolltolower="fetchPapersList">
|
|
<view class="bg-white list-empty" style="height:{{height}}rpx" wx:if="{{!orderList.length}}">
|
|
<view class="load-spinner text-gray" style="margin-bottom:24px" wx:if="{{loading}}" />
|
|
<image class="img-empty" src="/assets/image/list_empty.png" wx:else></image>
|
|
<view class="text-empty">{{loading? '正在加载' : '暂无数据'}}</view>
|
|
</view>
|
|
<view class="bg-white" wx:else>
|
|
<view class="flex flex-justify" style="padding:20rpx 30rpx">
|
|
<text class="text-df text-gray" style="flex:1.8">纸厂名称</text>
|
|
<text class="text-df text-gray" style="flex:1;text-align: center">昨日车辆</text>
|
|
<text class="text-df text-gray" style="flex:1;text-align: center">今日车辆</text>
|
|
</view>
|
|
<view wx:for-item="pageItem" wx:for-index="pageIndex" wx:for="{{orderList}}" wx:key="pageIndex">
|
|
<view class="flex flex-justify" wx:for="{{pageItem}}" wx:key="index" style="padding:20rpx 30rpx;border-top:2rpx solid #f3f3f3">
|
|
<text class="text-df text-balck" style="flex:1.8">{{item.paperMillName}}</text>
|
|
<text class="text-df text-balck" style="flex:1;text-align: center">{{item.yesterdayTotalQuantity || 0}}辆{{retainedString(item.yesterdayRetainedQuantity)}}</text>
|
|
<text class="text-df text-balck" style="flex:1;text-align: center">{{item.totalQuantity || 0}}辆{{retainedString(item.retainedQuantity)}}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</scroll-view>
|
|
|
|
<wxs module="retainedString">
|
|
// 状态。0:生产中,1:已发货,2:已完成
|
|
function retainedString(quatity) {
|
|
if(quatity > 0){
|
|
return '压' + quatity + '辆'
|
|
}
|
|
return ''
|
|
}
|
|
module.exports = retainedString
|
|
</wxs>
|