首页 新闻 搜索 专区 学院

Javascript代码的小小疑问(12.04)——n层遍历,JSON装配

0
悬赏园豆:5 [已解决问题] 解决于 2017-12-04 16:32
{"code":"1000","messages":["执行成功"],"obj":null,"list":[{"id":"85153115501786018","remarks":"","createUserName":"user1","updateUserName":"","createBy":13408431452979200,"createDate":"2017-11-17 10:16:59","updateBy":0,"updateDate":"2017-11-17 10:16:59","delFlag":false,"createType":"MANUAL","updateType":"NONE","innerkey":85153115501786018,"code":"凯迪拉克订单B","name":"","status":"ENABLE","orderType":"SalesOrder","itemId":"84095282085655939","qty":200.0,"priority":0,"let":"2019-02-01 00:00:00","specifiedItemNo":"","calcEst":"2017-07-31 00:00:00","calcLet":"2019-02-01 00:00:00","startTime":"2019-02-01 00:00:00","endTime":"2019-02-01 00:00:00","stockLoc":"","itemTypeExcp":false,"topOrderCodes":"凯迪拉克订单B","upperOrderCodes":"凯迪拉克订单B","lowerOrderCodes":"凯迪拉克订单B","bottomOrderCodes":"凯迪拉克订单B","active":true,"receiveDate":null,"children":[],"key":85153115501786018,"lowestEst":null,"userLowestEst":null,"userLet":null,"userLeadTime":"","calcLt":"0S","scheduledStartTime":null,"scheduledEndTime":null,"actualStockQty":null,"lackMatQty":null,"enableStatus":true},{"id":"84573086904511360","remarks":"","createUserName":"user1","updateUserName":"user1","createBy":13408431452979200,"createDate":"2017-11-15 19:52:25","updateBy":13408431452979200,"updateDate":"2017-11-16 10:26:36","delFlag":false,"createType":"MANUAL","updateType":"MANUAL","innerkey":84573086904511360,"code":"凯迪拉克订单A","name":"","status":"ENABLE","orderType":"SalesOrder","itemId":"84095282085655939","qty":100.0,"priority":0,"let":"2019-02-01 00:00:00","specifiedItemNo":"","calcEst":"2017-07-31 00:00:00","calcLet":"2019-02-01 00:00:00","startTime":"2019-02-01 00:00:00","endTime":"2019-02-01 00:00:00","stockLoc":"","itemTypeExcp":false,"topOrderCodes":"凯迪拉克订单A","upperOrderCodes":"凯迪拉克订单A","lowerOrderCodes":"M20171130001328","bottomOrderCodes":"PI20171130001337;PI20171130001336;PI20171130001335;PI20171130001338;","active":true,"receiveDate":null,"children":[{"id":"89872598522952662","remarks":null,"createUserName":null,"updateUserName":null,"createBy":89872598522952662,"createDate":"2017-11-30 15:26:56","updateBy":0,"updateDate":"2017-11-30 15:26:56","delFlag":false,"createType":"AUTO","updateType":"MANUAL","innerkey":89872598522952662,"code":"M20171130001328","name":null,"status":"ENABLE","orderType":"PlanWorkOrder","itemId":"84095282085655939","qty":89.0,"priority":0,"let":null,"specifiedItemNo":null,"calcEst":"2017-07-31 00:00:00","calcLet":"2019-02-01 00:00:00","startTime":"2019-02-01 00:00:00","endTime":"2019-02-01 00:00:00","stockLoc":null,"itemTypeExcp":false,"topOrderCodes":"凯迪拉克订单A","upperOrderCodes":"凯迪拉克订单A","lowerOrderCodes":"M20171130001329;M20171130001330;M20171130001331;","bottomOrderCodes":"PI20171130001337;PI20171130001336;PI20171130001335;PI20171130001338;","active":true,"receiveDate":null,"children":[{"id":"89872598535535586","remarks":null,"createUserName":null,"updateUserName":null,"createBy":89872598535535586,"createDate":"2017-11-30 15:26:56","updateBy":0,"updateDate":"2017-11-30 15:26:56","delFlag":false,"createType":"AUTO","updateType":"MANUAL","innerkey":89872598535535586,"code":"M20171130001329","name":null,"status":"ENABLE","orderType":"PlanWorkOrder","itemId":"84095282056295782","qty":89.0,"priority":0,"let":null,"specifiedItemNo":null,"calcEst":"2017-07-31 00:00:00","calcLet":"2019-02-01 00:00:00","startTime":"2019-02-01 00:00:00","endTime":"2019-02-01 00:00:00","stockLoc":null,"itemTypeExcp":false,"topOrderCodes":"凯迪拉克订单A","upperOrderCodes":"M20171130001328","lowerOrderCodes":"M20171130001332;M20171130001333;","bottomOrderCodes":"PI20171130001335;PI20171130001338;","active":true,"receiveDate":null,"children":[{"id":"89872598556507166","remarks":null,"createUserName":null,"updateUserName":null,"createBy":89872598556507166,"createDate":"2017-11-30 15:26:56","updateBy":0,"updateDate":"2017-11-30 15:26:56","delFlag":false,"createType":"AUTO","updateType":"MANUAL","innerkey":89872598556507166,"code":"M20171130001332","name":null,"status":"ENABLE","orderType":"PlanWorkOrder","itemId":"84095282073072999","qty":713.0,"priority":0,"let":null,"specifiedItemNo":null,"calcEst":"2017-07-31 00:00:00","calcLet":"2019-02-01 00:00:00","startTime":"2019-02-01 00:00:00","endTime":"2019-02-01 00:00:00","stockLoc":null,"itemTypeExcp":false,"topOrderCodes":"凯迪拉克订单A","upperOrderCodes":"M20171130001329","lowerOrderCodes":"PI20171130001338","bottomOrderCodes":"PI20171130001338","active":true,"receiveDate":null,"children":[{"id":"89872598577478772","remarks":null,"createUserName":null,"updateUserName":null,"createBy":89872598577478772,"createDate":"2017-11-30 15:26:56","updateBy":0,"updateDate":"2017-11-30 15:26:56","delFlag":false,"createType":"AUTO","updateType":"MANUAL","innerkey":89872598577478772,"code":"PI20171130001338","name":null,"status":"ENABLE","orderType":"PlanPurchaseOrder","itemId":"84095282081461619","qty":89.125,"priority":0,"let":null,"specifiedItemNo":null,"calcEst":"2017-07-31 00:00:00","calcLet":"2019-02-01 00:00:00","startTime":null,"endTime":null,"stockLoc":null,"itemTypeExcp":false,"topOrderCodes":"凯迪拉克订单A","upperOrderCodes":"M20171130001332","lowerOrderCodes":"PI20171130001338","bottomOrderCodes":"PI20171130001338","active":true,"receiveDate":null,"children":[],"key":89872598577478772,"userTopOrder":null,"userUpperOrder":null,"userAssignQty":0.0,"userLeadTime":null,"calcLt":"0S","reserveTypeExcp":false,"alterAmount":true,"excessQty":null,"enableStatus":true}],"key":89872598556507166,"routingId":"84095287383061969","est":null,"userEst":null,"userLet":null,"lowestEst":null,"userLowestEst":null,"userRoutingCode":null,"needToResynchronize":false,"needToRecalcQty":false,"userTopOrder":null,"userUpperOrder":null,"userAssignQty":0.0,"userLeadTime":null,"calcLt":"0S","reserveTypeExcp":false,"alterAmount":true,"excessQty":null,"actualStockQty":null,"lackMatQty":null,"scheduledStartTime":null,"scheduledEndTime":null,"enableStatus":true},{"id":"89872598560701498","remarks":null,"createUserName":null,"updateUserName":null,"createBy":89872598560701498,"createDate":"2017-11-30 15:26:56","updateBy":0,"updateDate":"2017-11-30 15:26:56","delFlag":false,"createType":"AUTO","updateType":"MANUAL","innerkey":89872598560701498,"code":"M20171130001333","name":null,"status":"ENABLE","orderType":"PlanWorkOrder","itemId":"84095282081461623","qty":90.0,"priority":0,"let":null,"specifiedItemNo":null,"calcEst":"2017-07-31 00:00:00","calcLet":"2019-02-01 00:00:00","startTime":"2019-02-01 00:00:00","endTime":"2019-02-01 00:00:00","stockLoc":null,"itemTypeExcp":false,"topOrderCodes":"凯迪拉克订单A","upperOrderCodes":"M20171130001329","lowerOrderCodes":"M20171130001334","bottomOrderCodes":"PI20171130001335","active":true,"receiveDate":null,"children":[{"id":"89872598564895820","remarks":null,"createUserName":null,"updateUserName":null,"createBy":89872598564895820,"createDate":"2017-11-30 15:26:56","updateBy":0,"updateDate":"2017-11-30 15:26:56","delFlag":false,"createType":"AUTO","updateType":"MANUAL","innerkey":89872598564895820,"code":"M20171130001334","name":null,"status":"ENABLE","orderType":"PlanWorkOrder","itemId":"84095282081461627","qty":545.0,"priority":0,"let":null,"specifiedItemNo":null,"calcEst":"2017-07-31 00:00:00","calcLet":"2019-02-01 00:00:00","startTime":"2019-02-01 00:00:00","endTime":"2019-02-01 00:00:00","stockLoc":null,"itemTypeExcp":false,"topOrderCodes":"凯迪拉克订单A","upperOrderCodes":"M20171130001333","lowerOrderCodes":"PI20171130001335","bottomOrderCodes":"PI20171130001335","active":true,"receiveDate":null,"children":[{"id":"89872598569090157","remarks":null,"createUserName":null,"updateUserName":null,"createBy":89872598569090157,"createDate":"2017-11-30 15:26:56","updateBy":0,"updateDate":"2017-11-30 15:26:56","delFlag":false,"createType":"AUTO","updateType":"MANUAL","innerkey":89872598569090157,"code":"PI20171130001335","name":null,"status":"ENABLE","orderType":"PlanPurchaseOrder","itemId":"84095282077267311","qty":6544.0,"priority":0,"let":null,"specifiedItemNo":null,"calcEst":"2017-07-31 00:00:00","calcLet":"2019-02-01 00:00:00","startTime":null,"endTime":null,"stockLoc":null,"itemTypeExcp":false,"topOrderCodes":"凯迪拉克订单A","upperOrderCodes":"M20171130001334","lowerOrderCodes":"PI20171130001335","bottomOrderCodes":"PI20171130001335","active":true,"receiveDate":null,"children":[],"key":89872598569090157,"userTopOrder":null,"userUpperOrder":null,"userAssignQty":0.0,"userLeadTime":null,"calcLt":"0S","reserveTypeExcp":false,"alterAmount":true,"excessQty":null,"enableStatus":true}],"key":89872598564895820,"routingId":"84095287383061981","est":null,"userEst":null,"userLet":null,"lowestEst":null,"userLowestEst":null,"userRoutingCode":null,"needToResynchronize":false,"needToRecalcQty":false,"userTopOrder":null,"userUpperOrder":null,"userAssignQty":0.0,"userLeadTime":null,"calcLt":"0S","reserveTypeExcp":false,"alterAmount":true,"excessQty":null,"actualStockQty":null,"lackMatQty":null,"scheduledStartTime":null,"scheduledEndTime":null,"enableStatus":true}],"key":89872598560701498,"routingId":"84095287387256277","est":null,"userEst":null,"userLet":null,"lowestEst":null,"userLowestEst":null,"userRoutingCode":null,"needToResynchronize":false,"needToRecalcQty":false,"userTopOrder":null,"userUpperOrder":null,"userAssignQty":0.0,"userLeadTime":null,"calcLt":"0S","reserveTypeExcp":false,"alterAmount":true,"excessQty":null,"actualStockQty":null,"lackMatQty":null,"scheduledStartTime":null,"scheduledEndTime":null,"enableStatus":true}],"key":89872598535535586,"routingId":"84095287383061985","est":null,"userEst":null,"userLet":null,"lowestEst":null,"userLowestEst":null,"userRoutingCode":null,"needToResynchronize":false,"needToRecalcQty":false,"userTopOrder":null,"userUpperOrder":null,"userAssignQty":0.0,"userLeadTime":null,"calcLt":"0S","reserveTypeExcp":false,"alterAmount":true,"excessQty":null,"actualStockQty":null,"lackMatQty":null,"scheduledStartTime":null,"scheduledEndTime":null,"enableStatus":true},{"id":"89872598539729919","remarks":null,"createUserName":null,"updateUserName":null,"createBy":89872598539729919,"createDate":"2017-11-30 15:26:56","updateBy":0,"updateDate":"2017-11-30 15:26:56","delFlag":false,"createType":"AUTO","updateType":"MANUAL","innerkey":89872598539729919,"code":"M20171130001330","name":null,"status":"ENABLE","orderType":"PlanWorkOrder","itemId":"84095282073073003","qty":89.0,"priority":0,"let":null,"specifiedItemNo":null,"calcEst":"2017-07-31 00:00:00","calcLet":"2019-02-01 00:00:00","startTime":"2019-02-01 00:00:00","endTime":"2019-02-01 00:00:00","stockLoc":null,"itemTypeExcp":false,"topOrderCodes":"凯迪拉克订单A","upperOrderCodes":"M20171130001328","lowerOrderCodes":"PI20171130001337","bottomOrderCodes":"PI20171130001337","active":true,"receiveDate":null,"children":[{"id":"89872598573284469","remarks":null,"createUserName":null,"updateUserName":null,"createBy":89872598573284469,"createDate":"2017-11-30 15:26:56","updateBy":0,"updateDate":"2017-11-30 15:26:56","delFlag":false,"createType":"AUTO","updateType":"MANUAL","innerkey":89872598573284469,"code":"PI20171130001337","name":null,"status":"ENABLE","orderType":"PlanPurchaseOrder","itemId":"84095282077267319","qty":89.0,"priority":0,"let":null,"specifiedItemNo":null,"calcEst":"2017-07-31 00:00:00","calcLet":"2019-02-01 00:00:00","startTime":null,"endTime":null,"stockLoc":null,"itemTypeExcp":false,"topOrderCodes":"凯迪拉克订单A","upperOrderCodes":"M20171130001330","lowerOrderCodes":"PI20171130001337","bottomOrderCodes":"PI20171130001337","active":true,"receiveDate":null,"children":[],"key":89872598573284469,"userTopOrder":null,"userUpperOrder":null,"userAssignQty":0.0,"userLeadTime":null,"calcLt":"0S","reserveTypeExcp":false,"alterAmount":true,"excessQty":null,"enableStatus":true}],"key":89872598539729919,"routingId":"84095287383061961","est":null,"userEst":null,"userLet":null,"lowestEst":null,"userLowestEst":null,"userRoutingCode":null,"needToResynchronize":false,"needToRecalcQty":false,"userTopOrder":null,"userUpperOrder":null,"userAssignQty":0.0,"userLeadTime":null,"calcLt":"0S","reserveTypeExcp":false,"alterAmount":true,"excessQty":null,"actualStockQty":null,"lackMatQty":null,"scheduledStartTime":null,"scheduledEndTime":null,"enableStatus":true},{"id":"89872598548118545","remarks":null,"createUserName":null,"updateUserName":null,"createBy":89872598548118545,"createDate":"2017-11-30 15:26:56","updateBy":0,"updateDate":"2017-11-30 15:26:56","delFlag":false,"createType":"AUTO","updateType":"MANUAL","innerkey":89872598548118545,"code":"M20171130001331","name":null,"status":"ENABLE","orderType":"PlanWorkOrder","itemId":"84095282077267307","qty":89.0,"priority":0,"let":null,"specifiedItemNo":null,"calcEst":"2017-07-31 00:00:00","calcLet":"2019-02-01 00:00:00","startTime":"2019-02-01 00:00:00","endTime":"2019-02-01 00:00:00","stockLoc":null,"itemTypeExcp":false,"topOrderCodes":"凯迪拉克订单A","upperOrderCodes":"M20171130001328","lowerOrderCodes":"PI20171130001336","bottomOrderCodes":"PI20171130001336","active":true,"receiveDate":null,"children":[{"id":"89872598573284461","remarks":null,"createUserName":null,"updateUserName":null,"createBy":89872598573284461,"createDate":"2017-11-30 15:26:56","updateBy":0,"updateDate":"2017-11-30 15:26:56","delFlag":false,"createType":"AUTO","updateType":"MANUAL","innerkey":89872598573284461,"code":"PI20171130001336","name":null,"status":"ENABLE","orderType":"PlanPurchaseOrder","itemId":"84095282077267315","qty":89.0,"priority":0,"let":null,"specifiedItemNo":null,"calcEst":"2017-07-31 00:00:00","calcLet":"2019-02-01 00:00:00","startTime":null,"endTime":null,"stockLoc":null,"itemTypeExcp":false,"topOrderCodes":"凯迪拉克订单A","upperOrderCodes":"M20171130001331","lowerOrderCodes":"PI20171130001336","bottomOrderCodes":"PI20171130001336","active":true,"receiveDate":null,"children":[],"key":89872598573284461,"userTopOrder":null,"userUpperOrder":null,"userAssignQty":0.0,"userLeadTime":null,"calcLt":"0S","reserveTypeExcp":false,"alterAmount":true,"excessQty":null,"enableStatus":true}],"key":89872598548118545,"routingId":"84095287383061977","est":null,"userEst":null,"userLet":null,"lowestEst":null,"userLowestEst":null,"userRoutingCode":null,"needToResynchronize":false,"needToRecalcQty":false,"userTopOrder":null,"userUpperOrder":null,"userAssignQty":0.0,"userLeadTime":null,"calcLt":"0S","reserveTypeExcp":false,"alterAmount":true,"excessQty":null,"actualStockQty":null,"lackMatQty":null,"scheduledStartTime":null,"scheduledEndTime":null,"enableStatus":true}],"key":89872598522952662,"routingId":"84095287387256293","est":null,"userEst":null,"userLet":null,"lowestEst":null,"userLowestEst":null,"userRoutingCode":null,"needToResynchronize":false,"needToRecalcQty":false,"userTopOrder":null,"userUpperOrder":null,"userAssignQty":0.0,"userLeadTime":null,"calcLt":"0S","reserveTypeExcp":false,"alterAmount":true,"excessQty":null,"actualStockQty":null,"lackMatQty":null,"scheduledStartTime":null,"scheduledEndTime":null,"enableStatus":true}],"key":84573086904511360,"lowestEst":null,"userLowestEst":null,"userLet":null,"userLeadTime":"","calcLt":"0S","scheduledStartTime":null,"scheduledEndTime":null,"actualStockQty":null,"lackMatQty":null,"enableStatus":true},{"id":"89872598560701498","remarks":null,"createUserName":null,"updateUserName":null,"createBy":89872598560701498,"createDate":"2017-11-30 15:26:56","updateBy":0,"updateDate":"2017-11-30 15:26:56","delFlag":false,"createType":"AUTO","updateType":"MANUAL","innerkey":89872598560701498,"code":"M20171130001333","name":null,"status":"ENABLE","orderType":"PlanWorkOrder","itemId":"84095282081461623","qty":90.0,"priority":0,"let":null,"specifiedItemNo":null,"calcEst":"2017-07-31 00:00:00","calcLet":"2019-02-01 00:00:00","startTime":"2019-02-01 00:00:00","endTime":"2019-02-01 00:00:00","stockLoc":null,"itemTypeExcp":false,"topOrderCodes":"凯迪拉克订单A","upperOrderCodes":"M20171130001329","lowerOrderCodes":"M20171130001334","bottomOrderCodes":"PI20171130001335","active":true,"receiveDate":null,"children":[{"id":"89872598564895820","remarks":null,"createUserName":null,"updateUserName":null,"createBy":89872598564895820,"createDate":"2017-11-30 15:26:56","updateBy":0,"updateDate":"2017-11-30 15:26:56","delFlag":false,"createType":"AUTO","updateType":"MANUAL","innerkey":89872598564895820,"code":"M20171130001334","name":null,"status":"ENABLE","orderType":"PlanWorkOrder","itemId":"84095282081461627","qty":545.0,"priority":0,"let":null,"specifiedItemNo":null,"calcEst":"2017-07-31 00:00:00","calcLet":"2019-02-01 00:00:00","startTime":"2019-02-01 00:00:00","endTime":"2019-02-01 00:00:00","stockLoc":null,"itemTypeExcp":false,"topOrderCodes":"凯迪拉克订单A","upperOrderCodes":"M20171130001333","lowerOrderCodes":"PI20171130001335","bottomOrderCodes":"PI20171130001335","active":true,"receiveDate":null,"children":[{"id":"89872598569090157","remarks":null,"createUserName":null,"updateUserName":null,"createBy":89872598569090157,"createDate":"2017-11-30 15:26:56","updateBy":0,"updateDate":"2017-11-30 15:26:56","delFlag":false,"createType":"AUTO","updateType":"MANUAL","innerkey":89872598569090157,"code":"PI20171130001335","name":null,"status":"ENABLE","orderType":"PlanPurchaseOrder","itemId":"84095282077267311","qty":6544.0,"priority":0,"let":null,"specifiedItemNo":null,"calcEst":"2017-07-31 00:00:00","calcLet":"2019-02-01 00:00:00","startTime":null,"endTime":null,"stockLoc":null,"itemTypeExcp":false,"topOrderCodes":"凯迪拉克订单A","upperOrderCodes":"M20171130001334","lowerOrderCodes":"PI20171130001335","bottomOrderCodes":"PI20171130001335","active":true,"receiveDate":null,"children":[],"key":89872598569090157,"userTopOrder":null,"userUpperOrder":null,"userAssignQty":0.0,"userLeadTime":null,"calcLt":"0S","reserveTypeExcp":false,"alterAmount":true,"excessQty":null,"enableStatus":true}],"key":89872598564895820,"routingId":"84095287383061981","est":null,"userEst":null,"userLet":null,"lowestEst":null,"userLowestEst":null,"userRoutingCode":null,"needToResynchronize":false,"needToRecalcQty":false,"userTopOrder":null,"userUpperOrder":null,"userAssignQty":0.0,"userLeadTime":null,"calcLt":"0S","reserveTypeExcp":false,"alterAmount":true,"excessQty":null,"actualStockQty":null,"lackMatQty":null,"scheduledStartTime":null,"scheduledEndTime":null,"enableStatus":true}],"key":89872598560701498,"routingId":"84095287387256277","est":null,"userEst":null,"userLet":null,"lowestEst":null,"userLowestEst":null,"userRoutingCode":null,"needToResynchronize":false,"needToRecalcQty":false,"userTopOrder":null,"userUpperOrder":null,"userAssignQty":0.0,"userLeadTime":null,"calcLt":"0S","reserveTypeExcp":false,"alterAmount":true,"excessQty":null,"actualStockQty":null,"lackMatQty":null,"scheduledStartTime":null,"scheduledEndTime":null,"enableStatus":true},{"id":"89872598564895820","remarks":null,"createUserName":null,"updateUserName":null,"createBy":89872598564895820,"createDate":"2017-11-30 15:26:56","updateBy":0,"updateDate":"2017-11-30 15:26:56","delFlag":false,"createType":"AUTO","updateType":"MANUAL","innerkey":89872598564895820,"code":"M20171130001334","name":null,"status":"ENABLE","orderType":"PlanWorkOrder","itemId":"84095282081461627","qty":545.0,"priority":0,"let":null,"specifiedItemNo":null,"calcEst":"2017-07-31 00:00:00","calcLet":"2019-02-01 00:00:00","startTime":"2019-02-01 00:00:00","endTime":"2019-02-01 00:00:00","stockLoc":null,"itemTypeExcp":false,"topOrderCodes":"凯迪拉克订单A","upperOrderCodes":"M20171130001333","lowerOrderCodes":"PI20171130001335","bottomOrderCodes":"PI20171130001335","active":true,"receiveDate":null,"children":[{"id":"89872598569090157","remarks":null,"createUserName":null,"updateUserName":null,"createBy":89872598569090157,"createDate":"2017-11-30 15:26:56","updateBy":0,"updateDate":"2017-11-30 15:26:56","delFlag":false,"createType":"AUTO","updateType":"MANUAL","innerkey":89872598569090157,"code":"PI20171130001335","name":null,"status":"ENABLE","orderType":"PlanPurchaseOrder","itemId":"84095282077267311","qty":6544.0,"priority":0,"let":null,"specifiedItemNo":null,"calcEst":"2017-07-31 00:00:00","calcLet":"2019-02-01 00:00:00","startTime":null,"endTime":null,"stockLoc":null,"itemTypeExcp":false,"topOrderCodes":"凯迪拉克订单A","upperOrderCodes":"M20171130001334","lowerOrderCodes":"PI20171130001335","bottomOrderCodes":"PI20171130001335","active":true,"receiveDate":null,"children":[],"key":89872598569090157,"userTopOrder":null,"userUpperOrder":null,"userAssignQty":0.0,"userLeadTime":null,"calcLt":"0S","reserveTypeExcp":false,"alterAmount":true,"excessQty":null,"enableStatus":true}],"key":89872598564895820,"routingId":"84095287383061981","est":null,"userEst":null,"userLet":null,"lowestEst":null,"userLowestEst":null,"userRoutingCode":null,"needToResynchronize":false,"needToRecalcQty":false,"userTopOrder":null,"userUpperOrder":null,"userAssignQty":0.0,"userLeadTime":null,"calcLt":"0S","reserveTypeExcp":false,"alterAmount":true,"excessQty":null,"actualStockQty":null,"lackMatQty":null,"scheduledStartTime":null,"scheduledEndTime":null,"enableStatus":true},{"id":"89872598539729919","remarks":null,"createUserName":null,"updateUserName":null,"createBy":89872598539729919,"createDate":"2017-11-30 15:26:56","updateBy":0,"updateDate":"2017-11-30 15:26:56","delFlag":false,"createType":"AUTO","updateType":"MANUAL","innerkey":89872598539729919,"code":"M20171130001330","name":null,"status":"ENABLE","orderType":"PlanWorkOrder","itemId":"84095282073073003","qty":89.0,"priority":0,"let":null,"specifiedItemNo":null,"calcEst":"2017-07-31 00:00:00","calcLet":"2019-02-01 00:00:00","startTime":"2019-02-01 00:00:00","endTime":"2019-02-01 00:00:00","stockLoc":null,"itemTypeExcp":false,"topOrderCodes":"凯迪拉克订单A","upperOrderCodes":"M20171130001328","lowerOrderCodes":"PI20171130001337","bottomOrderCodes":"PI20171130001337","active":true,"receiveDate":null,"children":[{"id":"89872598573284469","remarks":null,"createUserName":null,"updateUserName":null,"createBy":89872598573284469,"createDate":"2017-11-30 15:26:56","updateBy":0,"updateDate":"2017-11-30 15:26:56","delFlag":false,"createType":"AUTO","updateType":"MANUAL","innerkey":89872598573284469,"code":"PI20171130001337","name":null,"status":"ENABLE","orderType":"PlanPurchaseOrder","itemId":"84095282077267319","qty":89.0,"priority":0,"let":null,"specifiedItemNo":null,"calcEst":"2017-07-31 00:00:00","calcLet":"2019-02-01 00:00:00","startTime":null,"endTime":null,"stockLoc":null,"itemTypeExcp":false,"topOrderCodes":"凯迪拉克订单A","upperOrderCodes":"M20171130001330","lowerOrderCodes":"PI20171130001337","bottomOrderCodes":"PI20171130001337","active":true,"receiveDate":null,"children":[],"key":89872598573284469,"userTopOrder":null,"userUpperOrder":null,"userAssignQty":0.0,"userLeadTime":null,"calcLt":"0S","reserveTypeExcp":false,"alterAmount":true,"excessQty":null,"enableStatus":true}],"key":89872598539729919,"routingId":"84095287383061961","est":null,"userEst":null,"userLet":null,"lowestEst":null,"userLowestEst":null,"userRoutingCode":null,"needToResynchronize":false,"needToRecalcQty":false,"userTopOrder":null,"userUpperOrder":null,"userAssignQty":0.0,"userLeadTime":null,"calcLt":"0S","reserveTypeExcp":false,"alterAmount":true,"excessQty":null,"actualStockQty":null,"lackMatQty":null,"scheduledStartTime":null,"scheduledEndTime":null,"enableStatus":true},{"id":"89872598556507166","remarks":null,"createUserName":null,"updateUserName":null,"createBy":89872598556507166,"createDate":"2017-11-30 15:26:56","updateBy":0,"updateDate":"2017-11-30 15:26:56","delFlag":false,"createType":"AUTO","updateType":"MANUAL","innerkey":89872598556507166,"code":"M20171130001332","name":null,"status":"ENABLE","orderType":"PlanWorkOrder","itemId":"84095282073072999","qty":713.0,"priority":0,"let":null,"specifiedItemNo":null,"calcEst":"2017-07-31 00:00:00","calcLet":"2019-02-01 00:00:00","startTime":"2019-02-01 00:00:00","endTime":"2019-02-01 00:00:00","stockLoc":null,"itemTypeExcp":false,"topOrderCodes":"凯迪拉克订单A","upperOrderCodes":"M20171130001329","lowerOrderCodes":"PI20171130001338","bottomOrderCodes":"PI20171130001338","active":true,"receiveDate":null,"children":[{"id":"89872598577478772","remarks":null,"createUserName":null,"updateUserName":null,"createBy":89872598577478772,"createDate":"2017-11-30 15:26:56","updateBy":0,"updateDate":"2017-11-30 15:26:56","delFlag":false,"createType":"AUTO","updateType":"MANUAL","innerkey":89872598577478772,"code":"PI20171130001338","name":null,"status":"ENABLE","orderType":"PlanPurchaseOrder","itemId":"84095282081461619","qty":89.125,"priority":0,"let":null,"specifiedItemNo":null,"calcEst":"2017-07-31 00:00:00","calcLet":"2019-02-01 00:00:00","startTime":null,"endTime":null,"stockLoc":null,"itemTypeExcp":false,"topOrderCodes":"凯迪拉克订单A","upperOrderCodes":"M20171130001332","lowerOrderCodes":"PI20171130001338","bottomOrderCodes":"PI20171130001338","active":true,"receiveDate":null,"children":[],"key":89872598577478772,"userTopOrder":null,"userUpperOrder":null,"userAssignQty":0.0,"userLeadTime":null,"calcLt":"0S","reserveTypeExcp":false,"alterAmount":true,"excessQty":null,"enableStatus":true}],"key":89872598556507166,"routingId":"84095287383061969","est":null,"userEst":null,"userLet":null,"lowestEst":null,"userLowestEst":null,"userRoutingCode":null,"needToResynchronize":false,"needToRecalcQty":false,"userTopOrder":null,"userUpperOrder":null,"userAssignQty":0.0,"userLeadTime":null,"calcLt":"0S","reserveTypeExcp":false,"alterAmount":true,"excessQty":null,"actualStockQty":null,"lackMatQty":null,"scheduledStartTime":null,"scheduledEndTime":null,"enableStatus":true},{"id":"89872598548118545","remarks":null,"createUserName":null,"updateUserName":null,"createBy":89872598548118545,"createDate":"2017-11-30 15:26:56","updateBy":0,"updateDate":"2017-11-30 15:26:56","delFlag":false,"createType":"AUTO","updateType":"MANUAL","innerkey":89872598548118545,"code":"M20171130001331","name":null,"status":"ENABLE","orderType":"PlanWorkOrder","itemId":"84095282077267307","qty":89.0,"priority":0,"let":null,"specifiedItemNo":null,"calcEst":"2017-07-31 00:00:00","calcLet":"2019-02-01 00:00:00","startTime":"2019-02-01 00:00:00","endTime":"2019-02-01 00:00:00","stockLoc":null,"itemTypeExcp":false,"topOrderCodes":"凯迪拉克订单A","upperOrderCodes":"M20171130001328","lowerOrderCodes":"PI20171130001336","bottomOrderCodes":"PI20171130001336","active":true,"receiveDate":null,"children":[{"id":"89872598573284461","remarks":null,"createUserName":null,"updateUserName":null,"createBy":89872598573284461,"createDate":"2017-11-30 15:26:56","updateBy":0,"updateDate":"2017-11-30 15:26:56","delFlag":false,"createType":"AUTO","updateType":"MANUAL","innerkey":89872598573284461,"code":"PI20171130001336","name":null,"status":"ENABLE","orderType":"PlanPurchaseOrder","itemId":"84095282077267315","qty":89.0,"priority":0,"let":null,"specifiedItemNo":null,"calcEst":"2017-07-31 00:00:00","calcLet":"2019-02-01 00:00:00","startTime":null,"endTime":null,"stockLoc":null,"itemTypeExcp":false,"topOrderCodes":"凯迪拉克订单A","upperOrderCodes":"M20171130001331","lowerOrderCodes":"PI20171130001336","bottomOrderCodes":"PI20171130001336","active":true,"receiveDate":null,"children":[],"key":89872598573284461,"userTopOrder":null,"userUpperOrder":null,"userAssignQty":0.0,"userLeadTime":null,"calcLt":"0S","reserveTypeExcp":false,"alterAmount":true,"excessQty":null,"enableStatus":true}],"key":89872598548118545,"routingId":"84095287383061977","est":null,"userEst":null,"userLet":null,"lowestEst":null,"userLowestEst":null,"userRoutingCode":null,"needToResynchronize":false,"needToRecalcQty":false,"userTopOrder":null,"userUpperOrder":null,"userAssignQty":0.0,"userLeadTime":null,"calcLt":"0S","reserveTypeExcp":false,"alterAmount":true,"excessQty":null,"actualStockQty":null,"lackMatQty":null,"scheduledStartTime":null,"scheduledEndTime":null,"enableStatus":true},{"id":"89872598535535586","remarks":null,"createUserName":null,"updateUserName":null,"createBy":89872598535535586,"createDate":"2017-11-30 15:26:56","updateBy":0,"updateDate":"2017-11-30 15:26:56","delFlag":false,"createType":"AUTO","updateType":"MANUAL","innerkey":89872598535535586,"code":"M20171130001329","name":null,"status":"ENABLE","orderType":"PlanWorkOrder","itemId":"84095282056295782","qty":89.0,"priority":0,"let":null,"specifiedItemNo":null,"calcEst":"2017-07-31 00:00:00","calcLet":"2019-02-01 00:00:00","startTime":"2019-02-01 00:00:00","endTime":"2019-02-01 00:00:00","stockLoc":null,"itemTypeExcp":false,"topOrderCodes":"凯迪拉克订单A","upperOrderCodes":"M20171130001328","lowerOrderCodes":"M20171130001332;M20171130001333;","bottomOrderCodes":"PI20171130001335;PI20171130001338;","active":true,"receiveDate":null,"children":[{"id":"89872598556507166","remarks":null,"createUserName":null,"updateUserName":null,"createBy":89872598556507166,"createDate":"2017-11-30 15:26:56","updateBy":0,"updateDate":"2017-11-30 15:26:56","delFlag":false,"createType":"AUTO","updateType":"MANUAL","innerkey":89872598556507166,"code":"M20171130001332","name":null,"status":"ENABLE","orderType":"PlanWorkOrder","itemId":"84095282073072999","qty":713.0,"priority":0,"let":null,"specifiedItemNo":null,"calcEst":"2017-07-31 00:00:00","calcLet":"2019-02-01 00:00:00","startTime":"2019-02-01 00:00:00","endTime":"2019-02-01 00:00:00","stockLoc":null,"itemTypeExcp":false,"topOrderCodes":"凯迪拉克订单A","upperOrderCodes":"M20171130001329","lowerOrderCodes":"PI20171130001338","bottomOrderCodes":"PI20171130001338","active":true,"receiveDate":null,"children":[{"id":"89872598577478772","remarks":null,"createUserName":null,"updateUserName":null,"createBy":89872598577478772,"createDate":"2017-11-30 15:26:56","updateBy":0,"updateDate":"2017-11-30 15:26:56","delFlag":false,"createType":"AUTO","updateType":"MANUAL","innerkey":89872598577478772,"code":"PI20171130001338","name":null,"status":"ENABLE","orderType":"PlanPurchaseOrder","itemId":"84095282081461619","qty":89.125,"priority":0,"let":null,"specifiedItemNo":null,"calcEst":"2017-07-31 00:00:00","calcLet":"2019-02-01 00:00:00","startTime":null,"endTime":null,"stockLoc":null,"itemTypeExcp":false,"topOrderCodes":"凯迪拉克订单A","upperOrderCodes":"M20171130001332","lowerOrderCodes":"PI20171130001338","bottomOrderCodes":"PI20171130001338","active":true,"receiveDate":null,"children":[],"key":89872598577478772,"userTopOrder":null,"userUpperOrder":null,"userAssignQty":0.0,"userLeadTime":null,"calcLt":"0S","reserveTypeExcp":false,"alterAmount":true,"excessQty":null,"enableStatus":true}],"key":89872598556507166,"routingId":"84095287383061969","est":null,"userEst":null,"userLet":null,"lowestEst":null,"userLowestEst":null,"userRoutingCode":null,"needToResynchronize":false,"needToRecalcQty":false,"userTopOrder":null,"userUpperOrder":null,"userAssignQty":0.0,"userLeadTime":null,"calcLt":"0S","reserveTypeExcp":false,"alterAmount":true,"excessQty":null,"actualStockQty":null,"lackMatQty":null,"scheduledStartTime":null,"scheduledEndTime":null,"enableStatus":true},{"id":"89872598560701498","remarks":null,"createUserName":null,"updateUserName":null,"createBy":89872598560701498,"createDate":"2017-11-30 15:26:56","updateBy":0,"updateDate":"2017-11-30 15:26:56","delFlag":false,"createType":"AUTO","updateType":"MANUAL","innerkey":89872598560701498,"code":"M20171130001333","name":null,"status":"ENABLE","orderType":"PlanWorkOrder","itemId":"84095282081461623","qty":90.0,"priority":0,"let":null,"specifiedItemNo":null,"calcEst":"2017-07-31 00:00:00","calcLet":"2019-02-01 00:00:00","startTime":"2019-02-01 00:00:00","endTime":"2019-02-01 00:00:00","stockLoc":null,"itemTypeExcp":false,"topOrderCodes":"凯迪拉克订单A","upperOrderCodes":"M20171130001329","lowerOrderCodes":"M20171130001334","bottomOrderCodes":"PI20171130001335","active":true,"receiveDate":null,"children":[{"id":"89872598564895820","remarks":null,"createUserName":null,"updateUserName":null,"createBy":89872598564895820,"createDate":"2017-11-30 15:26:56","updateBy":0,"updateDate":"2017-11-30 15:26:56","delFlag":false,"createType":"AUTO","updateType":"MANUAL","innerkey":89872598564895820,"code":"M20171130001334","name":null,"status":"ENABLE","orderType":"PlanWorkOrder","itemId":"84095282081461627","qty":545.0,"priority":0,"let":null,"specifiedItemNo":null,"calcEst":"2017-07-31 00:00:00","calcLet":"2019-02-01 00:00:00","startTime":"2019-02-01 00:00:00","endTime":"2019-02-01 00:00:00","stockLoc":null,"itemTypeExcp":false,"topOrderCodes":"凯迪拉克订单A","upperOrderCodes":"M20171130001333","lowerOrderCodes":"PI20171130001335","bottomOrderCodes":"PI20171130001335","active":true,"receiveDate":null,"children":[{"id":"89872598569090157","remarks":null,"createUserName":null,"updateUserName":null,"createBy":89872598569090157,"createDate":"2017-11-30 15:26:56","updateBy":0,"updateDate":"2017-11-30 15:26:56","delFlag":false,"createType":"AUTO","updateType":"MANUAL","innerkey":89872598569090157,"code":"PI20171130001335","name":null,"status":"ENABLE","orderType":"PlanPurchaseOrder","itemId":"84095282077267311","qty":6544.0,"priority":0,"let":null,"specifiedItemNo":null,"calcEst":"2017-07-31 00:00:00","calcLet":"2019-02-01 00:00:00","startTime":null,"endTime":null,"stockLoc":null,"itemTypeExcp":false,"topOrderCodes":"凯迪拉克订单A","upperOrderCodes":"M20171130001334","lowerOrderCodes":"PI20171130001335","bottomOrderCodes":"PI20171130001335","active":true,"receiveDate":null,"children":[],"key":89872598569090157,"userTopOrder":null,"userUpperOrder":null,"userAssignQty":0.0,"userLeadTime":null,"calcLt":"0S","reserveTypeExcp":false,"alterAmount":true,"excessQty":null,"enableStatus":true}],"key":89872598564895820,"routingId":"84095287383061981","est":null,"userEst":null,"userLet":null,"lowestEst":null,"userLowestEst":null,"userRoutingCode":null,"needToResynchronize":false,"needToRecalcQty":false,"userTopOrder":null,"userUpperOrder":null,"userAssignQty":0.0,"userLeadTime":null,"calcLt":"0S","reserveTypeExcp":false,"alterAmount":true,"excessQty":null,"actualStockQty":null,"lackMatQty":null,"scheduledStartTime":null,"scheduledEndTime":null,"enableStatus":true}],"key":89872598560701498,"routingId":"84095287387256277","est":null,"userEst":null,"userLet":null,"lowestEst":null,"userLowestEst":null,"userRoutingCode":null,"needToResynchronize":false,"needToRecalcQty":false,"userTopOrder":null,"userUpperOrder":null,"userAssignQty":0.0,"userLeadTime":null,"calcLt":"0S","reserveTypeExcp":false,"alterAmount":true,"excessQty":null,"actualStockQty":null,"lackMatQty":null,"scheduledStartTime":null,"scheduledEndTime":null,"enableStatus":true}],"key":89872598535535586,"routingId":"84095287383061985","est":null,"userEst":null,"userLet":null,"lowestEst":null,"userLowestEst":null,"userRoutingCode":null,"needToResynchronize":false,"needToRecalcQty":false,"userTopOrder":null,"userUpperOrder":null,"userAssignQty":0.0,"userLeadTime":null,"calcLt":"0S","reserveTypeExcp":false,"alterAmount":true,"excessQty":null,"actualStockQty":null,"lackMatQty":null,"scheduledStartTime":null,"scheduledEndTime":null,"enableStatus":true},{"id":"89872598522952662","remarks":null,"createUserName":null,"updateUserName":null,"createBy":89872598522952662,"createDate":"2017-11-30 15:26:56","updateBy":0,"updateDate":"2017-11-30 15:26:56","delFlag":false,"createType":"AUTO","updateType":"MANUAL","innerkey":89872598522952662,"code":"M20171130001328","name":null,"status":"ENABLE","orderType":"PlanWorkOrder","itemId":"84095282085655939","qty":89.0,"priority":0,"let":null,"specifiedItemNo":null,"calcEst":"2017-07-31 00:00:00","calcLet":"2019-02-01 00:00:00","startTime":"2019-02-01 00:00:00","endTime":"2019-02-01 00:00:00","stockLoc":null,"itemTypeExcp":false,"topOrderCodes":"凯迪拉克订单A","upperOrderCodes":"凯迪拉克订单A","lowerOrderCodes":"M20171130001329;M20171130001330;M20171130001331;","bottomOrderCodes":"PI20171130001337;PI20171130001336;PI20171130001335;PI20171130001338;","active":true,"receiveDate":null,"children":[{"id":"89872598535535586","remarks":null,"createUserName":null,"updateUserName":null,"createBy":89872598535535586,"createDate":"2017-11-30 15:26:56","updateBy":0,"updateDate":"2017-11-30 15:26:56","delFlag":false,"createType":"AUTO","updateType":"MANUAL","innerkey":89872598535535586,"code":"M20171130001329","name":null,"status":"ENABLE","orderType":"PlanWorkOrder","itemId":"84095282056295782","qty":89.0,"priority":0,"let":null,"specifiedItemNo":null,"calcEst":"2017-07-31 00:00:00","calcLet":"2019-02-01 00:00:00","startTime":"2019-02-01 00:00:00","endTime":"2019-02-01 00:00:00","stockLoc":null,"itemTypeExcp":false,"topOrderCodes":"凯迪拉克订单A","upperOrderCodes":"M20171130001328","lowerOrderCodes":"M20171130001332;M20171130001333;","bottomOrderCodes":"PI20171130001335;PI20171130001338;","active":true,"receiveDate":null,"children":[{"id":"89872598556507166","remarks":null,"createUserName":null,"updateUserName":null,"createBy":89872598556507166,"createDate":"2017-11-30 15:26:56","updateBy":0,"updateDate":"2017-11-30 15:26:56","delFlag":false,"createType":"AUTO","updateType":"MANUAL","innerkey":89872598556507166,"code":"M20171130001332","name":null,"status":"ENABLE","orderType":"PlanWorkOrder","itemId":"84095282073072999","qty":713.0,"priority":0,"let":null,"specifiedItemNo":null,"calcEst":"2017-07-31 00:00:00","calcLet":"2019-02-01 00:00:00","startTime":"2019-02-01 00:00:00","endTime":"2019-02-01 00:00:00","stockLoc":null,"itemTypeExcp":false,"topOrderCodes":"凯迪拉克订单A","upperOrderCodes":"M20171130001329","lowerOrderCodes":"PI20171130001338","bottomOrderCodes":"PI20171130001338","active":true,"receiveDate":null,"children":[{"id":"89872598577478772","remarks":null,"createUserName":null,"updateUserName":null,"createBy":89872598577478772,"createDate":"2017-11-30 15:26:56","updateBy":0,"updateDate":"2017-11-30 15:26:56","delFlag":false,"createType":"AUTO","updateType":"MANUAL","innerkey":89872598577478772,"code":"PI20171130001338","name":null,"status":"ENABLE","orderType":"PlanPurchaseOrder","itemId":"84095282081461619","qty":89.125,"priority":0,"let":null,"specifiedItemNo":null,"calcEst":"2017-07-31 00:00:00","calcLet":"2019-02-01 00:00:00","startTime":null,"endTime":null,"stockLoc":null,"itemTypeExcp":false,"topOrderCodes":"凯迪拉克订单A","upperOrderCodes":"M20171130001332","lowerOrderCodes":"PI20171130001338","bottomOrderCodes":"PI20171130001338","active":true,"receiveDate":null,"children":[],"key":89872598577478772,"userTopOrder":null,"userUpperOrder":null,"userAssignQty":0.0,"userLeadTime":null,"calcLt":"0S","reserveTypeExcp":false,"alterAmount":true,"excessQty":null,"enableStatus":true}],"key":89872598556507166,"routingId":"84095287383061969","est":null,"userEst":null,"userLet":null,"lowestEst":null,"userLowestEst":null,"userRoutingCode":null,"needToResynchronize":false,"needToRecalcQty":false,"userTopOrder":null,"userUpperOrder":null,"userAssignQty":0.0,"userLeadTime":null,"calcLt":"0S","reserveTypeExcp":false,"alterAmount":true,"excessQty":null,"actualStockQty":null,"lackMatQty":null,"scheduledStartTime":null,"scheduledEndTime":null,"enableStatus":true},{"id":"89872598560701498","remarks":null,"createUserName":null,"updateUserName":null,"createBy":89872598560701498,"createDate":"2017-11-30 15:26:56","updateBy":0,"updateDate":"2017-11-30 15:26:56","delFlag":false,"createType":"AUTO","updateType":"MANUAL","innerkey":89872598560701498,"code":"M20171130001333","name":null,"status":"ENABLE","orderType":"PlanWorkOrder","itemId":"84095282081461623","qty":90.0,"priority":0,"let":null,"specifiedItemNo":null,"calcEst":"2017-07-31 00:00:00","calcLet":"2019-02-01 00:00:00","startTime":"2019-02-01 00:00:00","endTime":"2019-02-01 00:00:00","stockLoc":null,"itemTypeExcp":false,"topOrderCodes":"凯迪拉克订单A","upperOrderCodes":"M20171130001329","lowerOrderCodes":"M20171130001334","bottomOrderCodes":"PI20171130001335","active":true,"receiveDate":null,"children":[{"id":"89872598564895820","remarks":null,"createUserName":null,"updateUserName":null,"createBy":89872598564895820,"createDate":"2017-11-30 15:26:56","updateBy":0,"updateDate":"2017-11-30 15:26:56","delFlag":false,"createType":"AUTO","updateType":"MANUAL","innerkey":89872598564895820,"code":"M20171130001334","name":null,"status":"ENABLE","orderType":"PlanWorkOrder","itemId":"84095282081461627","qty":545.0,"priority":0,"let":null,"specifiedItemNo":null,"calcEst":"2017-07-31 00:00:00","calcLet":"2019-02-01 00:00:00","startTime":"2019-02-01 00:00:00","endTime":"2019-02-01 00:00:00","stockLoc":null,"itemTypeExcp":false,"topOrderCodes":"凯迪拉克订单A","upperOrderCodes":"M20171130001333","lowerOrderCodes":"PI20171130001335","bottomOrderCodes":"PI20171130001335","active":true,"receiveDate":null,"children":[{"id":"89872598569090157","remarks":null,"createUserName":null,"updateUserName":null,"createBy":89872598569090157,"createDate":"2017-11-30 15:26:56","updateBy":0,"updateDate":"2017-11-30 15:26:56","delFlag":false,"createType":"AUTO","updateType":"MANUAL","innerkey":89872598569090157,"code":"PI20171130001335","name":null,"status":"ENABLE","orderType":"PlanPurchaseOrder","itemId":"84095282077267311","qty":6544.0,"priority":0,"let":null,"specifiedItemNo":null,"calcEst":"2017-07-31 00:00:00","calcLet":"2019-02-01 00:00:00","startTime":null,"endTime":null,"stockLoc":null,"itemTypeExcp":false,"topOrderCodes":"凯迪拉克订单A","upperOrderCodes":"M20171130001334","lowerOrderCodes":"PI20171130001335","bottomOrderCodes":"PI20171130001335","active":true,"receiveDate":null,"children":[],"key":89872598569090157,"userTopOrder":null,"userUpperOrder":null,"userAssignQty":0.0,"userLeadTime":null,"calcLt":"0S","reserveTypeExcp":false,"alterAmount":true,"excessQty":null,"enableStatus":true}],"key":89872598564895820,"routingId":"84095287383061981","est":null,"userEst":null,"userLet":null,"lowestEst":null,"userLowestEst":null,"userRoutingCode":null,"needToResynchronize":false,"needToRecalcQty":false,"userTopOrder":null,"userUpperOrder":null,"userAssignQty":0.0,"userLeadTime":null,"calcLt":"0S","reserveTypeExcp":false,"alterAmount":true,"excessQty":null,"actualStockQty":null,"lackMatQty":null,"scheduledStartTime":null,"scheduledEndTime":null,"enableStatus":true}],"key":89872598560701498,"routingId":"84095287387256277","est":null,"userEst":null,"userLet":null,"lowestEst":null,"userLowestEst":null,"userRoutingCode":null,"needToResynchronize":false,"needToRecalcQty":false,"userTopOrder":null,"userUpperOrder":null,"userAssignQty":0.0,"userLeadTime":null,"calcLt":"0S","reserveTypeExcp":false,"alterAmount":true,"excessQty":null,"actualStockQty":null,"lackMatQty":null,"scheduledStartTime":null,"scheduledEndTime":null,"enableStatus":true}],"key":89872598535535586,"routingId":"84095287383061985","est":null,"userEst":null,"userLet":null,"lowestEst":null,"userLowestEst":null,"userRoutingCode":null,"needToResynchronize":false,"needToRecalcQty":false,"userTopOrder":null,"userUpperOrder":null,"userAssignQty":0.0,"userLeadTime":null,"calcLt":"0S","reserveTypeExcp":false,"alterAmount":true,"excessQty":null,"actualStockQty":null,"lackMatQty":null,"scheduledStartTime":null,"scheduledEndTime":null,"enableStatus":true},{"id":"89872598539729919","remarks":null,"createUserName":null,"updateUserName":null,"createBy":89872598539729919,"createDate":"2017-11-30 15:26:56","updateBy":0,"updateDate":"2017-11-30 15:26:56","delFlag":false,"createType":"AUTO","updateType":"MANUAL","innerkey":89872598539729919,"code":"M20171130001330","name":null,"status":"ENABLE","orderType":"PlanWorkOrder","itemId":"84095282073073003","qty":89.0,"priority":0,"let":null,"specifiedItemNo":null,"calcEst":"2017-07-31 00:00:00","calcLet":"2019-02-01 00:00:00","startTime":"2019-02-01 00:00:00","endTime":"2019-02-01 00:00:00","stockLoc":null,"itemTypeExcp":false,"topOrderCodes":"凯迪拉克订单A","upperOrderCodes":"M20171130001328","lowerOrderCodes":"PI20171130001337","bottomOrderCodes":"PI20171130001337","active":true,"receiveDate":null,"children":[{"id":"89872598573284469","remarks":null,"createUserName":null,"updateUserName":null,"createBy":89872598573284469,"createDate":"2017-11-30 15:26:56","updateBy":0,"updateDate":"2017-11-30 15:26:56","delFlag":false,"createType":"AUTO","updateType":"MANUAL","innerkey":89872598573284469,"code":"PI20171130001337","name":null,"status":"ENABLE","orderType":"PlanPurchaseOrder","itemId":"84095282077267319","qty":89.0,"priority":0,"let":null,"specifiedItemNo":null,"calcEst":"2017-07-31 00:00:00","calcLet":"2019-02-01 00:00:00","startTime":null,"endTime":null,"stockLoc":null,"itemTypeExcp":false,"topOrderCodes":"凯迪拉克订单A","upperOrderCodes":"M20171130001330","lowerOrderCodes":"PI20171130001337","bottomOrderCodes":"PI20171130001337","active":true,"receiveDate":null,"children":[],"key":89872598573284469,"userTopOrder":null,"userUpperOrder":null,"userAssignQty":0.0,"userLeadTime":null,"calcLt":"0S","reserveTypeExcp":false,"alterAmount":true,"excessQty":null,"enableStatus":true}],"key":89872598539729919,"routingId":"84095287383061961","est":null,"userEst":null,"userLet":null,"lowestEst":null,"userLowestEst":null,"userRoutingCode":null,"needToResynchronize":false,"needToRecalcQty":false,"userTopOrder":null,"userUpperOrder":null,"userAssignQty":0.0,"userLeadTime":null,"calcLt":"0S","reserveTypeExcp":false,"alterAmount":true,"excessQty":null,"actualStockQty":null,"lackMatQty":null,"scheduledStartTime":null,"scheduledEndTime":null,"enableStatus":true},{"id":"89872598548118545","remarks":null,"createUserName":null,"updateUserName":null,"createBy":89872598548118545,"createDate":"2017-11-30 15:26:56","updateBy":0,"updateDate":"2017-11-30 15:26:56","delFlag":false,"createType":"AUTO","updateType":"MANUAL","innerkey":89872598548118545,"code":"M20171130001331","name":null,"status":"ENABLE","orderType":"PlanWorkOrder","itemId":"84095282077267307","qty":89.0,"priority":0,"let":null,"specifiedItemNo":null,"calcEst":"2017-07-31 00:00:00","calcLet":"2019-02-01 00:00:00","startTime":"2019-02-01 00:00:00","endTime":"2019-02-01 00:00:00","stockLoc":null,"itemTypeExcp":false,"topOrderCodes":"凯迪拉克订单A","upperOrderCodes":"M20171130001328","lowerOrderCodes":"PI20171130001336","bottomOrderCodes":"PI20171130001336","active":true,"receiveDate":null,"children":[{"id":"89872598573284461","remarks":null,"createUserName":null,"updateUserName":null,"createBy":89872598573284461,"createDate":"2017-11-30 15:26:56","updateBy":0,"updateDate":"2017-11-30 15:26:56","delFlag":false,"createType":"AUTO","updateType":"MANUAL","innerkey":89872598573284461,"code":"PI20171130001336","name":null,"status":"ENABLE","orderType":"PlanPurchaseOrder","itemId":"84095282077267315","qty":89.0,"priority":0,"let":null,"specifiedItemNo":null,"calcEst":"2017-07-31 00:00:00","calcLet":"2019-02-01 00:00:00","startTime":null,"endTime":null,"stockLoc":null,"itemTypeExcp":false,"topOrderCodes":"凯迪拉克订单A","upperOrderCodes":"M20171130001331","lowerOrderCodes":"PI20171130001336","bottomOrderCodes":"PI20171130001336","active":true,"receiveDate":null,"children":[],"key":89872598573284461,"userTopOrder":null,"userUpperOrder":null,"userAssignQty":0.0,"userLeadTime":null,"calcLt":"0S","reserveTypeExcp":false,"alterAmount":true,"excessQty":null,"enableStatus":true}],"key":89872598548118545,"routingId":"84095287383061977","est":null,"userEst":null,"userLet":null,"lowestEst":null,"userLowestEst":null,"userRoutingCode":null,"needToResynchronize":false,"needToRecalcQty":false,"userTopOrder":null,"userUpperOrder":null,"userAssignQty":0.0,"userLeadTime":null,"calcLt":"0S","reserveTypeExcp":false,"alterAmount":true,"excessQty":null,"actualStockQty":null,"lackMatQty":null,"scheduledStartTime":null,"scheduledEndTime":null,"enableStatus":true}],"key":89872598522952662,"routingId":"84095287387256293","est":null,"userEst":null,"userLet":null,"lowestEst":null,"userLowestEst":null,"userRoutingCode":null,"needToResynchronize":false,"needToRecalcQty":false,"userTopOrder":null,"userUpperOrder":null,"userAssignQty":0.0,"userLeadTime":null,"calcLt":"0S","reserveTypeExcp":false,"alterAmount":true,"excessQty":null,"actualStockQty":null,"lackMatQty":null,"scheduledStartTime":null,"scheduledEndTime":null,"enableStatus":true}],"map":null,"beginIndex":0,"pageCount":0,"total":0}

 

 

