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
ddc8fde7
Commit
ddc8fde7
authored
Jun 28, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bom
parent
4345952b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
13 deletions
+27
-13
add.vue
pages/technology/productMix/product/add.vue
+2
-2
bom.vue
pages/technology/productMix/product/bom.vue
+6
-4
bomAdd.vue
pages/technology/productMix/product/bomAdd.vue
+11
-4
bomEdit.vue
pages/technology/productMix/product/bomEdit.vue
+3
-1
index.vue
pages/technology/productMix/product/index.vue
+5
-2
No files found.
pages/technology/productMix/product/add.vue
View file @
ddc8fde7
...
...
@@ -109,7 +109,7 @@ export default {
downUrl
:
fileUrlDown
,
componaylist
:
[],
componaylist
:
[],
data2
:
[],
data2
:
[],
//主承制单位
selectdata1
:
[],
rules
:
{
code
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"change"
}],
...
...
@@ -152,7 +152,7 @@ export default {
getTree
()
{
var
url
=
`
${
designUrl
}
/productlevel/getdepartmentstree`
;
service
.
get
(
`
${
url
}
`
).
then
(
response
=>
{
this
.
data2
=
response
.
result
;
this
.
data2
=
response
.
result
;
//主承制单位
});
},
getMaterialList
()
{
...
...
pages/technology/productMix/product/bom.vue
View file @
ddc8fde7
...
...
@@ -27,7 +27,7 @@
</div>
<TreeGrid
:columns=
"columns"
:items=
"treeData"
></TreeGrid>
<Modal
v-model=
"modal"
:title=
"title"
width=
"1200"
footer-hide
>
<component
:is=
"detail"
:eid=
"curId"
@
on-close=
"cancel"
@
on-ok=
"ok"
/>
<component
:is=
"detail"
:eid=
"curId"
@
on-close=
"cancel"
@
on-ok=
"ok"
:parents=
"parents"
/>
</Modal>
</div>
</
template
>
...
...
@@ -76,7 +76,7 @@ export default {
"op"
,
{
attrs
:
{
oprate
:
"add"
},
on
:
{
click
:
()
=>
this
.
add
(
params
.
row
.
id
)
}
on
:
{
click
:
()
=>
this
.
add
(
params
.
row
)
}
},
"新增"
),
...
...
@@ -123,8 +123,10 @@ export default {
this
.
treeData
=
r
.
result
;
});
},
add
(
id
)
{
this
.
curId
=
id
;
add
(
row
)
{
this
.
curId
=
row
.
id
;
this
.
parents
.
id
=
row
.
levelId
;
this
.
parents
.
parentName
=
row
.
levelTitle
;
this
.
title
=
"新增"
;
this
.
detail
=
()
=>
import
(
"./bomAdd"
);
this
.
modal
=
true
;
...
...
pages/technology/productMix/product/bomAdd.vue
View file @
ddc8fde7
...
...
@@ -49,7 +49,9 @@ export default {
return
{
disabled
:
false
,
entity
:
{
upId
:
this
.
eid
upId
:
this
.
eid
,
levelId
:
this
.
parents
.
id
,
levelTitle
:
this
.
parents
.
parentName
},
dataList
:
[],
downUrl
:
fileUrlDown
,
...
...
@@ -70,7 +72,12 @@ export default {
};
},
props
:
{
eid
:
Number
eid
:
Number
,
parents
:
{
id
:
Number
,
parentName
:
String
,
ids
:
String
}
},
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
...
...
@@ -99,7 +106,7 @@ export default {
if
(
e
.
id
==
val
)
{
this
.
entity
.
name
=
e
.
name
;
this
.
entity
.
mmcode
=
e
.
code
;
this
.
entity
.
drawingNo
=
e
.
drawingNo
;
this
.
entity
.
drawingNo
=
e
.
drawingNo
;
}
});
},
...
...
@@ -112,7 +119,7 @@ export default {
this
.
disabled
=
false
;
if
(
r
.
success
)
{
this
.
$Message
.
success
(
"保存成功"
);
this
.
$emit
(
"on-ok"
);
this
.
$emit
(
"on-ok"
);
}
else
{
this
.
$Message
.
error
(
"保存失败"
);
}
...
...
pages/technology/productMix/product/bomEdit.vue
View file @
ddc8fde7
...
...
@@ -44,7 +44,9 @@ export default {
return
{
disabled
:
false
,
entity
:
{
id
:
this
.
eid
id
:
this
.
eid
,
levelId
:
0
,
levelTitle
:
""
},
dataList
:
[],
downUrl
:
fileUrlDown
,
...
...
pages/technology/productMix/product/index.vue
View file @
ddc8fde7
...
...
@@ -96,7 +96,6 @@ export default {
easySearch
:
{
keys
:
{
op
:
"mmcode,name,productCode"
,
value
:
null
},
levelId
:
{
op
:
"In"
,
value
:
this
.
id
}
// levelTitle: { op: "In", value: this.parentName }
},
modal
:
false
,
title
:
"新增"
,
...
...
@@ -293,6 +292,7 @@ export default {
bom
(
row
)
{
this
.
curId
=
row
.
id
;
this
.
parent
.
id
=
row
.
levelId
;
this
.
parent
.
parentName
=
row
.
levelTitle
;
this
.
title
=
"BOM"
;
this
.
detail
=
()
=>
import
(
"./bom"
);
this
.
modal
=
true
;
...
...
@@ -318,7 +318,10 @@ export default {
watch
:
{
"parent.id"
(
v
)
{
if
(
v
)
{
let
data
=
{
levelId
:
{
op
:
"In"
,
value
:
this
.
parent
.
ids
}
};
let
data
=
{
levelId
:
{
op
:
"In"
,
value
:
this
.
parent
.
ids
},
upId
:
{
op
:
"In"
,
value
:
0
}
};
this
.
$refs
.
grid
.
reload
(
data
);
}
}
...
...
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