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
8d580250
Commit
8d580250
authored
Jul 03, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bom优化
parent
2584b5df
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
16 deletions
+18
-16
api.js
pages/technology/productMix/product/api.js
+4
-0
bom.vue
pages/technology/productMix/product/bom.vue
+3
-3
bomDetail.vue
pages/technology/productMix/product/bomDetail.vue
+11
-13
No files found.
pages/technology/productMix/product/api.js
View file @
8d580250
...
...
@@ -39,6 +39,10 @@ export default {
alltree
(
params
){
return
Api
.
post
(
`
${
technologyUrl
}
productinfo/alltree`
,
params
);
//bom树
},
alltreematerial
(
params
){
return
Api
.
post
(
`
${
technologyUrl
}
productinfo/alltreematerial`
,
params
);
},
getdepartmentstree
(
params
){
return
Api
.
get
(
`
${
technologyUrl
}
productlevel/getdepartmentstree`
,
params
);
//主承制单位
},
...
...
pages/technology/productMix/product/bom.vue
View file @
8d580250
...
...
@@ -239,10 +239,8 @@ export default {
console
.
log
(
row
);
this
.
curId
=
row
.
id
;
this
.
parents
.
bomId
=
row
.
bomId
;
this
.
parents
.
id
=
row
.
levelId
;
this
.
parents
.
rootProductId
=
row
.
rootProductId
;
this
.
parents
.
upId
=
row
.
parent
.
upId
;
this
.
title
=
"bom"
;
alert
(
1
)
this
.
detail
=
()
=>
import
(
"./bomDetail"
);
this
.
modal
=
true
;
},
...
...
@@ -316,7 +314,9 @@ export default {
overflow: auto;
.demo-upload-list {
margin-top: 0;
margin:0 2px;
}
}
.ivu-divider-inner-text {
font-weight: bold;
...
...
pages/technology/productMix/product/bomDetail.vue
View file @
8d580250
...
...
@@ -130,11 +130,9 @@ export default {
},
methods
:
{
init
()
{
Api
.
alltree
({
id
:
this
.
parents
.
bomId
,
levelId
:
this
.
parents
.
id
}).
then
(
r
=>
{
this
.
treeData
=
r
.
result
;
}
);
Api
.
alltreematerial
({
id
:
this
.
parents
.
bomId
}).
then
(
r
=>
{
this
.
treeData
=
r
.
result
;
});
},
load
(
v
)
{
...
...
@@ -171,14 +169,14 @@ export default {
return
this
.
$t
(
key
);
}
},
watch
:
{
//
eid(v) {
//
if (v != 0) {
//
this.load(v);
//
this.init();
//
}
//
}
}
//
watch: {
//
eid(v) {
//
if (v != 0) {
//
this.load(v);
//
this.init();
//
}
//
}
//
}
};
</
script
>
<
style
lang=
"less"
>
...
...
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