From 63ae8da92df4107849ed5164a858483322473460 Mon Sep 17 00:00:00 2001
From: yinq <1345442242@qq.com>
Date: Tue, 10 Oct 2023 09:21:53 +0800
Subject: [PATCH] =?UTF-8?q?change=20-=20=E6=B7=BB=E5=8A=A0=E7=94=9F?=
=?UTF-8?q?=E4=BA=A7BOM=E9=A1=B5=E9=9D=A2=E9=80=BB=E8=BE=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/production/baseBomInfo.js | 9 +
src/router/index.js | 16 +-
src/views/base/orderBomInfo/addBom.vue | 287 ++++++++++++
src/views/base/orderBomInfo/index.vue | 88 ++--
src/views/production/baseBomInfo/childBom.vue | 424 ++++++++++++++++++
src/views/production/baseBomInfo/index.vue | 151 +++----
6 files changed, 837 insertions(+), 138 deletions(-)
create mode 100644 src/views/base/orderBomInfo/addBom.vue
create mode 100644 src/views/production/baseBomInfo/childBom.vue
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}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+