diff --git a/src/views/wms/bom/index.vue b/src/views/wms/bom/index.vue index 82d210d..a77763a 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 510a5cf..ea0b322 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 bf4dc3b..535b20e 100644 --- a/src/views/wms/product/index.vue +++ b/src/views/wms/product/index.vue @@ -1,97 +1,143 @@