Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
H
hh_ccs
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
贺阳
hh_ccs
Commits
2912240b
提交
2912240b
authored
2月 19, 2025
作者:
贺阳
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
如果是理货扫码,传的理货状态是已理货才修改理货状态,如果是交货扫码,传的理货状态是已交接才修改理货状态
上级
322c45ab
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
22 行增加
和
19 行删除
+22
-19
order_controller.py
ccs_connect_tiktok/controllers/order_controller.py
+22
-19
没有找到文件。
ccs_connect_tiktok/controllers/order_controller.py
浏览文件 @
2912240b
...
@@ -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
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论