Browse Source

修改任务列表下拉不刷新和返回列表不刷新 2024/8/8

hella_vue3
王志国 4 weeks ago
parent
commit
ac3e5f0b15
  1. 16
      src/pages/inventoryMove/job/holdToOkMoveJob.vue
  2. 16
      src/pages/inventoryMove/job/holdToScrapMoveJob.vue
  3. 16
      src/pages/inventoryMove/job/nokToHoldMoveJob.vue
  4. 16
      src/pages/inventoryMove/job/okToHoldMoveJob.vue
  5. 16
      src/pages/inventoryMove/job/okToScrapMoveJob.vue
  6. 16
      src/pages/inventoryMove/job/scrapToHoldMoveJob.vue

16
src/pages/inventoryMove/job/holdToOkMoveJob.vue

@ -12,20 +12,22 @@ import comMoveJob from '@/pages/inventoryMove/coms/comMoveJob.vue'
const receiptjob = ref() const receiptjob = ref()
const title = ref('') const title = ref('')
onShow(() => { onShow(() => {
nextTick(() => { if(receiptjob.value){
if (receiptjob.value != undefined) { receiptjob.value.refresh()
receiptjob.value.refresh() }
}
})
}) })
onLoad((option) => { onLoad((option) => {
title.value = option.title title.value = option.title
}) })
onPullDownRefresh(() => { onPullDownRefresh(() => {
receiptjob.value.refresh() if(receiptjob.value){
receiptjob.value.refresh()
}
}) })
onReachBottom(() => { onReachBottom(() => {
receiptjob.value.onReach() if(receiptjob.value){
receiptjob.value.onReach()
}
}) })
onNavigationBarButtonTap((e) => { onNavigationBarButtonTap((e) => {
if (e.index === 0) { if (e.index === 0) {

16
src/pages/inventoryMove/job/holdToScrapMoveJob.vue

@ -12,20 +12,22 @@ import comMoveJob from '@/pages/inventoryMove/coms/comMoveJob.vue'
const receiptjob = ref() const receiptjob = ref()
const title = ref('') const title = ref('')
onShow(() => { onShow(() => {
nextTick(() => { if(receiptjob.value){
if (receiptjob.value != undefined) { receiptjob.value.refresh()
receiptjob.value.refresh() }
}
})
}) })
onLoad((option) => { onLoad((option) => {
title.value = option.title title.value = option.title
}) })
onPullDownRefresh(() => { onPullDownRefresh(() => {
receiptjob.value.refresh() if(receiptjob.value){
receiptjob.value.refresh()
}
}) })
onReachBottom(() => { onReachBottom(() => {
receiptjob.value.onReach() if(receiptjob.value){
receiptjob.value.onReach()
}
}) })
onNavigationBarButtonTap((e) => { onNavigationBarButtonTap((e) => {
if (e.index === 0) { if (e.index === 0) {

16
src/pages/inventoryMove/job/nokToHoldMoveJob.vue

@ -6,7 +6,7 @@
<script setup lang="ts"> <script setup lang="ts">
import { ref } from 'vue' import { ref } from 'vue'
import {onLoad, onPullDownRefresh, onNavigationBarButtonTap,onReachBottom} from '@dcloudio/uni-app' import {onLoad, onPullDownRefresh, onNavigationBarButtonTap, onReachBottom, onShow} from '@dcloudio/uni-app'
import comMoveJob from '@/pages/inventoryMove/coms/comMoveJob.vue' import comMoveJob from '@/pages/inventoryMove/coms/comMoveJob.vue'
const title = ref('') const title = ref('')
@ -14,13 +14,21 @@ const comMoveJobRef = ref()
onLoad((option) => { onLoad((option) => {
title.value = option.title title.value = option.title
}) })
onShow(()=>{
if(comMoveJobRef.value){
comMoveJobRef.value.refresh()
}
})
onReachBottom (()=>{ onReachBottom (()=>{
comMoveJobRef.value.onReach(); if(comMoveJobRef.value){
comMoveJobRef.value.onReach();
}
}) })
onPullDownRefresh(() => { onPullDownRefresh(() => {
comMoveJobRef.value.refresh() if(comMoveJobRef.value){
comMoveJobRef.value.refresh()
}
}) })
onNavigationBarButtonTap((e) => { onNavigationBarButtonTap((e) => {

16
src/pages/inventoryMove/job/okToHoldMoveJob.vue

@ -12,20 +12,22 @@ import comMoveJob from '@/pages/inventoryMove/coms/comMoveJob.vue'
const receiptjob = ref() const receiptjob = ref()
const title = ref('') const title = ref('')
onShow(() => { onShow(() => {
nextTick(() => { if(receiptjob.value){
if (receiptjob.value != undefined) { receiptjob.value.refresh()
receiptjob.value.refresh() }
}
})
}) })
onLoad((option) => { onLoad((option) => {
title.value = option.title title.value = option.title
}) })
onPullDownRefresh(() => { onPullDownRefresh(() => {
receiptjob.value.refresh() if(receiptjob.value){
receiptjob.value.refresh()
}
}) })
onReachBottom(() => { onReachBottom(() => {
receiptjob.value.onReach() if(receiptjob.value){
receiptjob.value.onReach()
}
}) })
onNavigationBarButtonTap((e) => { onNavigationBarButtonTap((e) => {
if (e.index === 0) { if (e.index === 0) {

16
src/pages/inventoryMove/job/okToScrapMoveJob.vue

@ -12,20 +12,22 @@ import comMoveJob from '@/pages/inventoryMove/coms/comMoveJob.vue'
const receiptjob = ref() const receiptjob = ref()
const title = ref('') const title = ref('')
onShow(() => { onShow(() => {
nextTick(() => { if(receiptjob.value){
if (receiptjob.value != undefined) { receiptjob.value.refresh()
receiptjob.value.refresh() }
}
})
}) })
onLoad((option) => { onLoad((option) => {
title.value = option.title title.value = option.title
}) })
onPullDownRefresh(() => { onPullDownRefresh(() => {
receiptjob.value.refresh() if(receiptjob.value){
receiptjob.value.refresh()
}
}) })
onReachBottom(() => { onReachBottom(() => {
receiptjob.value.onReach() if(receiptjob.value){
receiptjob.value.onReach()
}
}) })
onNavigationBarButtonTap((e) => { onNavigationBarButtonTap((e) => {
if (e.index === 0) { if (e.index === 0) {

16
src/pages/inventoryMove/job/scrapToHoldMoveJob.vue

@ -12,20 +12,22 @@ import comMoveJob from '@/pages/inventoryMove/coms/comMoveJob.vue'
const receiptjob = ref() const receiptjob = ref()
const title = ref('') const title = ref('')
onShow(() => { onShow(() => {
nextTick(() => { if(receiptjob.value){
if (receiptjob.value != undefined) { receiptjob.value.refresh()
receiptjob.value.refresh() }
}
})
}) })
onLoad((option) => { onLoad((option) => {
title.value = option.title title.value = option.title
}) })
onPullDownRefresh(() => { onPullDownRefresh(() => {
receiptjob.value.refresh() if(receiptjob.value){
receiptjob.value.refresh()
}
}) })
onReachBottom(() => { onReachBottom(() => {
receiptjob.value.onReach() if(receiptjob.value){
receiptjob.value.onReach()
}
}) })
onNavigationBarButtonTap((e) => { onNavigationBarButtonTap((e) => {
if (e.index === 0) { if (e.index === 0) {

Loading…
Cancel
Save