feat: 调整强度回显功能
This commit is contained in:
parent
63edb27353
commit
1af12e3cf2
BIN
db/jtDB.db
BIN
db/jtDB.db
Binary file not shown.
@ -734,7 +734,16 @@ class MainWindow(MainWindowUI):
|
|||||||
if response.get("status", False):
|
if response.get("status", False):
|
||||||
gc_info = response.get("data", {})
|
gc_info = response.get("data", {})
|
||||||
self._current_gc_qd = gc_info.get("qd",0)
|
self._current_gc_qd = gc_info.get("qd",0)
|
||||||
self.update_info_table({"qd": self._current_gc_qd})
|
# 先获取当前 info_table 已有的数据
|
||||||
|
order_info = {}
|
||||||
|
for field_name, label in self.info_values.items():
|
||||||
|
order_info_key = self.FIELD_MAPPING.get(field_name)
|
||||||
|
if order_info_key:
|
||||||
|
order_info[order_info_key] = label.text()
|
||||||
|
# 更新/补充 qd 字段
|
||||||
|
order_info["qd"] = self._current_gc_qd
|
||||||
|
# 再调用 update_info_table
|
||||||
|
self.update_info_table(order_info)
|
||||||
self.add_new_inspection_row(gc_note, self._current_order_code)
|
self.add_new_inspection_row(gc_note, self._current_order_code)
|
||||||
else:
|
else:
|
||||||
self.add_new_inspection_row(gc_note, self._current_order_code)
|
self.add_new_inspection_row(gc_note, self._current_order_code)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user