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

View File

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