Browse Source

上拉加载更多 2024/8/8

hella_vue3
王志国 4 weeks ago
parent
commit
686d24393e
  1. 8
      src/pages/inventoryMove/coms/comMoveJob.vue
  2. 2
      src/pages/inventoryMove/job/holdToOkMoveJob.vue
  3. 2
      src/pages/inventoryMove/job/holdToScrapMoveJob.vue
  4. 2
      src/pages/inventoryMove/job/moveJob.vue
  5. 7
      src/pages/inventoryMove/job/nokToHoldMoveJob.vue
  6. 2
      src/pages/inventoryMove/job/okToHoldMoveJob.vue
  7. 2
      src/pages/inventoryMove/job/okToScrapMoveJob.vue
  8. 2
      src/pages/inventoryMove/job/scrapToHoldMoveJob.vue

8
src/pages/inventoryMove/coms/comMoveJob.vue

@ -66,7 +66,13 @@ onMounted(() => {
// refresh()
})
})
const onReach = ()=> {
//
if (loadingType.value == 'loading' || loadingType.value == 'nomore') {
return;
}
getList("more");
}
const updateTitle = () => {
let title = ''
const name = props.title

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

@ -6,7 +6,7 @@
<script setup lang="ts">
import { ref, getCurrentInstance, nextTick } from 'vue'
import { onShow, onNavigationBarButtonTap, onReady, onReachBottom, onPullDownRefresh } from '@dcloudio/uni-app'
import { onShow, onNavigationBarButtonTap, onReady, onReachBottom, onPullDownRefresh ,onLoad} from '@dcloudio/uni-app'
import comMoveJob from '@/pages/inventoryMove/coms/comMoveJob.vue'
const receiptjob = ref()

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

@ -6,7 +6,7 @@
<script setup lang="ts">
import { ref, getCurrentInstance, nextTick } from 'vue'
import { onShow, onNavigationBarButtonTap, onReady, onReachBottom, onPullDownRefresh } from '@dcloudio/uni-app'
import { onShow, onNavigationBarButtonTap, onReady, onReachBottom, onPullDownRefresh ,onLoad} from '@dcloudio/uni-app'
import comMoveJob from '@/pages/inventoryMove/coms/comMoveJob.vue'
const receiptjob = ref()

2
src/pages/inventoryMove/job/moveJob.vue

@ -6,7 +6,7 @@
<script setup lang="ts">
import { ref, getCurrentInstance, nextTick } from 'vue'
import { onShow, onNavigationBarButtonTap, onReady, onReachBottom, onPullDownRefresh } from '@dcloudio/uni-app'
import { onShow, onNavigationBarButtonTap, onReady, onReachBottom, onPullDownRefresh ,onLoad} from '@dcloudio/uni-app'
import comMoveJob from '@/pages/inventoryMove/coms/comMoveJob.vue'
import { goHome, getCurrDate } from '@/common/basic.js'

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

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

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

@ -6,7 +6,7 @@
<script setup lang="ts">
import { ref, getCurrentInstance, nextTick } from 'vue'
import { onShow, onNavigationBarButtonTap, onReady, onReachBottom, onPullDownRefresh } from '@dcloudio/uni-app'
import { onShow, onNavigationBarButtonTap, onReady, onReachBottom, onPullDownRefresh ,onLoad} from '@dcloudio/uni-app'
import comMoveJob from '@/pages/inventoryMove/coms/comMoveJob.vue'
const receiptjob = ref()

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

@ -6,7 +6,7 @@
<script setup lang="ts">
import { ref, getCurrentInstance, nextTick } from 'vue'
import { onShow, onNavigationBarButtonTap, onReady, onReachBottom, onPullDownRefresh } from '@dcloudio/uni-app'
import { onShow, onNavigationBarButtonTap, onReady, onReachBottom, onPullDownRefresh ,onLoad} from '@dcloudio/uni-app'
import comMoveJob from '@/pages/inventoryMove/coms/comMoveJob.vue'
const receiptjob = ref()

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

@ -6,7 +6,7 @@
<script setup lang="ts">
import { ref, getCurrentInstance, nextTick } from 'vue'
import { onShow, onNavigationBarButtonTap, onReady, onReachBottom, onPullDownRefresh } from '@dcloudio/uni-app'
import { onShow, onNavigationBarButtonTap, onReady, onReachBottom, onPullDownRefresh ,onLoad} from '@dcloudio/uni-app'
import comMoveJob from '@/pages/inventoryMove/coms/comMoveJob.vue'
const receiptjob = ref()

Loading…
Cancel
Save