Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
wmsMin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
6a121254
authored
May 17, 2024
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
bug
parent
152ea7e7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
pages/tally/index.vue
pages/tally/unboxing.vue
pages/tally/index.vue
View file @
6a121254
...
...
@@ -897,7 +897,7 @@
total
+=
parseFloat
(
item
.
net_weight
);
}
return
total
;
},
0
);
},
0
)
.
toFixed
(
2
);
// 保留两位小数s
;
this
.
title
=
`入仓号
${
this
.
erp_order_sn
}
已经全部验货完毕是否更换新的箱子?\n\n 箱子:
${
this
.
box_sn
}
总净重:
${
this
.
net_weight_total
}
`
;
this
.
$refs
.
inputDialog
.
open
();
},
...
...
pages/tally/unboxing.vue
View file @
6a121254
...
...
@@ -768,9 +768,13 @@
* 关单封箱
*/
closeBox
()
{
this
.
net_weight_total
=
this
.
form
.
filter
(
item
=>
item
.
tally_status
===
3
)
// 筛选出 tally_status 等于 3 的数据
.
reduce
((
acc
,
curr
)
=>
acc
+
parseFloat
(
curr
.
net_weight
),
0
);
// 将 net_weight 转换为数字并计算总和
this
.
net_weight_total
=
this
.
form
.
reduce
((
total
,
item
)
=>
{
// 如果 tally_status 等于 3 并且 box_sn 等于 box_sn 变量,则累加 net_weight 到总和中
if
(
item
.
tally_status
===
3
&&
item
.
box_sn
===
this
.
box_sn
)
{
total
+=
parseFloat
(
item
.
net_weight
);
}
return
total
;
},
0
).
toFixed
(
2
);
// 保留两位小数s;
this
.
title
=
`箱号
${
this
.
box_sn
}
已经全部验货完毕是否更换新的箱子?\n\n总净重:
${
this
.
net_weight_total
}
`
;
this
.
$refs
.
inputDialog
.
open
();
},
...
...
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