修改清洁任务

main
unknown 2024-05-27 14:19:09 +08:00
parent f15cf2ce65
commit 931abcaf38
2 changed files with 8 additions and 10 deletions

View File

@ -1,9 +1,9 @@
<template>
<view class="px-base">
<CuNavbar title="任务详情">
<!-- <template #right>
<view class="text-sm text-white" @click="checkLogs"></view>
</template> -->
<template #right>
<view v-if="data?.taskable?.status == 6" class="text-sm text-white" @click="checkLogs"></view>
</template>
</CuNavbar>
<view class="mt-30rpx card-shadow bg-white rounded-19rpx px-base text-[#333333] text-27rpx">
<BaseData :data="data" :colums="baseColums" />
@ -57,7 +57,7 @@ const baseColums = [
dataIndex: 'taskable.workflow_check.check_remarks',
labelPosition: 'top',
isShow: (row) => {
return row?.taskable?.workflow_check?.check_status == 4
return row?.taskable?.status == 6
}
},
]
@ -75,11 +75,9 @@ const getDetail = async () => {
}
const checkLogs = () => {
if (data.value.taskable.workflow_check.id) {
return uni.navigateTo({
url: `/pages/audits/log?id=${data.value.taskable.workflow_check.id}`
})
}
uni.navigateTo({
url: `/pages/task/task_hygienes_submit?id=${id.value}`
})
}
const getValue = (obj, path) => {

View File

@ -129,7 +129,7 @@ const applyClick = (item) => {
const type = item.taskable_type
const status = item.taskable.status
let url
if (status === 2 || status == 4 || status == 6 || type=='task_ledgers') {
if (status === 2 || status == 4 || type=='task_ledgers') {
const date = status != 3 || status != 5 ? `&date=${item.taskable.date}` : ''
url = `/pages/task/${type}_submit?id=${item.id}${date}`
} else {