fix(router): 移除物料编码路由参数的数字限制

master
zangch@mesnac.com 3 days ago
parent 79884c78c5
commit 9ef1fc161b

@ -304,7 +304,8 @@ export const dynamicRoutes = [
permissions: ["production:baseBomInfo:list"],
children: [
{
path: "index/:materialCode(\\d+)",
// 物料编码在业务上可能包含字母、短横线等字符,不能限制为纯数字,否则详情跳转会被路由判定为未匹配。
path: "index/:materialCode",
component: () => import("@/views/production/baseBomInfo/childBom"),
name: "childBom",
meta: {title: "查看生产子BOM信息", activeMenu: "/production/baseBomInfo"},
@ -332,7 +333,8 @@ export const dynamicRoutes = [
permissions: ["base:orderBomInfo:list"],
children: [
{
path: "index/:materialCode(\\d+)",
// 订单BOM与生产BOM共用物料编码规则这里同样放开参数约束避免同类跳转问题再次出现。
path: "index/:materialCode",
component: () => import("@/views/base/orderBomInfo/childIndex"),
name: "childBom",
meta: {title: "查看订单子BOM信息", activeMenu: "/base/orderBomInfo"},

Loading…
Cancel
Save