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

youhua

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