From 887cff43046392140273b062602dcc16611e30e2 Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Thu, 18 Jul 2024 10:11:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A0=87=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../job/ccProductReceiptJob.vue | 41 ++++++++++--------- 1 file changed, 21 insertions(+), 20 deletions(-) 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({