提交 2912240b authored 作者: 贺阳's avatar 贺阳

如果是理货扫码,传的理货状态是已理货才修改理货状态,如果是交货扫码,传的理货状态是已交接才修改理货状态

上级 322c45ab
...@@ -168,25 +168,28 @@ class OrderController(http.Controller): ...@@ -168,25 +168,28 @@ class OrderController(http.Controller):
big_package_exception_arr[excep_item] += package_obj.ids big_package_exception_arr[excep_item] += package_obj.ids
package_obj.update_exception_info(exception_cause_ids) # 修改异常信息 package_obj.update_exception_info(exception_cause_ids) # 修改异常信息
tally_time = package_item.get('tally_time') tally_time = package_item.get('tally_time')
if package_type == 'ship': if (action_type == 'tally' and package_item.get('tally_state') == 'checked_goods') or (
ship_packages.append({ action_type == 'handover' and package_item.get(
'id': package_obj.id, 'tally_state') == 'handover_completed'):
'tally_time': tally_time}) if package_type == 'ship':
else: ship_packages.append({
# if package.tally_state == 'unprocessed_goods' 'id': package_obj.id,
for package in package_obj: 'tally_time': tally_time})
ship_packages += [{ else:
'id': ship_package.id, for package in package_obj:
'tally_time': tally_time} for ship_package in ship_packages += [{
package.ship_package_ids if 'id': ship_package.id,
(action_type == 'tally' and package.tally_state == 'unprocessed_goods') or ( 'tally_time': tally_time} for ship_package in
action_type == 'handover' and package.tally_state in ( package.ship_package_ids if
'unprocessed_goods', 'checked_goods'))] # 小包 (
package_obj.update_big_package_info(action_type=action_type, action_type == 'tally' and package.tally_state == 'unprocessed_goods') or (
tally_state=package_item.get('tally_state'), action_type == 'handover' and package.tally_state in (
tally_user_id=package_item.get( 'unprocessed_goods', 'checked_goods'))] # 小包
'tally_user_id'), package_obj.update_big_package_info(action_type=action_type,
tally_time=tally_time) # 修改理货信息 tally_state=package_item.get('tally_state'),
tally_user_id=package_item.get(
'tally_user_id'),
tally_time=tally_time) # 修改理货信息
else: else:
error_no_set.add(package_no) error_no_set.add(package_no)
return error_no_set return error_no_set
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论