Commit 62e7d2ae authored by 仇晓婷's avatar 仇晓婷

youhua

parent 2bd0d929
...@@ -27,8 +27,8 @@ export default { ...@@ -27,8 +27,8 @@ export default {
return Api.post(`${technologyUrl}productinfo/updatebom`,params); return Api.post(`${technologyUrl}productinfo/updatebom`,params);
}, },
deleteBom(id){ deleteBom(id,levelId,rootProductId){
return Api.delete(`${technologyUrl}productinfo/deletebom`,{params:{id:id}}); return Api.delete(`${technologyUrl}productinfo/deletebom`,{params:{id:id,levelId:levelId,rootProductId:rootProductId}});
}, },
materiallist(params){ materiallist(params){
return Api.post(`${systemUrl}/material/materiallist`,params);//物料 return Api.post(`${systemUrl}/material/materiallist`,params);//物料
......
...@@ -182,7 +182,7 @@ export default { ...@@ -182,7 +182,7 @@ export default {
this.modal = true; this.modal = true;
}, },
remove(row) { remove(row) {
Api.deleteBom(row.bomId).then(r => { Api.deleteBom(row.bomId, row.levelId,row.rootProductId).then(r => {
if (r.success) { if (r.success) {
this.init(); this.init();
this.$Message.success("删除成功"); this.$Message.success("删除成功");
......
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