feat: 更新净重计算逻辑,调整净重保留小数位数为三位
This commit is contained in:
parent
31e795443d
commit
5138c0e115
@ -1760,7 +1760,7 @@ class MainWindow(MainWindowUI):
|
||||
except (ValueError, TypeError):
|
||||
logging.warning(f"无法将工字轮重量 '{gzl_zl_raw}' 转换为浮点数,将使用默认值 0.0")
|
||||
|
||||
net_weight_kg = weight_kg - gzl_zl
|
||||
net_weight_kg = round(weight_kg - gzl_zl,3)
|
||||
self.save_inspection_data(self._current_order_code, gc_note, tray_id, 13, 13, str(net_weight_kg), "pass")
|
||||
|
||||
# 设置净重单元格(显示千克)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user