|
|
@ -72,7 +72,7 @@ |
|
|
|
pageNo: 1, |
|
|
|
pageSize: 10, |
|
|
|
totalCount: 0, |
|
|
|
loadingType: "nomore", |
|
|
|
loadingType: "noMore", |
|
|
|
checkedToday: false, |
|
|
|
checkedWaitTask: false, |
|
|
|
todayTime: "", |
|
|
@ -94,13 +94,7 @@ |
|
|
|
this.getList('refresh'); |
|
|
|
}, |
|
|
|
|
|
|
|
onReachBottom() { |
|
|
|
//避免多次触发 |
|
|
|
if (this.loadingType == 'loading' || this.loadingType == 'nomore') { |
|
|
|
return; |
|
|
|
} |
|
|
|
this.getList("more"); |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
onPullDownRefresh() { |
|
|
|
this.getList('refresh'); |
|
|
@ -127,6 +121,14 @@ |
|
|
|
}, |
|
|
|
|
|
|
|
methods: { |
|
|
|
onReachBottom() { |
|
|
|
console.log('onReachBottom',this.loadingType) |
|
|
|
//避免多次触发 |
|
|
|
if (this.loadingType == 'loading' || this.loadingType == 'noMore') { |
|
|
|
return; |
|
|
|
} |
|
|
|
this.getList("more"); |
|
|
|
}, |
|
|
|
refresh() { |
|
|
|
this.getList('refresh'); |
|
|
|
}, |
|
|
@ -183,9 +185,9 @@ |
|
|
|
} else { |
|
|
|
updateTitle("报废收货任务(" + this.totalCount + ")"); |
|
|
|
} |
|
|
|
this.loadingType = "loadmore"; |
|
|
|
this.loadingType = "more"; |
|
|
|
if (list == null || list.length == 0) { |
|
|
|
this.loadingType = "nomore"; |
|
|
|
this.loadingType = "noMore"; |
|
|
|
return; |
|
|
|
} |
|
|
|
this.jobList = type === "refresh" ? list : this.jobList.concat(list); |
|
|
@ -332,7 +334,7 @@ |
|
|
|
goHome() |
|
|
|
}, |
|
|
|
onReach() { |
|
|
|
if (this.loadingType == 'loading' || this.loadingType == 'nomore') { |
|
|
|
if (this.loadingType == 'loading' || this.loadingType == 'noMore') { |
|
|
|
return; |
|
|
|
} |
|
|
|
this.getList("more"); |
|
|
@ -366,6 +368,11 @@ |
|
|
|
action: "==", |
|
|
|
value: result.label.itemCode |
|
|
|
}, |
|
|
|
{ |
|
|
|
column: "type", |
|
|
|
action: "==", |
|
|
|
value: this.type |
|
|
|
} |
|
|
|
// { |
|
|
|
// column: "fromLocationCode", |
|
|
|
// action: "==", |
|
|
|