Reference designators and bill of materials?
Usually when you have a component such as the ones you mentioned, they will have a schematic symbol for each of the four AND / OR gates per component. So for every CD74HCT32, say, there will be 4 OR gate symbols.
Typically they will be referenced by IC1A, IC1B, IC1C, IC1D, for each sub-part of the component. So IC1 is the designator for the whole component as will be found on the PCB layout (if there is one) and Bill of Materials. The suffix letters indicate that it is a sub-part of a whole part so it is easier to see on a schematic.
On the schematic, the sub-part labelled with 'A' will usually be the one that has the part number. and the rest of them will simply be the designator.

So, for 31  OR gates, the schematic will have \$\frac{31}{4}\$ sets of four designators. So you would have IC1A - IC7C actually connected in the circuit, and for completeness you would show the remaining IC7D on the schematic with the inputs grounded or connected to VCC. 
The BOM for these devices will simply be IC1 - IC7 are CD74HCT32, and won't show the suffix.

Same again for the 99 AND gates, you would have designators on the schematic from IC8A - IC32C (starting from IC8 to follow on from the OR gates...) and again, IC32D same as above.
BOM is the same again. 24 components as the CD74HCT08.

See below - it is easier to determine the function of a circuit this way compared to if you did it like a microcontroller or something.







simulate this circuit &ndash; Schematic created using CircuitLab