Commit 8d580250 authored by 仇晓婷's avatar 仇晓婷

bom优化

parent 2584b5df
...@@ -39,6 +39,10 @@ export default { ...@@ -39,6 +39,10 @@ export default {
alltree(params){ alltree(params){
return Api.post(`${technologyUrl}productinfo/alltree`,params); //bom树 return Api.post(`${technologyUrl}productinfo/alltree`,params); //bom树
}, },
alltreematerial(params){
return Api.post(`${technologyUrl}productinfo/alltreematerial`,params);
},
getdepartmentstree(params){ getdepartmentstree(params){
return Api.get(`${technologyUrl}productlevel/getdepartmentstree`,params);//主承制单位 return Api.get(`${technologyUrl}productlevel/getdepartmentstree`,params);//主承制单位
}, },
......
...@@ -239,10 +239,8 @@ export default { ...@@ -239,10 +239,8 @@ export default {
console.log(row); console.log(row);
this.curId = row.id; this.curId = row.id;
this.parents.bomId = row.bomId; this.parents.bomId = row.bomId;
this.parents.id = row.levelId;
this.parents.rootProductId = row.rootProductId;
this.parents.upId = row.parent.upId;
this.title = "bom"; this.title = "bom";
alert(1)
this.detail = () => import("./bomDetail"); this.detail = () => import("./bomDetail");
this.modal = true; this.modal = true;
}, },
...@@ -316,7 +314,9 @@ export default { ...@@ -316,7 +314,9 @@ export default {
overflow: auto; overflow: auto;
.demo-upload-list { .demo-upload-list {
margin-top: 0; margin-top: 0;
margin:0 2px;
} }
} }
.ivu-divider-inner-text { .ivu-divider-inner-text {
font-weight: bold; font-weight: bold;
......
...@@ -130,11 +130,9 @@ export default { ...@@ -130,11 +130,9 @@ export default {
}, },
methods: { methods: {
init() { init() {
Api.alltree({ id: this.parents.bomId, levelId: this.parents.id }).then( Api.alltreematerial({ id: this.parents.bomId }).then(r => {
r => { this.treeData = r.result;
this.treeData = r.result; });
}
);
}, },
load(v) { load(v) {
...@@ -171,14 +169,14 @@ export default { ...@@ -171,14 +169,14 @@ export default {
return this.$t(key); return this.$t(key);
} }
}, },
watch: { // watch: {
// eid(v) { // eid(v) {
// if (v != 0) { // if (v != 0) {
// this.load(v); // this.load(v);
// this.init(); // this.init();
// } // }
// } // }
} // }
}; };
</script> </script>
<style lang="less"> <style lang="less">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment