|
|
@ -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'); |
|
|
|
}, |
|
|
@ -123,7 +126,6 @@ |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
methods: { |
|
|
|
onReachBottom() { |
|
|
|
console.log('onReachBottom', this.loadingType) |
|
|
|
//避免多次触发 |
|
|
@ -132,9 +134,8 @@ |
|
|
|
} |
|
|
|
this.getList("more"); |
|
|
|
}, |
|
|
|
refresh() { |
|
|
|
this.getList('refresh'); |
|
|
|
}, |
|
|
|
|
|
|
|
methods: { |
|
|
|
getList(type) { |
|
|
|
let that = this; |
|
|
|
uni.showLoading({ |
|
|
|