Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
周远喜
mes-ui
Commits
d5035b45
Commit
d5035b45
authored
Jun 29, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bom删除
parent
dd804cc7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
7 deletions
+17
-7
api.js
pages/technology/productMix/product/api.js
+6
-3
bom.vue
pages/technology/productMix/product/bom.vue
+3
-3
index.vue
pages/technology/productMix/product/index.vue
+8
-1
No files found.
pages/technology/productMix/product/api.js
View file @
d5035b45
...
@@ -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
);
//物料
},
},
...
...
pages/technology/productMix/product/bom.vue
View file @
d5035b45
...
@@ -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
.
delete
Bom
(
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"
);
...
...
pages/technology/productMix/product/index.vue
View file @
d5035b45
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment