标签:pre res tox utils cal 场景 -o dex 流程
function getDrugPrescAttr(ordersDrugWestListPresc, index, callback){ var doctorOrders = ordersDrugWestListPresc[index]; var successCallback = function (data) { doctorOrders.prescAttr = getDrugPrescAttrDetail(data.toxiCode); if (index < ordersDrugWestListPresc.length - 1) { getDrugPrescAttr(ordersDrugWestListPresc, ++index, callback); } else { callback(); } }; HrUtils.httpRequest($http, Path.getUri("api/inp-orders/get-drug-prescAttr?drugCode=" + doctorOrders.drugOrderDetail.drugCode), successCallback, null, hrDialog, HrUtils.httpMethod.POST, null); }
使用方法 :
getDrugPrescAttr(ordersDrugWestListPresc, 0, function(){ //查询后处理后续流程 })
标签:pre res tox utils cal 场景 -o dex 流程
原文地址:http://www.cnblogs.com/ms-grf/p/8005308.html