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
a267220e
Commit
a267220e
authored
Jul 03, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dd
parent
99e54afc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
20 deletions
+8
-20
bom.vue
pages/technology/productMix/product/bom.vue
+7
-19
bomEdit.vue
pages/technology/productMix/product/bomEdit.vue
+1
-1
No files found.
pages/technology/productMix/product/bom.vue
View file @
a267220e
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
:mask-closable=
"false"
:mask-closable=
"false"
:fullscreen=
"fullscreen"
:fullscreen=
"fullscreen"
>
>
<component
:is=
"detail"
:eid=
"curId"
@
on-close=
"cancel"
@
on-ok=
"ok"
:parents=
"parents"
@
on-oks=
"oks"
/>
<component
:is=
"detail"
:eid=
"curId"
@
on-close=
"cancel"
@
on-ok=
"ok"
:parents=
"parents"
/>
</Modal>
</Modal>
</div>
</div>
</
template
>
</
template
>
...
@@ -186,7 +186,6 @@ export default {
...
@@ -186,7 +186,6 @@ export default {
if
(
this
.
eid
>
0
)
{
if
(
this
.
eid
>
0
)
{
this
.
load
(
this
.
eid
);
this
.
load
(
this
.
eid
);
}
}
this
.
init
();
},
},
methods
:
{
methods
:
{
details
(
row
)
{
details
(
row
)
{
...
@@ -199,11 +198,9 @@ export default {
...
@@ -199,11 +198,9 @@ export default {
this
.
modal
=
true
;
this
.
modal
=
true
;
},
},
init
()
{
init
()
{
Api
.
alltree
({
id
:
this
.
parents
.
bomId
,
levelId
:
this
.
parents
.
id
}).
then
(
Api
.
alltree
({
id
:
this
.
bomId
,
levelId
:
this
.
parents
.
id
}).
then
(
r
=>
{
r
=>
{
this
.
treeData
=
r
.
result
;
this
.
treeData
=
r
.
result
;
});
}
);
},
},
add
(
row
)
{
add
(
row
)
{
this
.
curId
=
row
.
id
;
this
.
curId
=
row
.
id
;
...
@@ -227,8 +224,6 @@ export default {
...
@@ -227,8 +224,6 @@ export default {
this
.
modal
=
true
;
this
.
modal
=
true
;
},
},
edit
(
row
)
{
edit
(
row
)
{
console
.
log
(
row
);
this
.
bomId
=
row
.
upId
;
this
.
curId
=
row
.
bomId
;
this
.
curId
=
row
.
bomId
;
this
.
parents
.
id
=
row
.
levelId
;
this
.
parents
.
id
=
row
.
levelId
;
this
.
parents
.
parentName
=
row
.
levelTitle
;
this
.
parents
.
parentName
=
row
.
levelTitle
;
...
@@ -259,6 +254,8 @@ export default {
...
@@ -259,6 +254,8 @@ export default {
this
.
entity
.
version
=
parseInt
(
r
.
result
.
version
);
this
.
entity
.
version
=
parseInt
(
r
.
result
.
version
);
this
.
parms
.
eid
=
r
.
result
.
productUrlList
;
this
.
parms
.
eid
=
r
.
result
.
productUrlList
;
this
.
$emit
(
"on-load"
);
this
.
$emit
(
"on-load"
);
this
.
bomId
=
r
.
result
.
bomId
;
this
.
init
();
});
});
},
},
seeImg
(
url
)
{
seeImg
(
url
)
{
...
@@ -272,17 +269,9 @@ export default {
...
@@ -272,17 +269,9 @@ export default {
clickData
(
data
)
{
clickData
(
data
)
{
window
.
open
(
data
,
"_blank"
);
window
.
open
(
data
,
"_blank"
);
},
},
oks
()
{
this
.
parents
.
bomId
=
this
.
bomId
;
this
.
init
();
// this.load(this.eid);
this
.
modal
=
false
;
this
.
curId
=
0
;
},
ok
()
{
ok
()
{
// this.parents.bomId=this.bomId
this
.
init
();
this
.
init
();
// this.load(this.eid);
this
.
modal
=
false
;
this
.
modal
=
false
;
this
.
curId
=
0
;
this
.
curId
=
0
;
},
},
...
@@ -299,7 +288,6 @@ export default {
...
@@ -299,7 +288,6 @@ export default {
eid
(
v
)
{
eid
(
v
)
{
if
(
v
!=
0
)
{
if
(
v
!=
0
)
{
this
.
load
(
v
);
this
.
load
(
v
);
this
.
init
();
}
}
}
}
}
}
...
...
pages/technology/productMix/product/bomEdit.vue
View file @
a267220e
...
@@ -106,7 +106,7 @@ export default {
...
@@ -106,7 +106,7 @@ export default {
this
.
disabled
=
false
;
this
.
disabled
=
false
;
if
(
r
.
success
)
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
"保存成功"
);
this
.
$Message
.
success
(
"保存成功"
);
this
.
$emit
(
"on-ok
s
"
);
this
.
$emit
(
"on-ok"
);
}
else
{
}
else
{
this
.
$Message
.
error
(
"保存失败"
);
this
.
$Message
.
error
(
"保存失败"
);
}
}
...
...
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