This commit is contained in:
chabai 2025-08-07 15:26:43 +08:00
commit 66f6cce01b
9 changed files with 600 additions and 345 deletions

View File

@ -26,53 +26,52 @@ export const systemRoutes: RouteRecordRaw[] = [
// }
// ],
// },
{
path: '/regulation',
name: 'Regulation',
component: Layout,
redirect: '/regulation/system-regulation',
meta: { title: '制度管理', icon: 'file-text', hidden: false, sort: 1.5 },
children: [
{
path: '/regulation/system-regulation',
name: 'SystemRegulation',
component: () => import('@/views/regulation/repository.vue'),
meta: { title: '制度公告', icon: 'file-text', hidden: false },
},
{
path: '/regulation/process-management',
name: 'ProcessManagement',
component: () => import('@/views/regulation/confirm.vue'),
meta: { title: '制度公示', icon: 'workflow', hidden: false },
},
{
path: '/regulation/proposal',
name: 'RegulationProposal',
component: () => import('@/views/regulation/proposal/index.vue'),
meta: { title: '制度提案', icon: 'edit', hidden: false },
},
{
path: '/regulation/type',
name: 'RegulationType',
component: () => import('@/views/regulation/type/index.vue'),
meta: { title: '制度类型', icon: 'tag', hidden: false },
},
],
},
// {
// path: '/regulation',
// name: 'Regulation',
// component: Layout,
// redirect: '/regulation/system-regulation',
// meta: { title: '制度管理', icon: 'file-text', hidden: false, sort: 1.5 },
// children: [
// {
// path: '/regulation/system-regulation',
// name: 'SystemRegulation',
// component: () => import('@/views/regulation/repository.vue'),
// meta: { title: '制度公告', icon: 'file-text', hidden: false },
// },
// {
// path: '/regulation/process-management',
// name: 'ProcessManagement',
// component: () => import('@/views/regulation/confirm.vue'),
// meta: { title: '制度公示', icon: 'workflow', hidden: false },
// },
// {
// path: '/regulation/proposal',
// name: 'RegulationProposal',
// component: () => import('@/views/regulation/proposal/index.vue'),
// meta: { title: '制度提案', icon: 'edit', hidden: false },
// },
// {
// path: '/regulation/type',
// name: 'RegulationType',
// component: () => import('@/views/regulation/type/index.vue'),
// meta: { title: '制度类型', icon: 'tag', hidden: false },
// },
// ],
// },
{
path: '/organization',
name: 'Organization',
component: Layout,
redirect: '/organization/dept',
meta: { title: '组织架构', icon: 'user-group', hidden: false, sort: 2 },
meta: { title: '企业管理', icon: 'user-group', hidden: false, sort: 2 },
children: [
{
path: '/organization/user',
name: 'OrganizationUser',
component: () => import('@/views/system/user/index.vue'),
meta: { title: '用户管理', icon: 'user', hidden: false, sort: 2.25 },
},
// {
// path: '/organization/user',
// name: 'OrganizationUser',
// component: () => import('@/views/system/user/index.vue'),
// meta: { title: '用户管理', icon: 'user', hidden: false, sort: 2.25 },
// },
{
path: '/organization/dept',
name: 'OrganizationDept',
@ -85,6 +84,39 @@ export const systemRoutes: RouteRecordRaw[] = [
component: () => import('@/views/system/post/index.vue'),
meta: { title: '岗位管理', icon: 'nav', hidden: false, sort: 2.75 },
},
{
path: '/regulation',
name: 'Regulation',
// component: Layout,
redirect: '/regulation/system-regulation',
meta: { title: '制度管理', icon: 'file-text', hidden: false, sort: 1.5 },
children: [
{
path: '/regulation/system-regulation',
name: 'SystemRegulation',
component: () => import('@/views/regulation/repository.vue'),
meta: { title: '制度公告', icon: 'file-text', hidden: false },
},
{
path: '/regulation/process-management',
name: 'ProcessManagement',
component: () => import('@/views/regulation/confirm.vue'),
meta: { title: '制度公示', icon: 'workflow', hidden: false },
},
{
path: '/regulation/proposal',
name: 'RegulationProposal',
component: () => import('@/views/regulation/proposal/index.vue'),
meta: { title: '制度提案', icon: 'edit', hidden: false },
},
{
path: '/regulation/type',
name: 'RegulationType',
component: () => import('@/views/regulation/type/index.vue'),
meta: { title: '制度类型', icon: 'tag', hidden: false },
},
],
},
// {
// path: '/organization/hr/workload',
// name: 'HRWorkload',
@ -296,98 +328,64 @@ export const systemRoutes: RouteRecordRaw[] = [
path: '/asset-management',
name: 'AssetManagement',
component: Layout,
redirect: '/asset-management/device-management/device-center',
meta: { title: '资产管理', icon: 'property-safety', hidden: true, sort: 3 },
redirect: '/asset-management/device/inventory',
meta: { title: '资产管理', icon: 'property-safety', hidden: false, sort: 3 },
children: [
{
path: '/asset-management/device-management',
name: 'DeviceManagement',
component: () => import('@/components/ParentView/index.vue'),
redirect: '/asset-management/device-management/device-center',
meta: {
title: '设备管理',
icon: 'device',
hidden: false,
},
path: '/asset-management/intellectual-property1',
name: 'IntellectualProperty1',
component: () => import('@/views/system-resource/information-system/software-management/index.vue'),
meta: { title: '设备管理', icon: 'copyright', hidden: false },
children: [
{
path: '/asset-management/device-management/device-center',
name: 'DeviceCenter',
component: () => import('@/views/system-resource/device-management/index.vue'),
meta: {
title: '设备中心',
icon: 'appstore',
hidden: false,
},
path: '/asset-management/intellectual-property1',
name: 'IntellectualProperty11',
component: () => import('@/views/system-resource/information-system/software-management/index.vue'),
meta: { title: '库存管理', hidden: false },
},
{
path: '/asset-management/device-management/device-detail/:id',
name: 'DeviceDetail',
component: () => import('@/views/system-resource/device-management/detail.vue'),
meta: {
title: '设备详情',
icon: 'info-circle',
hidden: true,
},
path: '/asset-management/intellectual-property1',
name: 'IntellectualProperty12',
component: () => import('@/views/system-resource/information-system/software-management/index.vue'),
meta: { title: '设备采购', hidden: false },
},
{
path: '/asset-management/device-management/procurement',
name: 'DeviceProcurement',
component: () => import('@/views/system-resource/device-management/procurement/index.vue'),
meta: {
title: '设备采购',
icon: 'shopping-cart',
hidden: false,
},
},
{
path: '/asset-management/device-management/online',
name: 'DeviceOnline',
component: () => import('@/components/ParentView/index.vue'),
redirect: '/asset-management/device-management/online/drone',
meta: {
title: '在线管理',
icon: 'cloud',
hidden: false,
},
path: '/asset-management/intellectual-property1',
name: 'IntellectualProperty13',
component: () => import('@/views/system-resource/information-system/software-management/index.vue'),
meta: { title: '在线管理', hidden: false },
children: [
{
path: '/asset-management/device-management/online/drone',
name: 'DeviceDrone',
component: () => import('@/views/system-resource/device-management/index.vue'),
meta: {
title: '无人机',
icon: 'drone',
hidden: false,
},
path: '/asset-management/intellectual-property11',
name: 'IntellectualProperty14',
component: () => import('@/views/system-resource/information-system/software-management/index.vue'),
meta: { title: '无人机', hidden: false },
},
{
path: '/asset-management/device-management/online/nest',
name: 'DeviceNest',
component: () => import('@/views/system-resource/device-management/index.vue'),
meta: {
title: '机巢',
icon: 'nest',
hidden: false,
},
path: '/asset-management/intellectual-property12',
name: 'IntellectualProperty15',
component: () => import('@/views/system-resource/information-system/software-management/index.vue'),
meta: { title: '机巢', hidden: false },
},
{
path: '/asset-management/device-management/online/smart-terminal',
name: 'DeviceSmartTerminal',
component: () => import('@/views/system-resource/device-management/index.vue'),
meta: {
title: '其他智能终端',
icon: 'terminal',
hidden: false,
},
path: '/asset-management/intellectual-property13',
name: 'IntellectualProperty16',
component: () => import('@/views/system-resource/information-system/software-management/index.vue'),
meta: { title: '其他智能终端', hidden: false },
},
{
path: '/asset-management/intellectual-property14',
name: 'IntellectualProperty17',
component: () => import('@/views/system-resource/information-system/software-management/index.vue'),
meta: { title: '车辆管理', hidden: false },
},
],
},
],
},
{
path: '/asset-management/other-assets',
name: 'OtherAssets',
path: '/asset-management/intellectual-property',
name: 'IntellectualProperty',
component: () => import('@/views/system-resource/information-system/software-management/index.vue'),
meta: { title: '其他资产', icon: 'copyright', hidden: false },
},
@ -535,99 +533,86 @@ export const systemRoutes: RouteRecordRaw[] = [
],
},
{
path: '/project-management',
name: 'ProjectManagement',
path: '/project-marketing',
name: 'Projectmarketing',
component: Layout,
redirect: '/project-management/project-template/project-management',
meta: { title: '项目管理', icon: 'apps', hidden: false, sort: 4 },
redirect: '/project-marketing/project-marketing',
meta: { title: '营销管理', icon: 'file-text', hidden: false, sort: 3 },
children: [
{
path: '/project-management/contract/project-source',
name: 'ProjectSource',
path: '/project-marketing/contract/revenue-contract2',
name: 'RevenueContract2',
component: () => import('@/views/default/error/404.vue'),
meta: {
title: '市场营销(N)',
icon: 'dollar',
hidden: false,
},
},
{
path: '/project-marketing/contract/procurement-business',
name: 'ProcurementBusiness',
component: () => import('@/components/ParentView/index.vue'),
meta: {
title: '项目来源',
title: '招采业务',
icon: 'dollar',
hidden: false,
},
children: [
{
path: '/project-management/contract/procurement-business',
name: 'ProcurementBusiness',
component: () => import('@/components/ParentView/index.vue'),
path: '/project-marketing/project-template/tender-documents',
name: 'TenderDocuments',
component: () => import('@/views/project-management/bidding/tender-documents/index.vue'),
meta: {
title: '招采业务',
icon: 'dollar',
hidden: false,
},
children: [
{
path: '/project-management/project-template/tender-documents',
name: 'TenderDocuments',
component: () => import('@/views/project-management/bidding/tender-documents/index.vue'),
meta: {
title: '招标文件',
icon: 'file-text',
hidden: false,
},
},
{
path: '/project-management/project-template/bid-documents',
name: 'BidDocuments',
component: () => import('@/views/project-management/bidding/bid-documents/index.vue'),
meta: {
title: '投标文件',
icon: 'file-text',
hidden: false,
},
},
{
path: '/project-management/project-template/award-notice',
name: 'AwardNotice',
component: () => import('@/views/project-management/bidding/award-notice/index.vue'),
meta: {
title: '中标通知书',
icon: 'trophy',
hidden: false,
},
},
{
path: '/project-management/project-template/information-retrieval',
name: 'InformationRetrieval',
component: () => import ('@/views/project-management/bidding/information-retrieval/index.vue'),
meta: {
title: '信息检索(N)',
icon: 'trophy',
hidden: false,
},
},
],
},
{
path: '/project-management/contract/revenue-contract2',
name: 'RevenueContract2',
component: () => import('@/views/default/error/404.vue'),
meta: {
title: '市场营销(N)',
icon: 'dollar',
title: '招标文件',
icon: 'file-text',
hidden: false,
},
},
{
path: '/project-management/project-source/privateproject',
name: 'PrivateProject',
component: () => import('@/views/default/error/404.vue'),
path: '/project-marketing/project-template/bid-documents',
name: 'BidDocuments',
component: () => import('@/views/project-management/bidding/bid-documents/index.vue'),
meta: {
title: '自建项目(N)',
icon: 'dollar',
title: '投标文件',
icon: 'file-text',
hidden: false,
},
},
{
path: '/project-marketing/project-template/award-notice',
name: 'AwardNotice',
component: () => import('@/views/project-management/bidding/award-notice/index.vue'),
meta: {
title: '中标通知书',
icon: 'trophy',
hidden: false,
},
},
{
path: '/project-marketing/project-template/information-retrieval',
name: 'InformationRetrieval',
component: () => import ('@/views/project-management/bidding/information-retrieval/index.vue'),
meta: {
title: '信息检索(N)',
icon: 'trophy',
hidden: false,
},
},
],
},
{
path: '/project-marketing/order-management/order-management',
name: 'OrderManagement',
component: () => import('@/views/project-management/order-management/index.vue'),
meta: {
title: '订单管理',
icon: 'file-text',
hidden: false,
},
},
{ path: '/project-management/contract', name: 'ProjectContract', component: () => import('@/components/ParentView/index.vue'), redirect: '/project-management/contract/revenue-contract', meta: {
title: '项目合同',
title: '合同管理',
icon: 'file-text',
hidden: false,
}, children: [
@ -662,6 +647,136 @@ export const systemRoutes: RouteRecordRaw[] = [
},
},
] },
],
},
{
path: '/project-management',
name: 'ProjectManagement',
component: Layout,
redirect: '/project-management/project-template/project-management',
meta: { title: '项目管理', icon: 'apps', hidden: false, sort: 4 },
children: [
{
path: '/project-management/contract/project-source',
name: 'ProjectSource',
component: () => import('@/components/ParentView/index.vue'),
meta: {
title: '项目来源',
icon: 'dollar',
hidden: false,
},
children: [
// {
// path: '/project-management/contract/procurement-business',
// name: 'ProcurementBusiness',
// component: () => import('@/components/ParentView/index.vue'),
// meta: {
// title: '招采业务',
// icon: 'dollar',
// hidden: false,
// },
// children: [
// {
// path: '/project-management/project-template/tender-documents',
// name: 'TenderDocuments',
// component: () => import('@/views/project-management/bidding/tender-documents/index.vue'),
// meta: {
// title: '招标文件',
// icon: 'file-text',
// hidden: false,
// },
// },
// {
// path: '/project-management/project-template/bid-documents',
// name: 'BidDocuments',
// component: () => import('@/views/project-management/bidding/bid-documents/index.vue'),
// meta: {
// title: '投标文件',
// icon: 'file-text',
// hidden: false,
// },
// },
// {
// path: '/project-management/project-template/award-notice',
// name: 'AwardNotice',
// component: () => import('@/views/project-management/bidding/award-notice/index.vue'),
// meta: {
// title: '中标通知书',
// icon: 'trophy',
// hidden: false,
// },
// },
// {
// path: '/project-management/project-template/information-retrieval',
// name: 'InformationRetrieval',
// component: () => import ('@/views/project-management/bidding/information-retrieval/index.vue'),
// meta: {
// title: '信息检索(N)',
// icon: 'trophy',
// hidden: false,
// },
// },
//
// ],
// },
// {
// path: '/project-management/contract/revenue-contract2',
// name: 'RevenueContract2',
// component: () => import('@/views/default/error/404.vue'),
// meta: {
// title: '市场营销(N)',
// icon: 'dollar',
// hidden: false,
// },
// },
{
path: '/project-management/project-source/privateproject',
name: 'PrivateProject',
component: () => import('@/views/default/error/404.vue'),
meta: {
title: '自建项目(N)',
icon: 'dollar',
hidden: false,
},
},
],
},
// { path: '/project-management/contract', name: 'ProjectContract', component: () => import('@/components/ParentView/index.vue'), redirect: '/project-management/contract/revenue-contract', meta: {
// title: '项目合同',
// icon: 'file-text',
// hidden: false,
// }, children: [
// {
// path: '/project-management/contract/revenue-contract',
// name: 'RevenueContract',
// component: () => import('@/views/project-management/contract/revenue-contract/index.vue'),
// meta: {
// title: '收入合同',
// icon: 'dollar',
// hidden: false,
// },
// },
// {
// path: '/project-management/contract/expense-contract',
// name: 'ExpenseContract',
// component: () => import('@/views/project-management/contract/expense-contract/index.vue'),
// meta: {
// title: '支出合同',
// icon: 'credit-card',
// hidden: false,
// },
// },
// {
// path: '/project-management/contract/cost-management',
// name: 'CostManagement',
// component: () => import('@/views/project-management/contract/cost-management/index.vue'),
// meta: {
// title: '成本费用',
// icon: 'bar-chart',
// hidden: false,
// },
// },
// ] },
{
path: '/project-management/project-template/project-aproval',
name: 'ProjectTemplate',
@ -737,7 +852,26 @@ export const systemRoutes: RouteRecordRaw[] = [
],
},
// 添加商务知识库
{
path: '/bussiness-knowledge',
name: 'bussinesskonwledge',
component: Layout,
redirect: '/bussiness-knowledge/data',
meta: { title: '商务资料知识库', icon: 'message', hidden: false, sort: 6 },
children: [
{
path: '/bussiness-konwledge/data',
name: 'bussiness-knowledge',
component: () => import('@/views/bussiness-data/bussiness.vue'),
meta: {
title: '商务数据库信息',
icon: 'info-circle',
hidden: false,
},
},
],
},
{
path: 'project-management/project-implementation/',
name: 'Project-Implementation',
@ -1032,26 +1166,6 @@ export const systemRoutes: RouteRecordRaw[] = [
},
// ],
// },
// 商务数据库信息模块
{
path: '/business-knowledge',
name: 'BusinessKnowledge',
component: Layout,
redirect: '/business-knowledge/data',
meta: { title: '商务数据库信息', icon: 'database', hidden: false, sort: 5.5 },
children: [
{
path: '/business-knowledge/data',
name: 'BusinessKnowledgeData',
component: () => import('@/views/bussiness-data/bussiness.vue'),
meta: {
title: '商务数据库信息',
icon: 'info-circle',
hidden: false,
},
},
],
},
{
path: '/chat-platform',
name: 'ChatPlatform',
@ -1071,30 +1185,30 @@ export const systemRoutes: RouteRecordRaw[] = [
// }
],
},
{
path: '/user/profile',
name: 'UserProfile',
component: Layout,
redirect: '/user/profile',
meta: {
title: '个人中心',
icon: 'user',
hidden: false,
sort: 100,
},
children: [
{
path: '/user/profile',
name: 'UsersProfile',
component: () => import('@/views/user/profile/index.vue'),
meta: {
title: '个人中心',
icon: 'user',
hidden: false,
},
},
],
},
// {
// path: '/user/profile',
// name: 'UserProfile',
// component: Layout,
// redirect: '/user/profile',
// meta: {
// title: '个人中心',
// icon: 'user',
// hidden: false,
// sort: 100,
// },
// children: [
// {
// path: '/user/profile',
// name: 'UsersProfile',
// component: () => import('@/views/user/profile/index.vue'),
// meta: {
// title: '个人中心',
// icon: 'user',
// hidden: false,
// },
// },
// ],
// },
{
path: '/enterprise-settings',
name: 'EnterpriseSettings',
@ -1193,25 +1307,6 @@ export const systemRoutes: RouteRecordRaw[] = [
},
],
},
{
path: '/training',
name: 'Training',
component: Layout,
redirect: '/training/plan',
meta: { title: '培训管理', icon: 'book', hidden: false, sort: 9 },
children: [
{
path: '/training/plan',
name: 'TrainingPlan',
component: () => import('@/views/training/plan/index.vue'),
meta: {
title: '培训计划',
icon: 'calendar',
hidden: false,
},
},
],
},
{
path: '/system-resource',
name: 'SystemResource',

View File

@ -149,6 +149,20 @@ const storeSetup = () => {
isHidden: false,
sort: 3,
},
{
id: 1070,
parentId: 1000,
title: '个人中心',
type: 2,
path: '/user/profile',
name: 'UserProfile',
component: 'user/profile/index',
icon: 'user',
isExternal: false,
isCache: false,
isHidden: false,
sort: 4,
},
],
},
{

View File

@ -70,6 +70,6 @@ declare global {
// for type re-export
declare global {
// @ts-ignore
export type { Component, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue'
export type { Component, ComponentPublicInstance, ComputedRef, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, VNode, WritableComputedRef } from 'vue'
import('vue')
}

View File

@ -7,66 +7,7 @@ export {}
declare module 'vue' {
export interface GlobalComponents {
Avatar: typeof import('./../components/Avatar/index.vue')['default']
Breadcrumb: typeof import('./../components/Breadcrumb/index.vue')['default']
CellCopy: typeof import('./../components/CellCopy/index.vue')['default']
Chart: typeof import('./../components/Chart/index.vue')['default']
ColumnSetting: typeof import('./../components/GiTable/src/components/ColumnSetting.vue')['default']
CronForm: typeof import('./../components/GenCron/CronForm/index.vue')['default']
CronModal: typeof import('./../components/GenCron/CronModal/index.vue')['default']
DateRangePicker: typeof import('./../components/DateRangePicker/index.vue')['default']
DayForm: typeof import('./../components/GenCron/CronForm/component/day-form.vue')['default']
FilePreview: typeof import('./../components/FilePreview/index.vue')['default']
GiCellAvatar: typeof import('./../components/GiCell/GiCellAvatar.vue')['default']
GiCellGender: typeof import('./../components/GiCell/GiCellGender.vue')['default']
GiCellStatus: typeof import('./../components/GiCell/GiCellStatus.vue')['default']
GiCellTag: typeof import('./../components/GiCell/GiCellTag.vue')['default']
GiCellTags: typeof import('./../components/GiCell/GiCellTags.vue')['default']
GiCodeView: typeof import('./../components/GiCodeView/index.vue')['default']
GiDot: typeof import('./../components/GiDot/index.tsx')['default']
GiEditTable: typeof import('./../components/GiEditTable/GiEditTable.vue')['default']
GiFooter: typeof import('./../components/GiFooter/index.vue')['default']
GiForm: typeof import('./../components/GiForm/src/GiForm.vue')['default']
GiIconBox: typeof import('./../components/GiIconBox/index.vue')['default']
GiIconSelector: typeof import('./../components/GiIconSelector/index.vue')['default']
GiIframe: typeof import('./../components/GiIframe/index.vue')['default']
GiOption: typeof import('./../components/GiOption/index.vue')['default']
GiOptionItem: typeof import('./../components/GiOptionItem/index.vue')['default']
GiPageLayout: typeof import('./../components/GiPageLayout/index.vue')['default']
GiSpace: typeof import('./../components/GiSpace/index.vue')['default']
GiSplitButton: typeof import('./../components/GiSplitButton/index.vue')['default']
GiSplitPane: typeof import('./../components/GiSplitPane/index.vue')['default']
GiSplitPaneFlexibleBox: typeof import('./../components/GiSplitPane/components/GiSplitPaneFlexibleBox.vue')['default']
GiSvgIcon: typeof import('./../components/GiSvgIcon/index.vue')['default']
GiTable: typeof import('./../components/GiTable/src/GiTable.vue')['default']
GiTag: typeof import('./../components/GiTag/index.tsx')['default']
GiThemeBtn: typeof import('./../components/GiThemeBtn/index.vue')['default']
HourForm: typeof import('./../components/GenCron/CronForm/component/hour-form.vue')['default']
Icon403: typeof import('./../components/icons/Icon403.vue')['default']
Icon404: typeof import('./../components/icons/Icon404.vue')['default']
Icon500: typeof import('./../components/icons/Icon500.vue')['default']
IconBorders: typeof import('./../components/icons/IconBorders.vue')['default']
IconTableSize: typeof import('./../components/icons/IconTableSize.vue')['default']
IconTreeAdd: typeof import('./../components/icons/IconTreeAdd.vue')['default']
IconTreeReduce: typeof import('./../components/icons/IconTreeReduce.vue')['default']
ImageImport: typeof import('./../components/ImageImport/index.vue')['default']
ImageImportWizard: typeof import('./../components/ImageImportWizard/index.vue')['default']
IndustrialImageList: typeof import('./../components/IndustrialImageList/index.vue')['default']
JsonPretty: typeof import('./../components/JsonPretty/index.vue')['default']
MinuteForm: typeof import('./../components/GenCron/CronForm/component/minute-form.vue')['default']
MonthForm: typeof import('./../components/GenCron/CronForm/component/month-form.vue')['default']
ParentView: typeof import('./../components/ParentView/index.vue')['default']
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
SecondForm: typeof import('./../components/GenCron/CronForm/component/second-form.vue')['default']
SplitPanel: typeof import('./../components/SplitPanel/index.vue')['default']
TextCopy: typeof import('./../components/TextCopy/index.vue')['default']
TurbineGrid: typeof import('./../components/TurbineGrid/index.vue')['default']
UserSelect: typeof import('./../components/UserSelect/index.vue')['default']
Verify: typeof import('./../components/Verify/index.vue')['default']
VerifyPoints: typeof import('./../components/Verify/Verify/VerifyPoints.vue')['default']
VerifySlide: typeof import('./../components/Verify/Verify/VerifySlide.vue')['default']
WeekForm: typeof import('./../components/GenCron/CronForm/component/week-form.vue')['default']
YearForm: typeof import('./../components/GenCron/CronForm/component/year-form.vue')['default']
}
}

View File

@ -0,0 +1,11 @@
<script setup lang="ts">
</script>
<template>
</template>
<style scoped lang="scss">
</style>

View File

@ -32,6 +32,21 @@
<div class="tab-content">
<!-- 基本信息 -->
<div v-show="activeTab === 'basic'">
<!-- 测试数据按钮 -->
<div v-if="!isView" class="test-data-section">
<div class="test-data-header">
<span class="test-data-title">🧪 测试数据</span>
<span class="test-data-desc">点击按钮快速填入测试数据方便功能测试</span>
</div>
<a-button
type="primary"
size="small"
@click="fillTestData"
>
📝 填入测试数据
</a-button>
</div>
<a-row :gutter="16">
<a-col :span="12">
<a-form-item label="设备名称" field="equipmentName">
@ -173,10 +188,10 @@
<a-form-item label="总价" field="totalPrice">
<a-input-number
v-model="formData.totalPrice"
placeholder="请输入总价"
placeholder="自动计算"
:precision="2"
:min="0"
:disabled="isView"
:disabled="true"
style="width: 100%"
/>
</a-form-item>
@ -219,6 +234,8 @@
:disabled="isView"
show-time
style="width: 100%"
format="YYYY-MM-DD HH:mm:ss"
value-format="YYYY-MM-DD HH:mm:ss"
/>
</a-form-item>
</a-col>
@ -230,6 +247,8 @@
:disabled="isView"
show-time
style="width: 100%"
format="YYYY-MM-DD HH:mm:ss"
value-format="YYYY-MM-DD HH:mm:ss"
/>
</a-form-item>
</a-col>
@ -244,6 +263,8 @@
:disabled="isView"
show-time
style="width: 100%"
format="YYYY-MM-DD HH:mm:ss"
value-format="YYYY-MM-DD HH:mm:ss"
/>
</a-form-item>
</a-col>
@ -253,7 +274,10 @@
v-model="formData.expectedScrapTime"
placeholder="请选择预计报废时间"
:disabled="isView"
show-time
style="width: 100%"
format="YYYY-MM-DD HH:mm:ss"
value-format="YYYY-MM-DD HH:mm:ss"
/>
</a-form-item>
</a-col>
@ -306,7 +330,10 @@
v-model="formData.warrantyExpireDate"
placeholder="请选择保修截止日期"
:disabled="isView"
show-time
style="width: 100%"
format="YYYY-MM-DD HH:mm:ss"
value-format="YYYY-MM-DD HH:mm:ss"
/>
</a-form-item>
</a-col>
@ -418,7 +445,10 @@
v-model="formData.lastMaintenanceDate"
placeholder="请选择上次维护日期"
:disabled="isView"
show-time
style="width: 100%"
format="YYYY-MM-DD HH:mm:ss"
value-format="YYYY-MM-DD HH:mm:ss"
/>
</a-form-item>
</a-col>
@ -428,7 +458,10 @@
v-model="formData.nextMaintenanceDate"
placeholder="请选择下次维护日期"
:disabled="isView"
show-time
style="width: 100%"
format="YYYY-MM-DD HH:mm:ss"
value-format="YYYY-MM-DD HH:mm:ss"
/>
</a-form-item>
</a-col>
@ -596,9 +629,8 @@ const equipmentTypeOptions = [
const equipmentStatusOptions = [
{ label: '正常', value: 'normal' },
{ label: '维修中', value: 'repair' },
{ label: '已报废', value: 'scrap' },
{ label: '闲置', value: 'idle' },
{ label: '丢失', value: 'lost' },
{ label: '保养中', value: 'maintain' },
{ label: '报废', value: 'scrap' },
]
const useStatusOptions = [
@ -607,13 +639,14 @@ const useStatusOptions = [
]
const locationStatusOptions = [
{ label: '未入库', value: 'not_in_stock' },
{ label: '库存中', value: 'in_stock' },
{ label: '使用中', value: 'in_use' },
{ label: '已分配', value: 'allocated' },
{ label: '维修中', value: 'repair' },
{ label: '待报废', value: 'scrap' },
{ label: '已报废', value: 'scrapped' },
{ label: '外借中', value: 'on_loan' },
{ label: '外借中', value: 'borrowed' },
{ label: '丢失', value: 'lost' },
{ label: '闲置', value: 'idle' },
]
const healthStatusOptions = [
@ -650,6 +683,15 @@ watch(() => props.visible, (newVal) => {
}
})
//
watch([() => formData.unitPrice, () => formData.quantity], ([newUnitPrice, newQuantity]) => {
if (newUnitPrice && newQuantity) {
formData.totalPrice = Number((newUnitPrice * newQuantity).toFixed(2))
} else {
formData.totalPrice = undefined
}
})
//
const initFormData = () => {
if (props.procurementData) {
@ -709,7 +751,7 @@ const resetForm = () => {
assetCode: '',
brand: '',
specification: '',
locationStatus: '',
locationStatus: 'not_in_stock', // ""
physicalLocation: '',
responsiblePerson: '',
healthStatus: '',
@ -765,6 +807,107 @@ const handleSubmit = async () => {
}
}
//
const fillTestData = () => {
//
const now = new Date()
const currentTime = now.toISOString().slice(0, 19).replace('T', ' ')
//
const futureDate = new Date(now.getTime() + 365 * 24 * 60 * 60 * 1000) //
const futureTime = futureDate.toISOString().slice(0, 19).replace('T', ' ')
//
const pastDate = new Date(now.getTime() - 30 * 24 * 60 * 60 * 1000) // 30
const pastTime = pastDate.toISOString().slice(0, 19).replace('T', ' ')
// 7
const inStockDate = new Date(pastDate.getTime() + 7 * 24 * 60 * 60 * 1000)
const inStockTime = inStockDate.toISOString().slice(0, 19).replace('T', ' ')
// 3
const activationDate = new Date(inStockDate.getTime() + 3 * 24 * 60 * 60 * 1000)
const activationTime = activationDate.toISOString().slice(0, 19).replace('T', ' ')
// 2
const warrantyDate = new Date(pastDate.getTime() + 2 * 365 * 24 * 60 * 60 * 1000)
const warrantyTime = warrantyDate.toISOString().slice(0, 19).replace('T', ' ')
//
const lastMaintenanceDate = new Date(now.getTime() - 15 * 24 * 60 * 60 * 1000) // 15
const lastMaintenanceTime = lastMaintenanceDate.toISOString().slice(0, 19).replace('T', ' ')
const nextMaintenanceDate = new Date(now.getTime() + 15 * 24 * 60 * 60 * 1000) // 15
const nextMaintenanceTime = nextMaintenanceDate.toISOString().slice(0, 19).replace('T', ' ')
//
const randomSn = 'SN' + Math.random().toString(36).substr(2, 8).toUpperCase()
//
const randomAssetCode = 'ZC' + Math.random().toString(36).substr(2, 6).toUpperCase()
//
const randomPurchaseOrder = 'PO' + Math.random().toString(36).substr(2, 8).toUpperCase()
//
const randomBarcode = 'BC' + Math.random().toString(36).substr(2, 10).toUpperCase()
//
const randomAccountNumber = 'AC' + Math.random().toString(36).substr(2, 6).toUpperCase()
//
formData.unitPrice = 8999.00
formData.quantity = 2
Object.assign(formData, {
//
equipmentName: '高清工业相机系统',
equipmentModel: 'IC-2000Pro',
equipmentType: 'detection',
equipmentSn: randomSn,
brand: '海康威视',
assetCode: randomAssetCode,
specification: '分辨率4K帧率60fps接口USB3.0支持AI识别防水等级IP67',
//
purchaseOrder: randomPurchaseOrder,
supplierName: '海康威视官方旗舰店',
// quantity unitPrice totalPrice
purchasePrice: 17998.00,
currentNetValue: 17998.00,
depreciationMethod: 'straight_line',
depreciationYears: 5,
salvageValue: 899.90,
//
purchaseTime: pastTime,
inStockTime: inStockTime,
activationTime: activationTime,
expectedScrapTime: futureTime,
warrantyExpireDate: warrantyTime,
lastMaintenanceDate: lastMaintenanceTime,
nextMaintenanceDate: nextMaintenanceTime,
//
equipmentStatus: 'normal',
useStatus: '1',
locationStatus: 'in_stock',
healthStatus: 'excellent',
responsiblePerson: '张工程师',
maintenancePerson: '李维护员',
physicalLocation: 'A区-3楼-设备间-01号柜',
inventoryBarcode: randomBarcode,
//
accountNumber: randomAccountNumber,
inventoryBasis: '月度盘点',
dynamicRecord: '设备运行正常,定期维护保养,性能稳定,满足生产需求。',
assetRemark: '重要检测设备,需定期校准,专人负责维护。',
})
Message.success('测试数据已填入!')
}
//
const handleCancel = () => {
emit('update:visible', false)
@ -845,6 +988,52 @@ const handleCancel = () => {
}
}
//
.test-data-section {
background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
border: 1px solid #bae6fd;
border-radius: 8px;
padding: 12px 16px;
margin-bottom: 20px;
.test-data-header {
display: flex;
flex-direction: column;
margin-bottom: 12px;
.test-data-title {
font-weight: 600;
color: #1e40af;
font-size: 14px;
margin-bottom: 4px;
}
.test-data-desc {
color: #64748b;
font-size: 12px;
line-height: 1.4;
}
}
.arco-btn {
background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
border: none;
color: white;
font-weight: 500;
box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
transition: all 0.3s ease;
&:hover {
transform: translateY(-1px);
box-shadow: 0 4px 8px rgba(59, 130, 246, 0.4);
}
&:active {
transform: translateY(0);
}
}
}
//
@media (max-width: 768px) {
.tab-navigation {
@ -861,5 +1050,10 @@ const handleCancel = () => {
}
}
}
.test-data-section {
padding: 8px 12px;
margin-bottom: 16px;
}
}
</style>

View File

@ -93,9 +93,8 @@
>
<a-option value="normal">正常</a-option>
<a-option value="repair">维修中</a-option>
<a-option value="scrap">已报废</a-option>
<a-option value="idle">闲置</a-option>
<a-option value="lost">丢失</a-option>
<a-option value="maintain">保养中</a-option>
<a-option value="scrap">报废</a-option>
</a-select>
</a-form-item>
</a-col>
@ -106,13 +105,14 @@
placeholder="请选择位置状态"
allow-clear
>
<a-option value="not_in_stock">未入库</a-option>
<a-option value="in_stock">库存中</a-option>
<a-option value="in_use">使用中</a-option>
<a-option value="allocated">已分配</a-option>
<a-option value="repair">维修中</a-option>
<a-option value="scrap">待报废</a-option>
<a-option value="scrapped">已报废</a-option>
<a-option value="on_loan">外借中</a-option>
<a-option value="borrowed">外借中</a-option>
<a-option value="lost">丢失</a-option>
<a-option value="idle">闲置</a-option>
</a-select>
</a-form-item>
</a-col>

View File

@ -360,9 +360,8 @@ const getEquipmentStatusColor = (status: string) => {
const colorMap: Record<string, string> = {
normal: 'green',
repair: 'orange',
maintain: 'blue',
scrap: 'red',
idle: 'blue',
lost: 'gray',
}
return colorMap[status] || 'blue'
}
@ -372,9 +371,8 @@ const getEquipmentStatusText = (status: string) => {
const textMap: Record<string, string> = {
normal: '正常',
repair: '维修中',
scrap: '已报废',
idle: '闲置',
lost: '丢失',
maintain: '保养中',
scrap: '报废',
}
return textMap[status] || '未知'
}
@ -382,13 +380,14 @@ const getEquipmentStatusText = (status: string) => {
//
const getLocationStatusColor = (status: string) => {
const colorMap: Record<string, string> = {
not_in_stock: 'gray',
in_stock: 'blue',
in_use: 'green',
allocated: 'green',
repair: 'orange',
scrap: 'red',
scrapped: 'red',
on_loan: 'purple',
borrowed: 'purple',
lost: 'gray',
idle: 'cyan',
}
return colorMap[status] || 'blue'
}
@ -396,13 +395,14 @@ const getLocationStatusColor = (status: string) => {
//
const getLocationStatusText = (status: string) => {
const textMap: Record<string, string> = {
not_in_stock: '未入库',
in_stock: '库存中',
in_use: '使用中',
allocated: '已分配',
repair: '维修中',
scrap: '待报废',
scrapped: '已报废',
on_loan: '外借中',
borrowed: '外借中',
lost: '丢失',
idle: '闲置',
}
return textMap[status] || '未知'
}

View File

@ -29,7 +29,7 @@
</div>
<div class="info-item">
<div class="info-label">所属部门</div>
<div class="info-value">{{ primaryInfo?.department || '技术部' }}</div>
<div class="info-value">{{ primaryInfo?.deptName || '技术部' }}</div>
</div>
<div class="info-item">
<div class="info-label">直接上级岗位</div>
@ -52,7 +52,7 @@
<div class="info-value">{{ primaryInfo?.location || '上海/远程' }}</div>
</div>
</div>
<!-- 岗位目的 -->
<div class="section-title">岗位目的</div>
<div class="content-container">
@ -68,18 +68,18 @@
<div class="section-title">主要职责与工作任务</div>
<div class="content-container">
<ul>
<li v-for="(task, idx) in (primaryInfo?.tasks || ['负责XXX产品的需求分析、架构设计、核心模块编码和单元测试。','制定并执行季度社交媒体营销计划,提升品牌曝光度和用户互动率。'])" :key="idx">{{ task }}</li>
<li v-for="(task, idx) in (primaryInfo?.tasks || ['负责XXX产品的需求分析、架构设计、核心模块编码和单元测试。', '制定并执行季度社交媒体营销计划,提升品牌曝光度和用户互动率。'])" :key="idx">{{ task }}</li>
</ul>
</div>
<!-- 工作权限 -->
<div class="section-title">工作权限</div>
<div class="content-container">
<ul>
<li v-for="(perm, idx) in (primaryInfo?.permissions || ['有权审批部门内5000元以下的采购申请。','有权对项目团队成员的工作任务进行分配和调整。'])" :key="idx">{{ perm }}</li>
<li v-for="(perm, idx) in (primaryInfo?.permissions || ['有权审批部门内5000元以下的采购申请。', '有权对项目团队成员的工作任务进行分配和调整。'])" :key="idx">{{ perm }}</li>
</ul>
</div>
<!-- 汇报关系 -->
<div class="section-title">汇报关系</div>
<div class="info-grid">
@ -167,7 +167,7 @@
<div class="content-container">
<div class="content-text">{{ primaryInfo?.performance || '根据项目按时交付率、代码质量、产品性能指标提升情况进行评估。' }}</div>
</div>
<!-- 薪酬范围 -->
<div class="section-title">薪酬范围</div>
<div class="content-container">
@ -184,7 +184,7 @@
<div class="content-container">
<div class="content-text">{{ primaryInfo?.culture || '客户第一、创新、诚信、合作' }}</div>
</div>
<!-- 职业发展路径 -->
<div class="section-title">职业发展路径</div>
<div class="content-container">
@ -244,7 +244,7 @@ const getDetail = async (id: string) => {
id: data.postId ?? data.id ?? '10001',
name: data.postName ?? data.name ?? '-',
status: data.status,
department: data.department ?? '技术部',
department: data.department ?? data.deptName ?? '技术部',
superior: data.superior ?? '技术总监',
level: data.level ?? 'P5',
version: data.version ?? '2024-06-01 / V1.0',
@ -252,11 +252,11 @@ const getDetail = async (id: string) => {
summary: data.summary ?? '负责公司核心产品开发,支撑业务增长。',
tasks: data.tasks ?? [
'负责XXX产品的需求分析、架构设计、核心模块编码和单元测试。',
'制定并执行季度社交媒体营销计划,提升品牌曝光度和用户互动率。'
'制定并执行季度社交媒体营销计划,提升品牌曝光度和用户互动率。',
],
permissions: data.permissions ?? [
'有权审批部门内5000元以下的采购申请。',
'有权对项目团队成员的工作任务进行分配和调整。'
'有权对项目团队成员的工作任务进行分配和调整。',
],
subordinates: data.subordinates ?? '无',
collaboration: data.collaboration ?? '与产品部、销售部、客服部紧密合作',