fix: 修改订单查询显示的理论重量逻辑 (#420)

Co-authored-by: wjh <wwwjh0710@163.com>
Co-committed-by: wjh <wwwjh0710@163.com>
This commit is contained in:
wjh 2024-03-19 12:02:10 +08:00 committed by sealday
parent d3c3322fd4
commit 60a37c58c4

View File

@ -71,7 +71,8 @@ export const RecordDetails: CustomFunctionComponent = () => {
const unit = item.product.category.convertible
? item.product.category.conversion_unit
: item.product.category.unit;
const weight = count * item.product.weight;
const weight = item.count * item.product.weight;
if (productItem[key]) {
productItem[key].count += count;
} else {