提交 72ef7e54 authored 作者: 贺阳's avatar 贺阳

优化

上级 deee0d04
...@@ -428,7 +428,7 @@ class OrderController(http.Controller): ...@@ -428,7 +428,7 @@ class OrderController(http.Controller):
if ( if (
action_type == 'pickup' and package.tally_state == 'unprocessed_goods') or ( action_type == 'pickup' and package.tally_state == 'unprocessed_goods') or (
action_type == 'tally' and package.tally_state in ( action_type == 'tally' and package.tally_state in (
'unprocessed_goods', 'checked_goods', 'picked_up')) or ( 'unprocessed_goods', 'picked_up')) or (
action_type == 'handover' and package.tally_state in ( action_type == 'handover' and package.tally_state in (
'unprocessed_goods', 'checked_goods', 'picked_up')): 'unprocessed_goods', 'checked_goods', 'picked_up')):
ship_packages.append({ ship_packages.append({
...@@ -1016,14 +1016,9 @@ class OrderController(http.Controller): ...@@ -1016,14 +1016,9 @@ class OrderController(http.Controller):
package_obj.update_exception_info( package_obj.update_exception_info(
exception_cause_ids) # 修改异常信息 exception_cause_ids) # 修改异常信息
tally_time = package_item.get('tally_time') tally_time = package_item.get('tally_time')
if (action_type == 'pickup' and package_item.get('tally_state') == 'picked_up') or (action_type == 'tally' and package_item.get('tally_state') == 'checked_goods') or ( if action_type == 'tally' and package_item.get('tally_state') == 'checked_goods':
action_type == 'handover' and package_item.get(
'tally_state') == 'handover_completed'):
for package in package_obj: for package in package_obj:
if ( if action_type == 'tally' and package.tally_state in ('picked_up','unprocessed_goods') :
action_type == 'pickup' and package.tally_state == 'unprocessed_goods') or (action_type == 'tally' and package.tally_state == 'unprocessed_goods') or (
action_type == 'handover' and package.tally_state in (
'unprocessed_goods', 'checked_goods')):
ship_packages.append({ ship_packages.append({
'id': package.ship_package_ids.ids, 'id': package.ship_package_ids.ids,
'bl_id': package.bl_id.id, 'bl_id': package.bl_id.id,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论