Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes-pad
Project
Project
Details
Activity
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
ximai
mes-pad
Commits
b237daa6
Commit
b237daa6
authored
Apr 20, 2024
by
chenzj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
领料生产修复bug
parent
d1029e67
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
5 deletions
+18
-5
index.vue
pages/mes/prodReport/index.vue
+18
-5
No files found.
pages/mes/prodReport/index.vue
View file @
b237daa6
...
...
@@ -2076,7 +2076,12 @@ export default {
});
this
.
$u
.
api
.
listMaterialRequest
({
taskId
:
taskInfo
.
taskId
}).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
this
.
materialRequestList
=
res
.
data
;
this
.
materialRequestList
=
res
.
data
.
map
(
item
=>
{
return
{
...
item
,
workorderCode
:
this
.
curTaskInfo
.
workorderCode
}
})
this
.
materialRequestArrays
=
this
.
materialRequestList
.
concat
([]);
}
});
...
...
@@ -2099,8 +2104,8 @@ export default {
const
rst
=
[];
const
taskInfo
=
this
.
tableSelectData
[
0
];
const
t
=
this
;
const
items
=
this
.
curTaskInfo
.
workorderOption
.
find
((
item
)
=>
item
.
text
===
this
.
curTaskInfo
.
workorderCode
);
console
.
log
(
this
.
curTaskInfo
.
workorderOption
,
this
.
curTaskInfo
.
workorderCode
,
items
);
// const items = this.curTaskInfo.workorderOption.find((item) => item.value
=== this.curTaskInfo.workorderCode);
// console.log(this.curTaskInfo.workorderOption, this.curTaskInfo.workorderCode
);
this
.
materialRequestArrays
.
forEach
((
s
)
=>
{
if
(
s
.
applyNum
!=
null
)
{
rst
.
push
({
...
...
@@ -2109,7 +2114,7 @@ export default {
workunitCode
:
this
.
curTaskInfo
.
workunitCode
,
workunitName
:
this
.
curTaskInfo
.
workunitName
,
taskWorkunitId
:
this
.
curTaskInfo
.
taskWorkunitId
,
workorderCode
:
items
?.
text
,
workorderCode
:
s
.
workorderCode
,
taskId
:
taskInfo
.
taskId
,
applyNum
:
s
.
applyNum
,
applyType
:
1
...
...
@@ -2161,9 +2166,17 @@ export default {
if
(
!
id
)
{
this
.
materialRequestArrays
=
this
.
materialRequestList
.
concat
([]);
}
else
{
const
items
=
this
.
curTaskInfo
.
workorderOption
.
find
((
item
)
=>
item
.
value
===
this
.
curTaskInfo
.
workorderCode
);
console
.
log
(
items
)
this
.
$u
.
api
.
getWproworkOrderProcessItem
({
workorderId
:
id
,
processId
:
this
.
curTaskInfo
.
processId
}).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
this
.
materialRequestArrays
=
this
.
materialRequestList
.
concat
(
res
.
rows
);
const
list
=
res
.
rows
.
map
(
item
=>
{
return
{
...
item
,
workorderCode
:
items
.
text
}
})
this
.
materialRequestArrays
=
this
.
materialRequestList
.
concat
(
list
);
}
});
}
...
...
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