In the production scheduling of prefabricated components, we study an online [Formula: see text] parallel-batch machines scheduling model considering learning effect jobs with [Formula: see text] incompatible job families to minimize the makespan in this paper, where the capacity of batch is unbounded. Job families indicate that a job must belong to some job family and jobs of distinct job families are incapable to be executed in the same batch. The information of each job including its basic processing time [Formula: see text] and release time [Formula: see text] is unknown in advance and is revealed at the instant of its arrival. Moreover, the actual processing time of job [Formula: see text] with learning effect is [Formula: see text], where [Formula: see text] and [Formula: see text] are non-negative parameters and [Formula: see text] denotes the starting time of prefabricated job [Formula: see text], respectively. When [Formula: see text], we propose an online algorithm with a competitive ratio of [Formula: see text]. Furthermore, the performance of the online algorithm is demonstrated by numerical experiments.