feat: 光子批次统计增加组合件信息2
This commit is contained in:
parent
8a2244a0cc
commit
24a389d566
|
@ -11,7 +11,7 @@ import json
|
||||||
from apps.utils.tools import MyJSONEncoder
|
from apps.utils.tools import MyJSONEncoder
|
||||||
myLogger = logging.getLogger("log")
|
myLogger = logging.getLogger("log")
|
||||||
|
|
||||||
def main(batch: str, mgroup_obj):
|
def main(batch: str, mgroup_obj=None):
|
||||||
"""
|
"""
|
||||||
获取某个批次的整体生产数据
|
获取某个批次的整体生产数据
|
||||||
"""
|
"""
|
||||||
|
@ -474,7 +474,7 @@ def main(batch: str, mgroup_obj):
|
||||||
|
|
||||||
# 销售发货的组合件信息
|
# 销售发货的组合件信息
|
||||||
mioitem_qs_assemb = MIOItem.objects.filter(mio__type="sale_out", mb__a_mb__batch=batch, mio__submit_time__isnull=False)
|
mioitem_qs_assemb = MIOItem.objects.filter(mio__type="sale_out", mb__a_mb__batch=batch, mio__submit_time__isnull=False)
|
||||||
if mioitem_qs.exists():
|
if mioitem_qs_assemb.exists():
|
||||||
if "销售发货_日期" not in data:
|
if "销售发货_日期" not in data:
|
||||||
data["销售发货_日期"] = []
|
data["销售发货_日期"] = []
|
||||||
data['销售发货_仓库执行人'] = []
|
data['销售发货_仓库执行人'] = []
|
||||||
|
|
Loading…
Reference in New Issue