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

bom 优化

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