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(() => { const finish = computed(() => {
if (total.value === tableList.value.length) return true if (total.value === tableList.value.length) return true
}) })
onShow(() => { onLoad(() => {
tableList.value = [] tableList.value = []
total.value = 0 total.value = 0
getTableList(true) getTableList(true)

View File

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

View File

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

View File

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

View File

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

View File

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