/*
 背景: 用了Ant design table组件, 里面规定了不重复的key和children格式
             后台返回我不是预期的格式。

 问题: 如何保证层级关系及每个{}的字段前提下, 装配下JSON,满足: 每层下有个索引(字母加数字,如“idx1”, "idx2","idx3"...), children为[],即空是,过滤掉。

*/

//原始数据如上: obj.list  , 我需要的就是list [{},{},{}... ...] 格式
//How, I can not realize it ....
Coca-code的主页 Coca-code | 初学一级 | 园豆:6
提问于:2017-12-04 15:54
< >
分享
最佳答案
0
function delChildren(json) {
  for (var i = 0; i < json.length; i++) {
    for (var obj in json[i]) {
      if (obj == "children") {
        var oChild = json[i].children;
        if (oChild.length === 0) {
          delete json[i].children;
        } else {
          delChildren(oChild);
        }
      }
    }
  }
  return json;
}
console.log(delChildren(obj.list));
收获园豆:5
calamus | 菜鸟二级 |园豆:207 | 2017-12-04 16:07

满足一般需求, 无空‘children[]’,  

 

还需要加个索引, 如:‘key1’, ‘key2’,‘key3’,‘key4’... ...  

 

我试图在delChildren() 里加, 不会啊。。。

 

