Illegal. Infringed on the right of consumers to choose their consumption freely in the Consumer Protection Law. If clothing is provided from the beginning, voluntary purchase is acceptable but not enough to force this.
Parents should report this situation to the local education bureau and ask the local education bureau, education and sports bureau, government and other departments to negotiate with the school.