|
@@ -9,7 +9,7 @@
|
|
</view>
|
|
</view>
|
|
<view v-if="list.length > 0">
|
|
<view v-if="list.length > 0">
|
|
<view class="listBox" v-for="(item, i) in list" :key="i">
|
|
<view class="listBox" v-for="(item, i) in list" :key="i">
|
|
- <view class="listBox_l"><image :src="item.images" width="100%" height="100%"></image></view>
|
|
|
|
|
|
+ <view class="listBox_l"><image :src="item.images ?item.images :`../../static/${theme}/def_img@2x.png`" width="100%" height="100%"></image></view>
|
|
<view class="listBox_r">
|
|
<view class="listBox_r">
|
|
<view class="type">{{ item.productCode }}</view>
|
|
<view class="type">{{ item.productCode }}</view>
|
|
<view class="tit">{{ item.productName }}i</view>
|
|
<view class="tit">{{ item.productName }}i</view>
|
|
@@ -63,7 +63,7 @@ export default {
|
|
sortList: [
|
|
sortList: [
|
|
{
|
|
{
|
|
id: 1,
|
|
id: 1,
|
|
- name: '最近次VIN扫描时间降序'
|
|
|
|
|
|
+ name: '最近一次VIN扫描时间降序'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
id: 2,
|
|
id: 2,
|
|
@@ -74,7 +74,7 @@ export default {
|
|
name: '适配无货降序'
|
|
name: '适配无货降序'
|
|
}
|
|
}
|
|
],
|
|
],
|
|
- isSortFlag: -1,
|
|
|
|
|
|
+ isSortFlag: 0,
|
|
list: [],
|
|
list: [],
|
|
shelfSn: '',
|
|
shelfSn: '',
|
|
pageNo: 1,
|
|
pageNo: 1,
|
|
@@ -86,6 +86,7 @@ export default {
|
|
};
|
|
};
|
|
},
|
|
},
|
|
onLoad(options) {
|
|
onLoad(options) {
|
|
|
|
+ this.theme = getApp().globalData.theme
|
|
this.shelfSn = options.shelfSn;
|
|
this.shelfSn = options.shelfSn;
|
|
let ajaxData = {
|
|
let ajaxData = {
|
|
pageNo: this.pageNo,
|
|
pageNo: this.pageNo,
|
|
@@ -122,7 +123,7 @@ export default {
|
|
this.isSortFlag = i;
|
|
this.isSortFlag = i;
|
|
},
|
|
},
|
|
reset() {
|
|
reset() {
|
|
- this.isSortFlag = -1;
|
|
|
|
|
|
+ this.isSortFlag = 0;
|
|
let ajaxData = {
|
|
let ajaxData = {
|
|
pageNo: 1,
|
|
pageNo: 1,
|
|
pageSize: this.pageSize,
|
|
pageSize: this.pageSize,
|
|
@@ -131,13 +132,13 @@ export default {
|
|
this.loadData(ajaxData);
|
|
this.loadData(ajaxData);
|
|
},
|
|
},
|
|
handelSort() {
|
|
handelSort() {
|
|
- if (this.isSortFlag == -1) {
|
|
|
|
- uni.showToast({
|
|
|
|
- title: '请选择排序方式',
|
|
|
|
- icon: 'none',
|
|
|
|
- duration: 4000
|
|
|
|
- });
|
|
|
|
- } else {
|
|
|
|
|
|
+ // if (this.isSortFlag == -1) {
|
|
|
|
+ // uni.showToast({
|
|
|
|
+ // title: '请选择排序方式',
|
|
|
|
+ // icon: 'none',
|
|
|
|
+ // duration: 4000
|
|
|
|
+ // });
|
|
|
|
+ // } else {
|
|
var ajaxData = {
|
|
var ajaxData = {
|
|
shelfSn: this.shelfSn,
|
|
shelfSn: this.shelfSn,
|
|
pageNo: this.pageNo,
|
|
pageNo: this.pageNo,
|
|
@@ -150,11 +151,10 @@ export default {
|
|
} else {
|
|
} else {
|
|
ajaxData.orderBy = 'xvfp.not_stock_count desc,xp.code asc';
|
|
ajaxData.orderBy = 'xvfp.not_stock_count desc,xp.code asc';
|
|
}
|
|
}
|
|
- this.isSortFlag = -1;
|
|
|
|
this.sortShow=false;
|
|
this.sortShow=false;
|
|
this.loadData(ajaxData);
|
|
this.loadData(ajaxData);
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
+ // }
|
|
},
|
|
},
|
|
//到底部加载更多
|
|
//到底部加载更多
|
|
onReachBottom() {
|
|
onReachBottom() {
|