退料接收路由跳转
This commit is contained in:
		
							parent
							
								
									cc5da67628
								
							
						
					
					
						commit
						99d17a57ac
					
				| 
						 | 
					@ -295,15 +295,7 @@ const submitNum = () => {
 | 
				
			||||||
			uni.showToast({ title: '编辑成功', icon: 'none' })
 | 
								uni.showToast({ title: '编辑成功', icon: 'none' })
 | 
				
			||||||
            const pages = getCurrentPages()
 | 
					            const pages = getCurrentPages()
 | 
				
			||||||
            console.log('🚀 ~ submitNum ~ pages:', pages)
 | 
					            console.log('🚀 ~ submitNum ~ pages:', pages)
 | 
				
			||||||
            if (pages.length == 5) {
 | 
					            uni.redirectTo({ url: '/pages/back/index' })
 | 
				
			||||||
                uni.navigateBack({
 | 
					 | 
				
			||||||
                    delta: 3, // 返回到已存在的页面
 | 
					 | 
				
			||||||
                })
 | 
					 | 
				
			||||||
            } else {
 | 
					 | 
				
			||||||
                uni.navigateBack({
 | 
					 | 
				
			||||||
                    delta: 2, // 返回到已存在的页面
 | 
					 | 
				
			||||||
                })
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
		}else{
 | 
							}else{
 | 
				
			||||||
			uni.showToast({ title: res.msg, icon: 'none' })
 | 
								uni.showToast({ title: res.msg, icon: 'none' })
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -120,10 +120,7 @@ const options2 = ref([
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
])  
 | 
					])  
 | 
				
			||||||
const leftClick = () => { 
 | 
					const leftClick = () => { 
 | 
				
			||||||
    // 返回
 | 
					    uni.redirectTo({ url: '/pages/back/index' })
 | 
				
			||||||
    uni.navigateBack({
 | 
					 | 
				
			||||||
        delta: isNew.value ? 2 : 1, // 返回到已存在的页面
 | 
					 | 
				
			||||||
    })
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
//详情数据
 | 
					//详情数据
 | 
				
			||||||
const getTableList = () => { 
 | 
					const getTableList = () => { 
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,4 +1,13 @@
 | 
				
			||||||
<template>
 | 
					<template>
 | 
				
			||||||
 | 
					  <uni-nav-bar
 | 
				
			||||||
 | 
					      status-bar
 | 
				
			||||||
 | 
					      leftIcon="left"
 | 
				
			||||||
 | 
					      title="退料任务"
 | 
				
			||||||
 | 
					      backgroundColor="#dcf4ff"
 | 
				
			||||||
 | 
					      :border="false"
 | 
				
			||||||
 | 
					      fixed
 | 
				
			||||||
 | 
					      @clickLeft="leftClick"
 | 
				
			||||||
 | 
					  />
 | 
				
			||||||
  <!-- 退料任务 -->
 | 
					  <!-- 退料任务 -->
 | 
				
			||||||
  <view class="page-container">
 | 
					  <view class="page-container">
 | 
				
			||||||
    <view class="complete-btn">
 | 
					    <view class="complete-btn">
 | 
				
			||||||
| 
						 | 
					@ -398,6 +407,9 @@ 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
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
 | 
					const leftClick = () => {
 | 
				
			||||||
 | 
					  uni.switchTab({ url: '/pages/work/index' })
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
onShow(() => {
 | 
					onShow(() => {
 | 
				
			||||||
  tableList.value = []
 | 
					  tableList.value = []
 | 
				
			||||||
  total.value = 0
 | 
					  total.value = 0
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue