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

bom优化

parent 2584b5df
......@@ -39,6 +39,10 @@ export default {
alltree(params){
return Api.post(`${technologyUrl}productinfo/alltree`,params); //bom树
},
alltreematerial(params){
return Api.post(`${technologyUrl}productinfo/alltreematerial`,params);
},
getdepartmentstree(params){
return Api.get(`${technologyUrl}productlevel/getdepartmentstree`,params);//主承制单位
},
......
......@@ -239,10 +239,8 @@ export default {
console.log(row);
this.curId = row.id;
this.parents.bomId = row.bomId;
this.parents.id = row.levelId;
this.parents.rootProductId = row.rootProductId;
this.parents.upId = row.parent.upId;
this.title = "bom";
alert(1)
this.detail = () => import("./bomDetail");
this.modal = true;
},
......@@ -316,7 +314,9 @@ export default {
overflow: auto;
.demo-upload-list {
margin-top: 0;
margin:0 2px;
}
}
.ivu-divider-inner-text {
font-weight: bold;
......
......@@ -130,11 +130,9 @@ export default {
},
methods: {
init() {
Api.alltree({ id: this.parents.bomId, levelId: this.parents.id }).then(
r => {
this.treeData = r.result;
}
);
Api.alltreematerial({ id: this.parents.bomId }).then(r => {
this.treeData = r.result;
});
},
load(v) {
......@@ -171,14 +169,14 @@ export default {
return this.$t(key);
}
},
watch: {
// eid(v) {
// if (v != 0) {
// this.load(v);
// this.init();
// }
// }
}
// watch: {
// eid(v) {
// if (v != 0) {
// this.load(v);
// this.init();
// }
// }
// }
};
</script>
<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