Coca-code | 园豆:6 (初学一级) | 2017-12-04 16:27

把分给你了,还是表示感谢,向你学习!

Coca-code | 园豆:6 (初学一级) | 2017-12-04 16:33

@Coca-code: 

原理是这样,具体你的需求需要什么你自己再改一改

        function delChildren(json) {
            for (var i = 0; i < json.length; i++) {
                for (var obj in json[i]) {
                    if (obj == "children") {
                        var oChild = json[i].children;
                        if (oChild.length === 0) {
                            delete json[i].children;
                        } else {
                            delChildren(oChild);
                        }
                    }
                    json[i]["key" + i] = '';
                }

            }
            return json;
        }
        console.log(delChildren(item));
calamus | 园豆:207 (菜鸟二级) | 2017-12-04 16:40
  // 编辑JSON函数
  delChildren = (json) => {
      for (var i = 0; i < json.length; i++) {
          // 加索引
          // json[i]["happyKey"] = ++i; 加此处,delete失效
        for (var obj in json[i]) {
          if (obj == "children") {
            var oChild = json[i].children;
            if (oChild.length === 0) {
              delete json[i].children;
            } else {
              this.delChildren(oChild);
            }
          }

           // 加索引
          // json[i]["happyKey"] = ++i;   加此处只在第一层加了...

        } //End for
      } //End for

      return json;
    }
