Convert definedRecipeItemsList to orderDetailList in AngularJS
This function takes in a definedRecipeMaster object and converts its definedRecipeItemsList into an orderDetailList array. It loops through each definedRecipeItems object and checks if the deleteStatus property is not equal to 1. If it's not equal to 1, it calls the getOrderDetailDrugWest function, passing in the definedRecipeMaster and definedRecipeItems objects. The result of this function call is then pushed into the orderDetailList array. Finally, the function returns the orderDetailList array.
原文地址: https://www.cveoy.top/t/topic/qkNv 著作权归作者所有。请勿转载和采集!