任务审核详细
parent
5e69c343b6
commit
5057e9579c
|
|
@ -2,7 +2,7 @@
|
||||||
<view>
|
<view>
|
||||||
<CuNavbar title="任务详情">
|
<CuNavbar title="任务详情">
|
||||||
<template #right>
|
<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>
|
</template>
|
||||||
</CuNavbar>
|
</CuNavbar>
|
||||||
<view class="px-base mt-30rpx">
|
<view class="px-base mt-30rpx">
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="h-100rpx">
|
<view v-if="data && data.checkable" class="h-100rpx">
|
||||||
<view
|
<view
|
||||||
class="fixed bottom-0 left-0 right-0 h-120rpx bg-white flex items-center px-base space-x-30rpx"
|
class="fixed bottom-0 left-0 right-0 h-120rpx bg-white flex items-center px-base space-x-30rpx"
|
||||||
>
|
>
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,26 @@
|
||||||
<template>
|
<template>
|
||||||
<view>
|
<view>
|
||||||
<CuNavbar title="审核流程"></CuNavbar>
|
<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>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import CuNavbar from '@/components/cu-navbar/index'
|
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>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
:style="{
|
:style="{
|
||||||
color: statusFun(
|
color: statusFun(
|
||||||
item.taskable.status,
|
item.taskable.status,
|
||||||
isCheck ? 'statusExpense' : item.taskable_type,
|
isCheck ? 'task_hygienes' : item.taskable_type,
|
||||||
'color'
|
'color'
|
||||||
),
|
),
|
||||||
}"
|
}"
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
>{{
|
>{{
|
||||||
statusFun(
|
statusFun(
|
||||||
item.taskable.status,
|
item.taskable.status,
|
||||||
isCheck ? 'statusExpense' : item.taskable_type,
|
isCheck ? 'task_hygienes' : item.taskable_type,
|
||||||
'name'
|
'name'
|
||||||
)
|
)
|
||||||
}}</view
|
}}</view
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue