Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
H
hh_ccs
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
贺阳
hh_ccs
Commits
931c3503
提交
931c3503
authored
2月 08, 2025
作者:
贺阳
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
优化修改理货的接口
上级
7827b5d6
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
27 行增加
和
14 行删除
+27
-14
add_exception_info_wizard.py
ccs_base/wizard/add_exception_info_wizard.py
+2
-2
order_controller.py
ccs_connect_tiktok/controllers/order_controller.py
+0
-0
cc_bill_loading.py
ccs_connect_tiktok/models/cc_bill_loading.py
+25
-12
没有找到文件。
ccs_base/wizard/add_exception_info_wizard.py
浏览文件 @
931c3503
...
@@ -43,10 +43,10 @@ class AddExceptionInfoWizard(models.TransientModel):
...
@@ -43,10 +43,10 @@ class AddExceptionInfoWizard(models.TransientModel):
'action_type'
:
action_type
,
'action_type'
:
action_type
,
'big_package_ids'
:
[(
6
,
0
,
big_package_ids
)],
'big_package_ids'
:
[(
6
,
0
,
big_package_ids
)],
'exception_ids'
:
[(
6
,
0
,
exception_ids
)],
'exception_ids'
:
[(
6
,
0
,
exception_ids
)],
'send_email'
:
True
,
'send_email'
:
send_email
,
'email_language'
:
email_language
,
'email_language'
:
email_language
,
}
}
return
vals
return
self
.
create
(
vals
)
def
confirm
(
self
):
def
confirm
(
self
):
for
record
in
self
:
for
record
in
self
:
...
...
ccs_connect_tiktok/controllers/order_controller.py
浏览文件 @
931c3503
差异被折叠。
点击展开。
ccs_connect_tiktok/models/cc_bill_loading.py
浏览文件 @
931c3503
...
@@ -429,18 +429,31 @@ class CcBigPackage(models.Model):
...
@@ -429,18 +429,31 @@ class CcBigPackage(models.Model):
"""
"""
理货 tally/尾程交接 handover
理货 tally/尾程交接 handover
"""
"""
action_type
=
kwargs
.
get
(
'action_type'
)
action_type
=
kwargs
.
get
(
'action_type'
)
for
item
in
self
:
if
action_type
==
'tally'
and
item
.
tally_state
==
'unprocessed_goods'
:
# 更新理货信息
self
.
_update_info
(
item
,
kwargs
,
'tally'
)
elif
action_type
==
'handover'
and
item
.
tally_state
!=
'handover_completed'
:
# 更新交接信息
self
.
_update_info
(
item
,
kwargs
,
'handover'
)
def
_update_info
(
self
,
item
,
kwargs
,
action_type
):
"""
更新信息的通用方法
"""
if
action_type
==
'tally'
:
if
action_type
==
'tally'
:
if
self
.
tally_state
==
'unprocessed_goods'
:
if
kwargs
.
get
(
'tally_state'
):
if
kwargs
.
get
(
'tally_state'
):
item
.
tally_state
=
kwargs
[
'tally_state'
]
self
.
tally_state
=
kwargs
[
'tally_state'
]
if
kwargs
.
get
(
'tally_user_id'
):
if
kwargs
.
get
(
'tally_user_id'
):
item
.
tally_user_id
=
kwargs
[
'tally_user_id'
]
self
.
tally_user_id
=
kwargs
[
'tally_user_id'
]
if
kwargs
.
get
(
'tally_time'
):
if
kwargs
.
get
(
'tally_time'
):
item
.
tally_time
=
kwargs
[
'tally_time'
]
self
.
tally_time
=
kwargs
[
'tally_time'
]
elif
action_type
==
'handover'
:
elif
action_type
==
'handover'
:
if
self
.
tally_state
!=
'handover_completed'
:
if
kwargs
.
get
(
'tally_state'
):
if
kwargs
.
get
(
'tally_user_id'
):
item
.
tally_state
=
kwargs
[
'tally_state'
]
self
.
delivery_user_id
=
kwargs
[
'tally_user_id'
]
if
kwargs
.
get
(
'tally_user_id'
):
if
kwargs
.
get
(
'tally_time'
):
item
.
delivery_user_id
=
kwargs
[
'tally_user_id'
]
self
.
delivery_time
=
kwargs
[
'tally_time'
]
if
kwargs
.
get
(
'tally_time'
):
item
.
delivery_time
=
kwargs
[
'tally_time'
]
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论