|
@@ -6,7 +6,9 @@
|
|
<view class="list-item-tit flex align_center justify_between">
|
|
<view class="list-item-tit flex align_center justify_between">
|
|
<view class="u-line" :style="{background: $config('primaryColor')}"></view>
|
|
<view class="u-line" :style="{background: $config('primaryColor')}"></view>
|
|
<view class="buyer">{{item.shelfName||'--'}}</view>
|
|
<view class="buyer">{{item.shelfName||'--'}}</view>
|
|
- <view>{{item.billStateDictValue}} <u-icon name="arrow-right" color="#969da3" size="28"></u-icon></view>
|
|
|
|
|
|
+ <view><text :style="{color:item.billState=='CLOSE'?'#ff5500':'#999'}">{{item.billStateDictValue}}</text>
|
|
|
|
+ <!-- <u-icon name="arrow-right" color="#969da3" size="28"></u-icon> -->
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
<view class="detail-list">
|
|
<view class="detail-list">
|
|
<view class="flex align_center justify_between" v-for="de in item.orderBillDetailApiEntityList">
|
|
<view class="flex align_center justify_between" v-for="de in item.orderBillDetailApiEntityList">
|
|
@@ -27,16 +29,16 @@
|
|
<view class="list-item-line flex align_center justify_between">
|
|
<view class="list-item-line flex align_center justify_between">
|
|
<view class="color_6 font_13">{{item.createDate || '--'}}</view>
|
|
<view class="color_6 font_13">{{item.createDate || '--'}}</view>
|
|
<view>
|
|
<view>
|
|
- 合计:¥{{item.settleAmount}}
|
|
|
|
|
|
+ 合计:<text class="amount">¥{{item.settleAmount}}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view v-if="listData && listData.length == 0 && status!='loading'">
|
|
<view v-if="listData && listData.length == 0 && status!='loading'">
|
|
- <u-empty :text="noDataText" mode="list" :img-width="200" :margin-top="30"></u-empty>
|
|
|
|
|
|
+ <u-empty :src="`/static/${$config('themePath')}/def_no_data@3x.png`" icon-size="150" :text="noDataText" mode="list" :margin-top="50"></u-empty>
|
|
</view>
|
|
</view>
|
|
- <view style="padding-bottom: 20upx;">
|
|
|
|
- <u-loadmore v-if="totalNum>listData.length || status=='loading'" :status="status" />
|
|
|
|
|
|
+ <view style="padding-bottom: 20upx;" v-if="listData.length">
|
|
|
|
+ <u-loadmore :status="status" />
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</scroll-view>
|
|
</scroll-view>
|
|
@@ -67,7 +69,7 @@
|
|
pageSize: 10,
|
|
pageSize: 10,
|
|
totalNum: 0,
|
|
totalNum: 0,
|
|
status: 'loadmore',
|
|
status: 'loadmore',
|
|
- noDataText: '暂无数据',
|
|
|
|
|
|
+ noDataText: '暂无货架订单',
|
|
toThousands,
|
|
toThousands,
|
|
dataInfo: null,
|
|
dataInfo: null,
|
|
scrollH: 300,
|
|
scrollH: 300,
|
|
@@ -118,12 +120,17 @@
|
|
this.listData = res.data.list || []
|
|
this.listData = res.data.list || []
|
|
}
|
|
}
|
|
this.totalNum = res.data.count || 0
|
|
this.totalNum = res.data.count || 0
|
|
|
|
+ if (this.listData.length == this.totalNum ) {
|
|
|
|
+ this.status = 'nomore'
|
|
|
|
+ } else {
|
|
|
|
+ this.status = 'loadmore'
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
this.listData = []
|
|
this.listData = []
|
|
this.totalNum = 0
|
|
this.totalNum = 0
|
|
this.noDataText = res.message
|
|
this.noDataText = res.message
|
|
|
|
+ this.status = 'nomore'
|
|
}
|
|
}
|
|
- this.status = "loadmore"
|
|
|
|
})
|
|
})
|
|
},
|
|
},
|
|
// scroll-view到底部加载更多
|
|
// scroll-view到底部加载更多
|
|
@@ -149,6 +156,9 @@
|
|
.font_13{
|
|
.font_13{
|
|
font-size: 26upx;
|
|
font-size: 26upx;
|
|
}
|
|
}
|
|
|
|
+ .amount{
|
|
|
|
+ font-weight: bold;
|
|
|
|
+ }
|
|
.sales-list-con{
|
|
.sales-list-con{
|
|
.sales-list-main{
|
|
.sales-list-main{
|
|
.sales-list-item{
|
|
.sales-list-item{
|