Coca-code | 园豆:6 (初学一级) | 2017-12-04 16:57

@Coca-code: 

我想写个 addIndex(); 函数, 这个函数生成hash, 然后把这函数放在delChildren(); 里。。。

Coca-code | 园豆:6 (初学一级) | 2017-12-04 17:07

@calamus: 

 

有个

function uuid(len, radix) {
    var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
    var uuid = [], i;
    radix = radix || chars.length;
 
    if (len) {
      // Compact form
      for (i = 0; i < len; i++) uuid[i] = chars[0 | Math.random()*radix];
    } else {
      // rfc4122, version 4 form
      var r;
 
      // rfc4122 requires these characters
      uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
      uuid[14] = '4';
 
      // Fill in random data.  At i==19 set the high bits of clock sequence as
      // per rfc4122, sec. 4.1.5
      for (i = 0; i < 36; i++) {
        if (!uuid[i]) {
          r = 0 | Math.random()*16;
          uuid[i] = chars[(i == 19) ? (r & 0x3) | 0x8 : r];
        }
      }
    }
 
    return uuid.join('');
}  //uuid(8, 16)    DCBE558C 
Coca-code | 园豆:6 (初学一级) | 2017-12-04 17:11

@calamus:  Hello,还在线? 能否在下班前帮我搞一下?

