退料接收路由跳转
This commit is contained in:
parent
cc5da67628
commit
99d17a57ac
|
|
@ -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' })
|
||||
}
|
||||
|
|
|
|||
|
|
@ -120,10 +120,7 @@ const options2 = ref([
|
|||
|
||||
])
|
||||
const leftClick = () => {
|
||||
// 返回
|
||||
uni.navigateBack({
|
||||
delta: isNew.value ? 2 : 1, // 返回到已存在的页面
|
||||
})
|
||||
uni.redirectTo({ url: '/pages/back/index' })
|
||||
}
|
||||
//详情数据
|
||||
const getTableList = () => {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue