From 1fc8e181a93c82c5473f61fbb425b67910601d35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E4=B8=87=E9=87=8C?= <1726150332@qq.com> Date: Thu, 8 Jan 2026 14:31:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9BOM=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/bom.js | 15 +- src/router/index.js | 10 +- .../sparePartsApplicationRecord/index.vue | 2 +- src/views/energy/powerUse/RealTime/index.vue | 2 - .../quality/report/cpSortChart/index.vue | 6 +- .../quality/report/cpTranChart/index.vue | 14 +- src/views/wms/bom/index.vue | 613 ++++-------------- 7 files changed, 158 insertions(+), 504 deletions(-) diff --git a/src/api/wms/bom.js b/src/api/wms/bom.js index 41b6848..26ffe88 100644 --- a/src/api/wms/bom.js +++ b/src/api/wms/bom.js @@ -8,7 +8,14 @@ export function listBom(query) { params: query }); } - +// 查询组件管理 列表 +export function listBomComponent(query) { + return request({ + url: '/wms/bomComponent/list', + method: 'get', + params: query + }); +} // 查询BOM管理 详细 export function getBom(factoryCode) { return request({ @@ -17,7 +24,7 @@ export function getBom(factoryCode) { }); } -// 新增BOM管理 +// 新增BOM管理 export function addBom(data) { return request({ url: '/wms/bom', @@ -26,7 +33,7 @@ export function addBom(data) { }); } -// 修改BOM管理 +// 修改BOM管理 export function updateBom(data) { return request({ url: '/wms/bom', @@ -35,7 +42,7 @@ export function updateBom(data) { }); } -// 删除BOM管理 +// 删除BOM管理 export function delBom(factoryCode) { return request({ url: '/wms/bom/' + factoryCode, diff --git a/src/router/index.js b/src/router/index.js index 3a5d33c..b6d75de 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -156,11 +156,11 @@ export const constantRoutes = [ component: () => import("@/views/kanban/Dryingprocess/index"), hidden: true, }, - { - path: "/report/board/LeadershipViewCheart", - component: () => import("@/views/energy/LeadershipView/LeadershipViewChearts"), - hidden: true, - }, + // { + // path: "/report/board/LeadershipViewCheart", + // component: () => import("@/views/energy/LeadershipView/LeadershipViewChearts"), + // hidden: true, + // }, { path: "/report/board/GroupHomePage", component: () => import("@/views/energy/LeadershipView/GroupHomePage"), diff --git a/src/views/device/sparePartsApplicationRecord/index.vue b/src/views/device/sparePartsApplicationRecord/index.vue index 322fbed..a97f6bb 100644 --- a/src/views/device/sparePartsApplicationRecord/index.vue +++ b/src/views/device/sparePartsApplicationRecord/index.vue @@ -433,7 +433,7 @@ import { import ItemSelectPerson from "./selectSinglePerson.vue"; import ItemSelectEquipment from "./selectSingleEquipment.vue"; import ItemSelectSparePartsLedger from "./selectSparePartsLedger.vue"; - +import { listBom, getBom, delBom, addBom, updateBom } from "@/api/wms/bom"; export default { name: "SparePartsApplicationRecord", components: { diff --git a/src/views/energy/powerUse/RealTime/index.vue b/src/views/energy/powerUse/RealTime/index.vue index 8c05618..80cd8f0 100644 --- a/src/views/energy/powerUse/RealTime/index.vue +++ b/src/views/energy/powerUse/RealTime/index.vue @@ -30,8 +30,6 @@ - - diff --git a/src/views/quality/report/cpSortChart/index.vue b/src/views/quality/report/cpSortChart/index.vue index 37befbe..6cc1119 100644 --- a/src/views/quality/report/cpSortChart/index.vue +++ b/src/views/quality/report/cpSortChart/index.vue @@ -34,7 +34,7 @@ -

{{form.column080090}} 年 {{form.column090100}} 月 份 白 坯 不 良 排 列 图

+

{{form.column080090}} 年 {{form.column090100}} 月 份 黑 蚊 香 成 品 包 装 不 良 排 列 图

@@ -138,7 +138,7 @@ export default { }; }, created() { - this.getDate(); + this.getDate(); this.getList(); }, methods: { @@ -157,7 +157,7 @@ export default { /** 查询设备小时产量列表 */ getList() { - + console.log(this.queryParams); if(this.queryParams.yearMonthDate!=null){ this.queryParams.yearMonth = moment(this.queryParams.yearMonthDate).format('YYYY-MM'); }else{ diff --git a/src/views/quality/report/cpTranChart/index.vue b/src/views/quality/report/cpTranChart/index.vue index d2c072b..48df4bc 100644 --- a/src/views/quality/report/cpTranChart/index.vue +++ b/src/views/quality/report/cpTranChart/index.vue @@ -26,7 +26,7 @@ -

{{form.column080090}} 年 {{form.column090100}} 月 份 黑 蚊 香 成 品 包 装 不 良 排 列 图

+

{{titleYear}} 年 {{titleMonth}} 月 份 黑 蚊 香 成 品 包 装 不 良 排 列 图

@@ -87,9 +87,10 @@ export default { }, // 表单参数 form: {}, - + titleYear: null, + titleMonth: null, spanArr: [], - position: 0, + position: 0, content_style: { 'text-align': 'center', 'min-width': '200px', @@ -107,7 +108,7 @@ export default { }; }, created() { - this.getDate(); + this.getDate(); this.getList(); }, methods: { @@ -126,8 +127,13 @@ export default { /** 查询设备小时产量列表 */ getList() { + //this.titleYear = this.queryParams.yearMonthDate.split('-')[0]; + // this.titleMonth = this.queryParams.yearMonthDate.split('-')[1]; + console.log(moment(this.queryParams.yearMonthDate).format('YYYY-MM')); if(this.queryParams.yearMonthDate!=null){ this.queryParams.yearMonth = moment(this.queryParams.yearMonthDate).format('YYYY-MM'); + this.titleYear = this.queryParams.yearMonth.split('-')[0]; + this.titleMonth = this.queryParams.yearMonth.split('-')[1]; } else { this.$message.error("请填写月份"); return; diff --git a/src/views/wms/bom/index.vue b/src/views/wms/bom/index.vue index a77763a..7b6ed9e 100644 --- a/src/views/wms/bom/index.vue +++ b/src/views/wms/bom/index.vue @@ -6,266 +6,108 @@ size="small" :inline="true" v-show="showSearch" - label-width="88px" + label-width="108px" > - + - + - + + + + 搜索搜索 重置重置
- - - - 导出 - - - - - + + + + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + +