diff --git a/src/pages/productReceipt/job/ccProductReceiptJob.vue b/src/pages/productReceipt/job/ccProductReceiptJob.vue index 6eb4f6a4..fb668b1e 100644 --- a/src/pages/productReceipt/job/ccProductReceiptJob.vue +++ b/src/pages/productReceipt/job/ccProductReceiptJob.vue @@ -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({