fix: gen_number_with_rule bug
This commit is contained in:
		
							parent
							
								
									bc0200669b
								
							
						
					
					
						commit
						4e817d9954
					
				| 
						 | 
					@ -950,7 +950,7 @@ class MlogbInViewSet(BulkCreateModelMixin, BulkUpdateModelMixin, BulkDestroyMode
 | 
				
			||||||
        m_model = material_out.model
 | 
					        m_model = material_out.model
 | 
				
			||||||
        if m_model is None:
 | 
					        if m_model is None:
 | 
				
			||||||
            raise ParseError("生成编号出错:产品型号不能为空")
 | 
					            raise ParseError("生成编号出错:产品型号不能为空")
 | 
				
			||||||
        elif m_model and m_model.is_lower():
 | 
					        elif m_model and m_model.islower():
 | 
				
			||||||
            raise ParseError("生成编号出错:产品型号不能为小写")
 | 
					            raise ParseError("生成编号出错:产品型号不能为小写")
 | 
				
			||||||
        # 按生产日志查询
 | 
					        # 按生产日志查询
 | 
				
			||||||
        wpr = (
 | 
					        wpr = (
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue