Industrial-image-management.../src/mock/regulation.ts

131 lines
4.2 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { RegulationStatus, RegulationLevel } from '@/apis/regulation/type'
// Mock数据
export const mockRegulations = [
{
regulationId: 'reg001',
title: '员工考勤管理制度优化提案',
content: '建议优化考勤管理制度增加弹性工作时间提高员工工作积极性。具体包括1. 允许员工在合理范围内调整上下班时间2. 建立完善的请假制度3. 优化加班管理流程。',
regulationType: '人事制度',
status: RegulationStatus.VOTING,
publisherId: '1',
publisherName: '张三',
publishTime: '2024-01-01T12:00:00',
effectiveTime: '2024-01-01T12:00:00',
expireTime: '2024-01-08T12:00:00',
scope: '全体员工',
level: RegulationLevel.MEDIUM,
version: '1.0',
remark: '需要与人事部门协调实施',
createBy: 'admin',
updateBy: 'admin',
createTime: '2024-01-01 10:00:00',
updateTime: '2024-01-01 10:00:00',
page: 1,
pageSize: 10,
delFlag: '0',
voteFor: 15,
voteAgainst: 3,
voteAbstain: 2
},
{
regulationId: 'reg002',
title: '财务报销流程简化提案',
content: '建议简化财务报销流程提高工作效率。具体包括1. 优化审批流程减少不必要的审批环节2. 简化单据要求使用电子化单据3. 建立快速报销通道。',
regulationType: '财务制度',
status: RegulationStatus.PUBLISHED,
publisherId: '2',
publisherName: '李四',
publishTime: '2024-01-15T14:30:00',
effectiveTime: '2024-01-15T14:30:00',
expireTime: '2024-01-22T14:30:00',
scope: '财务部门及相关员工',
level: RegulationLevel.HIGH,
version: '1.0',
remark: '已获得财务部门支持',
createBy: 'admin',
updateBy: 'admin',
createTime: '2024-01-15 14:30:00',
updateTime: '2024-01-15 14:30:00',
page: 1,
pageSize: 10,
delFlag: '0',
voteFor: 20,
voteAgainst: 1,
voteAbstain: 0
},
{
regulationId: 'reg003',
title: '安全生产管理制度',
content: '建立完善的安全生产管理制度确保员工人身安全和设备安全。具体包括1. 制定详细的安全操作规程2. 建立安全培训制度3. 完善安全检查机制。',
regulationType: '安全制度',
status: RegulationStatus.DRAFT,
publisherId: '3',
publisherName: '王五',
publishTime: '2024-01-20T09:15:00',
effectiveTime: '2024-01-20T09:15:00',
expireTime: '2024-12-31T23:59:59',
scope: '所有工作场所和员工',
level: RegulationLevel.HIGH,
version: '1.0',
remark: '需要安全部门配合',
createBy: 'admin',
updateBy: 'admin',
createTime: '2024-01-20 09:15:00',
updateTime: '2024-01-20 09:15:00',
page: 1,
pageSize: 10,
delFlag: '0'
},
{
regulationId: 'reg004',
title: '设备维护制度',
content: '为保障设备正常运行延长设备使用寿命特制定本制度。具体包括1. 建立设备维护计划2. 制定维护标准3. 建立维护记录制度。',
regulationType: '设备制度',
status: RegulationStatus.ARCHIVED,
publisherId: '1',
publisherName: '管理员',
publishTime: '2024-01-01T12:00:00',
effectiveTime: '2024-01-01T12:00:00',
expireTime: '2024-12-31T23:59:59',
scope: '设备部门',
level: RegulationLevel.MEDIUM,
version: '1.0',
remark: '已归档',
createBy: 'admin',
updateBy: 'admin',
createTime: '2024-01-01 12:00:00',
updateTime: '2024-01-01 12:00:00',
page: 1,
pageSize: 10,
delFlag: '0'
}
]
// Mock讨论数据
export const mockDiscussions = [
{
id: '1',
regulationId: 'reg001',
authorId: '2',
authorName: '李四',
content: '这个提案很有建设性,建议增加一些具体的实施细则。',
createTime: '2024-01-01 11:00:00'
},
{
id: '2',
regulationId: 'reg001',
authorId: '3',
authorName: '王五',
content: '同意这个提案,但需要考虑实施成本。',
createTime: '2024-01-01 14:30:00'
},
{
id: '3',
regulationId: 'reg002',
authorId: '1',
authorName: '张三',
content: '简化流程确实能提高效率,支持这个提案。',
createTime: '2024-01-15 16:00:00'
}
]