修改清洁任务

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

View File

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