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
10f0639e
Commit
10f0639e
authored
Jun 30, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
产品bom
parent
6e04529d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
7 deletions
+15
-7
api.js
pages/technology/productMix/product/api.js
+11
-3
bom.vue
pages/technology/productMix/product/bom.vue
+1
-1
bomEdit.vue
pages/technology/productMix/product/bomEdit.vue
+3
-3
No files found.
pages/technology/productMix/product/api.js
View file @
10f0639e
import
Api
from
'@/plugins/request'
import
Api
from
'@/plugins/request'
;
export
default
{
export
default
{
index
:
`
${
technologyUrl
}
productinfo/paged`
,
index
:
`
${
technologyUrl
}
productinfo/paged`
,
paged
(
params
){
paged
(
params
){
...
@@ -13,13 +13,21 @@ export default {
...
@@ -13,13 +13,21 @@ export default {
update
(
params
){
update
(
params
){
return
Api
.
post
(
`
${
technologyUrl
}
productinfo/update`
,
params
);
return
Api
.
post
(
`
${
technologyUrl
}
productinfo/update`
,
params
);
},
},
delete
(
id
,
levelId
)
{
delete
(
id
,
levelId
){
return
Api
.
delete
(
`
${
technologyUrl
}
productinfo/delete`
,{
params
:{
id
:
id
,
levelId
:
levelId
}});
return
Api
.
delete
(
`
${
technologyUrl
}
productinfo/delete`
,{
params
:{
id
:
id
,
levelId
:
levelId
}});
},
},
// deletes(params) {
// deletes(params) {
// return Api.post(`${technologyUrl}productinfo/batchdelete`,params);
// return Api.post(`${technologyUrl}productinfo/batchdelete`,params);
// },
// },
deleteBom
(
id
,
levelId
,
rootProductId
)
{
getbom
(
params
){
return
Api
.
get
(
`
${
technologyUrl
}
productinfo/getbom`
,
params
);
},
updatebom
(
params
){
return
Api
.
post
(
`
${
technologyUrl
}
productinfo/updatebom`
,
params
);
},
deleteBom
(
id
,
levelId
,
rootProductId
){
return
Api
.
delete
(
`
${
technologyUrl
}
productinfo/deletebom`
,{
params
:{
id
:
id
,
levelId
:
levelId
,
rootProductId
:
rootProductId
}});
return
Api
.
delete
(
`
${
technologyUrl
}
productinfo/deletebom`
,{
params
:{
id
:
id
,
levelId
:
levelId
,
rootProductId
:
rootProductId
}});
},
},
materiallist
(
params
){
materiallist
(
params
){
...
...
pages/technology/productMix/product/bom.vue
View file @
10f0639e
...
@@ -173,7 +173,7 @@ export default {
...
@@ -173,7 +173,7 @@ export default {
this
.
modal
=
true
;
this
.
modal
=
true
;
},
},
edit
(
row
)
{
edit
(
row
)
{
this
.
curId
=
row
.
i
d
;
this
.
curId
=
row
.
bomI
d
;
this
.
parents
.
id
=
row
.
levelId
;
this
.
parents
.
id
=
row
.
levelId
;
this
.
parents
.
parentName
=
row
.
levelTitle
;
this
.
parents
.
parentName
=
row
.
levelTitle
;
this
.
parents
.
rootProductId
=
row
.
rootProductId
;
this
.
parents
.
rootProductId
=
row
.
rootProductId
;
...
...
pages/technology/productMix/product/bomEdit.vue
View file @
10f0639e
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<Row>
<Row>
<Col
:span=
"12"
>
<Col
:span=
"12"
>
<FormItem
:label=
"l('materialId')"
prop=
"materialId"
>
<FormItem
:label=
"l('materialId')"
prop=
"materialId"
>
<Materiel
v-model=
"entity.materialId"
@
on-change=
"change"
></Materiel>
<Materiel
v-model=
"entity.materialId"
@
on-change=
"change"
disabled
></Materiel>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"12"
>
<Col
:span=
"12"
>
...
@@ -83,7 +83,7 @@ export default {
...
@@ -83,7 +83,7 @@ export default {
},
},
methods
:
{
methods
:
{
load
(
v
)
{
load
(
v
)
{
Api
.
get
({
id
:
v
,
levelId
:
this
.
parents
.
id
}).
then
(
r
=>
{
Api
.
get
bom
({
id
:
v
}).
then
(
r
=>
{
this
.
entity
=
r
.
result
;
this
.
entity
=
r
.
result
;
});
});
},
},
...
@@ -99,7 +99,7 @@ export default {
...
@@ -99,7 +99,7 @@ export default {
this
.
$refs
.
form
.
validate
(
v
=>
{
this
.
$refs
.
form
.
validate
(
v
=>
{
if
(
v
)
{
if
(
v
)
{
this
.
disabled
=
true
;
this
.
disabled
=
true
;
Api
.
update
(
this
.
entity
)
Api
.
update
bom
(
this
.
entity
)
.
then
(
r
=>
{
.
then
(
r
=>
{
this
.
disabled
=
false
;
this
.
disabled
=
false
;
if
(
r
.
success
)
{
if
(
r
.
success
)
{
...
...
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