任务审核详细

main
panliang 2024-04-26 10:34:18 +08:00
parent 5e69c343b6
commit 5057e9579c
3 changed files with 22 additions and 4 deletions

View File

@ -2,7 +2,7 @@
<view>
<CuNavbar title="任务详情">
<template #right>
<view class="text-sm text-white" @click="goPath('/pages/audits/log')"></view>
<view class="text-sm text-white" @click="goPath(`/pages/audits/log?id=${id}&type=${type}`)"></view>
</template>
</CuNavbar>
<view class="px-base mt-30rpx">
@ -11,7 +11,7 @@
</view>
</view>
<view class="h-100rpx">
<view v-if="data && data.checkable" class="h-100rpx">
<view
class="fixed bottom-0 left-0 right-0 h-120rpx bg-white flex items-center px-base space-x-30rpx"
>

View File

@ -1,8 +1,26 @@
<template>
<view>
<CuNavbar title="审核流程"></CuNavbar>
<view class="list">
<view class="item flex" v-for="item in list" :key="item.id">
<view class="name">{{ item.check_name }}</view>
<view v-if="item.check_status != 1" class="status bg-red">{{ item.check_status_text }}</view>
<view v-if="item.checked_at" class="time text-gray">{{ item.checked_at }}</view>
</view>
</view>
</view>
</template>
<script setup>
import CuNavbar from '@/components/cu-navbar/index'
import { http } from '@/utils/request'
import { onLoad } from '@dcloudio/uni-app'
import { ref } from 'vue'
const list = ref([])
onLoad((options) => {
http.get(`/workflow/${options.id}/logs`, { params: { subject_type: options.type } }).then(res => {
list.value = res
})
})
</script>

View File

@ -9,7 +9,7 @@
:style="{
color: statusFun(
item.taskable.status,
isCheck ? 'statusExpense' : item.taskable_type,
isCheck ? 'task_hygienes' : item.taskable_type,
'color'
),
}"
@ -17,7 +17,7 @@
>{{
statusFun(
item.taskable.status,
isCheck ? 'statusExpense' : item.taskable_type,
isCheck ? 'task_hygienes' : item.taskable_type,
'name'
)
}}</view