| | |
| | | component.set('v.login',false); |
| | | } |
| | | }else{ |
| | | this.error('AWS search status : ' + result.status); |
| | | this.error('AWS search status1 : ' + result.status); |
| | | component.set('v.login',false); |
| | | } |
| | | },component); |
| | |
| | | b = true; |
| | | Foo(); |
| | | }else{ |
| | | this.error('AWS search status : ' + result.status); |
| | | this.error('AWS search status2 : ' + result.status); |
| | | } |
| | | },component); |
| | | }else{ |
| | |
| | | b1 = true; |
| | | Foo(); |
| | | }else{ |
| | | this.error('AWS search status : ' + result.status); |
| | | this.error('AWS search status3 : ' + result.status); |
| | | } |
| | | },component); |
| | | }else{ |
| | |
| | | var reports = component.get('v.reports'); |
| | | var Agency_Hospital_text = ''; |
| | | var Agency_Hospital_parent_id = ''; |
| | | |
| | | debugger |
| | | // 医院名 |
| | | if (select_data['Agency_Hospital__c'] != '') { |
| | | for (var i = 0; i < reports.length; i++) { |
| | |
| | | component.set('v.hospitalLinkId', hospital_data[i].Id); |
| | | component.set('v.data.Agency_Hospital__c', hospital_data[i].Id); |
| | | component.find('new_con').set('v.disabled', false); |
| | | //break; |
| | | } |
| | | } |
| | | component.set("v.hospital", accname); |
| | |
| | | if(result.status == '0'){ |
| | | this.to_doctor_list(result,retMap,component); |
| | | }else{ |
| | | this.error('AWS search status : ' + result.status); |
| | | this.error('AWS search status4 : ' + result.status); |
| | | component.set('v.login',false); |
| | | } |
| | | },component); |
| | |
| | | // }, |
| | | |
| | | opportunityChange : function(component, event, helper) { |
| | | debugger |
| | | var opp_id = component.get('v.data.Opportunity__c'); |
| | | if (opp_id == '') { |
| | | $A.util.addClass(component.find('input-opportunity-stage'), 'disp_none'); |
| | |
| | | // } |
| | | component.set('v.login',false); |
| | | return false; |
| | | } else if (res[0]['StageName2__c'] != '3.询价' && !component.get('v.loadOpp')){ |
| | | this.warning('请选择询价中的项目'); |
| | | // ToDo需要测试手机上能运行不 |
| | | component.set('v.data.Opportunity__c', ''); |
| | | $A.util.addClass(component.find('input-opportunity-stage'), 'disp_none'); |
| | | $A.util.addClass(component.find('input-opportunity-amount1'), 'disp_none'); |
| | | $A.util.addClass(component.find('input-opportunity-amount2'), 'disp_none'); |
| | | $A.util.addClass(component.find('input-opportunity-date'), 'disp_none'); |
| | | $A.util.removeClass(component.find('input-opportunity-blank'), 'disp_none'); |
| | | // if ($A.get("$Browser.formFactor") == 'DESKTOP') { |
| | | // var values = []; |
| | | // component.find('input-opportunity').get("v.body")[0].set('v.values', values); |
| | | // } else { |
| | | // component.find('input-opportunity').get("v.body")[0].set('v.selectedLabel', ''); |
| | | // } |
| | | component.set('v.login',false); |
| | | return false; |
| | | } else { |
| | | } |
| | | //SWAG-CKH5M8 【委托】周报关联询价,可选择询价范围调整 fy start |
| | | // else if (res[0]['StageName2__c'] != '3.询价' && !component.get('v.loadOpp')){ |
| | | // this.warning('请选择询价中的项目'); |
| | | // // ToDo需要测试手机上能运行不 |
| | | // component.set('v.data.Opportunity__c', ''); |
| | | // $A.util.addClass(component.find('input-opportunity-stage'), 'disp_none'); |
| | | // $A.util.addClass(component.find('input-opportunity-amount1'), 'disp_none'); |
| | | // $A.util.addClass(component.find('input-opportunity-amount2'), 'disp_none'); |
| | | // $A.util.addClass(component.find('input-opportunity-date'), 'disp_none'); |
| | | // $A.util.removeClass(component.find('input-opportunity-blank'), 'disp_none'); |
| | | // // if ($A.get("$Browser.formFactor") == 'DESKTOP') { |
| | | // // var values = []; |
| | | // // component.find('input-opportunity').get("v.body")[0].set('v.values', values); |
| | | // // } else { |
| | | // // component.find('input-opportunity').get("v.body")[0].set('v.selectedLabel', ''); |
| | | // // } |
| | | // component.set('v.login',false); |
| | | // return false; |
| | | // } |
| | | //SWAG-CKH5M8 【委托】周报关联询价,可选择询价范围调整 fy end |
| | | else { |
| | | component.set('v.loadOpp', false); |
| | | component.set('v.oppdata',res[0]); |
| | | this.set_selected(component, 'select_stageName', res[0].StageName__c); |
| | |
| | | $A.util.addClass(modal_newAC, 'disp_none'); |
| | | }, |
| | | setOpportunity_cfilter : function(component) { |
| | | debugger |
| | | var hosId = component.get('v.hospitalId'); |
| | | var Department_Cateogy__c = component.find('select_department').get('v.value'); |
| | | var opportunity_cfilter = ''; |
| | |
| | | component.set('v.login',true); |
| | | this.saveRecordsEditFile(component,dataMap,result.object,helper); |
| | | }else{ |
| | | this.error('AWS search status ' ); |
| | | this.error('AWS search status5 ' ); |
| | | component.set('v.login',false); |
| | | } |
| | | }else{ |
| | | this.error('AWS search status : ' + result.status); |
| | | this.error('AWS search status6 : ' + result.status); |
| | | component.set('v.login',false); |
| | | } |
| | | },component); |