refactor(menu): 菜单模块归属调整 - 勘察费用/运维费定价迁至基础数据(/base/*),项目勘察/项目安装迁至运营派单(/dispatch/*)并按序排列(电工→勘察→安装→报修→维保);同步前端路由/页面git mv/通知跳转与db_seed,生产库已执行迁移
This commit is contained in:
1 parent
77891bf4f2
commit
850cd92584
11 files changed
+121
-74
No files matched your search
@@ -402,8 +402,8 @@ const NOTICE_TYPE_ROUTE: Record<string, string> = {
|
||||
const NOTICE_BIZ_ROUTE: Record<string, string> = {
|
||||
repair_dispatch: '/dispatch/repair',
|
||||
maintenance_order: '/dispatch/maintenance',
|
||||
install_order: '/project/install',
|
||||
survey_order: '/project/survey',
|
||||
install_order: '/dispatch/install',
|
||||
survey_order: '/dispatch/survey',
|
||||
};
|
||||
|
||||
function resolveNoticeRoute(item: NoticeInfo): string | null {
|
||||
|
||||
+55
-55
@@ -88,39 +88,9 @@ const routes: RouteRecordRaw[] = [
|
||||
{
|
||||
path: "project",
|
||||
name: "Project",
|
||||
redirect: "/project/survey",
|
||||
redirect: "/project/plan",
|
||||
meta: { requiresAuth: true, title: "项目管理", permission: "project:list" }
|
||||
},
|
||||
{
|
||||
path: "project/survey",
|
||||
name: "ProjectSurvey",
|
||||
component: () => import("@/views/project/survey/index.vue"),
|
||||
meta: { requiresAuth: true, title: "项目勘察", permission: "project:survey" }
|
||||
},
|
||||
{
|
||||
path: "project/survey/create",
|
||||
name: "ProjectSurveyCreate",
|
||||
component: () => import("@/views/project/survey/form.vue"),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: "新建勘察派单",
|
||||
permission: "project:survey",
|
||||
parentTitle: "现场勘察派单",
|
||||
parentPath: "/project/survey"
|
||||
}
|
||||
},
|
||||
{
|
||||
path: "project/survey/edit/:id",
|
||||
name: "ProjectSurveyEdit",
|
||||
component: () => import("@/views/project/survey/form.vue"),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: "编辑勘察派单",
|
||||
permission: "project:survey",
|
||||
parentTitle: "现场勘察派单",
|
||||
parentPath: "/project/survey"
|
||||
}
|
||||
},
|
||||
{
|
||||
path: "project/plan",
|
||||
name: "ProjectPlan",
|
||||
@@ -145,18 +115,54 @@ const routes: RouteRecordRaw[] = [
|
||||
component: () => import("@/views/project/visit/index.vue"),
|
||||
meta: { requiresAuth: true, title: "回访记录", permission: "project:visit" }
|
||||
},
|
||||
{
|
||||
path: "project/install",
|
||||
name: "ProjectInstall",
|
||||
component: () => import("@/views/project/install/index.vue"),
|
||||
meta: { requiresAuth: true, title: "安装派单", permission: "project:install" }
|
||||
},
|
||||
{
|
||||
path: "dispatch",
|
||||
name: "Dispatch",
|
||||
redirect: "/dispatch/repair",
|
||||
meta: { requiresAuth: true, title: "运营派单", permission: "dispatch:list" }
|
||||
},
|
||||
{
|
||||
path: "dispatch/worker",
|
||||
name: "DispatchWorker",
|
||||
component: () => import("@/views/dispatch/worker/index.vue"),
|
||||
meta: { requiresAuth: true, title: "电工登记管理", permission: "dispatch:worker" }
|
||||
},
|
||||
{
|
||||
path: "dispatch/survey",
|
||||
name: "DispatchSurvey",
|
||||
component: () => import("@/views/dispatch/survey/index.vue"),
|
||||
meta: { requiresAuth: true, title: "项目勘察", permission: "project:survey" }
|
||||
},
|
||||
{
|
||||
path: "dispatch/survey/create",
|
||||
name: "DispatchSurveyCreate",
|
||||
component: () => import("@/views/dispatch/survey/form.vue"),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: "新建勘察派单",
|
||||
permission: "project:survey",
|
||||
parentTitle: "现场勘察派单",
|
||||
parentPath: "/dispatch/survey"
|
||||
}
|
||||
},
|
||||
{
|
||||
path: "dispatch/survey/edit/:id",
|
||||
name: "DispatchSurveyEdit",
|
||||
component: () => import("@/views/dispatch/survey/form.vue"),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: "编辑勘察派单",
|
||||
permission: "project:survey",
|
||||
parentTitle: "现场勘察派单",
|
||||
parentPath: "/dispatch/survey"
|
||||
}
|
||||
},
|
||||
{
|
||||
path: "dispatch/install",
|
||||
name: "DispatchInstall",
|
||||
component: () => import("@/views/dispatch/install/index.vue"),
|
||||
meta: { requiresAuth: true, title: "安装派单", permission: "project:install" }
|
||||
},
|
||||
{
|
||||
path: "dispatch/repair",
|
||||
name: "DispatchRepair",
|
||||
@@ -169,24 +175,6 @@ const routes: RouteRecordRaw[] = [
|
||||
component: () => import("@/views/dispatch/maintenance/index.vue"),
|
||||
meta: { requiresAuth: true, title: "维保派单", permission: "dispatch:maintenance" }
|
||||
},
|
||||
{
|
||||
path: "dispatch/price",
|
||||
name: "DispatchPrice",
|
||||
component: () => import("@/views/dispatch/price/index.vue"),
|
||||
meta: { requiresAuth: true, title: "运维费定价", permission: "dispatch:price" }
|
||||
},
|
||||
{
|
||||
path: "dispatch/cost",
|
||||
name: "DispatchCost",
|
||||
component: () => import("@/views/dispatch/cost/index.vue"),
|
||||
meta: { requiresAuth: true, title: "勘察费用", permission: "dispatch:cost" }
|
||||
},
|
||||
{
|
||||
path: "dispatch/worker",
|
||||
name: "DispatchWorker",
|
||||
component: () => import("@/views/dispatch/worker/index.vue"),
|
||||
meta: { requiresAuth: true, title: "电工登记管理", permission: "dispatch:worker" }
|
||||
},
|
||||
{
|
||||
path: "device",
|
||||
name: "Device",
|
||||
@@ -211,6 +199,18 @@ const routes: RouteRecordRaw[] = [
|
||||
component: () => import("@/views/device/smart-device/index.vue"),
|
||||
meta: { requiresAuth: true, title: "智电设备型号", permission: "device:model" }
|
||||
},
|
||||
{
|
||||
path: "base/price",
|
||||
name: "BasePrice",
|
||||
component: () => import("@/views/base/price/index.vue"),
|
||||
meta: { requiresAuth: true, title: "运维费定价", permission: "dispatch:price" }
|
||||
},
|
||||
{
|
||||
path: "base/cost",
|
||||
name: "BaseCost",
|
||||
component: () => import("@/views/base/cost/index.vue"),
|
||||
meta: { requiresAuth: true, title: "勘察费用", permission: "dispatch:cost" }
|
||||
},
|
||||
{
|
||||
path: "report",
|
||||
name: "Report",
|
||||
|
||||
File renamed without changes.
File renamed without changes.
@@ -798,7 +798,7 @@ function handleFollow(record: CustomerVisitInfo) {
|
||||
// 一键发起勘察派单:跳转勘察派单页并预填客户(不创建、不回写状态)
|
||||
function handleSurvey(record: CustomerVisitInfo) {
|
||||
if (!record.customerId) return;
|
||||
router.push({ path: '/project/survey', query: { customerId: String(record.customerId) } });
|
||||
router.push({ path: '/dispatch/survey', query: { customerId: String(record.customerId) } });
|
||||
}
|
||||
|
||||
// 查看关联工程
|
||||
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user