退料,创建任务完成后,跳转至任务单内
This commit is contained in:
parent
1a9c571d9a
commit
e4e514912d
|
|
@ -183,9 +183,10 @@ const confirmAdd = () => {
|
||||||
console.log(res)
|
console.log(res)
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
uni.showToast({ title: '新增成功', icon: 'none' })
|
uni.showToast({ title: '新增成功', icon: 'none' })
|
||||||
uni.navigateBack({
|
// uni.navigateBack({
|
||||||
delta: 1, // 返回到已存在的页面
|
// delta: 1, // 返回到已存在的页面
|
||||||
})
|
// })
|
||||||
|
uni.navigateTo({ url: `/pages/back/detail?id=${res.data.id}&taskId=${res.data.taskId}&appTaskStatus=0&isNew=1` })
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({ title: res.msg, icon: 'none' })
|
uni.showToast({ title: res.msg, icon: 'none' })
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -85,6 +85,7 @@ const statusList = ref(["2","12"])
|
||||||
const tableList = ref([])
|
const tableList = ref([])
|
||||||
const taskInfo = ref({})
|
const taskInfo = ref({})
|
||||||
const swipeRef = ref()
|
const swipeRef = ref()
|
||||||
|
const isNew = ref(false)
|
||||||
|
|
||||||
// 右滑按钮组
|
// 右滑按钮组
|
||||||
const options = ref([
|
const options = ref([
|
||||||
|
|
@ -121,7 +122,7 @@ const options2 = ref([
|
||||||
const leftClick = () => {
|
const leftClick = () => {
|
||||||
// 返回
|
// 返回
|
||||||
uni.navigateBack({
|
uni.navigateBack({
|
||||||
delta: 1, // 返回到已存在的页面
|
delta: isNew.value ? 2 : 1, // 返回到已存在的页面
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
//详情数据
|
//详情数据
|
||||||
|
|
@ -223,6 +224,7 @@ onLoad((options)=>{
|
||||||
id.value = options.id
|
id.value = options.id
|
||||||
taskId.value = options.taskId
|
taskId.value = options.taskId
|
||||||
appTaskStatus.value = options.appTaskStatus
|
appTaskStatus.value = options.appTaskStatus
|
||||||
|
isNew.value = options.isNew ? true : false
|
||||||
getTableList()
|
getTableList()
|
||||||
})
|
})
|
||||||
onShow(()=>{
|
onShow(()=>{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue