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
f037eae9
Commit
f037eae9
authored
Jul 07, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
materiel/add/edit
parent
843b8e4c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
15 deletions
+22
-15
materiel.vue
components/page/materiel.vue
+9
-7
add.vue
pages/technology/details/routingsupporting/add.vue
+5
-5
edit.vue
pages/technology/details/routingsupporting/edit.vue
+8
-3
No files found.
components/page/materiel.vue
View file @
f037eae9
...
...
@@ -88,11 +88,12 @@ export default {
data
:
[],
departId
:
""
,
group
:
[],
ids
:
[]
ids
:
[],
bId
:
this
.
bomId
,
};
},
created
()
{
this
.
materiallist
(
Number
(
this
.
bomId
)
);
this
.
materiallist
();
},
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
...
...
@@ -154,7 +155,7 @@ export default {
this
.
$emit
(
"on-change"
,
entity
);
},
// 加载物料
materiallist
(
id
)
{
materiallist
()
{
let
url
=
`
${
systemUrl
}
/material/materiallist`
;
this
.
$api
.
post
(
url
,
{
...
...
@@ -170,20 +171,21 @@ export default {
if
(
this
.
theme
==
"list"
)
{
this
.
departmentGroup
();
}
if
(
i
d
!=
null
)
{
if
(
this
.
bI
d
!=
null
)
{
let
url1
=
`
${
technologyUrl
}
productinfo/getmaterialids`
;
this
.
$api
.
get
(
url1
,
{
Id
:
i
d
Id
:
this
.
bI
d
})
.
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
ids
=
res
.
result
;
let
arr
=
r
.
result
.
filter
(
u
=>
u
.
status
==
3
);
this
.
data
=
[...
arr
].
filter
(
x
=>
let
arr
=
[...
this
.
data
].
filter
(
x
=>
[...
this
.
ids
].
some
(
y
=>
y
===
x
.
id
)
);
this
.
data
=
arr
}
});
}
});
...
...
pages/technology/details/routingsupporting/add.vue
View file @
f037eae9
...
...
@@ -54,11 +54,11 @@
</FormItem>
</Col>
<Col
:span=
"8"
>
<FormItem
:label=
"l('
materialNumber
')"
prop=
"materialNumber"
>
<Materiel
:bomId=
"productBomId"
@
on-change=
"change"
></Materiel>
<FormItem
:label=
"l('
nameMaterial
')"
prop=
"materialNumber"
>
<Materiel
:bomId=
"productBomId"
v-model=
"entity.materialId"
@
on-change=
"change"
></Materiel>
</FormItem>
</Col>
<Col
:span=
"8"
>
<Col
:span=
"8"
v-if=
"false"
>
<FormItem
:label=
"l('nameMaterial')"
prop=
"nameMaterial"
>
<Input
v-model=
"entity.nameMaterial"
></Input>
</FormItem>
...
...
@@ -123,9 +123,9 @@ export default {
routingDetailId
:
null
,
routingStepId
:
0
,
quantity
:
null
,
materialId
:
null
,
materialId
:
""
,
materialType
:
""
,
materialNumber
:
""
,
materialNumber
:
null
,
nameMaterial
:
""
,
brand
:
""
,
specifications
:
""
,
...
...
pages/technology/details/routingsupporting/edit.vue
View file @
f037eae9
...
...
@@ -54,11 +54,11 @@
</FormItem>
</Col>
<Col
:span=
"8"
>
<FormItem
:label=
"l('
materialNumber
')"
prop=
"materialNumber"
>
<Materiel
:bomId=
"productBomId
"
></Materiel>
<FormItem
:label=
"l('
nameMaterial
')"
prop=
"materialNumber"
>
<Materiel
v-model=
"entity.materialId"
:bomId=
"productBomId"
@
on-change=
"change
"
></Materiel>
</FormItem>
</Col>
<Col
:span=
"8"
>
<Col
:span=
"8"
v-if=
"false"
>
<FormItem
:label=
"l('nameMaterial')"
prop=
"nameMaterial"
>
<Input
v-model=
"entity.nameMaterial"
></Input>
</FormItem>
...
...
@@ -185,6 +185,11 @@ export default {
this
.
routingDetailList
=
tempD
;
});
},
change
(
e
)
{
this
.
entity
.
nameMaterial
=
e
.
name
;
this
.
entity
.
materialId
=
e
.
materialId
;
this
.
entity
.
materialNumber
=
e
.
mmcode
;
},
handleClose
()
{
this
.
$emit
(
"on-close"
);
},
...
...
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