Coca-code | 园豆:6 (初学一级) | 2017-12-04 17:13

@Coca-code: 

这样就是咯,uuid()就是生成随机的字母和数字的组合

        delChildren = (json) => {  
            for (var i = 0; i < json.length; i++) {
                json[i]["happyKey"] = + +i; //加此处,delete失效
                for (var obj in json[i]) {      
                    if (obj == "children") {        
                        var oChild = json[i].children;        
                        if (oChild.length === 0) {          
                            delete json[i].children;        
                        } else {          
                            this.delChildren(oChild);        
                        }      
                    }
                    json[i]["happyKey"] = uuid(5);   
                } 
            }  
            return json;
        }
calamus | 园豆:207 (菜鸟二级) | 2017-12-04 17:24

@calamus: 感谢回复。  现在这样了,虽然不是彻底弄清,但运行无错... ...

  // 编辑JSON函数
  delChildren = (json) => {
      for (var i = 0; i < json.length; i++) {
          json[i]['happyKey'] = this.uuid(8,16)
        for (var obj in json[i]) {
          if (obj == "children") {
            var oChild = json[i].children;
            if (oChild.length === 0) {
              delete json[i].children;
            } else {
              this.delChildren(oChild);
                    json[i]['happyKey'] = this.uuid(8,16)
            }
          }
        } //End for
      } //End for
      return json;
    }
Coca-code | 园豆:6 (初学一级) | 2017-12-06 10:58
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册