Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
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
mes
mes-ui
Commits
9a719b35
Commit
9a719b35
authored
Jan 06, 2025
by
tanjunxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 生产工单补单计算逻辑保留三位小数
parent
3e7b7117
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
proofingInfo.vue
src/views/mes/pro/workorder/proofingInfo.vue
+4
-4
No files found.
src/views/mes/pro/workorder/proofingInfo.vue
View file @
9a719b35
...
...
@@ -538,11 +538,11 @@ export default {
this
.
processList
=
[]
const
bomList
=
this
.
currentData
.
bomList
.
map
((
item
,
index
)
=>
{
// console.log(item.quantity, 'items')
let
quantity
=
parseFloat
(
this
.
form
.
quantity
*
item
.
quantity
*
100
/
this
.
currentData
.
quantity
)
let
quantity
=
parseFloat
(
this
.
form
.
quantity
*
item
.
quantity
*
100
/
this
.
currentData
.
quantity
)
/
100
// console.log(quantity, 'quantity')
return
{
...
item
,
quantity
:
quantity
/
100
quantity
:
quantity
>
0.001
?
quantity
.
toFixed
(
3
)
:
0.001
}
})
const
processList
=
this
.
currentData
.
processList
.
map
((
ele
)
=>
{
...
...
@@ -550,10 +550,10 @@ export default {
...
ele
,
processItemList
:
ele
.
processItemList
.
map
((
item
)
=>
{
// console.log(item.quantity, 'items2')
let
quantity
=
parseFloat
(
this
.
form
.
quantity
*
item
.
quantity
*
100
/
this
.
currentData
.
quantity
)
let
quantity
=
parseFloat
(
this
.
form
.
quantity
*
item
.
quantity
*
100
/
this
.
currentData
.
quantity
)
/
100
return
{
...
item
,
quantity
:
quantity
/
100
quantity
:
quantity
>
0.001
?
quantity
.
toFixed
(
3
)
:
0.001
}
})
}
...
...
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