Home > front end >  O a js array processing train of thought, they melody, it's too difficult
O a js array processing train of thought, they melody, it's too difficult

Time:09-20

The initial data:


According to the same time processing data

Now data:


The data I was to show to the inside of the form:

Form is too long I only captures the front part, in fact, in accordance with the header of the loading of the goods that a large chunk of the following is the corresponding 10 in the screenshot shows only 2

The final data is contains the following two conditions:
1. Different date, commodity name the same in a column, commodity name is not in the same column, for example, 9-10 and the September 11, 9 -- 10 goods in 1 this big module name is fuel oil, September 11, and fuel oil, then these two dates the goods name are in the same column; If 9-10 in 1 of the contents of this big module name is fuel oil, September 11 goods in 1 this big module name is iron ore powder, then 9-10 goods name is in the below 1, 9-11 in two under the name of the goods, if you have any goods in 9-12 name for fuel oil, vegetable oil, iron ore powder, so September 11 iron ore powder has the following goods under the name of 3 and 9-12 of iron ore powder in a column,
2. The same date, name of goods the same get together, such as 9 to 10, with the name of the goods for iron ore powder of the two, then 1 and 2 are iron ore powder, September 11 have the goods name for iron ore powder, fuel oil, then September 11 goods name below 1 and 3
  • Related