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

bom

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