2024-1-12-1 基础信息-bom结构更改 2

master
A0010407 11 months ago
parent 92c17c204c
commit de47aa371c

@ -83,7 +83,6 @@
<el-table <el-table
v-loading="loading" v-loading="loading"
row-key="handle" row-key="handle"
:indent="indent"
:data="bomList" :data="bomList"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
default-expand-all default-expand-all
@ -446,6 +445,7 @@ export default {
/** 查询BOM管理 列表 */ /** 查询BOM管理 列表 */
getList() { getList() {
this.loading = true; this.loading = true;
this.queryParams.bomHierarchy = "0"; this.queryParams.bomHierarchy = "0";
listBom(this.queryParams).then((response) => { listBom(this.queryParams).then((response) => {
this.bomList = response.rows; this.bomList = response.rows;
@ -566,6 +566,9 @@ export default {
}, },
load(tree, treeNode, resolve) { load(tree, treeNode, resolve) {
console.log("treeNode:",treeNode);
console.log("tree:",tree);
console.log("resolve:",resolve);
this.queryParams.pageNum = null; this.queryParams.pageNum = null;
this.queryParams.pageSize = null; this.queryParams.pageSize = null;
if(tree.bomHierarchy == " " || tree.bomHierarchy == null){ if(tree.bomHierarchy == " " || tree.bomHierarchy == null){
@ -589,8 +592,8 @@ export default {
listBom(this.queryParams).then(response => { listBom(this.queryParams).then(response => {
resolve(response.rows) resolve(response.rows)
}) })
this.queryParams.bomCode = null;
}, },
}, },
}; };
</script> </script>

Loading…
Cancel
Save