|
@@ -13,12 +13,12 @@
|
|
|
:show-action="false"
|
|
|
placeholder="请输入产品编码查询"></u-search>
|
|
|
</view>
|
|
|
- <!-- <view class="icon" @click="toScan">
|
|
|
- <u-icon name="scan"></u-icon>
|
|
|
+ <!-- <view class="icon">
|
|
|
</view> -->
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="productList-body">
|
|
|
+ <view v-if="status == 'loading'"><u-loadmore :status="status" :load-text="loadText" /></view>
|
|
|
<view class="partList-list-box" v-for="item in productList" :key="item.shelfCartSn">
|
|
|
<view class="flex align_center flex_1">
|
|
|
<view class="pimgs">
|
|
@@ -55,7 +55,7 @@
|
|
|
<view v-if="productList && productList.length == 0 && status == 'nomore'">
|
|
|
<u-empty :text="noDataText" mode="list" :img-width="200" :margin-top="60"></u-empty>
|
|
|
</view>
|
|
|
- <view style="padding: 20upx;" v-if="status != 'nomore'">
|
|
|
+ <view style="padding: 20upx;" v-if="productList.length && status != 'nomore'">
|
|
|
<u-loadmore :status="status" :load-text="loadText" />
|
|
|
</view>
|
|
|
</view>
|
|
@@ -134,7 +134,6 @@
|
|
|
shelfSn: this.shelfSn,
|
|
|
shelfTierCode: this.layer
|
|
|
}
|
|
|
- this.productList = []
|
|
|
console.log(params)
|
|
|
this.status = 'loading'
|
|
|
queryProductPage(params).then(res => {
|
|
@@ -145,6 +144,9 @@
|
|
|
this.total = res.data.page.count
|
|
|
this.status = 'loadmore'
|
|
|
}else{
|
|
|
+ this.productList = []
|
|
|
+ this.shelfPlaceCode = ''
|
|
|
+ this.total = 0
|
|
|
this.noDataText = '没有搜索到相关产品'
|
|
|
this.status = 'nomore'
|
|
|
}
|