Commit 6e04529d authored by 仇晓婷's avatar 仇晓婷

bom 优化

parent eda07265
......@@ -19,8 +19,8 @@ export default {
// deletes(params) {
// return Api.post(`${technologyUrl}productinfo/batchdelete`,params);
// },
deleteBom(id,levelId) {
return Api.delete(`${technologyUrl}productinfo/deletebom`,{params:{id:id,levelId:levelId}});
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.id, row.levelId).then(r => {
Api.deleteBom(row.id, 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