From ac3e5f0b15c419c2fb96da3584197cf3c1431716 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BF=97=E5=9B=BD?= <854933521@qq.com> Date: Tue, 29 Oct 2024 09:22:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BB=BB=E5=8A=A1=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E4=B8=8B=E6=8B=89=E4=B8=8D=E5=88=B7=E6=96=B0=E5=92=8C?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=E5=88=97=E8=A1=A8=E4=B8=8D=E5=88=B7=E6=96=B0?= =?UTF-8?q?=202024/8/8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/inventoryMove/job/holdToOkMoveJob.vue | 16 +++++++++------- .../inventoryMove/job/holdToScrapMoveJob.vue | 16 +++++++++------- src/pages/inventoryMove/job/nokToHoldMoveJob.vue | 16 ++++++++++++---- src/pages/inventoryMove/job/okToHoldMoveJob.vue | 16 +++++++++------- src/pages/inventoryMove/job/okToScrapMoveJob.vue | 16 +++++++++------- .../inventoryMove/job/scrapToHoldMoveJob.vue | 16 +++++++++------- 6 files changed, 57 insertions(+), 39 deletions(-) diff --git a/src/pages/inventoryMove/job/holdToOkMoveJob.vue b/src/pages/inventoryMove/job/holdToOkMoveJob.vue index 80bf9d71..22350718 100644 --- a/src/pages/inventoryMove/job/holdToOkMoveJob.vue +++ b/src/pages/inventoryMove/job/holdToOkMoveJob.vue @@ -12,20 +12,22 @@ import comMoveJob from '@/pages/inventoryMove/coms/comMoveJob.vue' const receiptjob = ref() const title = ref('') onShow(() => { - nextTick(() => { - if (receiptjob.value != undefined) { - receiptjob.value.refresh() - } - }) + if(receiptjob.value){ + receiptjob.value.refresh() + } }) onLoad((option) => { title.value = option.title }) onPullDownRefresh(() => { - receiptjob.value.refresh() + if(receiptjob.value){ + receiptjob.value.refresh() + } }) onReachBottom(() => { - receiptjob.value.onReach() + if(receiptjob.value){ + receiptjob.value.onReach() + } }) onNavigationBarButtonTap((e) => { if (e.index === 0) { diff --git a/src/pages/inventoryMove/job/holdToScrapMoveJob.vue b/src/pages/inventoryMove/job/holdToScrapMoveJob.vue index f48cfc79..6cc47db0 100644 --- a/src/pages/inventoryMove/job/holdToScrapMoveJob.vue +++ b/src/pages/inventoryMove/job/holdToScrapMoveJob.vue @@ -12,20 +12,22 @@ import comMoveJob from '@/pages/inventoryMove/coms/comMoveJob.vue' const receiptjob = ref() const title = ref('') onShow(() => { - nextTick(() => { - if (receiptjob.value != undefined) { - receiptjob.value.refresh() - } - }) + if(receiptjob.value){ + receiptjob.value.refresh() + } }) onLoad((option) => { title.value = option.title }) onPullDownRefresh(() => { - receiptjob.value.refresh() + if(receiptjob.value){ + receiptjob.value.refresh() + } }) onReachBottom(() => { - receiptjob.value.onReach() + if(receiptjob.value){ + receiptjob.value.onReach() + } }) onNavigationBarButtonTap((e) => { if (e.index === 0) { diff --git a/src/pages/inventoryMove/job/nokToHoldMoveJob.vue b/src/pages/inventoryMove/job/nokToHoldMoveJob.vue index fe5205dc..df98075e 100644 --- a/src/pages/inventoryMove/job/nokToHoldMoveJob.vue +++ b/src/pages/inventoryMove/job/nokToHoldMoveJob.vue @@ -6,7 +6,7 @@