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 title = ref('')
onShow(() => {
nextTick(() => {
if (receiptjob.value != undefined) {
if(receiptjob.value){
receiptjob.value.refresh()
}
})
})
onLoad((option) => {
title.value = option.title
})
onPullDownRefresh(() => {
if(receiptjob.value){
receiptjob.value.refresh()
}
})
onReachBottom(() => {
if(receiptjob.value){
receiptjob.value.onReach()
}
})
onNavigationBarButtonTap((e) => {
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 title = ref('')
onShow(() => {
nextTick(() => {
if (receiptjob.value != undefined) {
if(receiptjob.value){
receiptjob.value.refresh()
}
})
})
onLoad((option) => {
title.value = option.title
})
onPullDownRefresh(() => {
if(receiptjob.value){
receiptjob.value.refresh()
}
})
onReachBottom(() => {
if(receiptjob.value){
receiptjob.value.onReach()
}
})
onNavigationBarButtonTap((e) => {
if (e.index === 0) {

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

@ -6,7 +6,7 @@
<script setup lang="ts">
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'
const title = ref('')
@ -14,13 +14,21 @@ const comMoveJobRef = ref()
onLoad((option) => {
title.value = option.title
})
onShow(()=>{
if(comMoveJobRef.value){
comMoveJobRef.value.refresh()
}
})
onReachBottom (()=>{
if(comMoveJobRef.value){
comMoveJobRef.value.onReach();
}
})
onPullDownRefresh(() => {
if(comMoveJobRef.value){
comMoveJobRef.value.refresh()
}
})
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 title = ref('')
onShow(() => {
nextTick(() => {
if (receiptjob.value != undefined) {
if(receiptjob.value){
receiptjob.value.refresh()
}
})
})
onLoad((option) => {
title.value = option.title
})
onPullDownRefresh(() => {
if(receiptjob.value){
receiptjob.value.refresh()
}
})
onReachBottom(() => {
if(receiptjob.value){
receiptjob.value.onReach()
}
})
onNavigationBarButtonTap((e) => {
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 title = ref('')
onShow(() => {
nextTick(() => {
if (receiptjob.value != undefined) {
if(receiptjob.value){
receiptjob.value.refresh()
}
})
})
onLoad((option) => {
title.value = option.title
})
onPullDownRefresh(() => {
if(receiptjob.value){
receiptjob.value.refresh()
}
})
onReachBottom(() => {
if(receiptjob.value){
receiptjob.value.onReach()
}
})
onNavigationBarButtonTap((e) => {
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 title = ref('')
onShow(() => {
nextTick(() => {
if (receiptjob.value != undefined) {
if(receiptjob.value){
receiptjob.value.refresh()
}
})
})
onLoad((option) => {
title.value = option.title
})
onPullDownRefresh(() => {
if(receiptjob.value){
receiptjob.value.refresh()
}
})
onReachBottom(() => {
if(receiptjob.value){
receiptjob.value.onReach()
}
})
onNavigationBarButtonTap((e) => {
if (e.index === 0) {

Loading…
Cancel
Save