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

bom删除

parent dd804cc7
......@@ -16,9 +16,12 @@ export default {
delete(id) {
return Api.delete(`${technologyUrl}productinfo/delete`,{params:{id:id}});
},
deletes(params) {
return Api.post(`${technologyUrl}productinfo/batchdelete`,params);
},
// deletes(params) {
// return Api.post(`${technologyUrl}productinfo/batchdelete`,params);
// },
deleteBom(id) {
return Api.delete(`${technologyUrl}productbom/delete`,{params:{id:id}});
},
materiallist(params){
return Api.post(`${systemUrl}/material/materiallist`,params);//物料
},
......
......@@ -26,7 +26,7 @@
</Row>
</div>
<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" />
</Modal>
</div>
......@@ -138,7 +138,7 @@ export default {
this.modal = true;
},
remove(id) {
Api.delete(id).then(r => {
Api.deleteBom(id).then(r => {
if (r.success) {
this.init();
this.$Message.success("删除成功");
......@@ -146,7 +146,7 @@ export default {
});
},
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.parms.eid = r.result.productUrlList;
this.$emit("on-load");
......
......@@ -64,7 +64,14 @@
</div>
</template>
</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" />
</Modal>
</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