main
panliang 2024-05-03 17:53:23 +08:00
parent 0d2e5f8299
commit 350cd566a2
2 changed files with 15 additions and 27 deletions

View File

@ -17,10 +17,15 @@ import { http } from '@/utils/request'
import { ref, computed } from 'vue'
import { timeFormat } from '@climblee/uv-ui/libs/function'
import BaseData from '@/pages/audits/base-data'
import statusFun from '@/utils/status'
const baseColums = [
{
title: '审核状态',
dataIndex: 'taskable.status_text',
dataIndex: 'taskable.status',
format: (value) => {
return statusFun(value, 'task_hygienes', 'name')
},
},
{
title: '申请人',

View File

@ -24,36 +24,19 @@ const data = {
statusExpense2: [
{ value: 1, name: '未开始', color: '#f56c6c' },
{ value: 2, name: '待审核', color: '#f56c6c' },
{ value: 3, name: '审核通过', color: '#3c9cff' },
{ value: 3, name: '通过', color: '#3c9cff' },
{ value: 4, name: '未通过', color: '#999999' },
{ value: 5, name: '已取消', color: '#999999' }
],
//清洁任务
task_hygienes: [{
value: 1,
name: '未开始',
color: '#f56c6c'
}, {
value: 2,
name: '待完成',
color: '#f56c6c'
}, {
value: 3,
name: '审核中',
color: '#3c9cff'
}, {
value: 4,
name: '未通过',
color: '#999999'
}, {
value: 5,
name: '已完成',
color: '#3c9cff'
}, {
value: 6,
name: '未完成',
color: '#999999'
}],
task_hygienes: [
{ value: 1, name: '未开始', color: '#f56c6c' },
{ value: 2, name: '待完成', color: '#f56c6c' },
{ value: 3, name: '已完成', color: '#3c9cff' },
{ value: 4, name: '未完成', color: '#999999' },
{ value: 5, name: '审核中', color: '#3c9cff' },
{ value: 6, name: '未通过', color: '#999999' }
],
//总账录入
task_ledgers: [{
value: 1,