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
26fd0232
Commit
26fd0232
authored
Apr 22, 2024
by
张海景
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:修改生产报工传参
parent
96257f2c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
index.vue
pages/mes/prodReport/index.vue
+10
-7
No files found.
pages/mes/prodReport/index.vue
View file @
26fd0232
...
...
@@ -1930,15 +1930,17 @@ export default {
return
;
}
console
.
log
(
item
,
'item'
);
const
directData
=
item
.
tableDirectiveData
.
map
(
v
=>
{
return
{
workorderSoDirectiveId
:
v
.
workorderSoDirectiveId
,
reportQuantity
:
v
.
reportQuantity
}
let
formData
=
{}
item
.
tableDirectiveData
.
forEach
((
v
,
i
)
=>
{
formData
[
`directiveReportData[
${
i
}
].workorderSoDirectiveId`
]
=
v
.
workorderSoDirectiveId
formData
[
`directiveReportData[
${
i
}
].reportQuantity`
]
=
v
.
reportQuantity
// return { workorderSoDirectiveId: v.workorderSoDirectiveId,reportQuantity: v.reportQuantity}
})
const
sizeData
=
item
.
tableSizeData
.
map
(
v
=>
{
return
{
workorderSoSizeItemId
:
v
.
workorderSoSizeItemId
,
reportQuantity
:
v
.
reportQuantity
}
item
.
tableSizeData
.
forEach
((
v
,
i
)
=>
{
formData
[
`sizeReportData[
${
i
}
].workorderSoSizeItemId`
]
=
v
.
workorderSoSizeItemId
formData
[
`sizeReportData[
${
i
}
].reportQuantity`
]
=
v
.
reportQuantity
// return {workorderSoSizeItemId:v.workorderSoSizeItemId, reportQuantity: v.reportQuantity}
})
console
.
log
(
directData
,
sizeData
)
debugger
;
//工单
this
.
$u
.
api
.
feedback
({
...
...
@@ -1969,6 +1971,7 @@ export default {
createTime
:
item
.
createTime
,
minPackageNum
:
item
.
minPackageNum
,
printContents
:
item
.
whether
==
'1'
?
item
.
printContents
:
null
,
...
formData
// directiveReportData: directData,
// sizeReportData: sizeData
})
...
...
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