Browse Source

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

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

8
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(() => {
if(receiptjob.value){
receiptjob.value.refresh() receiptjob.value.refresh()
}
}) })
onReachBottom(() => { onReachBottom(() => {
if(receiptjob.value){
receiptjob.value.onReach() receiptjob.value.onReach()
}
}) })
onNavigationBarButtonTap((e) => { onNavigationBarButtonTap((e) => {
if (e.index === 0) { if (e.index === 0) {

8
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(() => {
if(receiptjob.value){
receiptjob.value.refresh() receiptjob.value.refresh()
}
}) })
onReachBottom(() => { onReachBottom(() => {
if(receiptjob.value){
receiptjob.value.onReach() receiptjob.value.onReach()
}
}) })
onNavigationBarButtonTap((e) => { onNavigationBarButtonTap((e) => {
if (e.index === 0) { if (e.index === 0) {

12
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 (()=>{
if(comMoveJobRef.value){
comMoveJobRef.value.onReach(); comMoveJobRef.value.onReach();
}
}) })
onPullDownRefresh(() => { onPullDownRefresh(() => {
if(comMoveJobRef.value){
comMoveJobRef.value.refresh() comMoveJobRef.value.refresh()
}
}) })
onNavigationBarButtonTap((e) => { onNavigationBarButtonTap((e) => {

8
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(() => {
if(receiptjob.value){
receiptjob.value.refresh() receiptjob.value.refresh()
}
}) })
onReachBottom(() => { onReachBottom(() => {
if(receiptjob.value){
receiptjob.value.onReach() receiptjob.value.onReach()
}
}) })
onNavigationBarButtonTap((e) => { onNavigationBarButtonTap((e) => {
if (e.index === 0) { if (e.index === 0) {

8
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(() => {
if(receiptjob.value){
receiptjob.value.refresh() receiptjob.value.refresh()
}
}) })
onReachBottom(() => { onReachBottom(() => {
if(receiptjob.value){
receiptjob.value.onReach() receiptjob.value.onReach()
}
}) })
onNavigationBarButtonTap((e) => { onNavigationBarButtonTap((e) => {
if (e.index === 0) { if (e.index === 0) {

8
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(() => {
if(receiptjob.value){
receiptjob.value.refresh() receiptjob.value.refresh()
}
}) })
onReachBottom(() => { onReachBottom(() => {
if(receiptjob.value){
receiptjob.value.onReach() receiptjob.value.onReach()
}
}) })
onNavigationBarButtonTap((e) => { onNavigationBarButtonTap((e) => {
if (e.index === 0) { if (e.index === 0) {

Loading…
Cancel
Save