diff --git a/src/api/production/baseBomInfo.js b/src/api/production/baseBomInfo.js
index adfd6cc..6369d1f 100644
--- a/src/api/production/baseBomInfo.js
+++ b/src/api/production/baseBomInfo.js
@@ -9,6 +9,15 @@ export function listBaseBomInfo(query) {
})
}
+// 查询生产BOM列表
+export function listTreeBaseBomInfo(query) {
+ return request({
+ url: '/production/baseBomInfo/treeList',
+ method: 'get',
+ params: query
+ })
+}
+
// 查询生产BOM详细
export function getBaseBomInfo(objId) {
return request({
diff --git a/src/router/index.js b/src/router/index.js
index 71907b6..70c68ce 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -161,7 +161,21 @@ export const dynamicRoutes = [
meta: { title: '修改生成配置', activeMenu: '/tool/gen' }
}
]
- }
+ },
+ {
+ path: "/production/bom-info",
+ component: Layout,
+ hidden: true,
+ permissions: ["production:baseBomInfo:list"],
+ children: [
+ {
+ path: "index/:materialCode(\\d+)",
+ component: () => import("@/views/production/baseBomInfo/childBom"),
+ name: "childBom",
+ meta: { title: "查看生产子BOM信息", activeMenu: "/production/baseBomInfo" },
+ },
+ ],
+ },
]
// 防止连续点击多次路由报错
diff --git a/src/views/base/orderBomInfo/addBom.vue b/src/views/base/orderBomInfo/addBom.vue
new file mode 100644
index 0000000..ccb179d
--- /dev/null
+++ b/src/views/base/orderBomInfo/addBom.vue
@@ -0,0 +1,287 @@
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ parseTime(scope.row.createdTime, '{y}-{m}-{d} {h}:{i}:{s}') }}
+
+
+
+
+
+ {{ parseTime(scope.row.updatedTime, '{y}-{m}-{d} {h}:{i}:{s}') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/base/orderBomInfo/index.vue b/src/views/base/orderBomInfo/index.vue
index 0297b0e..4ae4581 100644
--- a/src/views/base/orderBomInfo/index.vue
+++ b/src/views/base/orderBomInfo/index.vue
@@ -68,23 +68,23 @@
-
-
-
-
-
-
-
-
- {{ parseTime(scope.row.createdTime, '{y}-{m}-{d}') }}
-
-
-
-
-
- {{ parseTime(scope.row.updatedTime, '{y}-{m}-{d}') }}
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
- {{dict.label}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+