前端项目实战195-数据格式转换为二位数组

数据展示了多个制造项目的详细计划,包括制造代码、款式、团队、总目标量和每日目标产能。每个项目中列出了一系列日期及其对应的目标产能,涵盖了11月份的多个日期。此外,还提供了计划开始和结束日期,以及与生产相关的其他信息。
摘要由CSDN通过智能技术生成

传入得值为下面得数据 和当月日期形成得数组[xxxx-xx-xx]格式

{
  "manufacture": [
    {
      "dayPlan": [
        {
          "dayDate": "2022-11-02",
          "targetCapacity": "186.93"
        },
        {
          "dayDate": "2022-11-02",
          "targetCapacity": "186.93"
        },
        {
          "dayDate": "2022-11-01",
          "targetCapacity": "207.58"
        },
        {
          "dayDate": "2022-11-01",
          "targetCapacity": "207.58"
        }
      ],
      "total": 500,
      "styleNumber": "026款",
      "manufactureCode": "WF006",
      "team": "205组",
      "planDate": null,
      "po": "WF006",
      "productionQty": null
    },
    {
      "dayPlan": [
        {
          "dayDate": "2022-11-07",
          "targetCapacity": "203.01"
        },
        {
          "dayDate": "2022-11-12",
          "targetCapacity": "307.59"
        },
        {
          "dayDate": "2022-11-12",
          "targetCapacity": "307.59"
        },
        {
          "dayDate": "2022-11-09",
          "targetCapacity": "217.87"
        },
        {
          "dayDate": "2022-11-14",
          "targetCapacity": "307.59"
        },
        {
          "dayDate": "2022-11-12",
          "targetCapacity": "307.59"
        },
        {
          "dayDate": "2022-11-10",
          "targetCapacity": "282.98"
        },
        {
          "dayDate": "2022-11-11",
          "targetCapacity": "307.59"
        },
        {
          "dayDate": "2022-11-11",
          "targetCapacity": "307.59"
        },
        {
          "dayDate": "2022-11-08",
          "targetCapacity": "239.92"
        },
        {
          "dayDate": "2022-11-17",
          "targetCapacity": "307.59"
        },
        {
          "dayDate": "2022-11-15",
          "targetCapacity": "307.59"
        },
        {
          "dayDate": "2022-11-04",
          "targetCapacity": "116.88"
        },
        {
          "dayDate": "2022-11-17",
          "targetCapacity": "307.59"
        },
        {
          "dayDate": "2022-11-16",
          "targetCapacity": "256.32"
        },
        {
          "dayDate": "2022-11-09",
          "targetCapacity": "217.87"
        },
        {
          "dayDate": "2022-11-16",
          "targetCapacity": "256.32"
        },
        {
          "dayDate": "2022-11-11",
          "targetCapacity": "307.59"
        },
        {
          "dayDate": "2022-11-04",
          "targetCapacity": "116.88"
        },
        {
          "dayDate": "2022-11-19",
          "targetCapacity": "307.59"
        },
        {
          "dayDate": "2022-11-18",
          "targetCapacity": "307.59"
        },
        {
          "dayDate": "2022-11-16",
          "targetCapacity": "256.32"
        },
        {
          "dayDate": "2022-11-19",
          "targetCapacity": "307.59"
        },
        {
          "dayDate": "2022-11-18",
          "targetCapacity": "307.59"
        },
        {
          "dayDate": "2022-11-10",
          "targetCapacity": "282.98"
        },
        {
          "dayDate": "2022-11-19",
          "targetCapacity": "307.59"
        },
        {
          "dayDate": "2022-11-21",
          "targetCapacity": "248.00"
        },
        {
          "dayDate": "2022-11-15",
          "targetCapacity": "307.59"
        },
        {
          "dayDate": "2022-11-17",
          "targetCapacity": "307.59"
        },
        {
          "dayDate": "2022-11-15",
          "targetCapacity": "307.59"
        },
        {
          "dayDate": "2022-11-14",
          "targetCapacity": "307.59"
        },
        {
          "dayDate": "2022-11-14",
          "targetCapacity": "307.59"
        },
        {
          "dayDate": "2022-11-21",
          "targetCapacity": "248.00"
        },
        {
          "dayDate": "2022-11-07",
          "targetCapacity": "203.01"
        },
        {
          "dayDate": "2022-11-07",
          "targetCapacity": "203.01"
        },
        {
          "dayDate": "2022-11-21",
          "targetCapacity": "248.00"
        },
        {
          "dayDate": "2022-11-08",
          "targetCapacity": "239.92"
        },
        {
          "dayDate": "2022-11-04",
          "targetCapacity": "116.88"
        },
        {
          "dayDate": "2022-11-09",
          "targetCapacity": "217.87"
        },
        {
          "dayDate": "2022-11-05",
          "targetCapacity": "163.02"
        },
        {
          "dayDate": "2022-11-05",
          "targetCapacity": "163.02"
        },
        {
          "dayDate": "2022-11-10",
          "targetCapacity": "282.98"
        },
        {
          "dayDate": "2022-11-05",
          "targetCapacity": "163.02"
        },
        {
          "dayDate": "2022-11-18",
          "targetCapacity": "307.59"
        },
        {
          "dayDate": "2022-11-08",
          "targetCapacity": "239.92"
        }
      ],
      "total": 10000,
      "styleNumber": "4155",
      "manufactureCode": "WF002",
      "team": "206组",
      "planDate": null,
      "po": "WF002",
      "productionQty": null
    },
    {
      "dayPlan": [
        {
          "dayDate": "2022-11-02",
          "targetCapacity": "186.93"
        },
        {
          "dayDate": "2022-11-01",
          "targetCapacity": "207.58"
        }
      ],
      "total": 500,
      "styleNumber": "4151",
      "manufactureCode": "WF006",
      "team": "205组",
      "planDate": null,
      "po": "WF006",
      "productionQty": null
    },
    {
      "dayPlan": [
        {
          "dayDate": "2022-11-01",
          "targetCapacity": "220.44"
        },
        {
          "dayDate": "2022-11-02",
          "targetCapacity": "184.71"
        },
        {
          "dayDate": "2022-11-03",
          "targetCapacity": "222.00"
        }
      ],
      "total": 1500,
      "styleNumber": "56101款",
      "manufactureCode": "WFI003",
      "team": "202组",
      "planDate": null,
      "po": null,
      "productionQty": null
    },
    {
      "dayPlan": [
        {
          "dayDate": "2022-11-09",
          "targetCapacity": "212.67"
        },
        {
          "dayDate": "2022-11-08",
          "targetCapacity": "255.21"
        },
        {
          "dayDate": "2022-11-11",
          "targetCapacity": "255.21"
        },
        {
          "dayDate": "2022-11-12",
          "targetCapacity": "255.21"
        },
        {
          "dayDate": "2022-11-04",
          "targetCapacity": "189.51"
        },
        {
          "dayDate": "2022-11-07",
          "targetCapacity": "252.68"
        },
        {
          "dayDate": "2022-11-03",
          "targetCapacity": "153.00"
        },
        {
          "dayDate": "2022-11-05",
          "targetCapacity": "224.88"
        },
        {
          "dayDate": "2022-11-10",
          "targetCapacity": "255.21"
        }
      ],
      "total": 2013,
      "styleNumber": "026款",
      "manufactureCode": "WF002",
      "team": "205组",
      "planDate": null,
      "po": "WF002",
      "productionQty": null
    },
    {
      "dayPlan": [
        {
          "dayDate": "2022-11-11",
          "targetCapacity": "255.21"
        },
        {
          "dayDate": "2022-11-03",
          "targetCapacity": "153.00"
        },
        {
          "dayDate": "2022-11-05",
          "targetCapacity": "224.88"
        },
        {
          "dayDate": "2022-11-12",
          "targetCapacity": "255.21"
        },
        {
          "dayDate": "2022-11-08",
          "targetCapacity": "255.21"
        },
        {
          "dayDate": "2022-11-10",
          "targetCapacity": "255.21"
        },
        {
          "dayDate": "2022-11-05",
          "targetCapacity": "224.88"
        },
        {
          "dayDate": "2022-11-10",
          "targetCapacity": "255.21"
        },
        {
          "dayDate": "2022-11-03",
          "targetCapacity": "153.00"
        },
        {
          "dayDate": "2022-11-04",
          "targetCapacity": "189.51"
        },
        {
          "dayDate": "2022-11-09",
          "targetCapacity": "212.67"
        },
        {
          "dayDate": "2022-11-04",
          "targetCapacity": "189.51"
        },
        {
          "dayDate": "2022-11-08",
          "targetCapacity": "255.21"
        },
        {
          "dayDate": "2022-11-07",
          "targetCapacity": "252.68"
        },
        {
          "dayDate": "2022-11-09",
          "targetCapacity": "212.67"
        },
        {
          "dayDate": "2022-11-12",
          "targetCapacity": "255.21"
        },
        {
          "dayDate": "2022-11-07",
          "targetCapacity": "252.68"
        },
        {
          "dayDate": "2022-11-11",
          "targetCapacity": "255.21"
        }
      ],
      "total": 2013,
      "styleNumber": "4151",
      "manufactureCode": "WF002",
      "team": "205组",
      "planDate": null,
      "po": "WF002",
      "productionQty": null
    },
    {
      "dayPlan": [
        {
          "dayDate": "2022-11-03",
          "targetCapacity": "217.73"
        },
        {
          "dayDate": "2022-11-01",
          "targetCapacity": "96.77"
        },
        {
          "dayDate": "2022-11-02",
          "targetCapacity": "156.24"
        }
      ],
      "total": 500,
      "styleNumber": "022款",
      "manufactureCode": "WFI005",
      "team": "203组",
      "planDate": null,
      "po": null,
      "productionQty": null
    },
    {
      "dayPlan": [
        {
          "dayDate": "2022-11-15",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-05",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-11",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-07",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-02",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-03",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-21",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-25",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-20",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-13",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-19",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-09",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-04",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-12",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-16",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-08",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-06",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-22",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-10",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-14",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-18",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-17",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-24",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-23",
          "targetCapacity": "300.00"
        }
      ],
      "total": 6998,
      "styleNumber": "武警丛林蛙服男第3批-上衣",
      "manufactureCode": "WF220796",
      "team": "203组",
      "planDate": "2022-09-30",
      "po": "武警丛林蛙服男第3批-上衣",
      "productionQty": null
    },
    {
      "dayPlan": [
        {
          "dayDate": "2022-11-03",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-09",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-04",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-02",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-07",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-05",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-10",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-08",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-06",
          "targetCapacity": "300.00"
        }
      ],
      "total": 2513,
      "styleNumber": "武警丛林蛙服男第3批-上衣",
      "manufactureCode": "WF220796",
      "team": "202组",
      "planDate": "2022-09-20",
      "po": "丛林蛙服女第15批-上衣",
      "productionQty": null
    },
    {
      "dayPlan": [
        {
          "dayDate": "2022-11-21",
          "targetCapacity": "271.00"
        },
        {
          "dayDate": "2022-11-19",
          "targetCapacity": "328.80"
        },
        {
          "dayDate": "2022-11-15",
          "targetCapacity": "256.46"
        },
        {
          "dayDate": "2022-11-18",
          "targetCapacity": "328.80"
        },
        {
          "dayDate": "2022-11-14",
          "targetCapacity": "217.01"
        },
        {
          "dayDate": "2022-11-16",
          "targetCapacity": "232.90"
        },
        {
          "dayDate": "2022-11-11",
          "targetCapacity": "124.94"
        },
        {
          "dayDate": "2022-11-12",
          "targetCapacity": "174.26"
        },
        {
          "dayDate": "2022-11-17",
          "targetCapacity": "302.50"
        }
      ],
      "total": 10000,
      "styleNumber": "4155款",
      "manufactureCode": "WFI002",
      "team": "201组",
      "planDate": null,
      "po": null,
      "productionQty": null
    },
    {
      "dayPlan": [
        {
          "dayDate": "2022-11-06",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-14",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-08",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-13",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-12",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-25",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-17",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-21",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-18",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-16",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-04",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-22",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-23",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-15",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-10",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-19",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-20",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-11",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-07",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-02",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-05",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-03",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-24",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-09",
          "targetCapacity": "300.00"
        }
      ],
      "total": 6998,
      "styleNumber": "武警丛林蛙服男第3批-上衣",
      "manufactureCode": "WF220796",
      "team": "201组",
      "planDate": "2022-09-30",
      "po": "武警丛林蛙服男第3批-裤子",
      "productionQty": null
    },
    {
      "dayPlan": [
        {
          "dayDate": "2022-11-15",
          "targetCapacity": "307.59"
        },
        {
          "dayDate": "2022-11-07",
          "targetCapacity": "203.01"
        },
        {
          "dayDate": "2022-11-14",
          "targetCapacity": "307.59"
        },
        {
          "dayDate": "2022-11-05",
          "targetCapacity": "163.02"
        },
        {
          "dayDate": "2022-11-11",
          "targetCapacity": "307.59"
        },
        {
          "dayDate": "2022-11-17",
          "targetCapacity": "307.59"
        },
        {
          "dayDate": "2022-11-04",
          "targetCapacity": "116.88"
        },
        {
          "dayDate": "2022-11-09",
          "targetCapacity": "217.87"
        },
        {
          "dayDate": "2022-11-12",
          "targetCapacity": "307.59"
        },
        {
          "dayDate": "2022-11-16",
          "targetCapacity": "256.32"
        },
        {
          "dayDate": "2022-11-08",
          "targetCapacity": "239.92"
        },
        {
          "dayDate": "2022-11-10",
          "targetCapacity": "282.98"
        },
        {
          "dayDate": "2022-11-21",
          "targetCapacity": "248.00"
        },
        {
          "dayDate": "2022-11-19",
          "targetCapacity": "307.59"
        },
        {
          "dayDate": "2022-11-18",
          "targetCapacity": "307.59"
        }
      ],
      "total": 10000,
      "styleNumber": "4155",
      "manufactureCode": "WFI002",
      "team": "206组",
      "planDate": null,
      "po": null,
      "productionQty": null
    },
    {
      "dayPlan": [
        {
          "dayDate": "2022-11-02",
          "targetCapacity": "186.93"
        },
        {
          "dayDate": "2022-11-01",
          "targetCapacity": "207.58"
        }
      ],
      "total": 500,
      "styleNumber": "026款",
      "manufactureCode": "WFI008",
      "team": "205组",
      "planDate": null,
      "po": null,
      "productionQty": null
    },
    {
      "dayPlan": [
        {
          "dayDate": "2022-11-15",
          "targetCapacity": "96.00"
        },
        {
          "dayDate": "2022-11-07",
          "targetCapacity": "67.20"
        },
        {
          "dayDate": "2022-11-14",
          "targetCapacity": "168.00"
        },
        {
          "dayDate": "2022-11-08",
          "targetCapacity": "87.36"
        },
        {
          "dayDate": "2022-11-05",
          "targetCapacity": "45.36"
        },
        {
          "dayDate": "2022-11-04",
          "targetCapacity": "25.20"
        },
        {
          "dayDate": "2022-11-12",
          "targetCapacity": "152.88"
        },
        {
          "dayDate": "2022-11-12",
          "targetCapacity": "152.88"
        },
        {
          "dayDate": "2022-11-09",
          "targetCapacity": "91.00"
        },
        {
          "dayDate": "2022-11-10",
          "targetCapacity": "129.36"
        },
        {
          "dayDate": "2022-11-09",
          "targetCapacity": "91.00"
        },
        {
          "dayDate": "2022-11-10",
          "targetCapacity": "129.36"
        },
        {
          "dayDate": "2022-11-11",
          "targetCapacity": "137.76"
        },
        {
          "dayDate": "2022-11-05",
          "targetCapacity": "45.36"
        },
        {
          "dayDate": "2022-11-05",
          "targetCapacity": "45.36"
        },
        {
          "dayDate": "2022-11-10",
          "targetCapacity": "129.36"
        },
        {
          "dayDate": "2022-11-14",
          "targetCapacity": "168.00"
        },
        {
          "dayDate": "2022-11-07",
          "targetCapacity": "67.20"
        },
        {
          "dayDate": "2022-11-12",
          "targetCapacity": "152.88"
        },
        {
          "dayDate": "2022-11-11",
          "targetCapacity": "137.76"
        },
        {
          "dayDate": "2022-11-04",
          "targetCapacity": "25.20"
        },
        {
          "dayDate": "2022-11-04",
          "targetCapacity": "25.20"
        },
        {
          "dayDate": "2022-11-15",
          "targetCapacity": "96.00"
        },
        {
          "dayDate": "2022-11-15",
          "targetCapacity": "96.00"
        },
        {
          "dayDate": "2022-11-11",
          "targetCapacity": "137.76"
        },
        {
          "dayDate": "2022-11-09",
          "targetCapacity": "91.00"
        },
        {
          "dayDate": "2022-11-07",
          "targetCapacity": "67.20"
        },
        {
          "dayDate": "2022-11-14",
          "targetCapacity": "168.00"
        },
        {
          "dayDate": "2022-11-08",
          "targetCapacity": "87.36"
        },
        {
          "dayDate": "2022-11-08",
          "targetCapacity": "87.36"
        }
      ],
      "total": 1000,
      "styleNumber": "7206款",
      "manufactureCode": "WF005",
      "team": "203组",
      "planDate": null,
      "po": "WF005",
      "productionQty": null
    },
    {
      "dayPlan": [
        {
          "dayDate": "2022-11-03",
          "targetCapacity": "535.68"
        },
        {
          "dayDate": "2022-11-07",
          "targetCapacity": "535.68"
        },
        {
          "dayDate": "2022-11-10",
          "targetCapacity": "535.68"
        },
        {
          "dayDate": "2022-11-05",
          "targetCapacity": "535.68"
        },
        {
          "dayDate": "2022-11-04",
          "targetCapacity": "535.68"
        },
        {
          "dayDate": "2022-11-01",
          "targetCapacity": "535.68"
        },
        {
          "dayDate": "2022-11-02",
          "targetCapacity": "446.40"
        },
        {
          "dayDate": "2022-11-08",
          "targetCapacity": "535.68"
        },
        {
          "dayDate": "2022-11-09",
          "targetCapacity": "446.40"
        }
      ],
      "total": 10000,
      "styleNumber": "华为马甲",
      "manufactureCode": "WFI006",
      "team": "201组",
      "planDate": null,
      "po": null,
      "productionQty": null
    },
    {
      "dayPlan": [
        {
          "dayDate": "2022-11-10",
          "targetCapacity": "282.98"
        },
        {
          "dayDate": "2022-11-11",
          "targetCapacity": "307.59"
        },
        {
          "dayDate": "2022-11-09",
          "targetCapacity": "217.87"
        },
        {
          "dayDate": "2022-11-16",
          "targetCapacity": "256.32"
        },
        {
          "dayDate": "2022-11-04",
          "targetCapacity": "116.88"
        },
        {
          "dayDate": "2022-11-05",
          "targetCapacity": "163.02"
        },
        {
          "dayDate": "2022-11-19",
          "targetCapacity": "307.59"
        },
        {
          "dayDate": "2022-11-21",
          "targetCapacity": "250.00"
        },
        {
          "dayDate": "2022-11-12",
          "targetCapacity": "307.59"
        },
        {
          "dayDate": "2022-11-15",
          "targetCapacity": "307.59"
        },
        {
          "dayDate": "2022-11-07",
          "targetCapacity": "203.01"
        },
        {
          "dayDate": "2022-11-17",
          "targetCapacity": "307.59"
        },
        {
          "dayDate": "2022-11-08",
          "targetCapacity": "239.92"
        },
        {
          "dayDate": "2022-11-14",
          "targetCapacity": "307.59"
        },
        {
          "dayDate": "2022-11-18",
          "targetCapacity": "307.59"
        }
      ],
      "total": 10000,
      "styleNumber": "4155款",
      "manufactureCode": "WFI002",
      "team": "202组",
      "planDate": null,
      "po": null,
      "productionQty": null
    },
    {
      "dayPlan": [
        {
          "dayDate": "2022-11-14",
          "targetCapacity": "307.59"
        },
        {
          "dayDate": "2022-11-07",
          "targetCapacity": "203.01"
        },
        {
          "dayDate": "2022-11-19",
          "targetCapacity": "307.59"
        },
        {
          "dayDate": "2022-11-09",
          "targetCapacity": "217.87"
        },
        {
          "dayDate": "2022-11-05",
          "targetCapacity": "163.02"
        },
        {
          "dayDate": "2022-11-18",
          "targetCapacity": "307.59"
        },
        {
          "dayDate": "2022-11-21",
          "targetCapacity": "250.00"
        },
        {
          "dayDate": "2022-11-11",
          "targetCapacity": "307.59"
        },
        {
          "dayDate": "2022-11-19",
          "targetCapacity": "307.59"
        },
        {
          "dayDate": "2022-11-15",
          "targetCapacity": "307.59"
        },
        {
          "dayDate": "2022-11-07",
          "targetCapacity": "203.01"
        },
        {
          "dayDate": "2022-11-10",
          "targetCapacity": "282.98"
        },
        {
          "dayDate": "2022-11-12",
          "targetCapacity": "307.59"
        },
        {
          "dayDate": "2022-11-08",
          "targetCapacity": "239.92"
        },
        {
          "dayDate": "2022-11-14",
          "targetCapacity": "307.59"
        },
        {
          "dayDate": "2022-11-10",
          "targetCapacity": "282.98"
        },
        {
          "dayDate": "2022-11-12",
          "targetCapacity": "307.59"
        },
        {
          "dayDate": "2022-11-07",
          "targetCapacity": "203.01"
        },
        {
          "dayDate": "2022-11-09",
          "targetCapacity": "217.87"
        },
        {
          "dayDate": "2022-11-16",
          "targetCapacity": "256.32"
        },
        {
          "dayDate": "2022-11-08",
          "targetCapacity": "239.92"
        },
        {
          "dayDate": "2022-11-10",
          "targetCapacity": "282.98"
        },
        {
          "dayDate": "2022-11-04",
          "targetCapacity": "116.88"
        },
        {
          "dayDate": "2022-11-19",
          "targetCapacity": "307.59"
        },
        {
          "dayDate": "2022-11-12",
          "targetCapacity": "307.59"
        },
        {
          "dayDate": "2022-11-05",
          "targetCapacity": "163.02"
        },
        {
          "dayDate": "2022-11-08",
          "targetCapacity": "239.92"
        },
        {
          "dayDate": "2022-11-16",
          "targetCapacity": "256.32"
        },
        {
          "dayDate": "2022-11-18",
          "targetCapacity": "307.59"
        },
        {
          "dayDate": "2022-11-05",
          "targetCapacity": "163.02"
        },
        {
          "dayDate": "2022-11-17",
          "targetCapacity": "307.59"
        },
        {
          "dayDate": "2022-11-21",
          "targetCapacity": "250.00"
        },
        {
          "dayDate": "2022-11-11",
          "targetCapacity": "307.59"
        },
        {
          "dayDate": "2022-11-04",
          "targetCapacity": "116.88"
        },
        {
          "dayDate": "2022-11-16",
          "targetCapacity": "256.32"
        },
        {
          "dayDate": "2022-11-09",
          "targetCapacity": "217.87"
        },
        {
          "dayDate": "2022-11-15",
          "targetCapacity": "307.59"
        },
        {
          "dayDate": "2022-11-18",
          "targetCapacity": "307.59"
        },
        {
          "dayDate": "2022-11-14",
          "targetCapacity": "307.59"
        },
        {
          "dayDate": "2022-11-21",
          "targetCapacity": "250.00"
        },
        {
          "dayDate": "2022-11-11",
          "targetCapacity": "307.59"
        },
        {
          "dayDate": "2022-11-04",
          "targetCapacity": "116.88"
        },
        {
          "dayDate": "2022-11-15",
          "targetCapacity": "307.59"
        },
        {
          "dayDate": "2022-11-17",
          "targetCapacity": "307.59"
        },
        {
          "dayDate": "2022-11-17",
          "targetCapacity": "307.59"
        }
      ],
      "total": 10000,
      "styleNumber": "4155款",
      "manufactureCode": "WF002",
      "team": "202组",
      "planDate": null,
      "po": "WF002",
      "productionQty": null
    },
    {
      "dayPlan": [
        {
          "dayDate": "2022-11-03",
          "targetCapacity": "217.73"
        },
        {
          "dayDate": "2022-11-02",
          "targetCapacity": "156.24"
        },
        {
          "dayDate": "2022-11-01",
          "targetCapacity": "96.77"
        },
        {
          "dayDate": "2022-11-02",
          "targetCapacity": "156.24"
        },
        {
          "dayDate": "2022-11-03",
          "targetCapacity": "217.73"
        },
        {
          "dayDate": "2022-11-02",
          "targetCapacity": "156.24"
        },
        {
          "dayDate": "2022-11-01",
          "targetCapacity": "96.77"
        },
        {
          "dayDate": "2022-11-01",
          "targetCapacity": "96.77"
        },
        {
          "dayDate": "2022-11-03",
          "targetCapacity": "217.73"
        }
      ],
      "total": 500,
      "styleNumber": "022款",
      "manufactureCode": "WF004",
      "team": "203组",
      "planDate": null,
      "po": "WF004",
      "productionQty": null
    },
    {
      "dayPlan": [
        {
          "dayDate": "2022-11-15",
          "targetCapacity": "256.46"
        },
        {
          "dayDate": "2022-11-12",
          "targetCapacity": "174.26"
        },
        {
          "dayDate": "2022-11-14",
          "targetCapacity": "217.01"
        },
        {
          "dayDate": "2022-11-18",
          "targetCapacity": "328.80"
        },
        {
          "dayDate": "2022-11-21",
          "targetCapacity": "271.00"
        },
        {
          "dayDate": "2022-11-14",
          "targetCapacity": "217.01"
        },
        {
          "dayDate": "2022-11-19",
          "targetCapacity": "328.80"
        },
        {
          "dayDate": "2022-11-21",
          "targetCapacity": "271.00"
        },
        {
          "dayDate": "2022-11-15",
          "targetCapacity": "256.46"
        },
        {
          "dayDate": "2022-11-11",
          "targetCapacity": "124.94"
        },
        {
          "dayDate": "2022-11-12",
          "targetCapacity": "174.26"
        },
        {
          "dayDate": "2022-11-14",
          "targetCapacity": "217.01"
        },
        {
          "dayDate": "2022-11-17",
          "targetCapacity": "302.50"
        },
        {
          "dayDate": "2022-11-18",
          "targetCapacity": "328.80"
        },
        {
          "dayDate": "2022-11-16",
          "targetCapacity": "232.90"
        },
        {
          "dayDate": "2022-11-15",
          "targetCapacity": "256.46"
        },
        {
          "dayDate": "2022-11-19",
          "targetCapacity": "328.80"
        },
        {
          "dayDate": "2022-11-11",
          "targetCapacity": "124.94"
        },
        {
          "dayDate": "2022-11-16",
          "targetCapacity": "232.90"
        },
        {
          "dayDate": "2022-11-17",
          "targetCapacity": "302.50"
        },
        {
          "dayDate": "2022-11-11",
          "targetCapacity": "124.94"
        },
        {
          "dayDate": "2022-11-12",
          "targetCapacity": "174.26"
        },
        {
          "dayDate": "2022-11-19",
          "targetCapacity": "328.80"
        },
        {
          "dayDate": "2022-11-16",
          "targetCapacity": "232.90"
        },
        {
          "dayDate": "2022-11-21",
          "targetCapacity": "271.00"
        },
        {
          "dayDate": "2022-11-17",
          "targetCapacity": "302.50"
        },
        {
          "dayDate": "2022-11-18",
          "targetCapacity": "328.80"
        }
      ],
      "total": 10000,
      "styleNumber": "4155款",
      "manufactureCode": "WF002",
      "team": "201组",
      "planDate": null,
      "po": "WF002",
      "productionQty": null
    },
    {
      "dayPlan": [
        {
          "dayDate": "2022-11-09",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-02",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-05",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-08",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-04",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-10",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-06",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-07",
          "targetCapacity": "300.00"
        },
        {
          "dayDate": "2022-11-03",
          "targetCapacity": "300.00"
        }
      ],
      "total": 2513,
      "styleNumber": "武警丛林蛙服男第3批-上衣",
      "manufactureCode": "WF220796",
      "team": "204组",
      "planDate": "2022-09-20",
      "po": "丛林蛙服女第15批-裤子",
      "productionQty": null
    },
    {
      "dayPlan": [
        {
          "dayDate": "2022-11-02",
          "targetCapacity": "183.58"
        },
        {
          "dayDate": "2022-11-03",
          "targetCapacity": "130.00"
        },
        {
          "dayDate": "2022-11-01",
          "targetCapacity": "220.30"
        }
      ],
      "total": 1000,
      "styleNumber": "5368款",
      "manufactureCode": "WFI007",
      "team": "206组",
      "planDate": null,
      "po": null,
      "productionQty": null
    },
    {
      "dayPlan": [
        {
          "dayDate": "2022-11-14",
          "targetCapacity": "168.00"
        },
        {
          "dayDate": "2022-11-05",
          "targetCapacity": "45.36"
        },
        {
          "dayDate": "2022-11-04",
          "targetCapacity": "25.20"
        },
        {
          "dayDate": "2022-11-10",
          "targetCapacity": "129.36"
        },
        {
          "dayDate": "2022-11-12",
          "targetCapacity": "152.88"
        },
        {
          "dayDate": "2022-11-09",
          "targetCapacity": "91.00"
        },
        {
          "dayDate": "2022-11-07",
          "targetCapacity": "67.20"
        },
        {
          "dayDate": "2022-11-11",
          "targetCapacity": "137.76"
        },
        {
          "dayDate": "2022-11-15",
          "targetCapacity": "96.00"
        },
        {
          "dayDate": "2022-11-08",
          "targetCapacity": "87.36"
        }
      ],
      "total": 1000,
      "styleNumber": "7206款",
      "manufactureCode": "WFI001",
      "team": "203组",
      "planDate": null,
      "po": null,
      "productionQty": null
    },
    {
      "dayPlan": [
        {
          "dayDate": "2022-11-04",
          "targetCapacity": "189.51"
        },
        {
          "dayDate": "2022-11-05",
          "targetCapacity": "224.88"
        },
        {
          "dayDate": "2022-11-07",
          "targetCapacity": "252.68"
        },
        {
          "dayDate": "2022-11-10",
          "targetCapacity": "255.21"
        },
        {
          "dayDate": "2022-11-11",
          "targetCapacity": "255.21"
        },
        {
          "dayDate": "2022-11-09",
          "targetCapacity": "212.67"
        },
        {
          "dayDate": "2022-11-08",
          "targetCapacity": "255.21"
        },
        {
          "dayDate": "2022-11-12",
          "targetCapacity": "255.21"
        },
        {
          "dayDate": "2022-11-03",
          "targetCapacity": "153.00"
        }
      ],
      "total": 2013,
      "styleNumber": "4151",
      "manufactureCode": "WFI004",
      "team": "205组",
      "planDate": null,
      "po": null,
      "productionQty": null
    },
    {
      "dayPlan": [
        {
          "dayDate": "2022-11-01",
          "targetCapacity": "220.44"
        },
        {
          "dayDate": "2022-11-03",
          "targetCapacity": "222.00"
        },
        {
          "dayDate": "2022-11-01",
          "targetCapacity": "220.44"
        },
        {
          "dayDate": "2022-11-02",
          "targetCapacity": "184.71"
        },
        {
          "dayDate": "2022-11-02",
          "targetCapacity": "184.71"
        },
        {
          "dayDate": "2022-11-02",
          "targetCapacity": "184.71"
        },
        {
          "dayDate": "2022-11-03",
          "targetCapacity": "222.00"
        },
        {
          "dayDate": "2022-11-03",
          "targetCapacity": "222.00"
        },
        {
          "dayDate": "2022-11-01",
          "targetCapacity": "220.44"
        }
      ],
      "total": 1500,
      "styleNumber": "56101款",
      "manufactureCode": "WF003",
      "team": "202组",
      "planDate": null,
      "po": "WF003",
      "productionQty": null
    },
    {
      "dayPlan": [
        {
          "dayDate": "2022-11-02",
          "targetCapacity": "183.58"
        },
        {
          "dayDate": "2022-11-01",
          "targetCapacity": "220.30"
        },
        {
          "dayDate": "2022-11-02",
          "targetCapacity": "183.58"
        },
        {
          "dayDate": "2022-11-01",
          "targetCapacity": "220.30"
        },
        {
          "dayDate": "2022-11-01",
          "targetCapacity": "220.30"
        },
        {
          "dayDate": "2022-11-03",
          "targetCapacity": "130.00"
        },
        {
          "dayDate": "2022-11-03",
          "targetCapacity": "130.00"
        },
        {
          "dayDate": "2022-11-03",
          "targetCapacity": "130.00"
        },
        {
          "dayDate": "2022-11-02",
          "targetCapacity": "183.58"
        }
      ],
      "total": 1000,
      "styleNumber": "5368款",
      "manufactureCode": "WF007",
      "team": "206组",
      "planDate": null,
      "po": "WF007",
      "productionQty": null
    },
    {
      "dayPlan": [
        {
          "dayDate": "2022-11-09",
          "targetCapacity": "446.40"
        },
        {
          "dayDate": "2022-11-03",
          "targetCapacity": "535.68"
        },
        {
          "dayDate": "2022-11-03",
          "targetCapacity": "535.68"
        },
        {
          "dayDate": "2022-11-05",
          "targetCapacity": "535.68"
        },
        {
          "dayDate": "2022-11-07",
          "targetCapacity": "535.68"
        },
        {
          "dayDate": "2022-11-01",
          "targetCapacity": "535.68"
        },
        {
          "dayDate": "2022-11-08",
          "targetCapacity": "535.68"
        },
        {
          "dayDate": "2022-11-10",
          "targetCapacity": "535.68"
        },
        {
          "dayDate": "2022-11-07",
          "targetCapacity": "535.68"
        },
        {
          "dayDate": "2022-11-09",
          "targetCapacity": "446.40"
        },
        {
          "dayDate": "2022-11-02",
          "targetCapacity": "446.40"
        },
        {
          "dayDate": "2022-11-07",
          "targetCapacity": "535.68"
        },
        {
          "dayDate": "2022-11-02",
          "targetCapacity": "446.40"
        },
        {
          "dayDate": "2022-11-04",
          "targetCapacity": "535.68"
        },
        {
          "dayDate": "2022-11-05",
          "targetCapacity": "535.68"
        },
        {
          "dayDate": "2022-11-10",
          "targetCapacity": "535.68"
        },
        {
          "dayDate": "2022-11-04",
          "targetCapacity": "535.68"
        },
        {
          "dayDate": "2022-11-10",
          "targetCapacity": "535.68"
        },
        {
          "dayDate": "2022-11-08",
          "targetCapacity": "535.68"
        },
        {
          "dayDate": "2022-11-09",
          "targetCapacity": "446.40"
        },
        {
          "dayDate": "2022-11-01",
          "targetCapacity": "535.68"
        },
        {
          "dayDate": "2022-11-05",
          "targetCapacity": "535.68"
        },
        {
          "dayDate": "2022-11-01",
          "targetCapacity": "535.68"
        },
        {
          "dayDate": "2022-11-04",
          "targetCapacity": "535.68"
        },
        {
          "dayDate": "2022-11-02",
          "targetCapacity": "446.40"
        },
        {
          "dayDate": "2022-11-03",
          "targetCapacity": "535.68"
        },
        {
          "dayDate": "2022-11-08",
          "targetCapacity": "535.68"
        }
      ],
      "total": 10000,
      "styleNumber": "华为马甲",
      "manufactureCode": "WF001",
      "team": "201组",
      "planDate": null,
      "po": "WF001",
      "productionQty": null
    }
  ],
  "planBeginDate": "2022-11-01",
  "planEndDate": "2022-11-30"
}

方法封装

export function changeDataList(data: any, dataTemp: any) {
    const table = []
    for (const rowData of data.manufacture) {
        const row = new Array((dataTemp.length - 7))
        for (const unitData of rowData.dayPlan) {
            const index = Number(unitData.dayDate.slice(-2)) - 1
            row[index] = unitData.targetCapacity
        }
        table.push([rowData.team, rowData.styleNumber, rowData.manufactureCode, rowData.total, rowData.customer, rowData.planDate, rowData.productionQty, ...row])
    }
    console.log(table)
    return table
}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值