|
|
|
@ -11,35 +11,38 @@ |
|
|
|
<image class="img-empty" src="/assets/image/list_empty.png" wx:else></image> |
|
|
|
<view class="text-empty">{{loading? '正在加载' : '暂无数据'}}</view> |
|
|
|
</view> |
|
|
|
<van-index-bar index-list="{{null}}" wx:else> |
|
|
|
<van-index-anchor index="01月13日" /> |
|
|
|
<view wx:for-item="pageItem" wx:for-index="pageIndex" wx:for="{{orderList}}" wx:key="pageIndex"> |
|
|
|
<van-cell wx:for="{{pageItem}}" wx:key="index" data-page="{{pageIndex}}" data-index="{{index}}" bind:click="lookItem"> |
|
|
|
<view slot="title" class="flex flex-justify" style="align-items: flex-start"> |
|
|
|
<view style="height: 100rpx"> |
|
|
|
<view class="flex" class="text-sg text-black"> |
|
|
|
<text>客户名称:{{item.factoryCustomerName}}</text> |
|
|
|
<text wx:if="{{item.status != 1 && item.factoryCustomerMobile}}">({{item.factoryCustomerMobile}})</text> |
|
|
|
</view> |
|
|
|
<view class="text-sm text-gray">毛重:{{item.totalWeight}}KG</view> |
|
|
|
</view> |
|
|
|
<view class="flex flex-center" wx:if="{{item.status == 1}}" style="height: 100rpx"> |
|
|
|
<van-button plain type="default" custom-style="height:64rpx;width:132rpx" data-id="{{item.id}}" bind:click="cancelOrder">取消</van-button> |
|
|
|
<van-button plain type="info" custom-style="margin-left:24rpx;height:64rpx;width:132rpx" data-id="{{item.id}}" bind:click="priceOrder">定价</van-button> |
|
|
|
</view> |
|
|
|
<view class="flex flex-center" wx:if="{{item.status == 3}}" style="height: 100rpx"> |
|
|
|
<van-button plain type="info" custom-style="height:64rpx;width:132rpx" data-id="{{item.id}}" bind:click="checkOrder">审核</van-button> |
|
|
|
</view> |
|
|
|
<view class="flex flex-center" wx:if="{{item.status == 4}}"> |
|
|
|
<view class="text-df" style="color:#FA541C">待付款</view> |
|
|
|
</view> |
|
|
|
<view class="flex flex-center" wx:if="{{item.status == 5}}"> |
|
|
|
<view class="text-df" style="color:#028A00">已完成</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 class="flex flex-justify item-content" data-page="{{pageIndex}}" data-index="{{index}}" bindtap="lookItem"> |
|
|
|
<view style="height: 88rpx"> |
|
|
|
<view class="flex flex-center text-sg text-black"> |
|
|
|
<text>客户名称:{{item.factoryCustomerName}}</text> |
|
|
|
<text wx:if="{{item.status != 1 && item.factoryCustomerMobile}}">({{item.factoryCustomerMobile}})</text> |
|
|
|
</view> |
|
|
|
<view class="text-sm text-gray" style="margin-top:12rpx">毛重:{{item.totalWeight}}KG</view> |
|
|
|
</view> |
|
|
|
<view class="flex flex-center" wx:if="{{item.status == 1}}" style="height: 88rpx"> |
|
|
|
<van-button plain type="default" custom-style="height:64rpx;width:132rpx" data-id="{{item.id}}" |
|
|
|
bind:click="cancelOrder">取消</van-button> |
|
|
|
<van-button plain type="info" custom-style="margin-left:24rpx;height:64rpx;width:132rpx" data-id="{{item.id}}" |
|
|
|
bind:click="priceOrder">定价</van-button> |
|
|
|
</view> |
|
|
|
</van-cell> |
|
|
|
<view class="flex flex-center" wx:if="{{item.status == 3}}" style="height: 88rpx"> |
|
|
|
<van-button plain type="info" custom-style="height:64rpx;width:132rpx" data-id="{{item.id}}" |
|
|
|
bind:click="checkOrder">审核</van-button> |
|
|
|
</view> |
|
|
|
<view class="flex flex-center" wx:if="{{item.status == 4}}"> |
|
|
|
<view class="text-df" style="color:#FA541C">待付款</view> |
|
|
|
</view> |
|
|
|
<view class="flex flex-center" wx:if="{{item.status == 5}}"> |
|
|
|
<view class="text-df" style="color:#028A00">已完成</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</van-index-bar> |
|
|
|
</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}}" /> |
|
|
|
|