修改F块派单方量

This commit is contained in:
xiongyi
2026-01-27 14:57:29 +08:00
parent 6291b34243
commit f8ee2b9ff6
2 changed files with 13 additions and 10 deletions

View File

@ -188,8 +188,8 @@ class TaskService:
"""处理单个F块的情况"""
if f_positions == [2]:
f_volume = f_blocks[0].get("BetonVolume") if f_blocks else 0
self.half_volume[0] = round(total_f_volume / 2, 2)
self.half_volume[1] = f_volume - self.half_volume[0]
self.half_volume[0] = 0.1#round(total_f_volume / 2, 2)#暂时修改为0.1
self.half_volume[1] = 0.1#f_volume - self.half_volume[0]#暂时修改
adjusted_volume = current_task["beton_volume"] + self.half_volume[0]
elif f_positions == [1]:
adjusted_volume = current_task["beton_volume"] + self.half_volume[1]