退料,创建任务完成后,跳转至任务单内

This commit is contained in:
bb_pan 2025-07-31 16:24:44 +08:00
parent 1a9c571d9a
commit e4e514912d
2 changed files with 7 additions and 4 deletions

View File

@ -183,9 +183,10 @@ const confirmAdd = () => {
console.log(res)
if (res.code == 200) {
uni.showToast({ title: '新增成功', icon: 'none' })
uni.navigateBack({
delta: 1, //
})
// uni.navigateBack({
// delta: 1, //
// })
uni.navigateTo({ url: `/pages/back/detail?id=${res.data.id}&taskId=${res.data.taskId}&appTaskStatus=0&isNew=1` })
} else {
uni.showToast({ title: res.msg, icon: 'none' })
}

View File

@ -85,6 +85,7 @@ const statusList = ref(["2","12"])
const tableList = ref([])
const taskInfo = ref({})
const swipeRef = ref()
const isNew = ref(false)
//
const options = ref([
@ -121,7 +122,7 @@ const options2 = ref([
const leftClick = () => {
//
uni.navigateBack({
delta: 1, //
delta: isNew.value ? 2 : 1, //
})
}
//
@ -223,6 +224,7 @@ onLoad((options)=>{
id.value = options.id
taskId.value = options.taskId
appTaskStatus.value = options.appTaskStatus
isNew.value = options.isNew ? true : false
getTableList()
})
onShow(()=>{