退料接收路由跳转

This commit is contained in:
bb_pan 2025-09-02 10:18:30 +08:00
parent cc5da67628
commit 99d17a57ac
3 changed files with 14 additions and 13 deletions

View File

@ -295,15 +295,7 @@ const submitNum = () => {
uni.showToast({ title: '编辑成功', icon: 'none' })
const pages = getCurrentPages()
console.log('🚀 ~ submitNum ~ pages:', pages)
if (pages.length == 5) {
uni.navigateBack({
delta: 3, //
})
} else {
uni.navigateBack({
delta: 2, //
})
}
uni.redirectTo({ url: '/pages/back/index' })
}else{
uni.showToast({ title: res.msg, icon: 'none' })
}

View File

@ -120,10 +120,7 @@ const options2 = ref([
])
const leftClick = () => {
//
uni.navigateBack({
delta: isNew.value ? 2 : 1, //
})
uni.redirectTo({ url: '/pages/back/index' })
}
//
const getTableList = () => {

View File

@ -1,4 +1,13 @@
<template>
<uni-nav-bar
status-bar
leftIcon="left"
title="退料任务"
backgroundColor="#dcf4ff"
:border="false"
fixed
@clickLeft="leftClick"
/>
<!-- 退料任务 -->
<view class="page-container">
<view class="complete-btn">
@ -398,6 +407,9 @@ const handleItem = (item) => {
const finish = computed(() => {
if (total.value === tableList.value.length) return true
})
const leftClick = () => {
uni.switchTab({ url: '/pages/work/index' })
}
onShow(() => {
tableList.value = []
total.value = 0