feat: gen_number_with_rule 优化一下
This commit is contained in:
parent
6d09e5e4f3
commit
d84b8e94fd
|
@ -879,10 +879,12 @@ class MlogbInViewSet(CreateModelMixin, UpdateModelMixin, DestroyModelMixin, Cust
|
|||
c_month = handle_date.month
|
||||
m_model = material_out.model
|
||||
# 按生产日志查询
|
||||
wpr = Wpr.objects.filter(wpr_mlogbw__mlogb__mlog__mgroup=mlog.mgroup,
|
||||
wpr = Wpr.objects.filter(wpr_mlogbw__mlogb__material_out__isnull=False,
|
||||
wpr_mlogbw__mlogb__mlog__mgroup=mlog.mgroup,
|
||||
wpr_mlogbw__mlogb__mlog__is_fix=False,
|
||||
wpr_mlogbw__mlogb__mlog__submit_time__isnull=False,
|
||||
wpr_mlogbw__mlogb__mlog__handle_date__year=c_year, wpr_mlogbw__mlogb__mlog__handle_date__month=c_month).order_by("number").last()
|
||||
wpr_mlogbw__mlogb__mlog__handle_date__year=c_year,
|
||||
wpr_mlogbw__mlogb__mlog__handle_date__month=c_month).order_by("number").last()
|
||||
cq_w = 4
|
||||
if '02d' in rule:
|
||||
cq_w = 2
|
||||
|
|
Loading…
Reference in New Issue