Commit eda07265 authored by 仇晓婷's avatar 仇晓婷

bom

parent 929cf7a5
......@@ -157,6 +157,7 @@ export default {
this.curId = row.id;
this.parents.id = row.levelId;
this.parents.parentName = row.levelTitle;
this.parents.rootProductId = row.rootProductId;
this.title = "新增";
this.detail = () => import("./bomAdd");
this.modal = true;
......@@ -166,6 +167,7 @@ export default {
this.curId = this.entity.id;
this.parents.id = this.entity.levelId;
this.parents.parentName = this.entity.levelTitle;
this.parents.rootProductId = this.entity.rootProductId;
this.title = "新增";
this.detail = () => import("./bomAdd");
this.modal = true;
......@@ -174,6 +176,7 @@ export default {
this.curId = row.id;
this.parents.id = row.levelId;
this.parents.parentName = row.levelTitle;
this.parents.rootProductId = row.rootProductId;
this.title = "编辑";
this.detail = () => import("./bomEdit");
this.modal = true;
......
......@@ -49,7 +49,8 @@ export default {
entity: {
upId: this.eid,
levelId: this.parents.id,
levelTitle: this.parents.parentName
levelTitle: this.parents.parentName,
rootProductId: this.parents.rootProductId
},
dataList: [],
downUrl: fileUrlDown,
......@@ -74,14 +75,15 @@ export default {
parents: {
id: Number,
parentName: String,
ids: String
ids: String,
rootProductId: Number
}
},
async fetch({ store, params }) {
await store.dispatch("loadDictionary"); // 加载数据字典
},
created() {
this.getTree();
this.getTree();
},
methods: {
getTree() {
......
......@@ -69,7 +69,8 @@ export default {
parents: {
id: Number,
parentName: String,
ids: String
ids: String,
rootProductId:Number,
}
},
async fetch({ store, params }) {
......
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