SOURCE

function test() {
    let data = {
        "orderList": [{
            "ord_teacher": "叶荣祖",
            "ord_prdName": "测试短信2",
            "ord_NumLimit": "4.00",
            "ord_name": "ON-20200908350302",
            "Ord_DealDate": "2020-09-08",
            "ord_Amount": 1229.00
        },
        {
            "ord_teacher": "黎家利",
            "ord_prdName": "测试短信2",
            "ord_NumLimit": "4.00",
            "ord_name": "ON-20200908350303",
            "Ord_DealDate": "2020-09-08",
            "ord_Amount": 1222.00
        }]
    }
    let result = [];
    for (let i = 0; i < data.orderList.length;i++) {
        let item = data.orderList[i];
        let arr = [i + 1];
        Object.keys(item).forEach(key =>{
            arr.push(item[key]);          
        });
      result.push(arr);
    }
    let resultData = {
        '服务列表': result
    };
    return resultData;
}

console.log(test());
console 命令行工具 X clear

                    
>
console