30 lines
		
	
	
		
			749 B
		
	
	
	
		
			Python
		
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			749 B
		
	
	
	
		
			Python
		
	
	
	
from logisticsClass.logisticsBaseClass import HeadLogistics, LogisticsType
 | 
						|
"""
 | 
						|
port:LAX(default) 美西
 | 
						|
currency:str = 'CNY'(default)  
 | 
						|
logistics_type:LogisticsType (海运(default),空运)
 | 
						|
"""
 | 
						|
 | 
						|
class OceanMSLogistics_US(HeadLogistics):
 | 
						|
    """美国海运美森"""
 | 
						|
    logistics_type = LogisticsType.OCEAN  # 默认海运
 | 
						|
    company = "海MS"
 | 
						|
    country_code = "US"
 | 
						|
    country = "United States"
 | 
						|
    def __init__(self):
 | 
						|
        super().__init__()
 | 
						|
        self.head_ratio = 9
 | 
						|
 | 
						|
class AirLAXLogistics_US(HeadLogistics):
 | 
						|
    """美国空运LAX"""
 | 
						|
    logistics_type = LogisticsType.AIR  
 | 
						|
    company = "空LAX"
 | 
						|
    country_code = "US"
 | 
						|
    country = "United States"
 | 
						|
    def __init__(self):
 | 
						|
        super().__init__()
 | 
						|
        self.head_ratio = 35
 | 
						|
 | 
						|
 | 
						|
 |