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

bom

parent 12ebf084
......@@ -45,7 +45,8 @@ export default {
entity: {
id: "",
levelId: 0,
levelTitle: ""
levelTitle: "",
bomId: 0
},
parms: {
app: "technology",
......@@ -155,6 +156,7 @@ export default {
},
add(row) {
this.curId = row.id;
this.parents.upBomId = row.bomId;
this.parents.id = row.levelId;
this.parents.parentName = row.levelTitle;
this.parents.rootProductId = row.rootProductId;
......@@ -165,6 +167,7 @@ export default {
addBom() {
console.log(this.entity);
this.curId = this.entity.id;
this.parents.upBomId = this.entity.bomId;
this.parents.id = this.entity.levelId;
this.parents.parentName = this.entity.levelTitle;
this.parents.rootProductId = this.entity.rootProductId;
......@@ -182,7 +185,7 @@ export default {
this.modal = true;
},
remove(row) {
Api.deleteBom(row.bomId, row.levelId,row.rootProductId).then(r => {
Api.deleteBom(row.bomId, row.levelId, row.rootProductId).then(r => {
if (r.success) {
this.init();
this.$Message.success("删除成功");
......
......@@ -50,7 +50,8 @@ export default {
upId: this.eid,
levelId: this.parents.id,
levelTitle: this.parents.parentName,
rootProductId: this.parents.rootProductId
rootProductId: this.parents.rootProductId,
upBomId: this.parents.upBomId
},
dataList: [],
downUrl: fileUrlDown,
......@@ -76,7 +77,8 @@ export default {
id: Number,
parentName: String,
ids: String,
rootProductId: Number
rootProductId: Number,
upBomId: 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