This commit is contained in:
bb_pan 2025-08-26 11:33:15 +08:00
parent d7971a3b1c
commit d75d79f031
6 changed files with 22 additions and 20 deletions

View File

@ -398,7 +398,7 @@ const handleItem = (item) => {
const finish = computed(() => {
if (total.value === tableList.value.length) return true
})
onShow(() => {
onLoad(() => {
tableList.value = []
total.value = 0
getTableList(true)

View File

@ -88,7 +88,7 @@
submitTask
} from '@/services/fieldMaintenance/fieldMaintenance.js'
import {
onShow
onLoad
} from '@dcloudio/uni-app'
import {
debounce
@ -249,7 +249,7 @@
}
}
onShow(() => {
onLoad(() => {
tableList.value = []
total.value = 0
getTableList(true)

View File

@ -60,8 +60,8 @@
<uni-swipe-action-item @click="onClick($event, item)" :right-options="options"> -->
<div class="title">
<div class="title-left">
<span class="code">{{ item.repairCode }}</span>
<span class="sub-code">{{ `${item.backCode}-${item.level}` }}</span>
<span class="code">{{ `${item.backCode}-${item.level}` }}</span>
<span class="sub-code">{{ item.repairCode }}</span>
</div>
<div class="title-right">
<uni-tag v-if="item.num !== 0" text="定损单" type="warning" style="margin-right: 5px" custom-style="warningStyle"/>
@ -120,7 +120,7 @@
<script setup>
import { ref, computed } from 'vue'
import { getRepairListAPI, repairSubmitAPI, repairRejectAPI } from '@/services/repair/repair.js'
import { onShow } from '@dcloudio/uni-app'
import { onLoad } from '@dcloudio/uni-app'
import { debounce } from 'lodash-es'
const total = ref(0) // <EFBFBD><EFBFBD>
@ -241,7 +241,7 @@ const getTableList = async (isTap = false) => {
// getTableList()
// })
onShow(() => {
onLoad(() => {
tableList.value = []
total.value = 0
getTableList(true)

View File

@ -124,7 +124,7 @@
import { ref, computed } from 'vue'
import { getListScrapExamineApply } from '@/services/repair/scrapExamine.js'
import { onShow } from '@dcloudio/uni-app'
import { onLoad } from '@dcloudio/uni-app'
import { debounce } from 'lodash-es'
const total = ref(0) //
@ -237,7 +237,7 @@ const getTableList = async (isTap = false) => {
// getTableList()
// })
onShow(() => {
onLoad(() => {
tableList.value = []
total.value = 0
getTableList()

View File

@ -154,7 +154,7 @@
<script setup>
import { ref, computed } from 'vue'
import { getRepairedList } from '@/services/repair/testedInBound.js'
import { onShow } from '@dcloudio/uni-app'
import { onShow, onLoad } from '@dcloudio/uni-app'
import { debounce } from 'lodash-es'
const total = ref(0) //
@ -270,17 +270,19 @@ const getTableList = async (isTap = false) => {
}
}
// //
// onLoad(() => {
// getTableList()
// })
onShow(() => {
tableList.value = []
total.value = 0
//
onLoad(() => {
// tableList.value = []
// total.value = 0
getTableList()
})
// onShow(() => {
// tableList.value = []
// total.value = 0
// getTableList()
// })
//
const onScrollTolower = debounce(() => {
console.log('触底事件')

View File

@ -125,7 +125,7 @@
<script setup>
import { ref,computed } from 'vue'
import { onLoad, onShow } from '@dcloudio/uni-app'
import { onLoad, onSLoad} from '@dcloudio/uni-app'
import { debounce } from 'lodash-es'
import { getPurchaseList } from '@/services/purchase.js'
import { getQrCodeBoxListApi,getTransferKeepsListApi,appTransferApi } from '@/services/standard.js'
@ -360,7 +360,7 @@ const maskClick = () => {}
// getTableList()
// })
onShow(() => {
onLoad(() => {
tableList.value = []
getTableList(true)
})