|
|
@ -80,25 +80,28 @@ |
|
|
|
detailOptions: [], |
|
|
|
detailGiveupOptions: [], |
|
|
|
type: 'assemble', |
|
|
|
title:"" |
|
|
|
}; |
|
|
|
}, |
|
|
|
// 装配收货:type = 'assemble' |
|
|
|
// 预生产收货:type = 'predict' |
|
|
|
props: { |
|
|
|
title: { |
|
|
|
type: String, |
|
|
|
default: '' |
|
|
|
}, |
|
|
|
// props: { |
|
|
|
// title: { |
|
|
|
// type: String, |
|
|
|
// default: '' |
|
|
|
// }, |
|
|
|
// }, |
|
|
|
|
|
|
|
onLoad(option){ |
|
|
|
this.title = option.title |
|
|
|
}, |
|
|
|
|
|
|
|
mounted() { |
|
|
|
|
|
|
|
onShow(){ |
|
|
|
this.detailOptions = getDetailOption(); |
|
|
|
this.detailGiveupOptions = getDetailGiveupOption(); |
|
|
|
this.getList('refresh'); |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
onPullDownRefresh() { |
|
|
|
this.getList('refresh'); |
|
|
|
}, |
|
|
@ -122,19 +125,17 @@ |
|
|
|
this.$refs.filter.openFilter(); |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
onReachBottom() { |
|
|
|
console.log('onReachBottom', this.loadingType) |
|
|
|
//避免多次触发 |
|
|
|
if (this.loadingType == 'loading' || this.loadingType == 'noMore') { |
|
|
|
return; |
|
|
|
} |
|
|
|
this.getList("more"); |
|
|
|
}, |
|
|
|
|
|
|
|
methods: { |
|
|
|
onReachBottom() { |
|
|
|
console.log('onReachBottom', this.loadingType) |
|
|
|
//避免多次触发 |
|
|
|
if (this.loadingType == 'loading' || this.loadingType == 'noMore') { |
|
|
|
return; |
|
|
|
} |
|
|
|
this.getList("more"); |
|
|
|
}, |
|
|
|
refresh() { |
|
|
|
this.getList('refresh'); |
|
|
|
}, |
|
|
|
getList(type) { |
|
|
|
let that = this; |
|
|
|
uni.showLoading({ |
|
|
|