This commit is contained in:
		
							parent
							
								
									d7971a3b1c
								
							
						
					
					
						commit
						d75d79f031
					
				| 
						 | 
					@ -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)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -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)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -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)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -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()
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -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('触底事件')
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -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)
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue