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

bom删除

parent dd804cc7
...@@ -16,9 +16,12 @@ export default { ...@@ -16,9 +16,12 @@ export default {
delete(id) { delete(id) {
return Api.delete(`${technologyUrl}productinfo/delete`,{params:{id:id}}); return Api.delete(`${technologyUrl}productinfo/delete`,{params:{id:id}});
}, },
deletes(params) { // deletes(params) {
return Api.post(`${technologyUrl}productinfo/batchdelete`,params); // return Api.post(`${technologyUrl}productinfo/batchdelete`,params);
}, // },
deleteBom(id) {
return Api.delete(`${technologyUrl}productbom/delete`,{params:{id:id}});
},
materiallist(params){ materiallist(params){
return Api.post(`${systemUrl}/material/materiallist`,params);//物料 return Api.post(`${systemUrl}/material/materiallist`,params);//物料
}, },
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
</Row> </Row>
</div> </div>
<TreeGrid :columns="columns" :items="treeData"></TreeGrid> <TreeGrid :columns="columns" :items="treeData"></TreeGrid>
<Modal v-model="modal" :title="title" width="1200" footer-hide> <Modal v-model="modal" :title="title" width="1200" footer-hide :mask-closable="false">
<component :is="detail" :eid="curId" @on-close="cancel" @on-ok="ok" :parents="parents" /> <component :is="detail" :eid="curId" @on-close="cancel" @on-ok="ok" :parents="parents" />
</Modal> </Modal>
</div> </div>
...@@ -138,7 +138,7 @@ export default { ...@@ -138,7 +138,7 @@ export default {
this.modal = true; this.modal = true;
}, },
remove(id) { remove(id) {
Api.delete(id).then(r => { Api.deleteBom(id).then(r => {
if (r.success) { if (r.success) {
this.init(); this.init();
this.$Message.success("删除成功"); this.$Message.success("删除成功");
...@@ -146,7 +146,7 @@ export default { ...@@ -146,7 +146,7 @@ export default {
}); });
}, },
load(v) { load(v) {
Api.get({ id: v,levelId: this.parents.id }).then(r => { Api.get({ id: v, levelId: this.parents.id }).then(r => {
this.entity = r.result; this.entity = r.result;
this.parms.eid = r.result.productUrlList; this.parms.eid = r.result.productUrlList;
this.$emit("on-load"); this.$emit("on-load");
......
...@@ -64,7 +64,14 @@ ...@@ -64,7 +64,14 @@
</div> </div>
</template> </template>
</DataGrid> </DataGrid>
<Modal v-model="modal" :title="title" width="1200" footer-hide :fullscreen="fullscreen"> <Modal
v-model="modal"
:title="title"
width="1200"
footer-hide
:fullscreen="fullscreen"
:mask-closable="false"
>
<component :is="detail" :eid="curId" @on-close="cancel" @on-ok="ok" :parents="parent" /> <component :is="detail" :eid="curId" @on-close="cancel" @on-ok="ok" :parents="parent" />
</Modal> </Modal>
</div> </div>
......
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