From 69c61233e88a3d2417f1b6bb8e1150bf99763e01 Mon Sep 17 00:00:00 2001 From: A0010407 Date: Fri, 1 Mar 2024 15:05:51 +0800 Subject: [PATCH] =?UTF-8?q?2024-3-1=20=E5=9F=BA=E7=A1=80=E4=BF=A1=E6=81=AF?= =?UTF-8?q?BOM+=E4=BA=A7=E5=93=81+=E5=B7=A5=E5=8E=82=20=E5=B1=95=E7=A4=BA?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wms/bom/index.vue | 26 +- src/views/wms/factory/index.vue | 713 ++++++++++--------- src/views/wms/product/index.vue | 1177 ++++++++++++++++++------------- 3 files changed, 1094 insertions(+), 822 deletions(-) diff --git a/src/views/wms/bom/index.vue b/src/views/wms/bom/index.vue index 82d210d8..a77763a9 100644 --- a/src/views/wms/bom/index.vue +++ b/src/views/wms/bom/index.vue @@ -138,7 +138,7 @@ /> @@ -150,7 +150,7 @@ /> @@ -419,7 +419,7 @@ export default { component: null, productCode: null, bomHierarchy: null, - handle:null, + handle: null, factoryCode: null, productionVersion: null, bomCode: null, @@ -581,32 +581,32 @@ export default { }, load(tree, treeNode, resolve) { - console.log("treeNode:",treeNode); - console.log("tree:",tree); - console.log("resolve:",resolve); + console.log("treeNode:", treeNode); + console.log("tree:", tree); + console.log("resolve:", resolve); this.queryParams.pageNum = null; this.queryParams.pageSize = null; - if(tree.bomHierarchy == " " || tree.bomHierarchy == null){ + if (tree.bomHierarchy == " " || tree.bomHierarchy == null) { this.queryParams.bomHierarchy = "1"; this.queryParams.cumc = tree.cumc; this.queryParams.component = tree.component; this.queryParams.bomCode = tree.bomCode; - }else if(tree.bomHierarchy == "1"){ + } else if (tree.bomHierarchy == "1") { this.queryParams.bomHierarchy = "2"; this.queryParams.component = tree.component; this.queryParams.bomCode = tree.bomCode; - }else if(tree.bomHierarchy == "2"){ + } else if (tree.bomHierarchy == "2") { this.queryParams.bomHierarchy = "3"; this.queryParams.component = tree.component; this.queryParams.bomCode = tree.bomCode; - }else if(tree.bomHierarchy == "3"){ + } else if (tree.bomHierarchy == "3") { this.queryParams.bomHierarchy = "4"; this.queryParams.component = tree.component; this.queryParams.bomCode = tree.bomCode; } - listBom(this.queryParams).then(response => { - resolve(response.rows) - }) + listBom(this.queryParams).then((response) => { + resolve(response.rows); + }); this.queryParams.bomCode = null; }, }, diff --git a/src/views/wms/factory/index.vue b/src/views/wms/factory/index.vue index 510a5cf7..ea0b3221 100644 --- a/src/views/wms/factory/index.vue +++ b/src/views/wms/factory/index.vue @@ -1,126 +1,171 @@ diff --git a/src/views/wms/product/index.vue b/src/views/wms/product/index.vue index bf4dc3b6..535b20e8 100644 --- a/src/views/wms/product/index.vue +++ b/src/views/wms/product/index.vue @@ -1,97 +1,143 @@