Merge branch 'LEX_dev' of http://47.92.229.245:8089/r/lightningupdate into LEX_dev
| New file |
| | |
| | | public class InquiryFormController { |
| | | @AuraEnabled |
| | | public static InitData init(String recordId){ |
| | | InitData res = new initData(); |
| | | try{ |
| | | Inquiry_form__c report = [SELECT Id,Name,Service_Status__c,FSE_Owner__c,FSE_Owner_id__c,Status__c,Lead_link__c,Opp_Name_Search__c,Contact_Name__c,Contact_Id__c,Hospital_Name__c,Hospital_ID__c,Department_Class__c,Department_ID__c,Opp_Name_Search_ID__c,Campaign__c,Campaign_ID__c,Cancel_Reason__c,Product_Owner__c,Phone__c,Email__c,Last_Name__c,LeadSource__c,Opportunity_Division__c,Request1__c,Urgent__c,Family_Name__c FROM Inquiry_form__c WHERE Id = :recordId LIMIT 1]; |
| | | res.Id = report.Id; |
| | | res.Name = report.Name; |
| | | res.ServiceStatus = report.Service_Status__c; |
| | | res.Status = report.Status__c; |
| | | res.profileId = UserInfo.getProfileId(); |
| | | res.userId = UserInfo.getUserId(); |
| | | res.LeadLink= report.Lead_link__c; |
| | | res.OppNameSearch= report.Opp_Name_Search__c; |
| | | res.ContactName= report.Contact_Name__c; |
| | | res.ContactId = report.Contact_Id__c; |
| | | res.HospitalName = report.Hospital_Name__c; |
| | | res.HospitalID = report.Hospital_ID__c; |
| | | res.DepartmentClass= report.Department_Class__c; |
| | | res.DepartmentID = report.Department_ID__c; |
| | | res.OppNameSearchID= report.Opp_Name_Search_ID__c; |
| | | res.Campaign= report.Campaign__c; |
| | | res.CampaignID = report.Campaign_ID__c; |
| | | res.CancelReason= report.Cancel_Reason__c; |
| | | res.Phone = report.Phone__c; |
| | | res.Email= report.Email__c; |
| | | res.LastName = report.Last_Name__c; |
| | | res.LeadSource = report.LeadSource__c; |
| | | res.OpportunityDivision = report.Opportunity_Division__c; |
| | | res.Request1 = report.Request1__c; |
| | | res.Urgent = report.Urgent__c; |
| | | res.FSEOwner = report.FSE_Owner__c; |
| | | res.FSEOwnerId = report.FSE_Owner_id__c; |
| | | res.FamilyName = report.Family_Name__c; |
| | | res.JINGZHUOJISHU = getUserName(LightingButtonConstant.JINGZHUO_JISHU); |
| | | System.debug(LoggingLevel.INFO, '*** xu: ' + res); |
| | | }catch(Exception e){ |
| | | System.debug(LoggingLevel.INFO, '*** exu: ' + e); |
| | | } |
| | | return res; |
| | | } |
| | | //新建一项 |
| | | @AuraEnabled |
| | | public static List<Inquiry_form__c> sqlResult (String id) { |
| | | try { |
| | | List<Inquiry_form__c> records = [SELECT id,Request_Detail__c FROM Inquiry_form__c WHERE id = :id]; |
| | | System.debug(LoggingLevel.INFO, '*** xu1: ' + records); |
| | | return records; |
| | | } catch (exception e) { |
| | | System.debug(LoggingLevel.INFO, '*** xu1111111: ' + e); |
| | | throw new AuraHandledException(e.getMessage()); |
| | | } |
| | | } |
| | | @AuraEnabled |
| | | public static string getUserName(String name){ |
| | | User user = null; |
| | | try { |
| | | user = [select Id from user where Name =:name]; |
| | | } catch (Exception e) { |
| | | throw new AuraHandledException(e.getMessage()); |
| | | } |
| | | return user.Id; |
| | | } |
| | | public class InitData{ |
| | | @AuraEnabled |
| | | public String Id; |
| | | @AuraEnabled |
| | | public String ServiceStatus; |
| | | @AuraEnabled |
| | | public String profileId; |
| | | @AuraEnabled |
| | | public String userId; |
| | | @AuraEnabled |
| | | public String Status; |
| | | @AuraEnabled |
| | | public String LeadLink; |
| | | @AuraEnabled |
| | | public String OppNameSearch; |
| | | @AuraEnabled |
| | | public String ContactName; |
| | | @AuraEnabled |
| | | public String ContactId; |
| | | @AuraEnabled |
| | | public String HospitalName; |
| | | @AuraEnabled |
| | | public String HospitalID; |
| | | @AuraEnabled |
| | | public String DepartmentClass; |
| | | @AuraEnabled |
| | | public String DepartmentID; |
| | | @AuraEnabled |
| | | public String OppNameSearchID; |
| | | @AuraEnabled |
| | | public String Campaign; |
| | | @AuraEnabled |
| | | public String CampaignID; |
| | | @AuraEnabled |
| | | public String Name; |
| | | @AuraEnabled |
| | | public String CancelReason; |
| | | @AuraEnabled |
| | | public String Phone; |
| | | @AuraEnabled |
| | | public String Email; |
| | | @AuraEnabled |
| | | public String LastName; |
| | | @AuraEnabled |
| | | public String LeadSource; |
| | | @AuraEnabled |
| | | public String OpportunityDivision; |
| | | @AuraEnabled |
| | | public String Request1; |
| | | @AuraEnabled |
| | | public Boolean Urgent; |
| | | @AuraEnabled |
| | | public String FSEOwner; |
| | | @AuraEnabled |
| | | public String FSEOwnerId; |
| | | @AuraEnabled |
| | | public String FamilyName; |
| | | @AuraEnabled |
| | | public String JINGZHUOJISHU; |
| | | } |
| | | } |
| New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <ApexClass xmlns="http://soap.sforce.com/2006/04/metadata"> |
| | | <apiVersion>56.0</apiVersion> |
| | | <status>Active</status> |
| | | </ApexClass> |
| New file |
| | |
| | | public with sharing class LexConsumApply_FromQISCtl { |
| | | public LexConsumApply_FromQISCtl() { |
| | | |
| | | } |
| | | @AuraEnabled |
| | | public static List<Consum_Apply__c> rentalApp(String recordId){ |
| | | try { |
| | | List<Consum_Apply__c> rep = [select Id from Consum_Apply__c where QIS_number__c =: recordId and Status__c <> '取消' and Status__c <> '删除']; |
| | | return rep; |
| | | } catch (Exception e) { |
| | | throw new AuraHandledException(e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | @AuraEnabled |
| | | public static List<FieldDefinition> fieldDefineApp(){ |
| | | try { |
| | | List<FieldDefinition> rep = [Select QualifiedApiName, EntityDefinition.KeyPrefix, DurableId From FieldDefinition WHERE EntityDefinition.QualifiedApiName = 'Consum_Apply__c']; |
| | | return rep; |
| | | } catch (Exception e) { |
| | | throw new AuraHandledException(e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | //获取当前登录人的 id |
| | | @AuraEnabled |
| | | public static UserResult UserInfo_Owner() { |
| | | UserResult result = new UserResult(); |
| | | ID myUserID = UserInfo.getUserId(); |
| | | try { |
| | | User tempUser = |
| | | [select Id,isFormal_Stuff__c,FirstName,LastName from user where id = : myUserID ]; |
| | | result.id = tempUser.Id; |
| | | result.isFormalStuff = tempUser.isFormal_Stuff__c; |
| | | result.firstName = tempUser.FirstName; |
| | | result.lastName = tempUser.LastName; |
| | | } catch (exception e) { |
| | | |
| | | result.result = e.getMessage(); |
| | | } |
| | | return result; |
| | | } |
| | | |
| | | @AuraEnabled |
| | | public static InitData init(String recordId){ |
| | | InitData res = new initData(); |
| | | try { |
| | | QIS_Report__c rep = [select Id,next_action__c,QIS_Status__c,Hospital__c,Department_Class__c,Hospital_Department__c,Name from QIS_Report__c where Id =: recordId]; |
| | | res.nextAction = rep.next_action__c; |
| | | res.qISStatus = rep.QIS_Status__c; |
| | | res.hospital = rep.Hospital__c; |
| | | res.departmentClass = rep.Department_Class__c; |
| | | res.hospitalDepartment = rep.Hospital_Department__c; |
| | | res.name = rep.Name; |
| | | return res; |
| | | } catch (Exception e) { |
| | | throw new AuraHandledException(e.getMessage()); |
| | | } |
| | | } |
| | | public class InitData{ |
| | | @AuraEnabled |
| | | public String nextAction; |
| | | @AuraEnabled |
| | | public String qISStatus; |
| | | @AuraEnabled |
| | | public String hospital; |
| | | @AuraEnabled |
| | | public String departmentClass; |
| | | @AuraEnabled |
| | | public String hospitalDepartment; |
| | | @AuraEnabled |
| | | public String name; |
| | | } |
| | | |
| | | public class UserResult { |
| | | @AuraEnabled |
| | | public string result; |
| | | public UserResult( ) { |
| | | result = 'Success'; |
| | | } |
| | | @AuraEnabled |
| | | public string id; |
| | | @AuraEnabled |
| | | public Boolean isFormalStuff; |
| | | @AuraEnabled |
| | | public string firstName; |
| | | @AuraEnabled |
| | | public string lastName; |
| | | } |
| | | } |
| New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <ApexClass xmlns="http://soap.sforce.com/2006/04/metadata"> |
| | | <apiVersion>56.0</apiVersion> |
| | | <status>Active</status> |
| | | </ApexClass> |
| | |
| | | public static final String CN_NO = '否'; |
| | | public static final String VOC_NAME = 'VOC'; |
| | | public static final String OK = 'OK'; |
| | | public static final String JINGZHUO_JISHU = '精琢 技术'; |
| | | public static final String LU_SHENG_NAME = '陆 胜'; |
| | | public static final String HU_DI_AN_NAME = '胡 迪安'; |
| | | public static final String SYSTEM_PROFILE_NAME = '系统管理员'; |
| | |
| | | public with sharing class RentalApplyESetRefreshStatusController { |
| | | public RentalApplyESetRefreshStatusController() { |
| | | |
| | | } |
| | | @AuraEnabled |
| | | public static String eSetRefreshStatus(String raeSetId) { |
| | | return eSetRefreshStatusBatch(new List<String> {raeSetId}); |
| | |
| | | public static InitData init(String recordId){ |
| | | InitData res = new initData(); |
| | | try{ |
| | | Asset report = [SELECT Id,NoPartRiskDate_F__c,Product_ID__c,AccountId,HP_Id__c,Hospital__c,Hospital__r.Id,Department_Class__c,Department_Class__r.Id,Name FROM Asset WHERE Id =: recordId LIMIT 1]; |
| | | Asset report = [SELECT Order_No__c,SerialNumber,Asset_day__c,Posting_Date__c,InstallDate,Asset_Owner__c,AssetMark__c,Id,NoPartRiskDate_F__c,Product_ID__c,AccountId,HP_Id__c,Hospital__c,Hospital__r.Id,Department_Class__c,Department_Class__r.Id,Name FROM Asset WHERE Id =: recordId LIMIT 1]; |
| | | System.debug(LoggingLevel.INFO, '*** opp: ' + report); |
| | | |
| | | res.AssetMarkC = report.AssetMark__c; |
| | | res.AssetOwnerC = report.Asset_Owner__c; |
| | | res.InstallDate = report.InstallDate; |
| | | res.PostingDateC = report.Posting_Date__c; |
| | | res.AssetDayC = report.Asset_day__c; |
| | | res.SerialNumber = report.SerialNumber; |
| | | res.OrderNoC = report.Order_No__c; |
| | | |
| | | |
| | | res.Id = report.Id; |
| | | res.Name = report.Name; |
| | | res.NoPartRiskDateFC = report.NoPartRiskDate_F__c; |
| | |
| | | } |
| | | } |
| | | |
| | | @AuraEnabled |
| | | public static List<QIS_Report__c> selecctQISReportrByFomatToday(String AssetId, Date fomatToday){ |
| | | try { |
| | | List<QIS_Report__c> accounts = [SELECT id,QIS_Submit_day__c from QIS_Report__c where nonyushohin__c=:AssetId and QIS_Submit_day__c != null and QIS_Submit_day__c >=: fomatToday]; |
| | | return accounts; |
| | | } catch (Exception e) { |
| | | throw new AuraHandledException(e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | //查询Repair__c |
| | | @AuraEnabled |
| | | public static List<Account> selecctAccountByAccountId(String AccountId){ |
| | |
| | | } |
| | | } |
| | | |
| | | @AuraEnabled |
| | | public static String selectCASE(String AssetOwnerC){ |
| | | String res=''; |
| | | if(AssetOwnerC.equals('病院資産')){ |
| | | res='病院資産'; |
| | | }else if(AssetOwnerC.equals('购买')){ |
| | | res='购买'; |
| | | } |
| | | else if(AssetOwnerC.equals('Olympus')){ |
| | | res='Olympus'; |
| | | } |
| | | else if(AssetOwnerC.equals('备品')){ |
| | | res='备品'; |
| | | } |
| | | else if(AssetOwnerC.equals('リース会社')){ |
| | | res='リース会社'; |
| | | } |
| | | else if(AssetOwnerC.equals('其他')){ |
| | | res='其他'; |
| | | } |
| | | else if(AssetOwnerC.equals('经销商资产')){ |
| | | res='经销商资产'; |
| | | }else{ |
| | | res=''; |
| | | } |
| | | return res; |
| | | } |
| | | |
| | | @AuraEnabled |
| | | public static String selectNullvalue(String InstallDate,String PostingDateC,String AssetDayC){ |
| | | String res=''; |
| | | if(InstallDate!=null){ |
| | | res=InstallDate; |
| | | }else { |
| | | if(PostingDateC!=null){ |
| | | res=PostingDateC; |
| | | }else { |
| | | res=AssetDayC; |
| | | } |
| | | } |
| | | return res; |
| | | } |
| | | |
| | | public class InitData{ |
| | | @AuraEnabled |
| | | public String AssetMarkC; |
| | | @AuraEnabled |
| | | public String AssetOwnerC; |
| | | @AuraEnabled |
| | | public Date InstallDate; |
| | | @AuraEnabled |
| | | public Date PostingDateC; |
| | | @AuraEnabled |
| | | public Date AssetDayC; |
| | | @AuraEnabled |
| | | public String SerialNumber; |
| | | @AuraEnabled |
| | | public String OrderNoC; |
| | | |
| | | @AuraEnabled |
| | | public String Id; |
| | | @AuraEnabled |
| | | public String userID; |
| | |
| | | List<User> user = new List<User>(); |
| | | user = [SELECT Id,Alias,Alias__c from User]; |
| | | |
| | | System.debug('The value of user is: ' + user); |
| | | |
| | | QIS_Report__c rac = new QIS_Report__c(); |
| | | rac.Id = QId; |
| | | rac.QIS_Status__c = 'RC检测中'; |
| New file |
| | |
| | | public with sharing class lexConsumApply_FromAccountCtl { |
| | | public lexConsumApply_FromAccountCtl() { |
| | | |
| | | } |
| | | @AuraEnabled |
| | | public static List<FieldDefinition> fieldDefineApp(){ |
| | | try { |
| | | List<FieldDefinition> rep = [Select QualifiedApiName, EntityDefinition.KeyPrefix, DurableId From FieldDefinition WHERE EntityDefinition.QualifiedApiName = 'Consum_Apply__c']; |
| | | return rep; |
| | | } catch (Exception e) { |
| | | throw new AuraHandledException(e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | //获取当前登录人的 id |
| | | @AuraEnabled |
| | | public static UserResult UserInfo_Owner() { |
| | | UserResult result = new UserResult(); |
| | | ID myUserID = UserInfo.getUserId(); |
| | | try { |
| | | User tempUser = |
| | | [select Id,isFormal_Stuff__c,FirstName,LastName from user where id = : myUserID ]; |
| | | result.id = tempUser.Id; |
| | | result.isFormalStuff = tempUser.isFormal_Stuff__c; |
| | | result.firstName = tempUser.FirstName; |
| | | result.lastName = tempUser.LastName; |
| | | } catch (exception e) { |
| | | |
| | | result.result = e.getMessage(); |
| | | } |
| | | return result; |
| | | } |
| | | |
| | | @AuraEnabled |
| | | public static InitData init(String recordId){ |
| | | InitData res = new initData(); |
| | | try { |
| | | Account rep = [select Id,Name,Hospital__c,Department_Class__c from Account where Id =: recordId]; |
| | | res.name = rep.Name; |
| | | res.hospitalName = rep.Hospital__c; |
| | | res.departClass = rep.Department_Class__c; |
| | | return res; |
| | | } catch (Exception e) { |
| | | throw new AuraHandledException(e.getMessage()); |
| | | } |
| | | } |
| | | public class InitData{ |
| | | @AuraEnabled |
| | | public String hospitalName; |
| | | @AuraEnabled |
| | | public String departClass; |
| | | @AuraEnabled |
| | | public String name; |
| | | } |
| | | |
| | | public class UserResult { |
| | | @AuraEnabled |
| | | public string result; |
| | | public UserResult( ) { |
| | | result = 'Success'; |
| | | } |
| | | @AuraEnabled |
| | | public string id; |
| | | @AuraEnabled |
| | | public Boolean isFormalStuff; |
| | | @AuraEnabled |
| | | public string firstName; |
| | | @AuraEnabled |
| | | public string lastName; |
| | | } |
| | | } |
| New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <ApexClass xmlns="http://soap.sforce.com/2006/04/metadata"> |
| | | <apiVersion>57.0</apiVersion> |
| | | <status>Active</status> |
| | | </ApexClass> |
| New file |
| | |
| | | public with sharing class lexConsumApply_FromOPDPlanCtl { |
| | | public lexConsumApply_FromOPDPlanCtl() { |
| | | |
| | | } |
| | | |
| | | @AuraEnabled |
| | | public static List<FieldDefinition> fieldDefineApp(){ |
| | | try { |
| | | List<FieldDefinition> rep = [Select QualifiedApiName, EntityDefinition.KeyPrefix, DurableId From FieldDefinition WHERE EntityDefinition.QualifiedApiName = 'Consum_Apply__c']; |
| | | return rep; |
| | | } catch (Exception e) { |
| | | throw new AuraHandledException(e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | //获取当前登录人的 id |
| | | @AuraEnabled |
| | | public static UserResult UserInfo_Owner() { |
| | | UserResult result = new UserResult(); |
| | | ID myUserID = UserInfo.getUserId(); |
| | | try { |
| | | User tempUser = |
| | | [select Id,isFormal_Stuff__c,FirstName,LastName from user where id = : myUserID ]; |
| | | result.id = tempUser.Id; |
| | | result.isFormalStuff = tempUser.isFormal_Stuff__c; |
| | | result.firstName = tempUser.FirstName; |
| | | result.lastName = tempUser.LastName; |
| | | } catch (exception e) { |
| | | |
| | | result.result = e.getMessage(); |
| | | } |
| | | return result; |
| | | } |
| | | |
| | | @AuraEnabled |
| | | public static InitData init(String recordId){ |
| | | InitData res = new initData(); |
| | | try { |
| | | OPDPlan__c rep = [select Id,OPDPlan_Report__c,Name,Rental_Apply2__c,HospitalName__c,OCM_category_Name__c,Account_Laboratory__c from OPDPlan__c where Id =: recordId]; |
| | | res.opdPlan = rep.OPDPlan_Report__c; |
| | | res.name = rep.Name; |
| | | res.rentalApply2 = rep.Rental_Apply2__c; |
| | | res.hospitalName = rep.HospitalName__c; |
| | | res.ocmCategoryName = rep.OCM_category_Name__c; |
| | | res.accountLab = rep.Account_Laboratory__c; |
| | | return res; |
| | | } catch (Exception e) { |
| | | throw new AuraHandledException(e.getMessage()); |
| | | } |
| | | } |
| | | public class InitData{ |
| | | @AuraEnabled |
| | | public String opdPlan; |
| | | @AuraEnabled |
| | | public String rentalApply2; |
| | | @AuraEnabled |
| | | public String hospitalName; |
| | | @AuraEnabled |
| | | public String ocmCategoryName; |
| | | @AuraEnabled |
| | | public String accountLab; |
| | | @AuraEnabled |
| | | public String name; |
| | | } |
| | | |
| | | public class UserResult { |
| | | @AuraEnabled |
| | | public string result; |
| | | public UserResult( ) { |
| | | result = 'Success'; |
| | | } |
| | | @AuraEnabled |
| | | public string id; |
| | | @AuraEnabled |
| | | public Boolean isFormalStuff; |
| | | @AuraEnabled |
| | | public string firstName; |
| | | @AuraEnabled |
| | | public string lastName; |
| | | } |
| | | } |
| New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <ApexClass xmlns="http://soap.sforce.com/2006/04/metadata"> |
| | | <apiVersion>57.0</apiVersion> |
| | | <status>Active</status> |
| | | </ApexClass> |
| New file |
| | |
| | | public with sharing class lexNewSparePartsLoanApplicationCtl { |
| | | public lexNewSparePartsLoanApplicationCtl() { |
| | | |
| | | } |
| | | |
| | | //获取当前登录人的 id |
| | | @AuraEnabled |
| | | public static UserResult UserInfo_Owner() { |
| | | UserResult result = new UserResult(); |
| | | ID myUserID = UserInfo.getUserId(); |
| | | try { |
| | | User tempUser = |
| | | [select Id,Job_Category__c,isFormal_Stuff__c,FirstName,LastName,Province__c from user where id = : myUserID ]; |
| | | result.id = tempUser.Id; |
| | | result.isFormalStuff = tempUser.isFormal_Stuff__c; |
| | | result.firstName = tempUser.FirstName; |
| | | result.lastName = tempUser.LastName; |
| | | result.userProvince = tempUser.Province__c; |
| | | result.userJobCategory = tempUser.Job_Category__c; |
| | | } catch (exception e) { |
| | | |
| | | result.result = e.getMessage(); |
| | | } |
| | | return result; |
| | | } |
| | | |
| | | @AuraEnabled |
| | | public static InitData init(String recordId){ |
| | | InitData res = new initData(); |
| | | try { |
| | | OPDPlan__c rep = [select Id,Related_Opportunity1_ID__r.Id,Campaign__r.Id,Status__c,Rental_Apply_Flag__c,OPDType__c,CampaignStatus__c,CampaignRecodeTypeId__c,Internal_in_charge_province__c,StayOrNot__c,OriginalOpdPlanApplication__c,IF_Approved__c,Approved_No__c,Approved_Status__c,Rental_Apply2__c,OriginalOpdPlan__c,CampaignName__c,Related_Opportunity1_Name__c,NoOpp_Reason__c,Account_Laboratory__c,OCM_category_Name__c,HospitalName__c,Name,IsJump__c,JumpCause__c,originalOpdRentalApply__c,RentalApplyName__c from OPDPlan__c where Id =: recordId]; |
| | | res.opdPlanId = rep.Id; |
| | | res.opdCampaignId = rep.Campaign__r.Id == null ? '' : rep.Campaign__r.Id; |
| | | res.opdOpportunityId = rep.Related_Opportunity1_ID__r.Id == null ? '' : rep.Related_Opportunity1_ID__r.Id; |
| | | res.opdStatus = rep.Status__c == null ? '' : rep.Status__c; |
| | | res.opdRentalApplyFlag = rep.Rental_Apply_Flag__c; |
| | | res.opdType = rep.OPDType__c == null ? '' : rep.OPDType__c; |
| | | res.opdCampaignStatus = rep.CampaignStatus__c == null ? '' : rep.CampaignStatus__c; |
| | | res.opdCampaignRecodeTypeId = rep.CampaignRecodeTypeId__c == null ? '' : rep.CampaignRecodeTypeId__c; |
| | | res.opdInternalinchargeprovince = rep.Internal_in_charge_province__c == null ? '' : rep.Internal_in_charge_province__c; |
| | | res.opdStayOrNot = rep.StayOrNot__c == null ? '' : rep.StayOrNot__c; |
| | | res.opdOriginalOpdPlanApplication = rep.OriginalOpdPlanApplication__c== null ? '' : rep.OriginalOpdPlanApplication__c; |
| | | res.opdIFApproved = rep.IF_Approved__c; |
| | | res.opdApprovedNo = rep.Approved_No__c == null ? '' : rep.Approved_No__c; |
| | | res.opdApprovedStatus = rep.Approved_Status__c == null ? '' : rep.Approved_Status__c; |
| | | res.opdRentalApply2 = rep.Rental_Apply2__c == null ? '' : rep.Rental_Apply2__c; |
| | | res.opdOriginalOpdPlan = rep.OriginalOpdPlan__c == null ? '' : rep.OriginalOpdPlan__c; |
| | | res.opdCampaignName = rep.CampaignName__c == null ? '' : rep.CampaignName__c; |
| | | res.opdRelatedOpportunity1Name = rep.Related_Opportunity1_Name__c == null ? '' : rep.Related_Opportunity1_Name__c; |
| | | res.opdNoOppReason = rep.NoOpp_Reason__c == null ? '' : rep.NoOpp_Reason__c; |
| | | res.opdAccountLaboratory = rep.Account_Laboratory__c == null ? '' : rep.Account_Laboratory__c; |
| | | res.opdOCMcategoryName = rep.OCM_category_Name__c == null ? '' : rep.OCM_category_Name__c; |
| | | res.opdHospitalName = rep.HospitalName__c == null ? '' : rep.HospitalName__c; |
| | | res.opdName = rep.Name == null ? '' : rep.Name; |
| | | res.opdIsJump = rep.IsJump__c; |
| | | res.opdJumpCause = rep.JumpCause__c == null ? '' : rep.JumpCause__c; |
| | | res.opdoriginalOpdRentalApply = rep.originalOpdRentalApply__c == null ? '' : rep.originalOpdRentalApply__c; |
| | | res.opdRentalApplyName = rep.RentalApplyName__c == null ? '' : rep.RentalApplyName__c; |
| | | res.opdStatusProcessState = System.Label.StatusProcessState; |
| | | return res; |
| | | } catch (Exception e) { |
| | | throw new AuraHandledException(e.getMessage()); |
| | | } |
| | | } |
| | | public class InitData{ |
| | | @AuraEnabled |
| | | public String opdPlanId; |
| | | @AuraEnabled |
| | | public String opdCampaignId; |
| | | @AuraEnabled |
| | | public String opdOpportunityId; |
| | | @AuraEnabled |
| | | public String opdStatus; |
| | | @AuraEnabled |
| | | public Decimal opdRentalApplyFlag; |
| | | @AuraEnabled |
| | | public String opdType; |
| | | @AuraEnabled |
| | | public String opdCampaignStatus; |
| | | @AuraEnabled |
| | | public String opdCampaignRecodeTypeId; |
| | | @AuraEnabled |
| | | public String opdInternalinchargeprovince; |
| | | @AuraEnabled |
| | | public String opdStayOrNot; |
| | | @AuraEnabled |
| | | public String opdOriginalOpdPlanApplication; |
| | | @AuraEnabled |
| | | public Boolean opdIFApproved; |
| | | @AuraEnabled |
| | | public String opdApprovedNo; |
| | | @AuraEnabled |
| | | public String opdApprovedStatus; |
| | | @AuraEnabled |
| | | public String opdRentalApply2; |
| | | @AuraEnabled |
| | | public String opdOriginalOpdPlan; |
| | | @AuraEnabled |
| | | public String opdCampaignName; |
| | | @AuraEnabled |
| | | public String opdRelatedOpportunity1Name; |
| | | @AuraEnabled |
| | | public String opdNoOppReason; |
| | | @AuraEnabled |
| | | public String opdAccountLaboratory; |
| | | @AuraEnabled |
| | | public String opdOCMcategoryName; |
| | | @AuraEnabled |
| | | public String opdHospitalName; |
| | | @AuraEnabled |
| | | public String opdName; |
| | | @AuraEnabled |
| | | public Boolean opdIsJump; |
| | | @AuraEnabled |
| | | public String opdJumpCause; |
| | | @AuraEnabled |
| | | public String opdoriginalOpdRentalApply; |
| | | @AuraEnabled |
| | | public String opdRentalApplyName; |
| | | @AuraEnabled |
| | | public String opdStatusProcessState; |
| | | } |
| | | |
| | | public class UserResult { |
| | | @AuraEnabled |
| | | public string result; |
| | | public UserResult( ) { |
| | | result = 'Success'; |
| | | } |
| | | @AuraEnabled |
| | | public string id; |
| | | @AuraEnabled |
| | | public Boolean isFormalStuff; |
| | | @AuraEnabled |
| | | public string firstName; |
| | | @AuraEnabled |
| | | public string lastName; |
| | | @AuraEnabled |
| | | public string userProvince; |
| | | @AuraEnabled |
| | | public string userJobCategory; |
| | | } |
| | | } |
| New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <ApexClass xmlns="http://soap.sforce.com/2006/04/metadata"> |
| | | <apiVersion>57.0</apiVersion> |
| | | <status>Active</status> |
| | | </ApexClass> |
| | |
| | | public static InitData init(String recordId){ |
| | | InitData res = new initData(); |
| | | try{ |
| | | Repair__c report = [SELECT AWS_Data_Id__c,SAP_condition__c,DOJ_Status__c,DW_Sign__c,Incharge_Staff__r.Id,URF_Reapir__c,Recall_Correspondence__c,Day_later_30__c,Dealer__r.Id,Status__c,URFLimitSerial__c,Maintenance_Contract__r.Id,FSE_ApplyForRepair_time__c,Delivered_Product__r.Id,Asset_Owner__c,State_Hospital__c,is_aohui_product__c,Sales_Dept_HP__c,RCCD__c,Quick_Repair_Sign__c,RepairSource__c,FSE_State__c,VM_Maintenance_Contract__c,Maintenance_Contract__c,NewProductGuarante_Txt__c,Number_of_EffectiveContract__c,Detailed_Address__c,Status1__c,Rental_Apply_Equipment_Set_Detail__c,Rental_Apply_Equipment_Set_Detail_Id__c,Latest_Collect_Date_Priority__c,if_Rental_Apply__c,Offer_Rental_New__c,ProduceCompany_hand__c,CFDA_No_Hand__c,MBC_AwareDate__c,InsReport__c,QIS_ID__c,On_Call_ID__c,RepairSubOrder__c,ProductFailureRelated__c,Delay15Min__c,ProblemOccurredSelect__c,Repair_Source__c ,Failure_Occurrence_Date__c ,MaintenanceContractType__c ,OperationOrExaminationName__c ,WhatProject__c ,FailureQInHospital__c ,ReportAdverseEvents__c ,InformationFrom__c ,AfterFailureInformation__c ,ProblemOccurred__c ,SupportingProducts__c ,ifDeadHurt__c ,UseFailProductFinish__c ,DelayReportReason__c ,BreakORFallOff__c ,DateReceiptQuestions__c ,DeliveryLogisticsAnnotation__c ,DeliveryLogisticsNo__c ,engineerSendDate__c ,DeliveryLogisticsMode__c ,RepairApplicantDepartment__c ,RepairApplicantHospital__c ,RepairApplicant__c ,Repair_Detail__c ,Returns_Product_way__c ,work_location_select__c ,On_site_repair__c ,SalesOfficeCode_selection__c ,Incharge_Staff_Contact__c ,Incharge_Staff__c ,Dealer__c ,RepairCostType__c ,Account__c,Department_Class__c ,Hospital__c ,PaperRepairRequestNo__c ,part_arrangement_complete__c,Repair_Shipped_Date__c,OCSMAdministrativeReportStatus__c,Incharge_Staff_Email__c,Name,HP_Name__c,Delivered_Product__c, |
| | | Repair__c report = [SELECT HP_active__c,AWS_Data_Id__c,SAP_condition__c,DOJ_Status__c,DW_Sign__c,Incharge_Staff__r.Id,URF_Reapir__c,Recall_Correspondence__c,Day_later_30__c,Dealer__r.Id,Status__c,URFLimitSerial__c,Maintenance_Contract__r.Id,FSE_ApplyForRepair_time__c,Delivered_Product__r.Id,Asset_Owner__c,State_Hospital__c,is_aohui_product__c,Sales_Dept_HP__c,RCCD__c,Quick_Repair_Sign__c,RepairSource__c,FSE_State__c,VM_Maintenance_Contract__c,Maintenance_Contract__c,NewProductGuarante_Txt__c,Number_of_EffectiveContract__c,Detailed_Address__c,Status1__c,Rental_Apply_Equipment_Set_Detail__c,Rental_Apply_Equipment_Set_Detail_Id__c,Latest_Collect_Date_Priority__c,if_Rental_Apply__c,Offer_Rental_New__c,ProduceCompany_hand__c,CFDA_No_Hand__c,MBC_AwareDate__c,InsReport__c,QIS_ID__c,On_Call_ID__c,RepairSubOrder__c,ProductFailureRelated__c,Delay15Min__c,ProblemOccurredSelect__c,Repair_Source__c ,Failure_Occurrence_Date__c ,MaintenanceContractType__c ,OperationOrExaminationName__c ,WhatProject__c ,FailureQInHospital__c ,ReportAdverseEvents__c ,InformationFrom__c ,AfterFailureInformation__c ,ProblemOccurred__c ,SupportingProducts__c ,ifDeadHurt__c ,UseFailProductFinish__c ,DelayReportReason__c ,BreakORFallOff__c ,DateReceiptQuestions__c ,DeliveryLogisticsAnnotation__c ,DeliveryLogisticsNo__c ,engineerSendDate__c ,DeliveryLogisticsMode__c ,RepairApplicantDepartment__c ,RepairApplicantHospital__c ,RepairApplicant__c ,Repair_Detail__c ,Returns_Product_way__c ,work_location_select__c ,On_site_repair__c ,SalesOfficeCode_selection__c ,Incharge_Staff_Contact__c ,Incharge_Staff__c ,Dealer__c ,RepairCostType__c ,Account__c,Department_Class__c ,Hospital__c ,PaperRepairRequestNo__c ,part_arrangement_complete__c,Repair_Shipped_Date__c,OCSMAdministrativeReportStatus__c,Incharge_Staff_Email__c,Name,HP_Name__c,Delivered_Product__c, |
| | | Repair_Product_Serial_No__c,Service_Repair_No__c,Repair_Firstestimated_Date__c, |
| | | Repair_Estimated_Date__c,RC_information__c,Id,OCSMAdministrativeReportNumber__c, |
| | | OCSMAdministrativeReportDate__c,Aware_date__c,PAE_Determine__c,ETQ_UPLOAD_STATUS__c, |
| | | AE_DetermineResult__c,PAE_DetermineAC__c,Repair_Inspection_Date__c,Contain_UseRSA__c FROM Repair__c WHERE Id =: recordId LIMIT 1]; |
| | | System.debug(LoggingLevel.INFO, '*** opp: ' + report); |
| | | res.HPActiveC = report.HP_active__c; |
| | | res.detailedAddress = report.Detailed_Address__c; |
| | | res.numberofEffectiveContract = report.Number_of_EffectiveContract__c; |
| | | res.newProductGuaranteTxt = report.NewProductGuarante_Txt__c; |
| | |
| | | |
| | | public class InitData{ |
| | | @AuraEnabled |
| | | public String HPActiveC; |
| | | @AuraEnabled |
| | | public String detailedAddress; |
| | | @AuraEnabled |
| | | public String numberofEffectiveContract; |
| | |
| | | <apex:repeat value="{!titleRight}" var="t"> |
| | | <!-- 20230511 ljh lightning start --> |
| | | <!-- <td class="col_{!columnRightCss[cnt]} "> --> |
| | | <td class="col_{!columnRightCss[cnt]} colViewing" onclick ="test(this);return false;"> |
| | | <td class="col_{!columnRightCss[cnt]} colViewing" onclick ="ToggleWidth(this);return false;"> |
| | | <!-- 20230511 ljh lightning end --> |
| | | <apex:outputPanel layout="none" rendered="{!Not(noSortHeader)}"> |
| | | <a href="#" name="out_Div_a" onclick="sortTableJs('{!cnt + titleLeft.size}');return false;" style="text-decoration: underline;"> |
| | |
| | | <!-- 左 データリスト --> |
| | | <div id="in_Div_L"> |
| | | <!-- 20230512 ljh lightning add table-layout:fixed" --> |
| | | <table class="list" style="border-bottom-width: 0px; font-size:11px; border-spacing:0;table-layout:fixed" border="" id="tableData_L"> |
| | | <table class="list" style="border-bottom-width: 0px; font-size:11px; border-spacing:0;table-layout:fixed;" border="" id="tableData_L"> |
| | | <apex:variable value="{!1}" var="cnt" /> |
| | | <apex:repeat value="{!pageController.viewList}" var="or" id="oppTable_L"> |
| | | <tr class="dataRow {!IF(MOD(cnt, 2)==0, 'odd', 'even')} {!IF(cnt==1, 'first', '')}" onmouseover="if (window.hiOn){hiOn(this);} " onmouseout="if (window.hiOff){hiOff(this);} " onblur="if (window.hiOff){hiOff(this);}" onfocus="if (window.hiOn){hiOn(this);}"> |
| | | |
| | | <apex:outputPanel layout="none" rendered="{!hasChkBox}"> |
| | | <!-- 20230512 ljh lightning add style="width:32px;" --> |
| | | <td class="dataCellBorder1" style="width:32px;" align="center"> |
| | | <td class="dataCellBorder1" style="width:32px;height:38px;" align="center"> |
| | | <apex:outputPanel layout="none" rendered="{!Not(isRadioBox)}"> |
| | | <apex:inputCheckbox value="{!or.check}" id="rowCheck" styleClass="rowchkcls" disabled="{!!or.canEdit}" onchange="setChangeFlg('{!or.lineNo}')"/> |
| | | </apex:outputPanel> |
| | |
| | | </td> |
| | | </apex:outputPanel> |
| | | <apex:outputPanel layout="none" rendered="{!Not(hasChkBox)}"> |
| | | <td class="col_noChk"> |
| | | <!-- 20230602 ljh 高度固定 38px; --> |
| | | <td class="col_noChk" style="height: 38px;"> |
| | | <apex:inputCheckbox value="{!or.check}" styleClass="rowchkcls" style="display:none"/> |
| | | <apex:inputText value="{!or.orderNo}" styleClass="ordernocls" style="display:none"/> |
| | | </td> |
| | |
| | | |
| | | <apex:variable value="{!0}" var="cnt_2" /> |
| | | <apex:repeat value="{!columnsLeftApi}" var="c"> |
| | | <td class="dataCellBorder1 col_{!columnLeftCss[cnt_2]}"> |
| | | <!-- 20230602 ljh 高度固定 38px; --> |
| | | <td class="dataCellBorder1 col_{!columnLeftCss[cnt_2]}" style="height: 38px;"> |
| | | <apex:outputPanel rendered="{!(c.size==1 && columnLeftRW[c[0]]=='r')}" layout="none"> |
| | | <!-- in_Div_LのAccount名は特殊対応、リンクにする --> |
| | | <apex:outputPanel rendered="{!c[0]=='Name'}" layout="none"> |
| | |
| | | <tr class="dataRow {!IF(MOD(cnt, 2)==0, 'odd', 'even')} {!IF(cnt==1, 'first', '')}" onmouseover="if (window.hiOn){hiOn(this);} " onmouseout="if (window.hiOff){hiOff(this);} " onblur="if (window.hiOff){hiOff(this);}" onfocus="if (window.hiOn){hiOn(this);}"> |
| | | <apex:variable value="{!0}" var="cnt_3" /> |
| | | <apex:repeat value="{!columnsRightApi}" var="c"> |
| | | <td class="dataCellBorder1 col_{!columnRightCss[cnt_3]}"> |
| | | <td class="dataCellBorder1 col_{!columnRightCss[cnt_3]}" style="height: 38px;"> |
| | | <apex:outputPanel rendered="{!(c.size==1 && columnRightRW[c[0]]=='r')}" layout="none"> |
| | | <apex:outputField value="{!or.sobj[c[0]]}"/> |
| | | </apex:outputPanel> |
| | |
| | | } |
| | | // 20230523 ljh lightning start |
| | | if(i == 0){ |
| | | sbwidth = scrollbarWidth(); |
| | | i++; |
| | | tableWidth = j$('body .pbBody table#tableHeader').width(); |
| | | // var widthTemp = 0; |
| | | j$('body .pbBody table#tableHeader tr.headerRow td').each(function() { |
| | | var colClass = getColClassName(this); |
| | | if (colClass != 'col_Scroll') { |
| | | listColClassWidthMap[colClass] = j$('body .pbBody table.list tr.headerRow td.' + colClass).width(); |
| | | var temp = j$('body .pbBody table.list tr.headerRow td.' + colClass).width(); |
| | | listColClassWidthMap[colClass] = temp; |
| | | //widthTemp += temp; |
| | | } |
| | | }); |
| | | i++; |
| | | var blockWidthNew = j$(escapeVfId('allPage:allForm:searchBlock')).width() - j$('div#out_Div_L').width()-sbwidth; |
| | | // console.log(widthTemp+'~'+blockWidthNew+'~'+tableWidth); |
| | | var tableHeader_L = j$(escapeVfId('tableHeader_L')).width(); |
| | | j$('div#in_Div_L').css('width', tableHeader_L+ 'px'); |
| | | j$('table#tableData_L').css('width', tableHeader_L + 'px'); |
| | | // j$('table#tableHeader').css('width', (tableWidth + 2) + 'px'); |
| | | if(tableWidth > blockWidthNew){ |
| | | j$('div#in_Div').css('width', blockWidthNew + 'px'); // 20230519 ljh |
| | | j$('div#out_Div').css('width', blockWidthNew + 'px'); // 20230519 ljh |
| | | } |
| | | j$('div#in_Div').scroll(function() { |
| | | j$('div#out_Div').scrollLeft(j$(this).scrollLeft()); |
| | | j$('div#in_Div_L').scrollTop(j$(this).scrollTop()); |
| | | }); |
| | | j$('div#out_Div').scroll(function() { |
| | | j$('div#in_Div').scrollLeft(j$(this).scrollLeft()); |
| | | }); |
| | | j$('div#in_Div_L').scroll(function() { |
| | | j$('div#in_Div').scrollTop(j$(this).scrollTop()); |
| | | }); |
| | | |
| | | } |
| | | // windowResize(); |
| | | |
| | | // スクロール連動 |
| | | j$('div#in_Div').scroll(function() { |
| | | j$('div#out_Div').scrollLeft(j$(this).scrollLeft()); |
| | | j$('div#in_Div_L').scrollTop(j$(this).scrollTop()); |
| | | }); |
| | | j$('div#out_Div').scroll(function() { |
| | | j$('div#in_Div').scrollLeft(j$(this).scrollLeft()); |
| | | }); |
| | | j$('div#in_Div_L').scroll(function() { |
| | | j$('div#in_Div').scrollTop(j$(this).scrollTop()); |
| | | }); |
| | | // j$('div#in_Div').scroll(function() { |
| | | // j$('div#out_Div').scrollLeft(j$(this).scrollLeft()); |
| | | // j$('div#in_Div_L').scrollTop(j$(this).scrollTop()); |
| | | // }); |
| | | // j$('div#out_Div').scroll(function() { |
| | | // j$('div#in_Div').scrollLeft(j$(this).scrollLeft()); |
| | | // }); |
| | | // j$('div#in_Div_L').scroll(function() { |
| | | // j$('div#in_Div').scrollTop(j$(this).scrollTop()); |
| | | // }); |
| | | // 20230523 ljh lightning end |
| | | }); |
| | | |
| New file |
| | |
| | | .holder{ |
| | | position: relative; |
| | | display: inline-block; |
| | | width: 80px; |
| | | height: 80px; |
| | | text-align: center; |
| | | } |
| | | |
| | | .container .uiContainerManager{ |
| | | display : none !important; |
| | | } |
| | | .toast{ |
| | | border: 1px solid #c9c9c9; |
| | | border-radius: 10px; |
| | | width: 50%; |
| | | margin: 0 auto; |
| | | font-size: 18px; |
| | | font-weight: bold; |
| | | padding: 10px 20px; |
| | | background: #feb75d; |
| | | display: flex; |
| | | } |
| | |
| | | <template> |
| | | <div class="exampleHolder" if:true={IsLoading}> |
| | | <div class="holder" if:true={IsLoading}> |
| | | <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner> |
| | | </div> |
| | | </template> |
| | | <div if:false={IsLoading} class="toast"> |
| | | <span style="padding: 10px;">{msg}</span> |
| | | <button class="slds-button slds-button_icon slds-modal__close slds-button_icon-inverse" onclick={closeAction} title="Close" style="background-color: #e5e4e2;margin-top: 15px;"> |
| | | <lightning-icon class="greyIcon" icon-name="utility:close" alternative-text="Connected" variant="inverse" size="small" |
| | | title="Close" style="color: black;"></lightning-icon> |
| | | <span class="slds-assistive-text">Close</span> |
| | | </button> |
| | | </div> |
| | | </template> |
| | |
| | | export default class LexAccessory_Add extends LightningElement { |
| | | @api recordId; |
| | | IsLoading = true; |
| | | @api rentalApplyEquipmentSetDetailIds; |
| | | msg; |
| | | |
| | | @wire(CurrentPageReference) |
| | | getStateParameters(currentPageReference) { |
| | | console.log(111); |
| | | console.log(currentPageReference); |
| | | if (currentPageReference) { |
| | | const urlValue = currentPageReference.state.recordId; |
| | | if (urlValue) { |
| | | let str = `${urlValue}`; |
| | | this.recordId = str; |
| | | this.connectedCallback(); |
| | | } |
| | | } |
| | | } |
| | | |
| | | connectedCallback(){ |
| | | this.IsLoading = false; |
| | | if (this.recordId.length == 0) { |
| | | this.ShowToastEvent("请选择一个借出备品配套一览明细信息", "warning"); |
| | | if (this.rentalApplyEquipmentSetDetailIds == undefined || this.rentalApplyEquipmentSetDetailIds.length == 0) { |
| | | this.msg = "请选择一个借出备品配套一览明细信息"; |
| | | return; |
| | | } else { |
| | | window.open("/apex/AccessoryAdd?recid=" + this.recordId, "_top"); |
| | | window.open("/apex/AccessoryAdd?recid=" + this.rentalApplyEquipmentSetDetailIds, "_top"); |
| | | this.closeAction(); |
| | | } |
| | | } |
| | | |
| | | //弹框 |
| | | ShowToastEvent(msg,type) { |
| | | const event = new ShowToastEvent({ |
| | | title: '', |
| | | message: msg, |
| | | variant: type |
| | | }); |
| | | this.dispatchEvent(event); |
| | | closeAction() { |
| | | //返回当前的备品申请 |
| | | window.open("/"+this.recordId,'_self'); |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata"> |
| | | <apiVersion>54.0</apiVersion> |
| | | <isExposed>true</isExposed> |
| | | <targets> |
| | | <target>lightning__RecordPage</target> |
| | | <target>lightning__AppPage</target> |
| | | <target>lightning__HomePage</target> |
| | | <target>lightning__RecordAction</target> |
| | | </targets> |
| | | <LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata" fqn="lexEquipmentRentalApply_FromSA"> |
| | | <apiVersion>56.0</apiVersion> |
| | | <isExposed>true</isExposed> |
| | | <targets> |
| | | <target>lightning__AppPage</target> |
| | | <target>lightning__RecordPage</target> |
| | | <target>lightning__HomePage</target> |
| | | <target>lightning__RecordAction</target> |
| | | <!-- 屏幕流配置 --> |
| | | <target>lightning__FlowScreen</target> |
| | | </targets> |
| | | <!-- 定义变量 --> |
| | | <targetConfigs> |
| | | <targetConfig targets="lightning__FlowScreen"> |
| | | <!-- name js中使用的变量,从屏幕流中获取参数 label 在屏幕流的该LWC的设置中显示 --> |
| | | <property name="recordId" type="String" label="recordId"/> |
| | | <property name="rentalApplyEquipmentSetDetailIds" type="String[]" label="rentalApplyEquipmentSetDetailIds"/> |
| | | </targetConfig> |
| | | </targetConfigs> |
| | | </LightningComponentBundle> |
| | |
| | | } |
| | | |
| | | connectedCallback(){ |
| | | console.log("---------------id-------",this.recordId); |
| | | this.IsLoading = false; |
| | | if(this.recordId){ |
| | | window.open("/apex/AccessorySelect?pt_recid="+this.recordId, "_top"); |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata"> |
| | | <apiVersion>54.0</apiVersion> |
| | | <isExposed>true</isExposed> |
| | | <targets> |
| | | <target>lightning__RecordPage</target> |
| | | <target>lightning__AppPage</target> |
| | | <target>lightning__HomePage</target> |
| | | <target>lightning__RecordAction</target> |
| | | </targets> |
| | | <LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata" fqn="lexEquipmentRentalApply_FromSA"> |
| | | <apiVersion>56.0</apiVersion> |
| | | <isExposed>true</isExposed> |
| | | <targets> |
| | | <target>lightning__AppPage</target> |
| | | <target>lightning__RecordPage</target> |
| | | <target>lightning__HomePage</target> |
| | | <target>lightning__RecordAction</target> |
| | | <!-- 屏幕流配置 --> |
| | | <target>lightning__FlowScreen</target> |
| | | </targets> |
| | | <!-- 定义变量 --> |
| | | <targetConfigs> |
| | | <targetConfig targets="lightning__FlowScreen"> |
| | | <!-- name js中使用的变量,从屏幕流中获取参数 label 在屏幕流的该LWC的设置中显示 --> |
| | | <property name="recordId" type="String" label="recordId"/> |
| | | </targetConfig> |
| | | </targetConfigs> |
| | | </LightningComponentBundle> |
| | |
| | | } |
| | | }).catch(error => { |
| | | console.log(error); |
| | | }).finally(() => { |
| | | |
| | | }); |
| | | }) |
| | | } |
| | | |
| | | //直返收货地址 |
| | |
| | | var status = this.StatusC; |
| | | if (status != '待处理') { |
| | | this.ShowToastEvent("报修子单的状态不是 待处理 无法申请修理", "error") |
| | | // alert('报修子单的状态不是 待处理 无法申请修理'); |
| | | return; |
| | | } |
| | | var url = '/apex/ChoiceAsset?Id=' + this.Id + '&Type=Repair'; |
| | |
| | | /* |
| | | * @Description: |
| | | * @Author: [lijinhuan] |
| | | * @Date: 2023-04-26 14:14:37 |
| | | * @LastEditors: [lijinhuan] |
| | | * @LastEditTime: 2023-06-24 18:04:14 |
| | | */ |
| | | import { LightningElement,api, track, wire } from 'lwc'; |
| | | import {CurrentPageReference} from 'lightning/navigation'; |
| | | import { CloseActionScreenEvent } from 'lightning/actions'; |
| | |
| | | id; |
| | | RentalApplyId; |
| | | Status; |
| | | @wire(CurrentPageReference) |
| | | getStateParameters(currentPageReference){ |
| | | console.log("进入页面"); |
| | | console.log(currentPageReference); |
| | | if(currentPageReference){ |
| | | const urvalue=currentPageReference.state.recordId; |
| | | if(urvalue){ |
| | | let str=`${urvalue}`; |
| | | console.log('str'); |
| | | console.log(str); |
| | | this.recordId=str; |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | connectedCallback(){ |
| | | console.log(this.recordId); |
| | | init({recordId:this.recordId}).then(result=>{ |
| | | console.log(result); |
| | | if(result!=null){ |
| | | this.id=result.id; |
| | | this.RentalApplyId=result.RentalApplyId; |
| | | this.Status=result.Status; |
| | | this.cancelSubmit().then(res=>{ |
| | | this.IsLoading=false; |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | }); |
| | | } |
| | | }).catch(err=>{ |
| | | console.log("error:"); |
| | | console.log(err); |
| | | }).finally(()=>{ |
| | | |
| | | }); |
| | | // window.open("/apex/EquipmentRentalCancel?raid="+this.recordId,'cancelSelect','width=500,height=250'); |
| | | window.open("/apex/EquipmentRentalCancel?raid="+this.recordId); |
| | | this.closeAction(); |
| | | } |
| | | |
| | | async cancelSubmit(){ |
| | | window.open("/apex/EquipmentRentalCancel?raid="+this.RentalApplyId,'cancelSelect','width=500,height=250'); |
| | | closeAction() { |
| | | //返回当前的备品申请 |
| | | window.open("/"+this.recordId,'_self'); |
| | | } |
| | | } |
| New file |
| | |
| | | <template> |
| | | <div class="dispatchOCSMQARAHolder" if:true={IsLoading}> |
| | | <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner> |
| | | </div> |
| | | </template> |
| New file |
| | |
| | | import { LightningElement,wire,track,api} from 'lwc'; |
| | | import { CurrentPageReference, NavigationMixin} from "lightning/navigation"; |
| | | import { CloseActionScreenEvent } from 'lightning/actions'; |
| | | import init from '@salesforce/apex/lexConsumApply_FromAccountCtl.init'; |
| | | import fieldDefineApp from '@salesforce/apex/lexConsumApply_FromAccountCtl.fieldDefineApp'; |
| | | import UserInfo_Owner from '@salesforce/apex/lexConsumApply_FromAccountCtl.UserInfo_Owner'; |
| | | import { ShowToastEvent } from 'lightning/platformShowToastEvent'; |
| | | import { encodeDefaultFieldValues } from 'lightning/pageReferenceUtils'; |
| | | |
| | | export default class LexConsumApply_FromAccount extends LightningElement { |
| | | |
| | | @api recordId; |
| | | IsLoading = true; |
| | | |
| | | @wire(CurrentPageReference) |
| | | getStateParameters(currentPageReference) { |
| | | console.log(111); |
| | | console.log(currentPageReference); |
| | | |
| | | if (currentPageReference) { |
| | | const urlValue = currentPageReference.state.recordId; |
| | | if (urlValue) { |
| | | let str = `${urlValue}`; |
| | | console.log("str"); |
| | | console.log(str); |
| | | this.recordId = str; |
| | | } |
| | | } |
| | | } |
| | | |
| | | connectedCallback(){ |
| | | console.log(this.recordId); |
| | | init({ |
| | | recordId: this.recordId |
| | | }).then(result=>{ |
| | | UserInfo_Owner({}).then(res=>{ |
| | | if(res.isFormalStuff == 'true'){ |
| | | this.showToast('试用期内,不能申请','warning'); |
| | | return; |
| | | }else{ |
| | | |
| | | fieldDefineApp({}).then(resp=>{ |
| | | var fieldmap = new Map(); |
| | | for (var i=0; i< resp.length; i++) { |
| | | var record = resp[i]; |
| | | fieldmap.set(record.QualifiedApiName,record.DurableId.toString().split('.')[1]); |
| | | } |
| | | |
| | | }) |
| | | .catch(e=>{console.log(e)}) |
| | | |
| | | const defaultValues = encodeDefaultFieldValues({ |
| | | Hospital__c:result.hospitalName, |
| | | Strategic_dept__c:result.departClass, |
| | | Account__c:result.name, |
| | | Name:'*', |
| | | demo_purpose2__c:'OPD试用', |
| | | Person_In_Charge__c:res.lastName + res.firstName, |
| | | applyUser__c:res.lastName + res.firstName |
| | | }); |
| | | |
| | | this[NavigationMixin.Navigate]({ |
| | | type: 'standard__objectPage', |
| | | attributes: { |
| | | objectApiName: 'Consum_Apply__c', |
| | | actionName: 'new' |
| | | }, |
| | | state:{ |
| | | defaultFieldValues: this.defaultValues |
| | | } |
| | | }) |
| | | } |
| | | }) |
| | | .catch(error => { |
| | | console.log("error"); |
| | | console.log(error); |
| | | }) |
| | | }) |
| | | |
| | | .catch(error => { |
| | | console.log("error"); |
| | | console.log(error); |
| | | }).finally(() => { |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | }); |
| | | } |
| | | |
| | | showToast(message, type) { |
| | | const evt = new ShowToastEvent({ |
| | | title: '', |
| | | message: message, |
| | | variant: type |
| | | }); |
| | | this.dispatchEvent(evt); |
| | | } |
| | | |
| | | } |
| New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata" fqn="lexEquipmentRentalApply_FromSA"> |
| | | <apiVersion>56.0</apiVersion> |
| | | <isExposed>true</isExposed> |
| | | <targets> |
| | | <target>lightning__AppPage</target> |
| | | <target>lightning__RecordPage</target> |
| | | <target>lightning__HomePage</target> |
| | | <target>lightning__RecordAction</target> |
| | | <!-- 屏幕流配置 --> |
| | | <target>lightning__FlowScreen</target> |
| | | </targets> |
| | | <!-- 定义变量 --> |
| | | <targetConfigs> |
| | | <targetConfig targets="lightning__FlowScreen"> |
| | | <!-- name js中使用的变量,从屏幕流中获取参数 label 在屏幕流的该LWC的设置中显示 --> |
| | | <property name="recordId" type="String" label="recordId"/> |
| | | </targetConfig> |
| | | </targetConfigs> |
| | | </LightningComponentBundle> |
| New file |
| | |
| | | <template> |
| | | <div class="dispatchOCSMQARAHolder" if:true={IsLoading}> |
| | | <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner> |
| | | </div> |
| | | </template> |
| New file |
| | |
| | | import { LightningElement,wire,track,api} from 'lwc'; |
| | | import { CurrentPageReference, NavigationMixin} from "lightning/navigation"; |
| | | import { CloseActionScreenEvent } from 'lightning/actions'; |
| | | import init from '@salesforce/apex/lexConsumApply_FromOPDPlanCtl.init'; |
| | | import fieldDefineApp from '@salesforce/apex/lexConsumApply_FromOPDPlanCtl.fieldDefineApp'; |
| | | import UserInfo_Owner from '@salesforce/apex/lexConsumApply_FromOPDPlanCtl.UserInfo_Owner'; |
| | | import { ShowToastEvent } from 'lightning/platformShowToastEvent'; |
| | | import { encodeDefaultFieldValues } from 'lightning/pageReferenceUtils'; |
| | | |
| | | export default class LexConsumApply_FromOPDPlan extends LightningElement { |
| | | @api recordId; |
| | | IsLoading = true; |
| | | |
| | | @wire(CurrentPageReference) |
| | | getStateParameters(currentPageReference) { |
| | | console.log(111); |
| | | console.log(currentPageReference); |
| | | |
| | | if (currentPageReference) { |
| | | const urlValue = currentPageReference.state.recordId; |
| | | if (urlValue) { |
| | | let str = `${urlValue}`; |
| | | console.log("str"); |
| | | console.log(str); |
| | | this.recordId = str; |
| | | } |
| | | } |
| | | } |
| | | |
| | | connectedCallback(){ |
| | | console.log(this.recordId); |
| | | init({ |
| | | recordId: this.recordId |
| | | }).then(result=>{ |
| | | UserInfo_Owner({}).then(res=>{ |
| | | if(res.isFormalStuff == 'true'){ |
| | | this.showToast('试用期内,不能申请','warning'); |
| | | return; |
| | | }else{ |
| | | |
| | | fieldDefineApp({}).then(resp=>{ |
| | | var fieldmap = new Map(); |
| | | for (var i=0; i< resp.length; i++) { |
| | | var record = resp[i]; |
| | | fieldmap.set(record.QualifiedApiName,record.DurableId.toString().split('.')[1]); |
| | | } |
| | | |
| | | }) |
| | | .catch(e=>{console.log(e)}) |
| | | |
| | | const defaultValues = encodeDefaultFieldValues({ |
| | | OPD__c: result.opdPlan, |
| | | OPDPlan__c: result.name, |
| | | Rental_Apply__c:result.rentalApply2, |
| | | Hospital__c:result.hospitalName, |
| | | Strategic_dept__c:result.ocmCategoryName, |
| | | Account__c:result.accountLab, |
| | | Name:'*', |
| | | demo_purpose2__c:'OPD试用', |
| | | Person_In_Charge__c:res.lastName + res.firstName, |
| | | applyUser__c:res.lastName + res.firstName |
| | | }); |
| | | |
| | | this[NavigationMixin.Navigate]({ |
| | | type: 'standard__objectPage', |
| | | attributes: { |
| | | objectApiName: 'Consum_Apply__c', |
| | | actionName: 'new' |
| | | }, |
| | | state:{ |
| | | defaultFieldValues: this.defaultValues |
| | | } |
| | | }) |
| | | } |
| | | }) |
| | | .catch(error => { |
| | | console.log("error"); |
| | | console.log(error); |
| | | }) |
| | | }) |
| | | |
| | | .catch(error => { |
| | | console.log("error"); |
| | | console.log(error); |
| | | }).finally(() => { |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | }); |
| | | } |
| | | |
| | | showToast(message, type) { |
| | | const evt = new ShowToastEvent({ |
| | | title: '', |
| | | message: message, |
| | | variant: type |
| | | }); |
| | | this.dispatchEvent(evt); |
| | | } |
| | | |
| | | } |
| New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata" fqn="lexEquipmentRentalApply_FromSA"> |
| | | <apiVersion>56.0</apiVersion> |
| | | <isExposed>true</isExposed> |
| | | <targets> |
| | | <target>lightning__AppPage</target> |
| | | <target>lightning__RecordPage</target> |
| | | <target>lightning__HomePage</target> |
| | | <target>lightning__RecordAction</target> |
| | | <!-- 屏幕流配置 --> |
| | | <target>lightning__FlowScreen</target> |
| | | </targets> |
| | | <!-- 定义变量 --> |
| | | <targetConfigs> |
| | | <targetConfig targets="lightning__FlowScreen"> |
| | | <!-- name js中使用的变量,从屏幕流中获取参数 label 在屏幕流的该LWC的设置中显示 --> |
| | | <property name="recordId" type="String" label="recordId"/> |
| | | </targetConfig> |
| | | </targetConfigs> |
| | | </LightningComponentBundle> |
| New file |
| | |
| | | <template> |
| | | <div class="dispatchOCSMQARAHolder" if:true={IsLoading}> |
| | | <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner> |
| | | </div> |
| | | </template> |
| New file |
| | |
| | | import { LightningElement,wire,track,api} from 'lwc'; |
| | | import { CurrentPageReference, NavigationMixin} from "lightning/navigation"; |
| | | import { CloseActionScreenEvent } from 'lightning/actions'; |
| | | import init from '@salesforce/apex/LexConsumApply_FromQISCtl.init'; |
| | | import rentalApp from '@salesforce/apex/LexConsumApply_FromQISCtl.rentalApp'; |
| | | import fieldDefineApp from '@salesforce/apex/LexConsumApply_FromQISCtl.fieldDefineApp'; |
| | | import UserInfo_Owner from '@salesforce/apex/LexConsumApply_FromQISCtl.UserInfo_Owner'; |
| | | import { ShowToastEvent } from 'lightning/platformShowToastEvent'; |
| | | import { encodeDefaultFieldValues } from 'lightning/pageReferenceUtils'; |
| | | |
| | | export default class LexConsumApply_FromQIS extends LightningElement { |
| | | |
| | | @api recordId; |
| | | IsLoading = true; |
| | | |
| | | @wire(CurrentPageReference) |
| | | getStateParameters(currentPageReference) { |
| | | console.log(111); |
| | | console.log(currentPageReference); |
| | | |
| | | if (currentPageReference) { |
| | | const urlValue = currentPageReference.state.recordId; |
| | | if (urlValue) { |
| | | let str = `${urlValue}`; |
| | | console.log("str"); |
| | | console.log(str); |
| | | this.recordId = str; |
| | | } |
| | | } |
| | | } |
| | | |
| | | connectedCallback(){ |
| | | console.log(this.recordId); |
| | | rentalApp({ |
| | | recordId: this.recordId |
| | | }).then(result => { |
| | | console.log('rentalApp============' + result); |
| | | if(result.lenth > 0){ |
| | | const evt = new ShowToastEvent({ |
| | | title : 'Error', |
| | | message : '同一个QIS记录不能重复申请备品', |
| | | variant : 'error' |
| | | }); |
| | | this.dispatchEvent(evt); |
| | | return; |
| | | } |
| | | init({ |
| | | recordId: this.recordId |
| | | }).then(result => { |
| | | this.IsLoading = false; |
| | | if (result != null) { |
| | | if(result.nextAction=='送回'){ |
| | | this.showToast('QIS对应方法为“送回”,不能申请','warning'); |
| | | return; |
| | | } |
| | | if(result.qISStatus=='草案中'){ |
| | | this.showToast('QIS状态为草案中,不能申请','warning'); |
| | | return; |
| | | } |
| | | if(result.qISStatus=='FSE填写完毕'){ |
| | | this.showToast('QIS状态为FSE填写完毕,不能申请','warning'); |
| | | return; |
| | | } |
| | | if(result.qISStatus=='取消'){ |
| | | this.showToast('QIS状态为取消,不能申请','warning'); |
| | | return; |
| | | } |
| | | // if('{!$User.isFormal_Stuff__c}'=='true'){ |
| | | // alert('试用期内,不能申请'); |
| | | // }else{ |
| | | // var url = "/a0t/e?retURL=%2F{!URLENCODE(QIS_Report__c.Id)}&CF00N10000003Mp1d={!URLENCODE(QIS_Report__c.Hospital__c)}&CF00N10000003Mp1d_lkid={!URLENCODE(QIS_Report__c.HospitalId__c)}&CF00N10000003O3V6={!URLENCODE(QIS_Report__c.Department_Class__c)}&CF00N10000003O3V6_lkid={!URLENCODE(QIS_Report__c.Department_ClassId__c)}&CF00N10000003Mp2R={!URLENCODE(QIS_Report__c.Hospital_Department__c)}&CF00N10000003Mp2R_lkid={!URLENCODE(QIS_Report__c.Hospital_DepartmentId__c)}&00N10000003Msk0={!URLENCODE('维修代用')}&00N10000003Msk5={!URLENCODE('索赔QIS')}&Name={!URLENCODE('*')}&CF00N10000005HzRr={!URLENCODE($User.LastName&' '&$User.FirstName)}&CF00N10000005HzRr_lkid={!URLENCODE($User.Id)}&CF00N10000005HzRz={!URLENCODE($User.LastName&' '&$User.FirstName)}&CF00N10000005HzRz_lkid={!URLENCODE($User.Id)}&00N10000003OJzc={!URLENCODE($User.LastName&' '&$User.FirstName)}&CF00N10000004o2Mg={!URLENCODE(QIS_Report__c.Name)}&CF00N10000004o2Mg_lkid={!URLENCODE(QIS_Report__c.Id)}&CF00N10000008r73m={!URLENCODE( QIS_Report__c.Repair__c)}&CF00N10000008r73m_lkid={!URLENCODE( QIS_Report__c.RepairId__c )}&"; |
| | | // window.top.location.href=url; |
| | | // } |
| | | UserInfo_Owner({}).then(res=>{ |
| | | if(res.isFormalStuff == 'true'){ |
| | | this.showToast('试用期内,不能申请','warning'); |
| | | return; |
| | | }else{ |
| | | // var query = "Select QualifiedApiName, EntityDefinition.KeyPrefix, DurableId From FieldDefinition WHERE EntityDefinition.QualifiedApiName = 'Consum_Apply__c'"; |
| | | // var records = sforce.connection.query(query).getArray('records'); |
| | | // var prefix = records[0].EntityDefinition.KeyPrefix.toString(); |
| | | // var fieldmap = new Map(); |
| | | |
| | | // for (var i=0; i< records.length; i++) { |
| | | // var record = records[i]; |
| | | // fieldmap.set(record.QualifiedApiName,record.DurableId.toString().split('.')[1]); |
| | | // } |
| | | |
| | | fieldDefineApp({}).then(resp=>{ |
| | | var fieldmap = new Map(); |
| | | for (var i=0; i< resp.length; i++) { |
| | | var record = resp[i]; |
| | | fieldmap.set(record.QualifiedApiName,record.DurableId.toString().split('.')[1]); |
| | | } |
| | | |
| | | }) |
| | | .catch(e=>{console.log(e)}) |
| | | |
| | | const defaultValues = encodeDefaultFieldValues({ |
| | | QIS_Report__c: this.recordId, |
| | | Hospital: result.hospital, |
| | | Strategic_dept: result.departmentClass, |
| | | Account:result.hospitalDepartment, |
| | | demo_purpose2:'索赔QIS', |
| | | Name:'*', |
| | | Person_In_Charge:res.lastName + res.firstName, |
| | | applyUser:res.lastName + res.firstName, |
| | | QIS_number:result.name |
| | | }); |
| | | |
| | | this[NavigationMixin.Navigate]({ |
| | | type: 'standard__objectPage', |
| | | attributes: { |
| | | objectApiName: 'Consum_Apply__c', |
| | | actionName: 'new' |
| | | }, |
| | | state:{ |
| | | defaultFieldValues: this.defaultValues |
| | | } |
| | | }) |
| | | } |
| | | }) |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | // window.location.reload(); |
| | | } |
| | | }).catch(error => { |
| | | console.log("error"); |
| | | console.log(error); |
| | | }).finally(() => { |
| | | |
| | | }); |
| | | }).catch(error => { |
| | | console.log("error"); |
| | | console.log(error); |
| | | }).finally(() => { |
| | | |
| | | }); |
| | | } |
| | | |
| | | showToast(message, type) { |
| | | const evt = new ShowToastEvent({ |
| | | title: '', |
| | | message: message, |
| | | variant: type |
| | | }); |
| | | this.dispatchEvent(evt); |
| | | } |
| | | |
| | | } |
| New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata" fqn="lexEquipmentRentalApply_FromSA"> |
| | | <apiVersion>56.0</apiVersion> |
| | | <isExposed>true</isExposed> |
| | | <targets> |
| | | <target>lightning__AppPage</target> |
| | | <target>lightning__RecordPage</target> |
| | | <target>lightning__HomePage</target> |
| | | <target>lightning__RecordAction</target> |
| | | <!-- 屏幕流配置 --> |
| | | <target>lightning__FlowScreen</target> |
| | | </targets> |
| | | <!-- 定义变量 --> |
| | | <targetConfigs> |
| | | <targetConfig targets="lightning__FlowScreen"> |
| | | <!-- name js中使用的变量,从屏幕流中获取参数 label 在屏幕流的该LWC的设置中显示 --> |
| | | <property name="recordId" type="String" label="recordId"/> |
| | | </targetConfig> |
| | | </targetConfigs> |
| | | </LightningComponentBundle> |
| | |
| | | } from 'lightning/actions'; |
| | | import init from '@salesforce/apex/otherButtonRepairController.init'; |
| | | import { ShowToastEvent } from 'lightning/platformShowToastEvent'; |
| | | import { |
| | | NavigationMixin |
| | | } from 'lightning/navigation'; |
| | | import { |
| | | encodeDefaultFieldValues |
| | | } from 'lightning/pageReferenceUtils'; |
| | | |
| | | export default class LexCopyRepair extends LightningElement { |
| | | export default class LexCopyRepair extends NavigationMixin(LightningElement) { |
| | | @api recordId; |
| | | str; |
| | | IsLoading = true; |
| | |
| | | this.Status1C = result.Status1C; |
| | | |
| | | this.CopyRepair(); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | }).catch(error => { |
| | | console.log(error); |
| | |
| | | CopyRepair() { |
| | | var Status = this.Status1C; |
| | | if (Status == '0.删除' || Status == '0.取消') { |
| | | var url = "/a0J/e?00N10000009H2fa=" + this.Name + "&CF00N10000002Dx1X=" + this.DeliveredProductC + |
| | | "&CF00N10000002Dx1X_lkid=" + this.DeliveredProductC + "&00N10000006P1dw=" + this.PaperRepairRequestNoC + |
| | | "&CF00N10000002Dx66=" + this.HospitalC + "&CF00N10000002Dx5t=" + this.DepartmentClassC + |
| | | "&CF00N10000002Dx5n=" + this.AccountC + "&00N10000008rG4p=" + this.RepairCostTypeC + |
| | | "&CF00N10000006P1eV=" + this.DealerC + "&CF00N10000002EMHw=" + this.InchargeStaffC + |
| | | "&CF00N10000005HDvq=" + this.InchargeStaffContactC + "&00N10000006P6SM=" + this.SalesOfficeCodeSelectionC + |
| | | "&00N10000002F6dW=" + this.OnSiteRepairC + "&00N10000006P6Rn=" + this.workLocationSelectC + |
| | | "&00N10000009i1Z2=" + this.ReturnsProductWayC + "&00N10000002Dx6I=" + this.RepairDetailC + |
| | | "&00N10000009H1rQ=" + this.RepairApplicantC + "&00N10000009H1rP=" + this.RepairApplicantHospitalC + |
| | | "&00N10000009H1rO=" + this.RepairApplicantDepartmentC + "&00N10000009H1rB=" + this.DeliveryLogisticsModeC + |
| | | "&00N10000009H1rk=" + this.engineerSendDateC + "&00N10000009H1rC=" + this.DeliveryLogisticsNoC + |
| | | "&00N10000009H1rA=" + this.DeliveryLogisticsAnnotationC + "&00N10000008rsVQ=" + this.DateReceiptQuestionsC + |
| | | "&00N10000008rsVN=" + this.BreakORFallOffC + "&00N10000008rsVS=" + this.DelayReportReasonC + |
| | | "&00N10000008rsW5=" + this.UseFailProductFinishC + "&00N10000008rsW7=" + this.ifDeadHurtC + |
| | | "&00N10000008rsW4=" + this.SupportingProductsC + "&00N10000008rsVv=" + this.ProblemOccurredC + |
| | | "&00N10000008rsVL=" + this.AfterFailureInformationC + "&00N10000009hsvI=" + this.ProblemOccurredSelectC + |
| | | "&00N10000008rsVR=" + this.Delay15MinC + "&00N10000008rsVw=" + this.ProductFailureRelatedC + |
| | | "&00N10000008rsVZ=" + this.InformationFromC + "&00N10000008rsW2=" + this.ReportAdverseEventsC + |
| | | "&00N10000008rsVT=" + this.FailureQInHospitalC + "&00N10000008rsW6=" + this.WhatProjectC + |
| | | "&00N10000008rsVk=" + this.OperationOrExaminationNameC + "&00N10000008rWce=" + this.MaintenanceContractTypeC + |
| | | "&00N10000002Dx5y=" + this.FailureOccurrenceDateC + "&00N10000002FH86=" + this.RepairSourceC + |
| | | "&CF00N10000009H1rR=" + this.RepairSubOrderC + "&CF00N10000002FIJU=" + this.OnCallIDC + |
| | | "&CF00N10000002FIJZ=" + this.QISIDC + "&CF00N10000006PRCp=" + this.InsReportC + |
| | | "&00N10000008rsVM=" + this.AwareDateC + "&00N10000009GmI6=" + this.OCSMAdministrativeReportNumberC + |
| | | "&00N10000009GmI4=" + this.MBCAwareDateC + "&00N10000009GmI5=" + this.OCSMAdministrativeReportDateC + |
| | | "&00N10000009GmI7=" + this.OCSMAdministrativeReportStatusC + "&00N100000095siE=" + this.CFDANoHandC + |
| | | "&00N100000095shz=" + this.ProduceCompanyHandC + "&00N100000098PV9=" + this.OfferRentalNewC + |
| | | "&00N100000098PVA=" + this.ifRentalApplyC + "&00N10000006gZ4g=" + this.LatestCollectDatePriorityC + |
| | | "&00N10000007MNFW=" + this.RentalApplyEquipmentSetDetailIdC + |
| | | "&CF00N10000007MNFX=" + this.RentalApplyEquipmentSetDetailC + "&retURL=%2F" + this.Id; |
| | | window.open(url); |
| | | const url = encodeDefaultFieldValues({ |
| | | Old_Name__c: this.Name, |
| | | Delivered_Product__c: this.DeliveredProductC, |
| | | PaperRepairRequestNo__c: this.PaperRepairRequestNoC, |
| | | Hospital__c: this.HospitalC, |
| | | Department_Class__c: this.DepartmentClassC, |
| | | Account__c: this.AccountC, |
| | | RepairCostType__c: this.RepairCostTypeC, |
| | | Dealer__c: this.DealerC, |
| | | Incharge_Staff__c: this.InchargeStaffC, |
| | | Incharge_Staff_Contact__c: this.InchargeStaffContactC, |
| | | SalesOfficeCode_selection__c: this.SalesOfficeCodeSelectionC, |
| | | On_site_repair__c: this.OnSiteRepairC, |
| | | work_location_select__c : this.workLocationSelectC, |
| | | Returns_Product_way__c : this.ReturnsProductWayC, |
| | | Repair_Detail__c : this.RepairDetailC, |
| | | RepairApplicant__c : this.RepairApplicantC, |
| | | RepairApplicantHospital__c : this.RepairApplicantHospitalC, |
| | | RepairApplicantDepartment__c : this.RepairApplicantDepartmentC, |
| | | DeliveryLogisticsMode__c : this.DeliveryLogisticsModeC, |
| | | engineerSendDate__c : this.engineerSendDateC, |
| | | DeliveryLogisticsNo__c : this.DeliveryLogisticsNoC, |
| | | DeliveryLogisticsAnnotation__c : this.DeliveryLogisticsAnnotationC, |
| | | DateReceiptQuestions__c : this.DateReceiptQuestionsC, |
| | | BreakORFallOff__c : this.BreakORFallOffC, |
| | | DelayReportReason__c : this.DelayReportReasonC, |
| | | UseFailProductFinish__c : this.UseFailProductFinishC, |
| | | ifDeadHurt__c : this.ifDeadHurtC, |
| | | SupportingProducts__c : this.SupportingProductsC, |
| | | ProblemOccurred__c : this.ProblemOccurredC, |
| | | AfterFailureInformation__c : this.AfterFailureInformationC, |
| | | ProblemOccurredSelect__c : this.ProblemOccurredSelectC, |
| | | Delay15Min__c: this.Delay15MinC, |
| | | ProductFailureRelated__c : this.ProductFailureRelatedC, |
| | | InformationFrom__c : this.InformationFromC, |
| | | ReportAdverseEvents__c : this.ReportAdverseEventsC, |
| | | FailureQInHospital__c : this.FailureQInHospitalC, |
| | | WhatProject__c : this.WhatProjectC, |
| | | OperationOrExaminationName__c : this.OperationOrExaminationNameC, |
| | | MaintenanceContractType__c : this.MaintenanceContractTypeC, |
| | | Failure_Occurrence_Date__c : this.FailureOccurrenceDateC, |
| | | Repair_Source__c : this.RepairSourceC, |
| | | RepairSubOrder__c : this.RepairSubOrderC, |
| | | On_Call_ID__c : this.OnCallIDC, |
| | | QIS_ID__c : this.QISIDC, |
| | | InsReport__c : this.InsReportC, |
| | | Aware_date__c : this.AwareDateC, |
| | | OCSMAdministrativeReportNumber__c : this.OCSMAdministrativeReportNumberC, |
| | | MBC_AwareDate__c : this.MBCAwareDateC, |
| | | OCSMAdministrativeReportDate__c : this.OCSMAdministrativeReportDateC, |
| | | OCSMAdministrativeReportStatus__c : this.OCSMAdministrativeReportStatusC, |
| | | CFDA_No_Hand__c : this.CFDANoHandC, |
| | | ProduceCompany_hand__c : this.ProduceCompanyHandC, |
| | | Offer_Rental_New__c : this.OfferRentalNewC, |
| | | if_Rental_Apply__c : this.ifRentalApplyC, |
| | | Latest_Collect_Date_Priority__c : this.LatestCollectDatePriorityC, |
| | | Rental_Apply_Equipment_Set_Detail_Id__c : this.RentalApplyEquipmentSetDetailIdC, |
| | | Rental_Apply_Equipment_Set_Detail__c : this.RentalApplyEquipmentSetDetailC, |
| | | }); |
| | | this[NavigationMixin.Navigate]({ |
| | | type: 'standard__objectPage', |
| | | attributes: { |
| | | objectApiName: 'Repair__c', |
| | | actionName: 'new' |
| | | }, |
| | | state: { |
| | | nooverride: '1', |
| | | defaultFieldValues: url |
| | | } |
| | | }); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | |
| | | // var url = "/a0J/e?00N10000009H2fa=" + this.Name + "&CF00N10000002Dx1X=" + this.DeliveredProductC + |
| | | // "&CF00N10000002Dx1X_lkid=" + this.DeliveredProductC + "&00N10000006P1dw=" + this.PaperRepairRequestNoC + |
| | | // "&CF00N10000002Dx66=" + this.HospitalC + "&CF00N10000002Dx5t=" + this.DepartmentClassC + |
| | | // "&CF00N10000002Dx5n=" + this.AccountC + "&00N10000008rG4p=" + this.RepairCostTypeC + |
| | | // "&CF00N10000006P1eV=" + this.DealerC + "&CF00N10000002EMHw=" + this.InchargeStaffC + |
| | | // "&CF00N10000005HDvq=" + this.InchargeStaffContactC + "&00N10000006P6SM=" + this.SalesOfficeCodeSelectionC + |
| | | // "&00N10000002F6dW=" + this.OnSiteRepairC + "&00N10000006P6Rn=" + this.workLocationSelectC + |
| | | // "&00N10000009i1Z2=" + this.ReturnsProductWayC + "&00N10000002Dx6I=" + this.RepairDetailC + |
| | | // "&00N10000009H1rQ=" + this.RepairApplicantC + "&00N10000009H1rP=" + this.RepairApplicantHospitalC + |
| | | // "&00N10000009H1rO=" + this.RepairApplicantDepartmentC + "&00N10000009H1rB=" + this.DeliveryLogisticsModeC + |
| | | // "&00N10000009H1rk=" + this.engineerSendDateC + "&00N10000009H1rC=" + this.DeliveryLogisticsNoC + |
| | | // "&00N10000009H1rA=" + this.DeliveryLogisticsAnnotationC + "&00N10000008rsVQ=" + this.DateReceiptQuestionsC + |
| | | // "&00N10000008rsVN=" + this.BreakORFallOffC + "&00N10000008rsVS=" + this.DelayReportReasonC + |
| | | // "&00N10000008rsW5=" + this.UseFailProductFinishC + "&00N10000008rsW7=" + this.ifDeadHurtC + |
| | | // "&00N10000008rsW4=" + this.SupportingProductsC + "&00N10000008rsVv=" + this.ProblemOccurredC + |
| | | // "&00N10000008rsVL=" + this.AfterFailureInformationC + "&00N10000009hsvI=" + this.ProblemOccurredSelectC + |
| | | // "&00N10000008rsVR=" + this.Delay15MinC + "&00N10000008rsVw=" + this.ProductFailureRelatedC + |
| | | // "&00N10000008rsVZ=" + this.InformationFromC + "&00N10000008rsW2=" + this.ReportAdverseEventsC + |
| | | // "&00N10000008rsVT=" + this.FailureQInHospitalC + "&00N10000008rsW6=" + this.WhatProjectC + |
| | | // "&00N10000008rsVk=" + this.OperationOrExaminationNameC + "&00N10000008rWce=" + this.MaintenanceContractTypeC + |
| | | // "&00N10000002Dx5y=" + this.FailureOccurrenceDateC + "&00N10000002FH86=" + this.RepairSourceC + |
| | | // "&CF00N10000009H1rR=" + this.RepairSubOrderC + "&CF00N10000002FIJU=" + this.OnCallIDC + |
| | | // "&CF00N10000002FIJZ=" + this.QISIDC + "&CF00N10000006PRCp=" + this.InsReportC + |
| | | // "&00N10000008rsVM=" + this.AwareDateC + "&00N10000009GmI6=" + this.OCSMAdministrativeReportNumberC + |
| | | // "&00N10000009GmI4=" + this.MBCAwareDateC + "&00N10000009GmI5=" + this.OCSMAdministrativeReportDateC + |
| | | // "&00N10000009GmI7=" + this.OCSMAdministrativeReportStatusC + "&00N100000095siE=" + this.CFDANoHandC + |
| | | // "&00N100000095shz=" + this.ProduceCompanyHandC + "&00N100000098PV9=" + this.OfferRentalNewC + |
| | | // "&00N100000098PVA=" + this.ifRentalApplyC + "&00N10000006gZ4g=" + this.LatestCollectDatePriorityC + |
| | | // "&00N10000007MNFW=" + this.RentalApplyEquipmentSetDetailIdC + |
| | | // "&CF00N10000007MNFX=" + this.RentalApplyEquipmentSetDetailC + "&retURL=%2F" + this.Id; |
| | | // window.open(url); |
| | | } else { |
| | | this.ShowToastEvent("该状态下不能复制", "error") |
| | | // alert("该状态下不能复制"); |
| | | this.ShowToastEvent("该状态下不能复制", "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | } |
| | | |
| New file |
| | |
| | | |
| | | .toast{ |
| | | border: 1px solid #c9c9c9; |
| | | border-radius: 10px; |
| | | width: 50%; |
| | | margin: 0 auto; |
| | | font-size: 18px; |
| | | font-weight: bold; |
| | | padding: 10px 20px; |
| | | background: #EA001E; |
| | | display: flex; |
| | | color: white; |
| | | } |
| | |
| | | <div class="exampleHolder" if:true={IsLoading}> |
| | | <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner> |
| | | </div> |
| | | </template> |
| | | <div if:false={IsLoading} class="toast"> |
| | | <span style="padding: 10px;">{msg}</span> |
| | | <button class="slds-button slds-button_icon slds-modal__close slds-button_icon-inverse" onclick={closeAction} title="Close" style="background-color: #e5e4e2;margin-top: 15px;"> |
| | | <lightning-icon class="greyIcon" icon-name="utility:close" alternative-text="Connected" variant="inverse" size="small" |
| | | title="Close" style="color: black;"></lightning-icon> |
| | | <span class="slds-assistive-text">Close</span> |
| | | </button> |
| | | </div> |
| | | </template> |
| | |
| | | IsLoading = true; |
| | | Id; |
| | | Status; |
| | | msg; |
| | | |
| | | @wire(CurrentPageReference) |
| | | getStateParameters(currentPageReference) { |
| | |
| | | }).then(result => { |
| | | console.log(result); |
| | | if (result != null) { |
| | | this.IsLoading = false; |
| | | this.Id = result.Id; |
| | | this.Status = result.Status; |
| | | |
| | |
| | | if (status == '公开中') { |
| | | window.open("/apex/AssessmentReport?camid=" + this.Id, "_top"); |
| | | } else { |
| | | alert("只有批准后才能创建报告!"); |
| | | this.msg = '只有批准后才能创建报告!'; |
| | | this.IsLoading = false; |
| | | } |
| | | } |
| | | |
| | | closeAction() { |
| | | window.history.go(-1); |
| | | } |
| | | } |
| New file |
| | |
| | | .toast{ |
| | | border: 1px solid #c9c9c9; |
| | | border-radius: 10px; |
| | | width: 50%; |
| | | margin: 0 auto; |
| | | font-size: 18px; |
| | | font-weight: bold; |
| | | padding: 10px 20px; |
| | | background: #EA001E; |
| | | display: flex; |
| | | color: white; |
| | | } |
| | |
| | | <div class="exampleHolder" if:true={IsLoading}> |
| | | <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner> |
| | | </div> |
| | | </template> |
| | | <div if:false={IsLoading} class="toast"> |
| | | <span style="padding: 10px;">{msg}</span> |
| | | <button class="slds-button slds-button_icon slds-modal__close slds-button_icon-inverse" onclick={closeAction} title="Close" style="background-color: #e5e4e2;margin-top: 15px;"> |
| | | <lightning-icon class="greyIcon" icon-name="utility:close" alternative-text="Connected" variant="inverse" size="small" |
| | | title="Close" style="color: black;"></lightning-icon> |
| | | <span class="slds-assistive-text">Close</span> |
| | | </button> |
| | | </div> |
| | | </template> |
| | |
| | | IsLoading = true; |
| | | Id; |
| | | Status; |
| | | msg; |
| | | |
| | | @wire(CurrentPageReference) |
| | | getStateParameters(currentPageReference) { |
| | |
| | | }).then(result => { |
| | | console.log(result); |
| | | if (result != null) { |
| | | this.IsLoading = false; |
| | | this.Id = result.Id; |
| | | this.Status = result.Status; |
| | | |
| | |
| | | if (status == '公开中') { |
| | | window.open("/apex/InstructReport?camid=" + this.Id, "_top"); |
| | | } else { |
| | | alert("只有批准后才能创建报告!") |
| | | this.msg = '只有批准后才能创建报告!'; |
| | | this.IsLoading = false; |
| | | } |
| | | } |
| | | |
| | | closeAction() { |
| | | window.history.go(-1); |
| | | } |
| | | } |
| | |
| | | CloseActionScreenEvent |
| | | } from 'lightning/actions'; |
| | | import init from '@salesforce/apex/buttonAccountCtl.init'; |
| | | import { |
| | | NavigationMixin |
| | | } from 'lightning/navigation'; |
| | | import { |
| | | encodeDefaultFieldValues |
| | | } from 'lightning/pageReferenceUtils'; |
| | | |
| | | export default class LexCreateNewServiceContract extends LightningElement { |
| | | export default class LexCreateNewServiceContract extends NavigationMixin(LightningElement) { |
| | | @api recordId; |
| | | str; |
| | | IsLoading = true; |
| | |
| | | |
| | | // 新建新服务合同 |
| | | CreateNewServiceContract() { |
| | | var Hospital = this.HospitalC; |
| | | var Hospitalid = this.HospitalIdC; |
| | | var Department = this.DepartmentClassC; |
| | | var Departmentid = this.DepartmentClassIdC; |
| | | var accountname = this.Name; |
| | | var accountid = this.Id; |
| | | const url = encodeDefaultFieldValues({ |
| | | Hospital__c: this.HospitalC, |
| | | Department_Class__c: this.DepartmentClassC, |
| | | Department__c: this.Id |
| | | }); |
| | | this[NavigationMixin.Navigate]({ |
| | | type: 'standard__objectPage', |
| | | attributes: { |
| | | objectApiName: 'Maintenance_Contract__c', |
| | | actionName: 'new' |
| | | }, |
| | | state: { |
| | | nooverride: '1', |
| | | defaultFieldValues: url |
| | | } |
| | | }); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | |
| | | // var url = 'a0H/e?CF00N10000002Dx56=' + Hospital + '&CF00N10000002Dx56_lkid=' + |
| | | // Hospitalid + '&CF00N10000002Dx4p=' + Department + '&CF00N10000002Dx4p_lkid=' + |
| | | // Departmentid + '&CF00N10000002Dx4q=' + accountname + '&CF00N10000002Dx4q_lkid=' + |
| | | // accountid + '&RecordType=01210000000gTYq'; |
| | | |
| | | var url = 'a0H/e?CF00N10000002Dx56=' + Hospital + '&CF00N10000002Dx56_lkid=' + |
| | | Hospitalid + '&CF00N10000002Dx4p=' + Department + '&CF00N10000002Dx4p_lkid=' + |
| | | Departmentid + '&CF00N10000002Dx4q=' + accountname + '&CF00N10000002Dx4q_lkid=' + |
| | | accountid + '&RecordType=01210000000gTYq'; |
| | | // console.log(url); |
| | | |
| | | console.log(url); |
| | | |
| | | window.top.location.href = url; |
| | | // window.top.location.href = url; |
| | | } |
| | | } |
| | |
| | | <target>lightning__RecordAction</target> |
| | | <target>lightning__FlowScreen</target> |
| | | </targets> |
| | | <!-- 定义变量 --> |
| | | <targetConfigs> |
| | | <targetConfig targets="lightning__FlowScreen"> |
| | | <property name="recordId" type="String" label="recordId"/> |
| | | </targetConfig> |
| | | </targetConfigs> |
| | | </LightningComponentBundle> |
| | |
| | | .createEmailHolder{ |
| | | position: relative; |
| | | display: inline-block; |
| | | width: 80px; |
| | | height: 80px; |
| | | text-align: center; |
| | | } |
| | | .container .uiContainerManager{ |
| | | display: none !important; |
| | | .toast{ |
| | | border: 1px solid #c9c9c9; |
| | | border-radius: 10px; |
| | | width: 50%; |
| | | margin: 0 auto; |
| | | font-size: 18px; |
| | | font-weight: bold; |
| | | padding: 10px 20px; |
| | | background: #EA001E; |
| | | display: flex; |
| | | color: white; |
| | | } |
| | |
| | | <template> |
| | | <div class="createEmailHolder" if:true={IsLoading}> |
| | | <div class="exampleHolder" if:true={IsLoading}> |
| | | <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner> |
| | | <lightning-button onclick={handleConfirmClick} label="Open Confirm Modal"></lightning-button> |
| | | <lightning-button label="Show Toast" onclick={ShowToastEvent}></lightning-button> </div> |
| | | </div> |
| | | <div if:false={IsLoading} class="toast"> |
| | | <span style="padding: 10px;">{msg}</span> |
| | | <button class="slds-button slds-button_icon slds-modal__close slds-button_icon-inverse" onclick={closeAction} title="Close" style="background-color: #e5e4e2;margin-top: 15px;"> |
| | | <lightning-icon class="greyIcon" icon-name="utility:close" alternative-text="Connected" variant="inverse" size="small" |
| | | title="Close" style="color: black;"></lightning-icon> |
| | | <span class="slds-assistive-text">Close</span> |
| | | </button> |
| | | </div> |
| | | </template> |
| | |
| | | import { LightningElement,wire,track,api} from 'lwc'; |
| | | import { CurrentPageReference } from "lightning/navigation"; |
| | | import { CloseActionScreenEvent } from 'lightning/actions'; |
| | | import { NavigationMixin } from 'lightning/navigation'; |
| | | import { ShowToastEvent } from 'lightning/platformShowToastEvent'; |
| | | import init from '@salesforce/apex/QISReportController.initForlexCreateQISFromAssetButton'; |
| | | import UserInfo_Owner from '@salesforce/apex/TaskFeedbackController.UserInfo_Owner'; |
| | | import { updateRecord } from 'lightning/uiRecordApi'; |
| | | import { |
| | | LightningElement, |
| | | wire, |
| | | api |
| | | } from 'lwc'; |
| | | import { |
| | | CurrentPageReference |
| | | } from "lightning/navigation"; |
| | | import { |
| | | CloseActionScreenEvent |
| | | } from 'lightning/actions'; |
| | | import init from '@salesforce/apex/buttonAssetCtl.init'; |
| | | import selecctRepairByFomatToday from '@salesforce/apex/buttonAssetCtl.selecctRepairByFomatToday'; |
| | | import selecctQISReportrByFomatToday from '@salesforce/apex/buttonAssetCtl.selecctQISReportrByFomatToday'; |
| | | import selectCASE from '@salesforce/apex/buttonAssetCtl.selectCASE'; |
| | | import selectNullvalue from '@salesforce/apex/buttonAssetCtl.selectNullvalue'; |
| | | import LightningConfirm from 'lightning/confirm'; |
| | | import { |
| | | NavigationMixin |
| | | } from 'lightning/navigation'; |
| | | import { |
| | | encodeDefaultFieldValues |
| | | } from 'lightning/pageReferenceUtils'; |
| | | import { |
| | | ShowToastEvent |
| | | } from 'lightning/platformShowToastEvent'; |
| | | |
| | | export default class lexCreateQISFromAsset extends LightningElement { |
| | | export default class lexCreateQISFromAsset extends NavigationMixin(LightningElement) { |
| | | @api recordId; |
| | | str; |
| | | IsLoading = true; |
| | | Old_Repair_Name; |
| | | Id; |
| | | day1; |
| | | AssetMarkC; |
| | | AssetOwnerC; |
| | | InstallDate; |
| | | PostingDateC; |
| | | AssetDayC; |
| | | SerialNumber; |
| | | OrderNoC; |
| | | ProductIDC; |
| | | HospitalId; |
| | | HospitalC; |
| | | DepartmentClassId; |
| | | DepartmentClassC; |
| | | Name; |
| | | AccountId; |
| | | msg; |
| | | Old_Repair_Name = ''; |
| | | Instration_date_consumable = null; |
| | | Customer_asset_or_loaner = ''; |
| | | fomatToday; |
| | | |
| | | @wire(CurrentPageReference) |
| | | getStateParameters(currentPageReference) { |
| | | console.log(111); |
| | | console.log(currentPageReference); |
| | | |
| | | if (currentPageReference) { |
| | | const urlValue = currentPageReference.state.recordId; |
| | | if (urlValue) { |
| | | let str = `${urlValue}`; |
| | | console.log("str"); |
| | | console.log(str); |
| | | this.recordId = str; |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | connectedCallback(){ |
| | | console.log(this.recordId); |
| | | init({recordId:this.recordId}).then(result=>{ |
| | | console.log(result); |
| | | if(result!=null){ |
| | | if (result.id!=null) { |
| | | var boolday=confirm('请确认此件是否属于10天内重复报告,如果是,请使用原QIS里的复制功能重新提交。'); |
| | | if(!boolday){ |
| | | return; |
| | | } |
| | | } |
| | | if (result.repId!=null) { |
| | | var boolday=confirm('请确认此件是否属于10天内重复报告,如果是,需按照原先的维修信息填写。'); |
| | | if(!boolday){ |
| | | return; |
| | | } |
| | | } |
| | | |
| | | getStateParameters(currentPageReference) { |
| | | if (currentPageReference) { |
| | | const urlValue = currentPageReference.state.recordId; |
| | | if (urlValue) { |
| | | let str = `${urlValue}`; |
| | | this.recordId = str; |
| | | } |
| | | }).catch(err=>{ |
| | | console.log("error:"); |
| | | console.log(err); |
| | | }).finally(()=>{ |
| | | |
| | | }); |
| | | } |
| | | } |
| | | |
| | | connectedCallback() { |
| | | init({ |
| | | recordId: this.recordId |
| | | }).then(result => { |
| | | console.log(result); |
| | | if (result != null) { |
| | | this.Id = result.Id; |
| | | this.day1 = result.day1; |
| | | this.AssetMarkC = result.AssetMarkC; |
| | | this.AssetOwnerC = result.AssetOwnerC; |
| | | this.InstallDate = result.InstallDate; |
| | | this.PostingDateC = result.PostingDateC; |
| | | this.AssetDayC = result.AssetDayC; |
| | | this.SerialNumber = result.SerialNumber; |
| | | this.OrderNoC = result.OrderNoC; |
| | | this.ProductIDC = result.ProductIDC; |
| | | this.HospitalId = result.HospitalId; |
| | | this.HospitalC = result.HospitalC; |
| | | this.DepartmentClassId = result.DepartmentClassId; |
| | | this.DepartmentClassC = result.DepartmentClassC; |
| | | this.Name = result.Name; |
| | | this.AccountId = result.AccountId; |
| | | |
| | | |
| | | this.CreateQISFromAsset(); |
| | | } |
| | | }).catch(error => { |
| | | console.log(error); |
| | | }) |
| | | } |
| | | |
| | | // 新建授课/考核报告 |
| | | CreateQISFromAsset() { |
| | | this.fomatToday = this.day1; |
| | | selecctQISReportrByFomatToday({ |
| | | AssetId: this.Id, |
| | | fomatToday: this.fomatToday |
| | | }).then(records => { |
| | | console.log(records); |
| | | if (this.AssetMarkC == null || this.AssetMarkC == undefined) { |
| | | this.ShowToastEvent('保有设备标记为空,请联系管理员补充。!', "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } |
| | | if (records.length >= 1) { |
| | | this.handleConfirmClick01('请确认此件是否属于10天内重复报告,如果是,请使用原QIS里的复制功能重新提交。'); |
| | | } else { |
| | | this.ss(); |
| | | } |
| | | }) |
| | | } |
| | | |
| | | ss() { |
| | | selecctRepairByFomatToday({ |
| | | AssetId: this.Id, |
| | | fomatToday: this.fomatToday |
| | | }).then(records2 => { |
| | | if (this.AssetMarkC == '耗材') { |
| | | selectCASE({ |
| | | AssetOwnerC: this.AssetOwnerC |
| | | }).then(result => { |
| | | console.log(result); |
| | | this.Customer_asset_or_loaner = result; |
| | | }) |
| | | |
| | | selectNullvalue({ |
| | | InstallDate: this.InstallDate, |
| | | PostingDateC: this.PostingDateC, |
| | | AssetDayC: this.AssetDayC |
| | | }).then(result => { |
| | | console.log(result); |
| | | this.Instration_date_consumable = result; |
| | | |
| | | }) |
| | | } |
| | | if (records2.length >= 1) { |
| | | this.Old_Repair_Name = records2[0].Name; |
| | | } |
| | | if (records2.length >= 1) { |
| | | this.handleConfirmClick02('请确认此件是否属于10天内重复报告,如果是,需按照原先的维修信息填写。'); |
| | | } else { |
| | | this.ll(); |
| | | } |
| | | }) |
| | | } |
| | | |
| | | ll() { |
| | | |
| | | const url = encodeDefaultFieldValues({ |
| | | Name: "*", |
| | | Hospital__c: this.HospitalId, |
| | | Department_Class__c: this.DepartmentClassId, |
| | | nonyushohin__c: this.Id, |
| | | Generation_Source__c: "保有设备", |
| | | Lots_No__c: this.SerialNumber, |
| | | sell__c: this.Customer_asset_or_loaner, |
| | | Instration_date_consumable__c: this.Instration_date_consumable, |
| | | consumable__c: this.ProductIDC, |
| | | contract_number_ET__c: this.OrderNoC, |
| | | Hospital_Department__c: this.AccountId, |
| | | Old_Repair_Name__c: this.Old_Repair_Name |
| | | }); |
| | | this[NavigationMixin.Navigate]({ |
| | | type: 'standard__objectPage', |
| | | attributes: { |
| | | objectApiName: 'QIS_Report__c', |
| | | actionName: 'new' |
| | | }, |
| | | state: { |
| | | nooverride: '1', |
| | | defaultFieldValues: url |
| | | } |
| | | }); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | |
| | | async handleConfirmClick01(msg) { |
| | | const result = await LightningConfirm.open({ |
| | | message: msg, |
| | | variant: 'headerless', |
| | | label: 'this is the aria-label value' |
| | | }); |
| | | if (result) { |
| | | this.ss(); |
| | | } else { |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | } |
| | | |
| | | async handleConfirmClick02(msg) { |
| | | const result = await LightningConfirm.open({ |
| | | message: msg, |
| | | variant: 'headerless', |
| | | label: 'this is the aria-label value' |
| | | }); |
| | | if (result) { |
| | | this.ll(); |
| | | } else { |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | } |
| | | |
| | | ShowToastEvent(msg, type) { |
| | | const event = new ShowToastEvent({ |
| | | title: '', |
| | | message: msg, |
| | | variant: type |
| | | }); |
| | | this.dispatchEvent(event); |
| | | } |
| | | |
| | | closeAction() { |
| | | location.reload(); |
| | | } |
| | | } |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata" fqn="lexCreateQISFromAsset"> |
| | | <apiVersion>51.0</apiVersion> |
| | | <isExposed>true</isExposed> |
| | | <targets> |
| | | <target>lightning__AppPage</target> |
| | | <target>lightning__RecordPage</target> |
| | | <target>lightning__HomePage</target> |
| | | <target>lightning__RecordAction</target> |
| | | <!-- 屏幕流配置 --> |
| | | <target>lightning__FlowScreen</target> |
| | | </targets> |
| | | <targetConfigs> |
| | | <targetConfig targets="lightning__FlowScreen"> |
| | | <!-- name js中使用的变量,从屏幕流中获取参数 label 在屏幕流的该LWC的设置中显示 --> |
| | | <property name="recordId" type="String" label="recordId"/> |
| | | </targetConfig> |
| | | </targetConfigs> |
| | | <LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata"> |
| | | <apiVersion>54.0</apiVersion> |
| | | <isExposed>true</isExposed> |
| | | <targets> |
| | | <target>lightning__RecordPage</target> |
| | | <target>lightning__AppPage</target> |
| | | <target>lightning__HomePage</target> |
| | | <target>lightning__RecordAction</target> |
| | | </targets> |
| | | </LightningComponentBundle> |
| New file |
| | |
| | | .toast{ |
| | | border: 1px solid #c9c9c9; |
| | | border-radius: 10px; |
| | | width: 50%; |
| | | margin: 0 auto; |
| | | font-size: 18px; |
| | | font-weight: bold; |
| | | padding: 10px 20px; |
| | | background: #EA001E; |
| | | display: flex; |
| | | color: white; |
| | | } |
| | |
| | | <template> |
| | | <div class="exampleHolder" if:true={IsLoading}> |
| | | <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner> |
| | | <lightning-button onclick={handleConfirmClick} label="Open Confirm Modal"></lightning-button> |
| | | <lightning-button label="Show Toast" onclick={ShowToastEvent}></lightning-button> </div> |
| | | </div> |
| | | <div if:false={IsLoading} class="toast"> |
| | | <span style="padding: 10px;">{msg}</span> |
| | | <button class="slds-button slds-button_icon slds-modal__close slds-button_icon-inverse" onclick={closeAction} title="Close" style="background-color: #e5e4e2;margin-top: 15px;"> |
| | | <lightning-icon class="greyIcon" icon-name="utility:close" alternative-text="Connected" variant="inverse" size="small" |
| | | title="Close" style="color: black;"></lightning-icon> |
| | | <span class="slds-assistive-text">Close</span> |
| | | </button> |
| | | </div> |
| | | </template> |
| | |
| | | import selecctProduct2ById from '@salesforce/apex/buttonAssetCtl.selecctProduct2ById'; |
| | | import selecctRepairByFomatToday from '@salesforce/apex/buttonAssetCtl.selecctRepairByFomatToday'; |
| | | import selecctQISReportByFomatToday from '@salesforce/apex/buttonAssetCtl.selecctQISReportByFomatToday'; |
| | | import { |
| | | NavigationMixin |
| | | } from 'lightning/navigation'; |
| | | import { |
| | | encodeDefaultFieldValues |
| | | } from 'lightning/pageReferenceUtils'; |
| | | import LightningConfirm from 'lightning/confirm'; |
| | | import { |
| | | ShowToastEvent |
| | | } from 'lightning/platformShowToastEvent'; |
| | | |
| | | export default class LexCreateRepairFromAsset extends LightningElement { |
| | | export default class LexCreateRepairFromAsset extends NavigationMixin(LightningElement) { |
| | | @api recordId; |
| | | str; |
| | | IsLoading = true; |
| | |
| | | RepairSalesPointProvinceChinaC; |
| | | notCreateRepairFromAssetButton; |
| | | notCreateRepairFromAssetButton02; |
| | | msg; |
| | | flag = false; |
| | | fomatToday; |
| | | QIS_Name = ''; |
| | | QIS_Id = ''; |
| | | Old_Repair_Name = ''; |
| | | Work_Location = ''; |
| | | FSE_GI_Main_Leader__id = ''; |
| | | FSE_GI_Main_Leader__name = ''; |
| | | FSE_SP_Main_Leader__id = ''; |
| | | FSE_SP_Main_Leader__name = ''; |
| | | Incharge_Staff = ''; |
| | | Incharge_Staff_id = ''; |
| | | |
| | | |
| | | @wire(CurrentPageReference) |
| | | getStateParameters(currentPageReference) { |
| | |
| | | }).then(result => { |
| | | console.log(result); |
| | | if (result != null) { |
| | | this.IsLoading = false; |
| | | this.Id = result.Id; |
| | | this.userID = result.userID; |
| | | this.day = result.day; |
| | |
| | | } |
| | | this.CreateRepairFromAsset(); |
| | | }) |
| | | |
| | | |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | }).catch(error => { |
| | | console.log(error); |
| | |
| | | var EmployeeNo = this.EmployeeNoC; |
| | | |
| | | if (nCRepairFromAssetBList.indexOf(EmployeeNo) != -1) { |
| | | alert("对不起,您无权使用此按钮创建修理!"); |
| | | this.ShowToastEvent("对不起,您无权使用此按钮创建修理!", "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } |
| | | |
| | | var fomatToday = this.day1; |
| | | var QIS_Name = ''; |
| | | var QIS_Id = ''; |
| | | var url1 = ""; |
| | | var FSE_GI_Main_Leader__id = ''; |
| | | var FSE_GI_Main_Leader__name = ''; |
| | | var FSE_SP_Main_Leader__id = ''; |
| | | var FSE_SP_Main_Leader__name = ''; |
| | | var Incharge_Staff = ''; |
| | | var Incharge_Staff_id = ''; |
| | | var Work_Location = ''; |
| | | var Old_Repair_Name = ''; |
| | | this.fomatToday = this.day1; |
| | | |
| | | |
| | | selecctQISReportByFomatToday({ |
| | | AssetId: this.Id, |
| | | fomatToday: fomatToday |
| | | fomatToday: this.fomatToday |
| | | }).then(records => { |
| | | console.log(records); |
| | | if (records.length >= 1) { |
| | | var boolday = confirm('请确认此件是否属于10天内重复报告,如果是,请使用原QIS信息填写。'); |
| | | if (!boolday) { |
| | | return; |
| | | } |
| | | this.QIS_Name = records[0].Name; |
| | | this.QIS_Id = records[0].Id; |
| | | } |
| | | if (records.length >= 1) { |
| | | QIS_Name = records[0].Name; |
| | | QIS_Id = records[0].Id; |
| | | this.handleConfirmClick01('请确认此件是否属于10天内重复报告,如果是,请使用原QIS信息填写。'); |
| | | } else { |
| | | this.ss(); |
| | | } |
| | | |
| | | }) |
| | | } |
| | | |
| | | ss() { |
| | | selecctRepairByFomatToday({ |
| | | AssetId: this.Id, |
| | | fomatToday: fomatToday |
| | | fomatToday: this.fomatToday |
| | | }).then(records2 => { |
| | | console.log(records2); |
| | | if (records2.length >= 1) { |
| | | var boolday = confirm('此件设备如为10天内重复报告,建议回到原修理单使用复制功能提交。请确认是否继续新建修理? '); |
| | | if (!boolday) { |
| | | return; |
| | | } |
| | | |
| | | var partSupplyFinishDate = this.NoPartRiskDateFC; |
| | | if (this.day < this.NoPartRiskDateFC && this.NoPartRiskDateFC <= this.day2) { |
| | | this.ShowToastEvent('预计' + partSupplyFinishDate + '零件即将停产,请送修前与工厂及RC联络', "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } |
| | | if (this.NoPartRiskDateFC != null && this.NoPartRiskDateFC != undefined && this.NoPartRiskDateFC <= this.day) { |
| | | this.ShowToastEvent('该型号零件已经停产,有特殊需求,请送修前与工厂RC联络', "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } |
| | | if (records2.length >= 1) { |
| | | Old_Repair_Name = records2[0].Name; |
| | | this.Old_Repair_Name = records2[0].Name; |
| | | } |
| | | if (records2.length >= 1) { |
| | | this.handleConfirmClick02('此件设备如为10天内重复报告,建议回到原修理单使用复制功能提交。请确认是否继续新建修理? '); |
| | | } else { |
| | | this.ll(); |
| | | } |
| | | }) |
| | | var partSupplyFinishDate = this.NoPartRiskDateFC; |
| | | if (this.day < this.NoPartRiskDateFC && this.NoPartRiskDateFC <= this.day2) { |
| | | alert('预计' + partSupplyFinishDate + '零件即将停产,请送修前与工厂及RC联络'); |
| | | } |
| | | if (this.NoPartRiskDateFC != null && this.NoPartRiskDateFC != undefined && this.NoPartRiskDateFC <= this.day) { |
| | | alert('该型号零件已经停产,有特殊需求,请送修前与工厂RC联络'); |
| | | } |
| | | } |
| | | |
| | | ll() { |
| | | selecctProduct2ById({ |
| | | Id: this.ProductIDC |
| | | }).then(recordP => { |
| | |
| | | if (recordP != null && recordP.length > 0) { |
| | | var canRepair = recordP[0].Can_Repair__c; |
| | | if (canRepair == '第三方') { |
| | | alert('非我司修理对象,无法新建修理,如有不明请咨询CIC'); |
| | | this.ShowToastEvent('非我司修理对象,无法新建修理,如有不明请咨询CIC', "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } |
| | | if (canRepair == '不' || canRepair == null) { |
| | | alert('本设备无法新建修理'); |
| | | this.ShowToastEvent('本设备无法新建修理', "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } |
| | | if (canRepair == 'RC送修') { |
| | | url1 = "&00N10000009HAJl=TRUE" |
| | | this.flag = true; |
| | | } |
| | | } |
| | | }) |
| | | selecctAccountByAccountId({ |
| | | AccountId: this.AccountId |
| | | }).then(List => { |
| | | console.log(List); |
| | | if (List != null) { |
| | | var RecordTypeId = List[0]['Parent']['RecordType_DeveloperName__c'].substring(0, 15); |
| | | console.log(RecordTypeId); |
| | | if (RecordTypeId != 'Agency') { |
| | | if (List[0]['Parent']['Parent']['FSE_GI_Main_Leader__c'] != null) { |
| | | FSE_GI_Main_Leader__id = List[0]['Parent']['Parent']['FSE_GI_Main_Leader__c'].substring(0, 15); |
| | | FSE_GI_Main_Leader__name = List[0]['Parent']['Parent']['FSE_GI_Main_Leader__r']['Name']; |
| | | } |
| | | if (List[0]['Parent']['Parent']['FSE_SP_Main_Leader__c'] != null) { |
| | | FSE_SP_Main_Leader__id = List[0]['Parent']['Parent']['FSE_SP_Main_Leader__c'].substring(0, 15); |
| | | FSE_SP_Main_Leader__name = List[0]['Parent']['Parent']['FSE_SP_Main_Leader__r']['Name']; |
| | | } |
| | | if (List[0]['Parent']['RecordType_DeveloperName__c'] != null || List[0]['Parent']['RecordType_DeveloperName__c'] != undefined) { |
| | | var recordId = List[0]['Parent']['RecordType_DeveloperName__c'].substring(0, 15); |
| | | if (recordId == 'Department_Class_GI' || recordId == 'Department_Class_BF' || recordId == 'Department_Class_ET') { |
| | | if (List[0]['Parent']['Parent']['FSE_GI_Main_Leader__c'] != null) { |
| | | Work_Location = List[0]['Parent']['Parent']['FSE_GI_Main_Leader__r']['Work_Location__c']; |
| | | } |
| | | } else if (recordId == 'Department_Class_GS' || recordId == 'Department_Class_URO' || recordId == 'Department_Class_ENT' || recordId == 'Department_Class_GYN' || recordId == 'Department_Class_OTH') { |
| | | if (List[0]['Parent']['Parent']['FSE_SP_Main_Leader__c'] != null) { |
| | | Work_Location = List[0]['Parent']['Parent']['FSE_SP_Main_Leader__r']['Work_Location__c']; |
| | | } |
| | | selecctAccountByAccountId({ |
| | | AccountId: this.AccountId |
| | | }).then(List => { |
| | | console.log(List); |
| | | if (List != null) { |
| | | var RecordTypeId = List[0]['Parent']['RecordType_DeveloperName__c'].substring(0, 15); |
| | | console.log(RecordTypeId); |
| | | if (RecordTypeId != 'Agency') { |
| | | if (List[0]['Parent']['Parent']['FSE_GI_Main_Leader__c'] != null) { |
| | | this.FSE_GI_Main_Leader__id = List[0]['Parent']['Parent']['FSE_GI_Main_Leader__c'].substring(0, 15); |
| | | this.FSE_GI_Main_Leader__name = List[0]['Parent']['Parent']['FSE_GI_Main_Leader__r']['Name']; |
| | | } |
| | | if (List[0]['Parent']['Parent']['FSE_SP_Main_Leader__c'] != null) { |
| | | this.FSE_SP_Main_Leader__id = List[0]['Parent']['Parent']['FSE_SP_Main_Leader__c'].substring(0, 15); |
| | | this.FSE_SP_Main_Leader__name = List[0]['Parent']['Parent']['FSE_SP_Main_Leader__r']['Name']; |
| | | } |
| | | if (List[0]['Parent']['RecordType_DeveloperName__c'] != null || List[0]['Parent']['RecordType_DeveloperName__c'] != undefined) { |
| | | var recordId = List[0]['Parent']['RecordType_DeveloperName__c'].substring(0, 15); |
| | | if (recordId == 'Department_Class_GI' || recordId == 'Department_Class_BF' || recordId == 'Department_Class_ET') { |
| | | if (List[0]['Parent']['Parent']['FSE_GI_Main_Leader__c'] != null) { |
| | | this.Work_Location = List[0]['Parent']['Parent']['FSE_GI_Main_Leader__r']['this.Work_Location__c']; |
| | | } |
| | | } else if (recordId == 'Department_Class_GS' || recordId == 'Department_Class_URO' || recordId == 'Department_Class_ENT' || recordId == 'Department_Class_GYN' || recordId == 'Department_Class_OTH') { |
| | | if (List[0]['Parent']['Parent']['FSE_SP_Main_Leader__c'] != null) { |
| | | this.Work_Location = List[0]['Parent']['Parent']['FSE_SP_Main_Leader__r']['this.Work_Location__c']; |
| | | } |
| | | |
| | | } |
| | | } |
| | | if (RecordTypeId == 'Department_Class_GI') { |
| | | this.Incharge_Staff = this.FSE_GI_Main_Leader__name; |
| | | this.Incharge_Staff_id = this.FSE_GI_Main_Leader__id; |
| | | } |
| | | if (RecordTypeId == 'Department_Class_BF') { |
| | | this.Incharge_Staff = this.FSE_GI_Main_Leader__name; |
| | | this.Incharge_Staff_id = this.FSE_GI_Main_Leader__id; |
| | | } |
| | | if (RecordTypeId == 'Department_Class_ET') { |
| | | this.Incharge_Staff = this.FSE_GI_Main_Leader__name; |
| | | this.Incharge_Staff_id = this.FSE_GI_Main_Leader__id; |
| | | } |
| | | if (RecordTypeId == 'Department_Class_GS') { |
| | | this.Incharge_Staff = this.FSE_SP_Main_Leader__name; |
| | | this.Incharge_Staff_id = this.FSE_SP_Main_Leader__id; |
| | | } |
| | | if (RecordTypeId == 'Department_Class_URO') { |
| | | this.Incharge_Staff = this.FSE_SP_Main_Leader__name; |
| | | this.Incharge_Staff_id = this.FSE_SP_Main_Leader__id; |
| | | } |
| | | if (RecordTypeId == 'Department_Class_ENT') { |
| | | this.Incharge_Staff = this.FSE_SP_Main_Leader__name; |
| | | this.Incharge_Staff_id = this.FSE_SP_Main_Leader__id; |
| | | } |
| | | if (RecordTypeId == 'Department_Class_GYN') { |
| | | this.Incharge_Staff = this.FSE_SP_Main_Leader__name; |
| | | this.Incharge_Staff_id = this.FSE_SP_Main_Leader__id; |
| | | } |
| | | if (RecordTypeId == 'Department_Class_OTH') { |
| | | this.Incharge_Staff = this.FSE_SP_Main_Leader__name; |
| | | this.Incharge_Staff_id = this.FSE_SP_Main_Leader__id; |
| | | } |
| | | } |
| | | if (RecordTypeId == 'Department_Class_GI') { |
| | | Incharge_Staff = FSE_GI_Main_Leader__name; |
| | | Incharge_Staff_id = FSE_GI_Main_Leader__id; |
| | | } |
| | | if (RecordTypeId == 'Department_Class_BF') { |
| | | Incharge_Staff = FSE_GI_Main_Leader__name; |
| | | Incharge_Staff_id = FSE_GI_Main_Leader__id; |
| | | } |
| | | if (RecordTypeId == 'Department_Class_ET') { |
| | | Incharge_Staff = FSE_GI_Main_Leader__name; |
| | | Incharge_Staff_id = FSE_GI_Main_Leader__id; |
| | | } |
| | | if (RecordTypeId == 'Department_Class_GS') { |
| | | Incharge_Staff = FSE_SP_Main_Leader__name; |
| | | Incharge_Staff_id = FSE_SP_Main_Leader__id; |
| | | } |
| | | if (RecordTypeId == 'Department_Class_URO') { |
| | | Incharge_Staff = FSE_SP_Main_Leader__name; |
| | | Incharge_Staff_id = FSE_SP_Main_Leader__id; |
| | | } |
| | | if (RecordTypeId == 'Department_Class_ENT') { |
| | | Incharge_Staff = FSE_SP_Main_Leader__name; |
| | | Incharge_Staff_id = FSE_SP_Main_Leader__id; |
| | | } |
| | | if (RecordTypeId == 'Department_Class_GYN') { |
| | | Incharge_Staff = FSE_SP_Main_Leader__name; |
| | | Incharge_Staff_id = FSE_SP_Main_Leader__id; |
| | | } |
| | | if (RecordTypeId == 'Department_Class_OTH') { |
| | | Incharge_Staff = FSE_SP_Main_Leader__name; |
| | | Incharge_Staff_id = FSE_SP_Main_Leader__id; |
| | | } |
| | | } |
| | | |
| | | } |
| | | var url = "/a0J/e?CF00N10000002Dx66_lkid=" + this.HospitalId + "&CF00N10000002Dx66=" + this.HospitalC + "&CF00N10000002Dx5t_lkid=" + this.DepartmentClassId + "&CF00N10000002Dx5t=" + this.DepartmentClassC + "&CF00N10000002Dx5n_lkid=" + this.Id + "&CF00N10000002Dx5n=" + this.Name + "&CF00N10000002Dx1X_lkid=" + this.Id + "&CF00N10000002Dx1X=" + this.Name + "&CF00N10000002EMHw_lkid=" + Incharge_Staff_id + "&CF00N10000002EMHw=" + Incharge_Staff + "&00N10000002FH86=%e5%8f%aa%e4%bf%ae%e7%90%86&00N10000006P6Rn=" + this.RepairSalesPointProvinceChinaC + "&00N10000006P6SM=" + encodeURI(Work_Location) + "&CF00N10000009H7yM=" + QIS_Name + "&CF00N10000009H7yM_lkid=" + QIS_Id + "&00N10000009H2fa=" + Old_Repair_Name + "&retURL=%2F" + this.Id; |
| | | if (url1 != undefined) { |
| | | url = url + url1; |
| | | } |
| | | window.open(url); |
| | | const url = encodeDefaultFieldValues({ |
| | | Hospital__c: this.HospitalId, |
| | | Department_Class__c: this.DepartmentClassId, |
| | | Account__c: this.AccountId, |
| | | Delivered_Product__c: this.Id, |
| | | Incharge_Staff__c: this.Incharge_Staff_id, |
| | | Work_Location_select__c: this.RepairSalesPointProvinceChinaC, |
| | | SalesOfficeCode_selection__c: encodeURI(this.Work_Location), |
| | | Source_QIS__c: this.QIS_Id, |
| | | Old_Name__c: this.Old_Repair_Name, |
| | | Exc_Work_Location__c: this.flag |
| | | }); |
| | | this[NavigationMixin.Navigate]({ |
| | | type: 'standard__objectPage', |
| | | attributes: { |
| | | objectApiName: 'Repair__c', |
| | | actionName: 'new' |
| | | }, |
| | | state: { |
| | | nooverride: '1', |
| | | defaultFieldValues: url |
| | | } |
| | | }); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | }) |
| | | }) |
| | | } |
| | | |
| | | async handleConfirmClick01(msg) { |
| | | const result = await LightningConfirm.open({ |
| | | message: msg, |
| | | variant: 'headerless', |
| | | label: 'this is the aria-label value' |
| | | }); |
| | | if (result) { |
| | | this.ss(); |
| | | } else { |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | } |
| | | |
| | | async handleConfirmClick02(msg) { |
| | | const result = await LightningConfirm.open({ |
| | | message: msg, |
| | | variant: 'headerless', |
| | | label: 'this is the aria-label value' |
| | | }); |
| | | if (result) { |
| | | this.ll(); |
| | | } else { |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | } |
| | | |
| | | ShowToastEvent(msg, type) { |
| | | const event = new ShowToastEvent({ |
| | | title: '', |
| | | message: msg, |
| | | variant: type |
| | | }); |
| | | this.dispatchEvent(event); |
| | | } |
| | | |
| | | closeAction() { |
| | | location.reload(); |
| | | } |
| | | } |
| | |
| | | <target>lightning__AppPage</target> |
| | | <target>lightning__HomePage</target> |
| | | <target>lightning__RecordAction</target> |
| | | <target>lightning__FlowScreen</target> |
| | | </targets> |
| | | <!-- 定义变量 --> |
| | | <targetConfigs> |
| | | <targetConfig targets="lightning__FlowScreen"> |
| | | <property name="recordId" type="String" label="recordId"/> |
| | | </targetConfig> |
| | | </targetConfigs> |
| | | </LightningComponentBundle> |
| | |
| | | import init from '@salesforce/apex/buttonAccountCtl.init'; |
| | | import initUserName from '@salesforce/apex/buttonAccountCtl.initUserName'; |
| | | import selecctAccountByAccountId from '@salesforce/apex/buttonAccountCtl.selecctAccountByAccountId'; |
| | | import { |
| | | NavigationMixin |
| | | } from 'lightning/navigation'; |
| | | import { |
| | | encodeDefaultFieldValues |
| | | } from 'lightning/pageReferenceUtils'; |
| | | |
| | | export default class LexCreateRepairFromDepartment extends LightningElement { |
| | | export default class LexCreateRepairFromDepartment extends NavigationMixin(LightningElement) { |
| | | @api recordId; |
| | | str; |
| | | IsLoading = true; |
| | |
| | | }).then(result => { |
| | | console.log(result); |
| | | if (result != null) { |
| | | this.IsLoading = false; |
| | | this.Id = result.Id; |
| | | this.HospitalC = result.HospitalC == undefined ? "" : result.HospitalC;; |
| | | this.HospitalId = result.HospitalId == undefined ? "" : result.HospitalId;; |
| | |
| | | } |
| | | this.CreateRepairFromDepartment(); |
| | | }) |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | }).catch(error => { |
| | | console.log(error); |
| | |
| | | Incharge_Staff_id = FSE_SP_Main_Leader__id; |
| | | } |
| | | } |
| | | var url = "/a0J/e?CF00N10000002Dx66_lkid=" + this.HospitalId + "&CF00N10000002Dx66=" + this.HospitalC + "&CF00N10000002Dx5t_lkid=" + this.DepartmentClassId + "&CF00N10000002Dx5t=" + this.DepartmentClassC + "&CF00N10000002Dx5n_lkid=" + this.Id + "&CF00N10000002Dx5n=" + this.Name + "&CF00N10000002EMHw_lkid=" + Incharge_Staff_id + "&CF00N10000002EMHw=" + Incharge_Staff + "&00N10000002FH86=%e5%8f%aa%e4%bf%ae%e7%90%86&00N10000006P6Rn=" + this.RepairSalesPointProvinceChinaC + "&00N10000006P6SM=" + encodeURI(Work_Location) + "&retURL=%2F" + this.Id; |
| | | window.open(url); |
| | | const url = encodeDefaultFieldValues({ |
| | | Hospital__c: this.HospitalC, |
| | | Department_Class__c: this.DepartmentClassC, |
| | | Account__c: this.Id, |
| | | Incharge_Staff__c: Incharge_Staff_id, |
| | | SalesOfficeCode_selection__c: encodeURI(Work_Location), |
| | | work_location_select__c: this.RepairSalesPointProvinceChinaC |
| | | }); |
| | | this[NavigationMixin.Navigate]({ |
| | | type: 'standard__objectPage', |
| | | attributes: { |
| | | objectApiName: 'Repair__c', |
| | | actionName: 'new' |
| | | }, |
| | | state: { |
| | | nooverride: '1', |
| | | defaultFieldValues: url |
| | | } |
| | | }); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | |
| | | // var url = "/a0J/e?CF00N10000002Dx66_lkid=" + this.HospitalId + "&CF00N10000002Dx66=" + this.HospitalC + |
| | | // "&CF00N10000002Dx5t_lkid=" + this.DepartmentClassId + "&CF00N10000002Dx5t=" + this.DepartmentClassC + |
| | | // "&CF00N10000002Dx5n_lkid=" + this.Id + "&CF00N10000002Dx5n=" + this.Name + |
| | | // "&CF00N10000002EMHw_lkid=" + Incharge_Staff_id + "&CF00N10000002EMHw=" + Incharge_Staff + |
| | | // "&00N10000002FH86=%e5%8f%aa%e4%bf%ae%e7%90%86&00N10000006P6Rn=" + this.RepairSalesPointProvinceChinaC + |
| | | // "&00N10000006P6SM=" + encodeURI(Work_Location) + "&retURL=%2F" + this.Id; |
| | | |
| | | // window.open(url); |
| | | }) |
| | | } |
| | | } |
| | |
| | | <target>lightning__AppPage</target> |
| | | <target>lightning__HomePage</target> |
| | | <target>lightning__RecordAction</target> |
| | | <target>lightning__FlowScreen</target> |
| | | </targets> |
| | | <!-- 定义变量 --> |
| | | <targetConfigs> |
| | | <targetConfig targets="lightning__FlowScreen"> |
| | | <property name="recordId" type="String" label="recordId"/> |
| | | </targetConfig> |
| | | </targetConfigs> |
| | | </LightningComponentBundle> |
| | |
| | | <target>lightning__AppPage</target> |
| | | <target>lightning__HomePage</target> |
| | | <target>lightning__RecordAction</target> |
| | | <target>lightning__FlowScreen</target> |
| | | </targets> |
| | | <!-- 定义变量 --> |
| | | <targetConfigs> |
| | | <targetConfig targets="lightning__FlowScreen"> |
| | | <property name="recordId" type="String" label="recordId"/> |
| | | </targetConfig> |
| | | </targetConfigs> |
| | | </LightningComponentBundle> |
| | |
| | | <template> |
| | | <div class="exampleHolder" if:true={IsLoading}> |
| | | <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner> |
| | | </div> |
| | | <lightning-button label="Show Toast" onclick={ShowToastEvent}></lightning-button> </div> |
| | | </template> |
| | |
| | | import init from '@salesforce/apex/buttonQISReportCtl.init'; |
| | | import initUserName from '@salesforce/apex/buttonQISReportCtl.initUserName'; |
| | | import selecctAccountByAccountId from '@salesforce/apex/buttonQISReportCtl.selecctAccountByAccountId'; |
| | | import { |
| | | NavigationMixin |
| | | } from 'lightning/navigation'; |
| | | import { |
| | | encodeDefaultFieldValues |
| | | } from 'lightning/pageReferenceUtils'; |
| | | import { |
| | | ShowToastEvent |
| | | } from 'lightning/platformShowToastEvent'; |
| | | |
| | | export default class LexCreateRepairFromQIS extends LightningElement { |
| | | export default class LexCreateRepairFromQIS extends NavigationMixin(LightningElement) { |
| | | @api recordId; |
| | | str; |
| | | IsLoading = true; |
| | |
| | | }).then(result => { |
| | | console.log(result); |
| | | if (result != null) { |
| | | this.IsLoading = false; |
| | | this.Id = result.Id; |
| | | this.Name = result.Name; |
| | | this.SourceOnCallId = result.SourceOnCallId == undefined ? "" : result.SourceOnCallId; |
| | |
| | | this.CreateRepairFromQIS(); |
| | | }) |
| | | |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | }).catch(error => { |
| | | console.log(error); |
| | |
| | | |
| | | //新建修理QIS |
| | | CreateRepairFromQIS() { |
| | | console.log("开始"); |
| | | var newflag = false; |
| | | if ((this.OCMJudgementC == '质量问题' && this.nextAction == '无偿维修' && this.SpecialFollow == '0') || (this.OCMJudgementC == '非质量问题' && this.nextAction == '无偿维修' && this.SpecialFollow == '1') || (this.OCMJudgementC == '非质量问题' && this.nextAction == '有偿维修' && this.SpecialFollow == '0') || (this.OCMJudgementC == '质量问题+非质量问题' && this.nextAction == '无偿维修' && this.SpecialFollow == '1') || (this.OCMJudgementC == '质量问题+非质量问题' && this.nextAction == '有偿维修+无偿维修' && this.SpecialFollow == '0')) { |
| | | newflag = true; |
| | |
| | | var Incharge_Staff = ''; |
| | | var Incharge_Staff_id = ''; |
| | | var Work_Location = ''; |
| | | if (List[0]['ParentId'] != null) { |
| | | RecordTypeId = List[0]['Parent']['RecordType_DeveloperName__c'].substring(0, 15); |
| | | console.log(RecordTypeId); |
| | | var FSE_GI_Main_Leader__id = ''; |
| | | var FSE_GI_Main_Leader__name = ''; |
| | | var FSE_SP_Main_Leader__id = ''; |
| | | var FSE_SP_Main_Leader__name = ''; |
| | | if (List[0]['Parent']['Parent']['FSE_GI_Main_Leader__c'] != null) { |
| | | FSE_GI_Main_Leader__id = List[0]['Parent']['Parent']['FSE_GI_Main_Leader__c'].substring(0, 15); |
| | | FSE_GI_Main_Leader__name = List[0]['Parent']['Parent']['FSE_GI_Main_Leader__r']['Name']; |
| | | } |
| | | if (List[0]['Parent']['Parent']['FSE_SP_Main_Leader__c'] != null) { |
| | | FSE_SP_Main_Leader__id = List[0]['Parent']['Parent']['FSE_SP_Main_Leader__c'].substring(0, 15); |
| | | FSE_SP_Main_Leader__name = List[0]['Parent']['Parent']['FSE_SP_Main_Leader__r']['Name']; |
| | | } |
| | | if (List[0]['Parent']['RecordType_DeveloperName__c'] != null || List[0]['Parent']['RecordType_DeveloperName__c'] != undefined) { |
| | | var recordId = List[0]['Parent']['RecordType_DeveloperName__c'].substring(0, 15); |
| | | if (recordId == 'Department_Class_GI' || recordId == 'Department_Class_BF' || recordId == 'Department_Class_ET') { |
| | | if (List[0]['Parent']['Parent']['FSE_GI_Main_Leader__c'] != null) { |
| | | Work_Location = List[0]['Parent']['Parent']['FSE_GI_Main_Leader__r']['Work_Location__c']; |
| | | } |
| | | } else if (recordId == 'Department_Class_GS' || recordId == 'Department_Class_URO' || recordId == 'Department_Class_ENT' || recordId == 'Department_Class_GYN' || recordId == 'Department_Class_OTH') { |
| | | if (List[0]['Parent']['Parent']['FSE_SP_Main_Leader__c'] != null) { |
| | | Work_Location = List[0]['Parent']['Parent']['FSE_SP_Main_Leader__r']['Work_Location__c']; |
| | | } |
| | | |
| | | if (List.length > 0) { |
| | | if (List[0]['ParentId'] != null) { |
| | | RecordTypeId = List[0]['Parent']['RecordType_DeveloperName__c'].substring(0, 15); |
| | | console.log(RecordTypeId); |
| | | var FSE_GI_Main_Leader__id = ''; |
| | | var FSE_GI_Main_Leader__name = ''; |
| | | var FSE_SP_Main_Leader__id = ''; |
| | | var FSE_SP_Main_Leader__name = ''; |
| | | if (List[0]['Parent']['Parent']['FSE_GI_Main_Leader__c'] != null) { |
| | | FSE_GI_Main_Leader__id = List[0]['Parent']['Parent']['FSE_GI_Main_Leader__c'].substring(0, 15); |
| | | FSE_GI_Main_Leader__name = List[0]['Parent']['Parent']['FSE_GI_Main_Leader__r']['Name']; |
| | | } |
| | | } |
| | | if (RecordTypeId == 'Department_Class_GI') { |
| | | Incharge_Staff = FSE_GI_Main_Leader__name; |
| | | Incharge_Staff_id = FSE_GI_Main_Leader__id; |
| | | } |
| | | if (RecordTypeId == 'Department_Class_BF') { |
| | | Incharge_Staff = FSE_GI_Main_Leader__name; |
| | | Incharge_Staff_id = FSE_GI_Main_Leader__id; |
| | | } |
| | | if (RecordTypeId == 'Department_Class_ET') { |
| | | Incharge_Staff = FSE_GI_Main_Leader__name; |
| | | Incharge_Staff_id = FSE_GI_Main_Leader__id; |
| | | } |
| | | if (RecordTypeId == 'Department_Class_GS') { |
| | | Incharge_Staff = FSE_SP_Main_Leader__name; |
| | | Incharge_Staff_id = FSE_SP_Main_Leader__id; |
| | | } |
| | | if (RecordTypeId == 'Department_Class_URO') { |
| | | Incharge_Staff = FSE_SP_Main_Leader__name; |
| | | Incharge_Staff_id = FSE_SP_Main_Leader__id; |
| | | } |
| | | if (RecordTypeId == 'Department_Class_ENT') { |
| | | Incharge_Staff = FSE_SP_Main_Leader__name; |
| | | Incharge_Staff_id = FSE_SP_Main_Leader__id; |
| | | } |
| | | if (RecordTypeId == 'Department_Class_GYN') { |
| | | Incharge_Staff = FSE_SP_Main_Leader__name; |
| | | Incharge_Staff_id = FSE_SP_Main_Leader__id; |
| | | } |
| | | if (RecordTypeId == 'Department_Class_OTH') { |
| | | Incharge_Staff = FSE_SP_Main_Leader__name; |
| | | Incharge_Staff_id = FSE_SP_Main_Leader__id; |
| | | if (List[0]['Parent']['Parent']['FSE_SP_Main_Leader__c'] != null) { |
| | | FSE_SP_Main_Leader__id = List[0]['Parent']['Parent']['FSE_SP_Main_Leader__c'].substring(0, 15); |
| | | FSE_SP_Main_Leader__name = List[0]['Parent']['Parent']['FSE_SP_Main_Leader__r']['Name']; |
| | | } |
| | | if (List[0]['Parent']['RecordType_DeveloperName__c'] != null || List[0]['Parent']['RecordType_DeveloperName__c'] != undefined) { |
| | | var recordId = List[0]['Parent']['RecordType_DeveloperName__c'].substring(0, 15); |
| | | if (recordId == 'Department_Class_GI' || recordId == 'Department_Class_BF' || recordId == 'Department_Class_ET') { |
| | | if (List[0]['Parent']['Parent']['FSE_GI_Main_Leader__c'] != null) { |
| | | Work_Location = List[0]['Parent']['Parent']['FSE_GI_Main_Leader__r']['Work_Location__c']; |
| | | } |
| | | } else if (recordId == 'Department_Class_GS' || recordId == 'Department_Class_URO' || recordId == 'Department_Class_ENT' || recordId == 'Department_Class_GYN' || recordId == 'Department_Class_OTH') { |
| | | if (List[0]['Parent']['Parent']['FSE_SP_Main_Leader__c'] != null) { |
| | | Work_Location = List[0]['Parent']['Parent']['FSE_SP_Main_Leader__r']['Work_Location__c']; |
| | | } |
| | | |
| | | } |
| | | } |
| | | if (RecordTypeId == 'Department_Class_GI') { |
| | | Incharge_Staff = FSE_GI_Main_Leader__name; |
| | | Incharge_Staff_id = FSE_GI_Main_Leader__id; |
| | | } |
| | | if (RecordTypeId == 'Department_Class_BF') { |
| | | Incharge_Staff = FSE_GI_Main_Leader__name; |
| | | Incharge_Staff_id = FSE_GI_Main_Leader__id; |
| | | } |
| | | if (RecordTypeId == 'Department_Class_ET') { |
| | | Incharge_Staff = FSE_GI_Main_Leader__name; |
| | | Incharge_Staff_id = FSE_GI_Main_Leader__id; |
| | | } |
| | | if (RecordTypeId == 'Department_Class_GS') { |
| | | Incharge_Staff = FSE_SP_Main_Leader__name; |
| | | Incharge_Staff_id = FSE_SP_Main_Leader__id; |
| | | } |
| | | if (RecordTypeId == 'Department_Class_URO') { |
| | | Incharge_Staff = FSE_SP_Main_Leader__name; |
| | | Incharge_Staff_id = FSE_SP_Main_Leader__id; |
| | | } |
| | | if (RecordTypeId == 'Department_Class_ENT') { |
| | | Incharge_Staff = FSE_SP_Main_Leader__name; |
| | | Incharge_Staff_id = FSE_SP_Main_Leader__id; |
| | | } |
| | | if (RecordTypeId == 'Department_Class_GYN') { |
| | | Incharge_Staff = FSE_SP_Main_Leader__name; |
| | | Incharge_Staff_id = FSE_SP_Main_Leader__id; |
| | | } |
| | | if (RecordTypeId == 'Department_Class_OTH') { |
| | | Incharge_Staff = FSE_SP_Main_Leader__name; |
| | | Incharge_Staff_id = FSE_SP_Main_Leader__id; |
| | | } |
| | | } |
| | | } |
| | | |
| | | window.open("/a0J/e?CF00N10000002FIJU_lkid=" + this.SourceOnCallId + "&CF00N10000002FIJU=" + this.SourceOnCall + "&CF00N10000002FIJZ_lkid=" + this.Id + "&CF00N10000002FIJZ=" + this.Name + "&CF00N10000002Dx66_lkid=" + this.HospitalId + "&CF00N10000002Dx66=" + this.Hospital + "&CF00N10000002Dx5t_lkid=" + this.DepartmentClassId + "&CF00N10000002Dx5t=" + this.DepartmentClass + "&CF00N10000002Dx5n_lkid=" + this.HospitalDepartmentId + "&CF00N10000002Dx5n=" + this.HospitalDepartment + "&CF00N10000002Dx1X_lkid=" + this.nonyushohinId + "&CF00N10000002Dx1X=" + this.nonyushohin + "&CF00N10000002EMHw_lkid=" + Incharge_Staff_id + "&CF00N10000002EMHw=" + Incharge_Staff + "&00N10000002Dx5y=" + this.TrableOccurDaYCollect + "&00N10000006P6SM=" + encodeURI(Work_Location) + "&00N10000002FH86=" + this.sourceForRepair + "&00N10000006P6Rn=" + this.RepairSalesPointProvinceChinaC + "&retURL=%2F" + this.Id); |
| | | const url = encodeDefaultFieldValues({ |
| | | On_Call_ID__c: this.SourceOnCall, |
| | | QIS_ID__c: this.Id, |
| | | Hospital__c: this.Hospital, |
| | | Department_Class__c: this.DepartmentClass, |
| | | Account__c: this.HospitalDepartment, |
| | | Delivered_Product__c: this.nonyushohin, |
| | | Incharge_Staff__c: Incharge_Staff_id, |
| | | Failure_Occurrence_Date__c: this.TrableOccurDaYCollect, |
| | | SalesOfficeCode_selection__c: encodeURI(Work_Location), |
| | | Repair_Source__c: this.sourceForRepair, |
| | | work_location_select__c: this.RepairSalesPointProvinceChinaC |
| | | }); |
| | | this[NavigationMixin.Navigate]({ |
| | | type: 'standard__objectPage', |
| | | attributes: { |
| | | objectApiName: 'Repair__c', |
| | | actionName: 'new' |
| | | }, |
| | | state: { |
| | | nooverride: '1', |
| | | defaultFieldValues: url |
| | | } |
| | | }); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | |
| | | // window.open("/a0J/e?CF00N10000002FIJU_lkid=" + this.SourceOnCallId + "&CF00N10000002FIJU=" + this.SourceOnCall + |
| | | // "&CF00N10000002FIJZ_lkid=" + this.Id + "&CF00N10000002FIJZ=" + this.Name + |
| | | // "&CF00N10000002Dx66_lkid=" + this.HospitalId + "&CF00N10000002Dx66=" + this.Hospital + |
| | | // "&CF00N10000002Dx5t_lkid=" + this.DepartmentClassId + "&CF00N10000002Dx5t=" + this.DepartmentClass + |
| | | // "&CF00N10000002Dx5n_lkid=" + this.HospitalDepartmentId + "&CF00N10000002Dx5n=" + this.HospitalDepartment + |
| | | // "&CF00N10000002Dx1X_lkid=" + this.nonyushohinId + "&CF00N10000002Dx1X=" + this.nonyushohin + |
| | | // "&CF00N10000002EMHw_lkid=" + Incharge_Staff_id + "&CF00N10000002EMHw=" + Incharge_Staff + |
| | | // "&00N10000002Dx5y=" + this.TrableOccurDaYCollect + "&00N10000006P6SM=" + encodeURI(Work_Location) + |
| | | // "&00N10000002FH86=" + this.sourceForRepair + "&00N10000006P6Rn=" + this.RepairSalesPointProvinceChinaC + |
| | | // "&retURL=%2F" + this.Id); |
| | | |
| | | }) |
| | | } else { |
| | | alert("不能新建修理"); |
| | | this.ShowToastEvent("不能新建修理", "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | } |
| | | |
| | | ShowToastEvent(msg, type) { |
| | | const event = new ShowToastEvent({ |
| | | title: '', |
| | | message: msg, |
| | | variant: type |
| | | }); |
| | | this.dispatchEvent(event); |
| | | } |
| | | } |
| | |
| | | <target>lightning__AppPage</target> |
| | | <target>lightning__HomePage</target> |
| | | <target>lightning__RecordAction</target> |
| | | <target>lightning__FlowScreen</target> |
| | | </targets> |
| | | <!-- 定义变量 --> |
| | | <targetConfigs> |
| | | <targetConfig targets="lightning__FlowScreen"> |
| | | <property name="recordId" type="String" label="recordId"/> |
| | | </targetConfig> |
| | | </targetConfigs> |
| | | </LightningComponentBundle> |
| New file |
| | |
| | | .toast{ |
| | | border: 1px solid #c9c9c9; |
| | | border-radius: 10px; |
| | | width: 50%; |
| | | margin: 0 auto; |
| | | font-size: 18px; |
| | | font-weight: bold; |
| | | padding: 10px 20px; |
| | | background: #EA001E; |
| | | display: flex; |
| | | color: white; |
| | | } |
| | |
| | | <template> |
| | | <div class="exampleHolder" if:true={IsLoading}> |
| | | <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner> |
| | | <lightning-button label="Show Toast" onclick={ShowToastEvent}></lightning-button> |
| | | </div> |
| | | <div if:false={IsLoading} class="toast"> |
| | | <span style="padding: 10px;">{msg}</span> |
| | | <button class="slds-button slds-button_icon slds-modal__close slds-button_icon-inverse" onclick={closeAction} |
| | | title="Close" style="background-color: #e5e4e2;margin-top: 15px;"> |
| | | <lightning-icon class="greyIcon" icon-name="utility:close" alternative-text="Connected" variant="inverse" |
| | | size="small" title="Close" style="color: black;"></lightning-icon> |
| | | <span class="slds-assistive-text">Close</span> |
| | | </button> |
| | | </div> |
| | | </template> |
| | |
| | | CloseActionScreenEvent |
| | | } from 'lightning/actions'; |
| | | import init from '@salesforce/apex/otherButtonMaintenanceContractCtl.init'; |
| | | import { |
| | | ShowToastEvent |
| | | } from 'lightning/platformShowToastEvent'; |
| | | import selectMaintenanceContractEstimate from '@salesforce/apex/otherButtonMaintenanceContractCtl.selectMaintenanceContractEstimate'; |
| | | |
| | | export default class LexCustomAnewMaintenance extends LightningElement { |
| | |
| | | StatusC; |
| | | RecordTypeDeveloperNameC; |
| | | URFContractC; |
| | | msg; |
| | | |
| | | @wire(CurrentPageReference) |
| | | getStateParameters(currentPageReference) { |
| | |
| | | }).then(result => { |
| | | console.log(result); |
| | | if (result != null) { |
| | | this.IsLoading = false; |
| | | this.Id = result.Id; |
| | | this.RecordTypeDeveloperNameC = result.RecordTypeDeveloperNameC; |
| | | this.StatusC = result.StatusC; |
| | |
| | | }) |
| | | } |
| | | |
| | | //中止 |
| | | //合同再报价 |
| | | CustomAnew() { |
| | | if (this.StatusC != "引合中") { |
| | | alert("维修合同不是询价中的状态,不能再报价") |
| | | this.msg = "维修合同不是询价中的状态,不能再报价"; |
| | | this.IsLoading = false; |
| | | return; |
| | | } else { |
| | | selectMaintenanceContractEstimate({ |
| | | recordId: this.Id |
| | |
| | | } else { |
| | | window.open("/apex/SelectAssetEstimate?copyid=" + ids[0].Id, "_top"); |
| | | } |
| | | |
| | | } else { |
| | | alert('请选择一个报价') |
| | | this.msg = '请选择一个报价'; |
| | | this.IsLoading = false; |
| | | return; |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | |
| | | closeAction() { |
| | | window.history.go(-1); |
| | | } |
| | | } |
| | |
| | | <template> |
| | | <div class="exampleHolder" if:true={IsLoading}> |
| | | <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner> |
| | | <lightning-button onclick={handleConfirmClick} label="Open Confirm Modal"></lightning-button> |
| | | </div> |
| | | </template> |
| | |
| | | import { |
| | | ShowToastEvent |
| | | } from 'lightning/platformShowToastEvent'; |
| | | import LightningConfirm from 'lightning/confirm'; |
| | | |
| | | export default class LexCustomDelete extends LightningElement { |
| | | @api recordId; |
| | |
| | | this.userID = result.userID; |
| | | |
| | | this.CustomDelete(); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | }).catch(error => { |
| | | console.log(error); |
| | | }).finally(() => { |
| | | |
| | | }); |
| | | }) |
| | | } |
| | | |
| | | // 删除 |
| | |
| | | if (repList != null && repList.length > 0) { |
| | | var rp = repList[0]; |
| | | if (rp.Status__c != "草案中" && rp.Status__c != "1.受理完毕(SAP待发送)" && rp.Status__c != "4.修理品返送阶段") { |
| | | this.ShowToastEvent("不是草案中,不能删除", "error") |
| | | this.ShowToastEvent("不是草案中,不能删除", "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } else if (rp.Status__c == "4.修理品返送阶段" && (rp.SAP_Transfer_time__c != undefined || rp.Repair_Ordered_Date__c != undefined)) { |
| | | this.ShowToastEvent("已经发送过SAP,不能删除", "error") |
| | | this.ShowToastEvent("已经发送过SAP,不能删除", "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } else if (this.userID.substring(0, 15) != rp.CreatedById.substring(0, 15) && this.userID.substring(0, 15) != rp.Acc_OwnerId__c.substring(0, 15) && this.userID.substring(0, 15) != rp.FSE_ownerid__c.substring(0, 15)) { |
| | | this.ShowToastEvent("不是所有人、创建人或FSE主负责人,不能删除", "error") |
| | | this.ShowToastEvent("不是所有人、创建人或FSE主负责人,不能删除", "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } else { |
| | | if (confirm("是否确定?")) { |
| | | deleteRepair({ |
| | | rid: rp.Id |
| | | }).then(rtn => { |
| | | if (rtn == "OK") { |
| | | window.location.href = "/a0J/o"; |
| | | } else { |
| | | alert(rtn); |
| | | } |
| | | }) |
| | | } |
| | | this.handleConfirmClick("是否确定?"); |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | |
| | | ll() { |
| | | deleteRepair({ |
| | | rid: this.Id |
| | | }).then(rtn => { |
| | | if (rtn == "OK") { |
| | | window.location.href = "/a0J/o"; |
| | | } else { |
| | | this.ShowToastEvent(rtn, "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } |
| | | }) |
| | | } |
| | |
| | | }); |
| | | this.dispatchEvent(event); |
| | | } |
| | | |
| | | async handleConfirmClick(msg) { |
| | | const result = await LightningConfirm.open({ |
| | | message: msg, |
| | | variant: 'headerless', |
| | | label: 'this is the aria-label value' |
| | | }); |
| | | |
| | | if (result) { |
| | | this.ll(); |
| | | } else { |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | } |
| | | } |
| New file |
| | |
| | | .toast{ |
| | | border: 1px solid #c9c9c9; |
| | | border-radius: 10px; |
| | | width: 50%; |
| | | margin: 0 auto; |
| | | font-size: 18px; |
| | | font-weight: bold; |
| | | padding: 10px 20px; |
| | | background: #EA001E; |
| | | display: flex; |
| | | color: white; |
| | | } |
| | |
| | | <template> |
| | | <div class="toReportHolder" if:true={IsLoading}> |
| | | <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner> |
| | | <lightning-button onclick={handleConfirmClick} label="Open Confirm Modal"></lightning-button> |
| | | </div> |
| | | <div if:false={IsLoading} class="toast"> |
| | | <span style="padding: 10px;">{msg}</span> |
| | | <button class="slds-button slds-button_icon slds-modal__close slds-button_icon-inverse" onclick={closeAction} title="Close" style="background-color: #e5e4e2;margin-top: 15px;"> |
| | | <lightning-icon class="greyIcon" icon-name="utility:close" alternative-text="Connected" variant="inverse" size="small" |
| | | title="Close" style="color: black;"></lightning-icon> |
| | | <span class="slds-assistive-text">Close</span> |
| | | </button> |
| | | </div> |
| | | </template> |
| | |
| | | CloseActionScreenEvent |
| | | } from 'lightning/actions'; |
| | | import init from '@salesforce/apex/otherButtonMaintenanceContractCtl.init'; |
| | | import LightningConfirm from 'lightning/confirm'; |
| | | |
| | | export default class LexCustomNewMCMaintenance extends LightningElement { |
| | | @api recordId; |
| | |
| | | IsRecognitionModelC; |
| | | URFContractC; |
| | | RecordTypeDeveloperNameC; |
| | | msg; |
| | | |
| | | @wire(CurrentPageReference) |
| | | getStateParameters(currentPageReference) { |
| | |
| | | }).then(result => { |
| | | console.log(result); |
| | | if (result != null) { |
| | | this.IsLoading = false; |
| | | this.Id = result.Id; |
| | | this.StatusC = result.StatusC; |
| | | this.IsRecognitionModelC = result.IsRecognitionModelC; |
| | |
| | | // 新建新服务合同报价 |
| | | CustomNewMC() { |
| | | if (this.StatusC != "引合中") { |
| | | alert("维修合同不是询价中的状态,不能新建报价"); |
| | | this.msg = "维修合同不是询价中的状态,不能新建报价"; |
| | | this.IsLoading = false; |
| | | } else { |
| | | if (this.IsRecognitionModelC == 1) { |
| | | if (!confirm("该经销商为先款对象,是否继续新建报价?")) { |
| | | return; |
| | | } |
| | | } |
| | | if (this.RecordTypeDeveloperNameC == "NewMaintenance_Contract") { |
| | | if (this.URFContractC == 0) { |
| | | window.open("/apex/SelectAssetEstimateVM?mcid=" + this.Id, "_top"); |
| | | } else { |
| | | window.open("/apex/SelectAssetEstimateURF?mcid=" + this.Id, "_top"); |
| | | } |
| | | this.handleConfirmClick("该经销商为先款对象,是否继续新建报价?") |
| | | } else { |
| | | window.open("/apex/SelectAssetEstimate?mcid=" + this.Id, "_top"); |
| | | this.ll(); |
| | | } |
| | | |
| | | } |
| | | } |
| | | |
| | | ll() { |
| | | if (this.RecordTypeDeveloperNameC == "NewMaintenance_Contract") { |
| | | if (this.URFContractC == 0) { |
| | | window.open("/apex/SelectAssetEstimateVM?mcid=" + this.Id, "_top"); |
| | | } else { |
| | | window.open("/apex/SelectAssetEstimateURF?mcid=" + this.Id, "_top"); |
| | | } |
| | | } else { |
| | | window.open("/apex/SelectAssetEstimate?mcid=" + this.Id, "_top"); |
| | | } |
| | | } |
| | | |
| | | async handleConfirmClick(msg) { |
| | | const result = await LightningConfirm.open({ |
| | | message: msg, |
| | | variant: 'headerless', |
| | | label: 'this is the aria-label value' |
| | | }); |
| | | if (result) { |
| | | this.ll(); |
| | | } else { |
| | | window.history.go(-1); |
| | | } |
| | | } |
| | | |
| | | closeAction() { |
| | | window.history.go(-1); |
| | | } |
| | | } |
| New file |
| | |
| | | .toast{ |
| | | border: 1px solid #c9c9c9; |
| | | border-radius: 10px; |
| | | width: 50%; |
| | | margin: 0 auto; |
| | | font-size: 18px; |
| | | font-weight: bold; |
| | | padding: 10px 20px; |
| | | background: #EA001E; |
| | | display: flex; |
| | | color: white; |
| | | } |
| | |
| | | <div class="exampleHolder" if:true={IsLoading}> |
| | | <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner> |
| | | </div> |
| | | <div if:false={IsLoading} class="toast"> |
| | | <span style="padding: 10px;">{msg}</span> |
| | | <button class="slds-button slds-button_icon slds-modal__close slds-button_icon-inverse" onclick={closeAction} title="Close" style="background-color: #e5e4e2;margin-top: 15px;"> |
| | | <lightning-icon class="greyIcon" icon-name="utility:close" alternative-text="Connected" variant="inverse" size="small" |
| | | title="Close" style="color: black;"></lightning-icon> |
| | | <span class="slds-assistive-text">Close</span> |
| | | </button> |
| | | </div> |
| | | </template> |
| | |
| | | Id; |
| | | StatusC; |
| | | RecordTypeDeveloperNameC; |
| | | msg; |
| | | |
| | | @wire(CurrentPageReference) |
| | | getStateParameters(currentPageReference) { |
| | |
| | | }).then(result => { |
| | | console.log(result); |
| | | if (result != null) { |
| | | this.IsLoading = false; |
| | | this.Id = result.Id; |
| | | this.StatusC = result.StatusC; |
| | | this.RecordTypeDeveloperNameC = result.RecordTypeDeveloperNameC; |
| | |
| | | // 新建维修合同报价 |
| | | CustomNew() { |
| | | if (this.StatusC != "引合中") { |
| | | alert("维修合同不是询价中的状态,不能新建报价"); |
| | | this.msg = "维修合同不是询价中的状态,不能新建报价"; |
| | | this.IsLoading = false; |
| | | } else { |
| | | if (this.RecordTypeDeveloperNameC == "NewMaintenance_Contract") { |
| | | window.open("/apex/SelectAssetEstimateVM?mcid=" + this.Id, "_top"); |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | closeAction() { |
| | | window.history.go(-1); |
| | | } |
| | | } |
| | |
| | | this.RepairC = result.RepairC; |
| | | |
| | | this.DiscountRequest(); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | }).catch(error => { |
| | | console.log(error); |
| | |
| | | console.log(rp); |
| | | if (rp.Return_Without_Repair_IF__c == true) { |
| | | this.ShowToastEvent("未修理归还的修理不允许减价申请", "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } else { |
| | | if (rp.Return_Without_Repair__c == true) { |
| | | this.ShowToastEvent("已经申请未修理返回,如果需要继续修理请取消\"未修理归还申请\"的勾选后再进行减价申请操作", "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } |
| | | } |
| | |
| | | console.log(result); |
| | | if (result.length > 0) { |
| | | var split = result.split(", "); |
| | | alert(split[1]); |
| | | this.ShowToastEvent(split[1], "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } |
| | | }) |
| | |
| | | console.log(result); |
| | | if (result.length > 0) { |
| | | var split = result.split(", "); |
| | | alert(split[1]); |
| | | this.ShowToastEvent(split[1], "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } |
| | | }) |
| | |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | }else{ |
| | | window.open ('/apex/HPConfirmPage?id='+this.recordId, '医院确认', |
| | | 'height=340, width=600, top=200, left=400, toolbar=no, menubar=no, scrollbars=no, location=no, status=no'); |
| | | 'height=340, width=800, top=200, left=200, toolbar=no, menubar=no, scrollbars=no, location=no, status=no'); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | } |
| | |
| | | <template> |
| | | <div class="dispatchOCSMQARAHolder" if:true={IsLoading}> |
| | | <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner> |
| | | <lightning-button label="Show Toast" onclick={ShowToastEvent}></lightning-button> |
| | | </div> |
| | | </template> |
| | |
| | | import { LightningElement,wire,track,api} from 'lwc'; |
| | | import { CurrentPageReference, NavigationMixin} from "lightning/navigation"; |
| | | import { CloseActionScreenEvent } from 'lightning/actions'; |
| | | import init from '@salesforce/apex/lexEquipmentRentalApply_FromQISCtl.rentalApp'; |
| | | import rentalApp from '@salesforce/apex/lexEquipmentRentalApply_FromQISCtl.init'; |
| | | import UserInfo_Owner from '@salesforce/apex/lexEquipmentRentalApply_FromQISCtl.UserInfo_Owner'; |
| | | import rentalApp from '@salesforce/apex/LexEquipmentRentalApply_FromQISCtl.rentalApp'; |
| | | import init from '@salesforce/apex/LexEquipmentRentalApply_FromQISCtl.init'; |
| | | import UserInfo_Owner from '@salesforce/apex/LexEquipmentRentalApply_FromQISCtl.UserInfo_Owner'; |
| | | import { ShowToastEvent } from 'lightning/platformShowToastEvent'; |
| | | import { encodeDefaultFieldValues } from 'lightning/pageReferenceUtils'; |
| | | |
| | |
| | | rentalApp({ |
| | | recordId: this.recordId |
| | | }).then(result => { |
| | | console.log('rentalApp============' + result); |
| | | console.log('rentalApp============',result); |
| | | if(result.lenth > 0){ |
| | | const evt = new ShowToastEvent({ |
| | | title : 'Error', |
| | |
| | | recordId: this.recordId |
| | | }).then(result => { |
| | | this.IsLoading = false; |
| | | |
| | | console.log('init============',result); |
| | | if (result != null) { |
| | | if(result.nextAction=='送回'){ |
| | | this.showToast('QIS对应方法为“送回”,不能申请','warning'); |
| | | this.showToast('QIS对应方法为“送回”,不能申请','error'); |
| | | return; |
| | | } |
| | | if(result.qISStatus=='草案中'){ |
| | | this.showToast('QIS状态为草案中,不能申请','warning'); |
| | | // this.msg = 'QIS状态为草案中,不能申请'; |
| | | this.showToast('QIS状态为草案中,不能申请','error'); |
| | | return; |
| | | } |
| | | if(result.qISStatus=='FSE填写完毕'){ |
| | | this.showToast('QIS状态为FSE填写完毕,不能申请','warning'); |
| | | this.showToast('QIS状态为FSE填写完毕,不能申请','error'); |
| | | return; |
| | | } |
| | | if(result.qISStatus=='取消'){ |
| | | this.showToast('QIS状态为取消,不能申请','warning'); |
| | | this.showToast('QIS状态为取消,不能申请','error'); |
| | | return; |
| | | } |
| | | // if('{!$User.isFormal_Stuff__c}'=='true'){ |
| | |
| | | // } |
| | | UserInfo_Owner({}).then(res=>{ |
| | | if(res.isFormalStuff == 'true'){ |
| | | this.showToast('试用期内,不能申请','warning'); |
| | | this.showToast('试用期内,不能申请','error'); |
| | | return; |
| | | }else{ |
| | | const defaultValues = encodeDefaultFieldValues({ |
| | | QIS_Report__c: this.recordId, |
| | | Hospital: result.hospital, |
| | | Strategic_dept: result.departmentClass, |
| | | Account:result.hospitalDepartment, |
| | | Demo_purpose1:'维修代用', |
| | | demo_purpose2:'索赔QIS', |
| | | Hospital__c: result.hospital, |
| | | Strategic_dept__c: result.departmentClass, |
| | | Account__c:result.hospitalDepartment, |
| | | Demo_purpose1__c:'维修代用', |
| | | demo_purpose2__c:'索赔QIS', |
| | | Name:'*', |
| | | Person_In_Charge:res.lastName + res.firstName, |
| | | applyUser:res.lastName + res.firstName, |
| | | Loaner_received_staff:res.lastName + res.firstName, |
| | | QIS_number:result.name, |
| | | QISRepair:result.repair |
| | | Person_In_Charge__c:res.lastName + res.firstName, |
| | | applyUser__c:res.lastName + res.firstName, |
| | | Loaner_received_staff__c:res.lastName + res.firstName, |
| | | QIS_number__c:result.name, |
| | | QISRepair__c:result.repair |
| | | }); |
| | | |
| | | this[NavigationMixin.Navigate]({ |
| | |
| | | |
| | | showToast(message, type) { |
| | | const evt = new ShowToastEvent({ |
| | | title: '', |
| | | title: 'Error', |
| | | message: message, |
| | | variant: type |
| | | }); |
| | | this.dispatchEvent(evt); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | |
| | | } |
| | |
| | | <apiVersion>56.0</apiVersion> |
| | | <isExposed>true</isExposed> |
| | | <targets> |
| | | <target>lightning__AppPage</target> |
| | | <target>lightning__RecordPage</target> |
| | | <target>lightning__HomePage</target> |
| | | <target>lightning__RecordAction</target> |
| | | <!-- 屏幕流配置 --> |
| | | <target>lightning__FlowScreen</target> |
| | | </targets> |
| | | <!-- 定义变量 --> |
| | | <targetConfigs> |
| | | <targetConfig targets="lightning__FlowScreen"> |
| | | <!-- name js中使用的变量,从屏幕流中获取参数 label 在屏幕流的该LWC的设置中显示 --> |
| | | <property name="recordId" type="String" label="recordId"/> |
| | | <!-- <property name="rentalApplyIds" type="String[]" label="rentalApplyIds"/> --> |
| | | </targetConfig> |
| | | </targetConfigs> |
| | | <target>lightning__RecordPage</target> |
| | | <target>lightning__AppPage</target> |
| | | <target>lightning__HomePage</target> |
| | | <target>lightning__RecordAction</target> |
| | | </targets> |
| | | </LightningComponentBundle> |
| | |
| | | return; |
| | | }else{ |
| | | const defaultValues = encodeDefaultFieldValues({ |
| | | Statu_Achievements: result.achievement, |
| | | Statu_Achievements__c: result.achievement, |
| | | retURL:this.recordId, |
| | | Hospital: result.hospital, |
| | | Hospital__c: result.hospital, |
| | | Name:'*', |
| | | Strategic_dept: result.departmentClass, |
| | | Account:result.oppClassName, |
| | | Demo_purpose1:'产品试用', |
| | | demo_purpose2:'已购待货', |
| | | Person_In_Charge:res.lastName + res.firstName, |
| | | applyUser:res.lastName + res.firstName, |
| | | Loaner_received_staff:res.lastName + res.firstName, |
| | | Follow_UP_Opp:result.opportunity |
| | | Strategic_dept__c: result.departmentClass, |
| | | Account__c:result.oppClassName, |
| | | Demo_purpose1__c:'产品试用', |
| | | demo_purpose2__c:'已购待货', |
| | | Person_In_Charge__c:res.lastName + res.firstName, |
| | | applyUser__c:res.lastName + res.firstName, |
| | | Loaner_received_staff__c:res.lastName + res.firstName, |
| | | Follow_UP_Opp__c:result.opportunity |
| | | }); |
| | | |
| | | this[NavigationMixin.Navigate]({ |
| | |
| | | console.log(error); |
| | | }) |
| | | }else{ |
| | | this.showToast(res,'warning'); |
| | | this.showToast(res,'error'); |
| | | return; |
| | | } |
| | | }) |
| | |
| | | |
| | | showToast(message, type) { |
| | | const evt = new ShowToastEvent({ |
| | | title: '', |
| | | title: 'Error', |
| | | message: message, |
| | | variant: type |
| | | }); |
| | | this.dispatchEvent(evt); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | } |
| | |
| | | <apiVersion>56.0</apiVersion> |
| | | <isExposed>true</isExposed> |
| | | <targets> |
| | | <target>lightning__AppPage</target> |
| | | <target>lightning__RecordPage</target> |
| | | <target>lightning__HomePage</target> |
| | | <target>lightning__RecordAction</target> |
| | | <!-- 屏幕流配置 --> |
| | | <target>lightning__FlowScreen</target> |
| | | </targets> |
| | | <!-- 定义变量 --> |
| | | <targetConfigs> |
| | | <targetConfig targets="lightning__FlowScreen"> |
| | | <!-- name js中使用的变量,从屏幕流中获取参数 label 在屏幕流的该LWC的设置中显示 --> |
| | | <property name="recordId" type="String" label="recordId"/> |
| | | <!-- <property name="rentalApplyIds" type="String[]" label="rentalApplyIds"/> --> |
| | | </targetConfig> |
| | | </targetConfigs> |
| | | <target>lightning__RecordPage</target> |
| | | <target>lightning__AppPage</target> |
| | | <target>lightning__HomePage</target> |
| | | <target>lightning__RecordAction</target> |
| | | </targets> |
| | | </LightningComponentBundle> |
| New file |
| | |
| | | <template> |
| | | <div class="lexESignAcceptanceHospital" if:true={IsLoding}> |
| | | <lightning-spinner alternative-text="Loading" size="medium"> </lightning-spinner> </div> |
| | | </template> |
| New file |
| | |
| | | import { LightningElement,wire,track,api} from 'lwc'; |
| | | import { CurrentPageReference } from "lightning/navigation"; |
| | | import { CloseActionScreenEvent } from 'lightning/actions'; |
| | | import init from '@salesforce/apex/InquiryFormController.init'; |
| | | import sqlResult from '@salesforce/apex/InquiryFormController.sqlResult'; |
| | | import { ShowToastEvent } from 'lightning/platformShowToastEvent'; |
| | | export default class lexInquiryFormCustomLink1 extends LightningElement { |
| | | @api recordId;//OwnerId |
| | | IsLoading = true; |
| | | Id= ""; |
| | | ServiceStatus= ""; |
| | | profileId= ""; |
| | | userId= ""; |
| | | Status= ""; |
| | | LeadLink= ""; |
| | | OppNameSearch= ""; |
| | | ContactName= ""; |
| | | ContactId = ""; |
| | | HospitalName= ""; |
| | | HospitalID= ""; |
| | | DepartmentClass= ""; |
| | | DepartmentID = ""; |
| | | OppNameSearchID= ""; |
| | | Campaign= ""; |
| | | CampaignID= ""; |
| | | Name= ""; |
| | | CancelReason= ""; |
| | | Phone= ""; |
| | | Email= ""; |
| | | LastName= ""; |
| | | LeadSource= ""; |
| | | OpportunityDivision= ""; |
| | | Request1= ""; |
| | | Urgent = false; |
| | | FSEOwner= ""; |
| | | FamilyName= ""; |
| | | @wire(CurrentPageReference) |
| | | getStateParameters(currentPageReference) { |
| | | if (currentPageReference) { |
| | | const urlValue = currentPageReference.state.recordId; |
| | | if (urlValue) { |
| | | let str = `${urlValue}`; |
| | | this.recordId = str; |
| | | } |
| | | } |
| | | } |
| | | connectedCallback(){ |
| | | init({ |
| | | recordId: this.recordId |
| | | }).then(result => { |
| | | this.IsLoading = false; |
| | | this.Id = result.Id != undefined ? result.Id : ""; |
| | | this.ServiceStatus = result.ServiceStatus != undefined ? result.ServiceStatus : ""; |
| | | this.profileId = result.profileId != undefined ? result.profileId : ""; |
| | | this.userId = result.userId != undefined ? result.userId : ""; |
| | | this.Status = result.Status != undefined ? result.Status : ""; |
| | | this.LeadLink = result.LeadLink != undefined ? result.LeadLink : ""; |
| | | this.OppNameSearch = result.OppNameSearch != undefined ? result.OppNameSearch : ""; |
| | | this.ContactName = result.ContactName != undefined ? result.ContactName : ""; |
| | | this.ContactId = result.ContactId != undefined ? result.ContactId : ""; |
| | | this.HospitalName = result.HospitalName != undefined ? result.HospitalName : ""; |
| | | this.HospitalID = result.HospitalID != undefined ? result.HospitalID : ""; |
| | | this.DepartmentClass = result.DepartmentClass != undefined ? result.DepartmentClass : ""; |
| | | this.DepartmentID = result.DepartmentID != undefined ? result.DepartmentID : ""; |
| | | this.OppNameSearchID = result.OppNameSearchID != undefined ? result.OppNameSearchID : ""; |
| | | this.Campaign = result.Campaign != undefined ? result.Campaign : ""; |
| | | this.CampaignID = result.CampaignID != undefined ? result.CampaignID : ""; |
| | | this.Name = result.Name != undefined ? result.Name : ""; |
| | | this.CancelReason = result.CancelReason != undefined ? result.CancelReason : ""; |
| | | this.Phone = result.Phone != undefined ? result.Phone : ""; |
| | | this.Email = result.Email != undefined ? result.Email : ""; |
| | | this.LastName = result.LastName != undefined ? result.LastName : ""; |
| | | this.LeadSource = result.LeadSource != undefined ? result.LeadSource : ""; |
| | | this.OpportunityDivision = result.OpportunityDivision != undefined ? result.OpportunityDivision : ""; |
| | | this.Request1 = result.Request1 != undefined ? result.Request1 : ""; |
| | | this.FSEOwner = result.FSEOwner != undefined ? result.FSEOwner : ""; |
| | | this.FamilyName = result.FamilyName != undefined ? result.FamilyName : ""; |
| | | this.Urgent = result.Urgent == 0 ? 0 :1; |
| | | this.CustomLink1(); |
| | | }) |
| | | } |
| | | // 产品咨询单 新建意向 |
| | | CustomLink1(){ |
| | | var lead = ""; |
| | | var search = ""; |
| | | sqlResult({id:this.recordId}).then(records=>{ |
| | | var Request = ''; |
| | | if(records[0].Request_Detail__c != null){ |
| | | Request = records[0].Request_Detail__c.toString(); |
| | | } |
| | | var lead = this.LeadLink; |
| | | var search = this.OppNameSearch; |
| | | // this.CustomLink1(); |
| | | if(lead){ |
| | | // alert('已经有意向了,不能再创建新的意向。'); |
| | | this.showToast("已经有意向了,不能再创建新的意向。!","error"); |
| | | return; |
| | | }else{ |
| | | //var urlStr ='/00Q/e?RecordType=01210000000QiRa&ent=Lead'; |
| | | //window.open(urlStr); |
| | | var urlStr ='/apex/NewAndEditLead?RecordType=01210000000QiRa&ent=Lead'+ |
| | | '&CF00N10000006ps6f='+encodeURI(this.ContactName)+ |
| | | '&CF00N10000006ps6f_lkid='+encodeURI(this.ContactId)+ |
| | | '&CF00N10000002CvC5='+encodeURI(this.HospitalName)+ |
| | | '&CF00N10000002CvC5_lkid='+encodeURI(this.HospitalID)+ |
| | | '&CF00N10000006qNtt='+encodeURI(this.DepartmentClass)+ |
| | | '&CF00N10000006qNtt_lkid='+encodeURI(this.DepartmentID)+ |
| | | '&CF00N10000006qNty='+encodeURI(this.OppNameSearch)+ |
| | | '&CF00N10000006qNty_lkid='+encodeURI(this.OppNameSearchID)+ |
| | | '&CF00N10000004oN28='+encodeURI(this.Campaign)+ |
| | | '&CF00N10000004oN28_lkid='+encodeURI(this.CampaignID)+ |
| | | '&CF00N1000000962np='+encodeURI(this.Name)+ |
| | | '&CF00N1000000962np_lkid='+encodeURI(this.Id)+ |
| | | '&00N10000006qBYk='+encodeURI(this.CancelReason)+ |
| | | // '&00N10000006qGvj='+result.ProductOwner+ |
| | | '&00N10000002CvBM=' + encodeURI(Request) + |
| | | '&lea13=未跟进'+ |
| | | '&lea3='+encodeURI(this.HospitalName)+ |
| | | '&lea8='+encodeURI(this.Phone.trim())+ |
| | | '&lea11='+encodeURI(this.Email.trim())+ |
| | | '&name_lastlea2=' + encodeURI(this.FamilyName) + |
| | | '&name_firstlea2='+encodeURI(this.LastName)+ |
| | | '&lea5='+encodeURI(this.LeadSource)+ |
| | | '&00N10000002CvBR='+encodeURI(this.Request1)+ |
| | | '&00N10000002CvBC='+encodeURI(this.OpportunityDivision)+ |
| | | //'&00N10000002EjE1={!Inquiry_form__c.Opp_Name_Search__c}'+ |
| | | '&00N10000002CvB7='+encodeURI(this.Urgent); |
| | | if(search != "" && search != null){ |
| | | urlStr += '&00N10000002EjE1='+this.OppNameSearch; |
| | | } |
| | | window.open(urlStr); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | }) |
| | | } |
| | | showToast(msg,type) { |
| | | const event = new ShowToastEvent({ |
| | | message: msg, |
| | | variant: type |
| | | }); |
| | | this.dispatchEvent(event); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | } |
| | | |
| | | // var foo = function() { |
| | | // var lead = '{!Inquiry_form__c.Lead_link__c}'; |
| | | // var status = '{!Inquiry_form__c.Status__c}'; |
| | | // //gzw add |
| | | // var search = '{!Inquiry_form__c.Opp_Name_Search__c}'; |
| | | // //zyh add-search |
| | | // var name = '{!Inquiry_form__c.Contact_Name__c}'; |
| | | // name = name.replace(" ", ""); |
| | | // var sql = "select id,Request_Detail__c from Inquiry_form__c where id = '{!Inquiry_form__c.Id}'"; |
| | | // var sqlResult = sforce.connection.query(sql); |
| | | // var records = sqlResult.getArray("records"); |
| | | // var Request = ''; |
| | | // if(records[0].Request_Detail__c != null){ |
| | | // Request = records[0].Request_Detail__c.toString(); |
| | | // } |
| | | // //gzw add |
| | | // if(lead){ |
| | | // alert('已经有意向了,不能再创建新的意向。'); |
| | | // return; |
| | | // }else{ |
| | | // //var urlStr ='/00Q/e?RecordType=01210000000QiRa&ent=Lead'; |
| | | // //window.open(urlStr); |
| | | // var urlStr ='/00Q/e?RecordType=01210000000QiRa&ent=Lead'+ |
| | | // '&CF00N10000006ps6f={!HTMLENCODE(Inquiry_form__c.Contact_Name__c)}'+ |
| | | // '&CF00N10000006ps6f_lkid={!Inquiry_form__c.Contact_Id__c}'+ |
| | | // '&CF00N10000002CvC5={!HTMLENCODE(Inquiry_form__c.Hospital_Name__c)}'+ |
| | | // '&CF00N10000002CvC5_lkid={!Inquiry_form__c.Hospital_ID__c}'+ |
| | | // '&CF00N10000006qNtt={!HTMLENCODE(Inquiry_form__c.Department_Class__c)}'+ |
| | | // '&CF00N10000006qNtt_lkid={!Inquiry_form__c.Department_ID__c}'+ |
| | | // '&CF00N10000006qNty={!HTMLENCODE(Inquiry_form__c.Opp_Name_Search__c)}'+ |
| | | // '&CF00N10000006qNty_lkid={!Inquiry_form__c.Opp_Name_Search_ID__c}'+ |
| | | // '&CF00N10000004oN28={!HTMLENCODE(Inquiry_form__c.Campaign__c)}'+ |
| | | // '&CF00N10000004oN28_lkid={!Inquiry_form__c.Campaign_ID__c}'+ |
| | | // '&CF00N1000000962np={!HTMLENCODE(Inquiry_form__c.Name)}'+ |
| | | // '&CF00N1000000962np_lkid={!Inquiry_form__c.Id}'+ |
| | | // '&00N10000006qBYk={!HTMLENCODE(Inquiry_form__c.Cancel_Reason__c)}'+ |
| | | // '&00N10000006qGvj={!Inquiry_form__c.Product_Owner__c}'+ |
| | | // '&00N10000002CvBM=' + Request + |
| | | // '&lea13=未跟进'+ |
| | | // '&lea3={!HTMLENCODE(Inquiry_form__c.Hospital_Name__c)}'+ |
| | | // '&lea8={!HTMLENCODE(Inquiry_form__c.Phone__c)}'+ |
| | | // '&lea11={!HTMLENCODE(Inquiry_form__c.Email__c)}'+ |
| | | // '&name_lastlea2=' + name + |
| | | // '&name_firstlea2={!HTMLENCODE(Inquiry_form__c.Last_Name__c)}'+ |
| | | // '&lea5={!HTMLENCODE( TEXT(Inquiry_form__c.LeadSource__c))}'+ |
| | | // '&00N10000002CvBC={!HTMLENCODE(TEXT(Inquiry_form__c.Opportunity_Division__c))}'+ |
| | | // '&00N10000002CvBR={!Inquiry_form__c.Request1__c}'+ |
| | | // //'&00N10000002EjE1={!Inquiry_form__c.Opp_Name_Search__c}'+ |
| | | // '&00N10000002CvB7={!Inquiry_form__c.Urgent__c}'; |
| | | // if(search != "" && search != null){ |
| | | // urlStr += '&00N10000002EjE1={!Inquiry_form__c.Opp_Name_Search__c}'; |
| | | // } |
| | | // window.open(urlStr); |
| | | // } |
| | | // } |
| | | // foo(); |
| New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata" fqn="lexEquipmentSetRental_Order"> |
| | | <apiVersion>51.0</apiVersion> |
| | | <isExposed>true</isExposed> |
| | | <targets> |
| | | <target>lightning__AppPage</target> |
| | | <target>lightning__RecordPage</target> |
| | | <target>lightning__HomePage</target> |
| | | <target>lightning__RecordAction</target> |
| | | </targets> |
| | | </LightningComponentBundle> |
| New file |
| | |
| | | <template> |
| | | <div class="lexESignAcceptanceHospital" if:true={IsLoding}> |
| | | <lightning-spinner alternative-text="Loading" size="medium"> </lightning-spinner> </div> |
| | | </template> |
| New file |
| | |
| | | import { LightningElement,wire,track,api} from 'lwc'; |
| | | import { CurrentPageReference } from "lightning/navigation"; |
| | | import { CloseActionScreenEvent } from 'lightning/actions'; |
| | | import init from '@salesforce/apex/InquiryFormController.init'; |
| | | import { ShowToastEvent } from 'lightning/platformShowToastEvent'; |
| | | export default class lexInquiryFormCustomLink2 extends LightningElement { |
| | | @api recordId;//OwnerId |
| | | IsLoading = true; |
| | | Status; |
| | | @wire(CurrentPageReference) |
| | | getStateParameters(currentPageReference) { |
| | | if (currentPageReference) { |
| | | const urlValue = currentPageReference.state.recordId; |
| | | if (urlValue) { |
| | | let str = `${urlValue}`; |
| | | this.recordId = str; |
| | | } |
| | | } |
| | | } |
| | | connectedCallback(){ |
| | | init({ |
| | | recordId: this.recordId |
| | | }).then(result => { |
| | | this.Status = result.Status; |
| | | this.IsLoading = false; |
| | | this.CustomLink2(); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | }) |
| | | } |
| | | // 产品咨询单 营业跟进 |
| | | CustomLink2(){ |
| | | if(this.Status != '04.已建意向'){ |
| | | window.open ('/apex/FollowPage?id='+this.recordId, '不需要的理由', |
| | | 'height=400, width=800, top=200, left=400, toolbar=no, menubar=no, scrollbars=no, location=no, status=no'); |
| | | }else { |
| | | // alert('已经有意向了,不能执行此操作。'); |
| | | this.showToast("已经有意向了,不能执行此操作。","error") |
| | | } |
| | | } |
| | | showToast(msg,type) { |
| | | const event = new ShowToastEvent({ |
| | | message: msg, |
| | | variant: type |
| | | }); |
| | | this.dispatchEvent(event); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | } |
| | | |
| | | // //2021-10-21 gwy 版本更改为51.0 |
| | | // var foo = function() { |
| | | // var Status = "{!Inquiry_form__c.Status__c}"; |
| | | // if(Status != '04.已建意向'){ |
| | | // window.open ('/apex/FollowPage?id='+"{!Inquiry_form__c.Id}", '不需要的理由', |
| | | // 'height=400, width=700, top=200, left=400, toolbar=no, menubar=no, scrollbars=no, location=no, status=no'); |
| | | // }else { |
| | | // alert('已经有意向了,不能执行此操作。'); |
| | | // } |
| | | |
| | | // } |
| | | |
| | | // foo(); |
| New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata" fqn="lexEquipmentSetRental_Order"> |
| | | <apiVersion>51.0</apiVersion> |
| | | <isExposed>true</isExposed> |
| | | <targets> |
| | | <target>lightning__AppPage</target> |
| | | <target>lightning__RecordPage</target> |
| | | <target>lightning__HomePage</target> |
| | | <target>lightning__RecordAction</target> |
| | | </targets> |
| | | </LightningComponentBundle> |
| New file |
| | |
| | | <template> |
| | | <div class="lexESignAcceptanceHospital" if:true={IsLoding}> |
| | | <lightning-spinner alternative-text="Loading" size="medium"> </lightning-spinner> </div> |
| | | </template> |
| New file |
| | |
| | | import { LightningElement,wire,track,api} from 'lwc'; |
| | | import { CurrentPageReference } from "lightning/navigation"; |
| | | import { CloseActionScreenEvent } from 'lightning/actions'; |
| | | import init from '@salesforce/apex/InquiryFormController.init'; |
| | | import { ShowToastEvent } from 'lightning/platformShowToastEvent'; |
| | | export default class lexInquiryFormNoStatus extends LightningElement { |
| | | @api recordId;//OwnerId |
| | | IsLoading = true; |
| | | Status; |
| | | |
| | | @wire(CurrentPageReference) |
| | | getStateParameters(currentPageReference) { |
| | | if (currentPageReference) { |
| | | const urlValue = currentPageReference.state.recordId; |
| | | if (urlValue) { |
| | | let str = `${urlValue}`; |
| | | this.recordId = str; |
| | | } |
| | | } |
| | | } |
| | | |
| | | connectedCallback(){ |
| | | init({ |
| | | recordId: this.recordId |
| | | }).then(result => { |
| | | this.Status = result.Status; |
| | | this.IsLoading = false; |
| | | this.NoStatus(); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | }) |
| | | } |
| | | // 产品咨询单 不需要 |
| | | NoStatus(){ |
| | | if(this.Status != '04.已建意向'){ |
| | | window.open ('/apex/StatusPage?id='+this.recordId , '不需要的理由', |
| | | 'height=400, width=790, top=200, left=400, toolbar=no, menubar=no, scrollbars=no, location=no, status=no'); |
| | | }else { |
| | | // alert('已经有意向了,不能执行此操作。'); |
| | | this.showToast("已经有意向了,不能执行此操作。","error") |
| | | } |
| | | } |
| | | |
| | | showToast(msg,type) { |
| | | const event = new ShowToastEvent({ |
| | | message: msg, |
| | | variant: type |
| | | }); |
| | | this.dispatchEvent(event); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | } |
| | | |
| | | //2021-10-21 gwy 版本更改为51.0 |
| | | // var foo = function() { |
| | | // var Status = "{!Inquiry_form__c.Status__c}"; |
| | | // if(Status != '04.已建意向'){ |
| | | // window.open ('/apex/StatusPage?id='+"{!Inquiry_form__c.Id}", '不需要的理由', |
| | | // 'height=400, width=700, top=200, left=400, toolbar=no, menubar=no, scrollbars=no, location=no, status=no'); |
| | | // }else { |
| | | // alert('已经有意向了,不能执行此操作。'); |
| | | // } |
| | | |
| | | // } |
| | | |
| | | // foo(); |
| New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata" fqn="lexEquipmentSetRental_Order"> |
| | | <apiVersion>51.0</apiVersion> |
| | | <isExposed>true</isExposed> |
| | | <targets> |
| | | <target>lightning__AppPage</target> |
| | | <target>lightning__RecordPage</target> |
| | | <target>lightning__HomePage</target> |
| | | <target>lightning__RecordAction</target> |
| | | </targets> |
| | | </LightningComponentBundle> |
| New file |
| | |
| | | <template> |
| | | <div class="lexESignAcceptanceHospital" if:true={IsLoding}> |
| | | <lightning-spinner alternative-text="Loading" size="medium"> </lightning-spinner> </div> |
| | | </template> |
| New file |
| | |
| | | import { LightningElement,wire,track,api} from 'lwc'; |
| | | import { CurrentPageReference } from "lightning/navigation"; |
| | | import { CloseActionScreenEvent } from 'lightning/actions'; |
| | | import init from '@salesforce/apex/InquiryFormController.init'; |
| | | import { ShowToastEvent } from 'lightning/platformShowToastEvent'; |
| | | export default class lexInquiryFormServiceFollow extends LightningElement { |
| | | @api recordId;//OwnerId |
| | | IsLoading = true; |
| | | FSEOwnerId; |
| | | userId; |
| | | JINGZHUOJISHU; |
| | | |
| | | @wire(CurrentPageReference) |
| | | getStateParameters(currentPageReference) { |
| | | if (currentPageReference) { |
| | | const urlValue = currentPageReference.state.recordId; |
| | | if (urlValue) { |
| | | let str = `${urlValue}`; |
| | | this.recordId = str; |
| | | } |
| | | } |
| | | } |
| | | |
| | | connectedCallback(){ |
| | | init({ |
| | | recordId: this.recordId |
| | | }).then(result => { |
| | | this.FSEOwnerId = result.FSEOwnerId; |
| | | this.userId = result.userId; |
| | | this.JINGZHUOJISHU = result.JINGZHUOJISHU; |
| | | this.IsLoading = false; |
| | | this.ServiceFollow (); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | }) |
| | | } |
| | | // 产品咨询单 服务跟进 |
| | | ServiceFollow (){ |
| | | if(null != this.FSEOwnerId && (this.FSEOwnerId== this.userId || this.userId == this.JINGZHUOJISHU)){ |
| | | window.open ('/apex/ServiceFollowPage?id='+this.recordId, '服务跟进', |
| | | 'height=400, width=800, top=200, left=400, toolbar=no, menubar=no, scrollbars=no, location=no, status=no'); |
| | | }else{ |
| | | // alert("此按钮只有FSE可以点击!"); |
| | | this.showToast("此按钮只有FSE可以点击!","error") |
| | | } |
| | | } |
| | | |
| | | showToast(msg,type) { |
| | | const event = new ShowToastEvent({ |
| | | message: msg, |
| | | variant: type |
| | | }); |
| | | this.dispatchEvent(event); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | } |
| | | |
| | | // var foo = function() { |
| | | // var Status = "{!Inquiry_form__c.Service_Status__c}"; |
| | | // var FSEOwner = "{!Inquiry_form__c.FSE_OwnerId__c}"; |
| | | // //alert( FSEOwner+'==='+"{!$User.Id}"); |
| | | // if(null!=FSEOwner && (FSEOwner=="{!$User.Id}" || "{!$User.Id}" == "00510000005sEEM")){ |
| | | // window.open ('/apex/ServiceFollowPage?id='+"{!Inquiry_form__c.Id}", '服务跟进', |
| | | // 'height=400, width=700, top=200, left=400, toolbar=no, menubar=no, scrollbars=no, location=no, status=no'); |
| | | // }else{ |
| | | // alert("此按钮只有FSE可以点击!"); |
| | | // } |
| | | // } |
| | | // foo(); |
| New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata" fqn="lexEquipmentSetRental_Order"> |
| | | <apiVersion>51.0</apiVersion> |
| | | <isExposed>true</isExposed> |
| | | <targets> |
| | | <target>lightning__AppPage</target> |
| | | <target>lightning__RecordPage</target> |
| | | <target>lightning__HomePage</target> |
| | | <target>lightning__RecordAction</target> |
| | | </targets> |
| | | </LightningComponentBundle> |
| | |
| | | |
| | | // 报价附件更新的邮件通知 |
| | | mailMessege() { |
| | | var Link = "https://ocsm--partial.sandbox.my.salesforce.com/" + this.Id; |
| | | // var Link = "https://ocsm--partial.sandbox.my.salesforce.com/" + this.Id; |
| | | |
| | | var origin = window.location.origin + "/" + this.Id; |
| | | |
| | | location.href = 'mailto:' + this.InchargeStaffEmailC + |
| | | '?bcc=' + this.userEmail + |
| | |
| | | '此次报价日:' + this.RepairEstimatedDateC + '%0D%0A' + |
| | | '%0D%0A' + |
| | | 'RC联络事项:' + this.RCInformationC + '%0D%0A' + |
| | | '%0D%0A' + Link + ''; |
| | | '%0D%0A' + origin; |
| | | } |
| | | } |
| New file |
| | |
| | | <template> |
| | | <div class="dispatchOCSMQARAHolder" if:true={IsLoading}> |
| | | <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner> |
| | | </div> |
| | | </template> |
| New file |
| | |
| | | import { LightningElement,wire,track,api} from 'lwc'; |
| | | import { CurrentPageReference, NavigationMixin} from "lightning/navigation"; |
| | | import { CloseActionScreenEvent } from 'lightning/actions'; |
| | | import init from '@salesforce/apex/lexNewSparePartsLoanApplicationCtl.init'; |
| | | import UserInfo_Owner from '@salesforce/apex/lexNewSparePartsLoanApplicationCtl.UserInfo_Owner'; |
| | | import { ShowToastEvent } from 'lightning/platformShowToastEvent'; |
| | | import { encodeDefaultFieldValues } from 'lightning/pageReferenceUtils'; |
| | | |
| | | // 新建备品借出申请 opd计划 |
| | | export default class LexNewSparePartsLoanApplication extends NavigationMixin(LightningElement) { |
| | | @api recordId; |
| | | defaultValues1; |
| | | IsLoading = true; |
| | | |
| | | @wire(CurrentPageReference) |
| | | getStateParameters(currentPageReference) { |
| | | console.log(111); |
| | | console.log(currentPageReference); |
| | | |
| | | if (currentPageReference) { |
| | | const urlValue = currentPageReference.state.recordId; |
| | | if (urlValue) { |
| | | let str = `${urlValue}`; |
| | | console.log("str"); |
| | | console.log(str); |
| | | this.recordId = str; |
| | | } |
| | | } |
| | | } |
| | | |
| | | connectedCallback(){ |
| | | console.log(this.recordId); |
| | | init({ |
| | | recordId: this.recordId |
| | | }).then(result => { |
| | | this.IsLoading = false; |
| | | if (result != null) { |
| | | console.log("-------result--------------",JSON.stringify(result)) |
| | | if (result.opdStayOrNot == '已离职') { |
| | | this.showToast('所有人已经离职,请联系系统管理员修改所有人。','error'); |
| | | return; |
| | | } |
| | | if (result.opdIFApproved == true && result.opdApprovedNo == ''){ |
| | | this.showToast('需要决裁时,决裁编码不能为空','error'); |
| | | return; |
| | | } |
| | | if (result.opdIFApproved == true && result.opdApprovedNo != '' && result.opdStatusProcessState.indexOf(result.opdApprovedStatus)!= -1 && result.opdApprovedStatus != '草稿' ){ |
| | | this.showToast('已申请决裁但决裁状态不符合条件','error'); |
| | | return; |
| | | } |
| | | var HaveValue = "{!OPDPlan__c.Rental_Apply2__c}"; |
| | | if (result.opdRentalApply2 != '' && result.opdType != '学会') { |
| | | this.showToast('一个OPD计划只可关联创建一个备品申请单','error'); |
| | | return; |
| | | } |
| | | if (result.opdStatus != '计划中') { |
| | | this.showToast('OPD计划的状态不是计划中,不能新建备品借出申请','error'); |
| | | return; |
| | | } |
| | | |
| | | UserInfo_Owner({}).then(res=>{ |
| | | console.log("-------UserInfo_Owner------------",res); |
| | | if(res.isFormalStuff == 'true'){ |
| | | this.showToast('试用期内,不能申请','error'); |
| | | return; |
| | | } |
| | | console.log("-------UserInfo_Owner---1111---------",result); |
| | | if (result.opdType == '学会' && result.opdCampaignId != '') { |
| | | console.log("-------UserInfo_Owner---2222---------"); |
| | | if (result.opdRentalApplyFlag < 7) { |
| | | this.showToast("申请提交必须在7天(含)以上才可以",'error'); |
| | | return; |
| | | } |
| | | var ups = res.userProvince.slice(0, 2); |
| | | if (result.opdCampaignTypeId != '01210000000R26P' && res.userJobCategory == '销售服务' ) { |
| | | this.showToast('FSE不能申请该学会类型备品','error'); |
| | | return; |
| | | } else if ((res.userJobCategory == '销售服务' || res.userJobCategory == '支援') && result.opdCampaignTypeId == '01210000000R26P' && result.opdInternalinchargeprovince.indexOf(ups) == -1) { |
| | | this.showToast("与FSE所在省一致,才可使用备品",'error'); |
| | | return; |
| | | } else if (result.opdCampaignStatus == '已结束') { |
| | | this.showToast("已结束,不能申请",'error'); |
| | | return; |
| | | } else if (result.opdCampaignStatus == '已提交报告') { |
| | | this.showToast("已提交报告,不能申请",'error'); |
| | | return; |
| | | } else if (result.opdCampaignStatus == '取消申请中') { |
| | | this.showToast("取消申请中,不能申请",'error'); |
| | | return; |
| | | } else if (result.opdCampaignStatus == '取消') { |
| | | this.showToast("已经取消,不能申请",'error'); |
| | | return; |
| | | } |
| | | } |
| | | |
| | | if (result.opdOriginalOpdPlan == '') { |
| | | if (result.opdOriginalOpdPlanApplication == '') { |
| | | if (result.opdType == '学会' && result.opdCampaignId != '') { |
| | | // var purposeStr = '&00N10000003Msk0=产品试用' + |
| | | // '&00N10000003Msk5=学会展会' + |
| | | // '&CF00N10000003Mp2q_lkid={!URLENCODE(OPDPlan__c.CampaignId__c)}' + |
| | | // '&CF00N10000003Mp2q={!URLENCODE(OPDPlan__c.CampaignName__c)}'; |
| | | const defaultValues = encodeDefaultFieldValues({ |
| | | // OPDPlan__c:this.recordId, |
| | | Demo_purpose1__c:'产品试用', |
| | | demo_purpose2__c:'学会展会', |
| | | Campaign__c:result.opdCampaign, |
| | | Account__c:result.opdAccountLaboratory, |
| | | Strategic_dept__c:result.opdOCMcategoryName, |
| | | Hospital__c:result.opdHospitalName, |
| | | OPDPlan__c:opdName, |
| | | Person_In_Charge__c:res.lastName + res.firstName, |
| | | applyUser__c:res.lastName + res.firstName, |
| | | Loaner_received_staff__c:res.lastName + res.firstName, |
| | | IsJump__c:result.opdIsJump, |
| | | JumpCause__c:result.opdJumpCause, |
| | | Name:'*', |
| | | Approved_State_Create__c:result.ApprovedStatus, |
| | | ApprovedNo_Create__c:result.opdApprovedNo |
| | | }); |
| | | this.navigateEvents(defaultValues); |
| | | } else if (result.opdOpportunityId != '') { |
| | | // var purposeStr = '&00N10000003Msk0=产品试用' + |
| | | // '&00N10000003Msk5=试用(有询价)' + |
| | | // '&CF00N10000003O3VB_lkid={!OPDPlan__c.Related_Opportunity1_IDId__c}' + |
| | | // '&CF00N10000003O3VB={!HTMLENCODE(OPDPlan__c.Related_Opportunity1_Name__c)}'; |
| | | console.log("--------defaultValues------") |
| | | const defaultValues = encodeDefaultFieldValues({ |
| | | // OPDPlan__c:this.recordId, |
| | | Demo_purpose1__c:'产品试用', |
| | | demo_purpose2__c:'试用(有询价)', |
| | | Follow_UP_Opp__c:result.opdRelatedOpportunity1Name, |
| | | |
| | | Account__c:result.opdAccountLaboratory, |
| | | // Strategic_dept__c:result.opdOCMcategoryName, |
| | | // Hospital__c:result.opdHospitalName, |
| | | // OPDPlan__c:opdName, |
| | | // Person_In_Charge__c:res.lastName + res.firstName, |
| | | // applyUser__c:res.lastName + res.firstName, |
| | | // Loaner_received_staff__c:res.lastName + res.firstName, |
| | | // IsJump__c:result.opdIsJump, |
| | | // JumpCause__c:result.opdJumpCause, |
| | | // Name:'*', |
| | | // Approved_State_Create__c:result.ApprovedStatus, |
| | | // ApprovedNo_Create__c:result.opdApprovedNo |
| | | }); |
| | | console.log("--------defaultValues---1111---",defaultValues); |
| | | |
| | | this.navigateEvents(defaultValues); |
| | | } else { |
| | | console.log("-------UserInfo_Owner---77777---------"); |
| | | // var purposeStr = '&00N10000003Msk0=产品试用' + |
| | | // '&00N10000003Msk5=试用(无询价)' + |
| | | // '&00N100000098amW={!OPDPlan__c.NoOpp_Reason__c}'; |
| | | const defaultValues = encodeDefaultFieldValues({ |
| | | // OPDPlan__c:this.recordId, |
| | | Demo_purpose1__c:'产品试用', |
| | | demo_purpose2__c:'试用(有询价)', |
| | | NoOpp_Reason__c:result.opdNoOppReason, |
| | | |
| | | Account__c:result.opdAccountLaboratory, |
| | | Strategic_dept__c:result.opdOCMcategoryName, |
| | | Hospital__c:result.opdHospitalName, |
| | | OPDPlan__c:opdName, |
| | | Person_In_Charge__c:res.lastName + res.firstName, |
| | | applyUser__c:res.lastName + res.firstName, |
| | | Loaner_received_staff__c:res.lastName + res.firstName, |
| | | IsJump__c:result.opdIsJump, |
| | | JumpCause__c:result.opdJumpCause, |
| | | Name:'*', |
| | | Approved_State_Create__c:result.ApprovedStatus, |
| | | ApprovedNo_Create__c:result.opdApprovedNo |
| | | }); |
| | | this.navigateEvents(defaultValues); |
| | | } |
| | | |
| | | // var urlStr = '&CF00N10000003Mp2R={!HTMLENCODE(OPDPlan__c.Account_Laboratory__c)}' + |
| | | // '&CF00N10000003O3V6={!HTMLENCODE(OPDPlan__c.OCM_category_Name__c)}' + |
| | | // '&CF00N10000003Mp1d={!HTMLENCODE(OPDPlan__c.HospitalName__c)}' + |
| | | // '&CF00N10000008ps61={!HTMLENCODE(OPDPlan__c.Name)}' + |
| | | |
| | | // '&CF00N10000005HzRr={!URLENCODE($User.LastName&' '&$User.FirstName)}' + |
| | | // '&CF00N10000005HzRz={!URLENCODE($User.LastName&' '&$User.FirstName)}' + |
| | | // '&00N10000003OJzc={!URLENCODE($User.LastName&' '&$User.FirstName)}' + |
| | | // '&00N100000098dmS={!OPDPlan__c.IsJump__c}' + |
| | | // '&00N100000098dmI={!HTMLENCODE(OPDPlan__c.JumpCause__c)}' + |
| | | // '&Name=*'+ |
| | | // '&00N10000009HBWg= {!OPDPlan__c.Approved_Status__c} ' + |
| | | // '&00N10000009HBXK= {!OPDPlan__c.Approved_No__c} '; //// 20220211 sx add 备品借出申请-决裁控制 No.2 |
| | | // window.open('/a0t/e?retURL=%2F{!OPDPlan__c.Id}' + purposeStr + urlStr ); |
| | | |
| | | } else { |
| | | const defaultValues = encodeDefaultFieldValues({ |
| | | // OPDPlan__c:this.recordId, |
| | | Cancel_Reason__c:'', |
| | | Loaner_cancel_reason__c:'', |
| | | Loaner_cancel_request__c:'', |
| | | Request_demo_time__c:'', |
| | | |
| | | Request_approval_time__c:'', |
| | | Application_accept_time__c:'', |
| | | Response__c:'', |
| | | Status__c:'草案中', |
| | | Zsq_Rental_Apply__c:result.opdRentalApplyName, |
| | | OPDPlan__c:result.opdName, |
| | | Assign_Person__c:'', |
| | | Old_Rental_Apply__c:'', |
| | | Split_Apply_Reason__c:'' |
| | | }); |
| | | this.navigateEvents(defaultValues); |
| | | |
| | | // var url = "/{!OPDPlan__c.originalOpdRentalApply__c}/e?newclone=1&retURL=%2F{!OPDPlan__c.originalOpdRentalApply__c}&common.udd.actions.ActionsUtilORIG_URI=%2F{!OPDPlan__c.RentalApplyId__c}%2Fe&cloneli=1&00N10000007MNF8=&00N100000098uKJ=&00N10000004oFTC=&00N10000003O1JF=&00N10000003O1JK=&00N10000006pvpZ=&00N10000003O1JU=&00N10000006gY9x=&00N10000003Mp2H=草案中&CF00N10000009EKKp_lkid={!OPDPlan__c.RentalApplyId__c}&CF00N10000009EKKp={!OPDPlan__c.RentalApplyName__c}&CF00N10000008ps61={!OPDPlan__c.Name}&CF00N10000008ps61_lkid={!OPDPlan__c.Id}&CF00N10000008poFM=&CF00N10000008poFM_lkid=&CF00N10000005HzRq=&CF00N10000005HzRq_lkid=&00N10000007oQKh="; |
| | | // window.open(url); |
| | | } |
| | | }else { |
| | | console.log("-------UserInfo_Owner---00000--else-------"); |
| | | const defaultValues = encodeDefaultFieldValues({ |
| | | // OPDPlan__c:this.recordId, |
| | | Cancel_Reason__c:'', |
| | | Loaner_cancel_reason__c:'', |
| | | Loaner_cancel_request__c:'', |
| | | Request_shipping_day__c:'', |
| | | |
| | | Hope_Lonaer_date_Num__c:'', |
| | | Request_return_day__c:'', |
| | | Status__c:'草案中', |
| | | Zsq_Rental_Apply__c:result.opdRentalApplyName, |
| | | OPDPlan__c:result.opdName, |
| | | Assign_Person__c:'', |
| | | Old_Rental_Apply__c:'', |
| | | Split_Apply_Reason__c:'' |
| | | }); |
| | | console.log("-------UserInfo_Owner---00000--else-------" + defaultValues); |
| | | |
| | | this.navigateEvents(defaultValues); |
| | | |
| | | // var url = "/{!OPDPlan__c.RentalApplyId__c}/e?newclone=1&retURL=%2F{!OPDPlan__c.RentalApplyId__c}&common.udd.actions.ActionsUtilORIG_URI=%2F{!OPDPlan__c.RentalApplyId__c}%2Fe&cloneli=1&00N10000007MNF8=&00N100000098uKJ=&00N10000004oFTC=&00N10000003Ntz7=&00N10000008rG1M=&00N10000005HzRw=&00N10000003Mp2H=草案中&CF00N10000009EKKp_lkid={!OPDPlan__c.RentalApplyId__c}&CF00N10000009EKKp={!OPDPlan__c.RentalApplyName__c}&CF00N10000008ps61={!OPDPlan__c.Name}&CF00N10000008ps61_lkid={!OPDPlan__c.Id}&CF00N10000008poFM=&CF00N10000008poFM_lkid=&CF00N10000005HzRq=&CF00N10000005HzRq_lkid=&00N10000007oQKh="; |
| | | // window.open(url); |
| | | } |
| | | |
| | | }) |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | // window.location.reload(); |
| | | } |
| | | }).catch(error => { |
| | | console.log("error"); |
| | | console.log(error); |
| | | }); |
| | | } |
| | | |
| | | showToast(message, type) { |
| | | const evt = new ShowToastEvent({ |
| | | title: 'Error', |
| | | message: message, |
| | | variant: type |
| | | }); |
| | | this.dispatchEvent(evt); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | |
| | | navigateEvents(defaultValues){ |
| | | console.log("--------navigateEvents------",defaultValues) |
| | | this[NavigationMixin.Navigate]({ |
| | | type: 'standard__objectPage', |
| | | attributes: { |
| | | objectApiName: 'Rental_Apply__c', |
| | | actionName: 'new' |
| | | }, |
| | | state:{ |
| | | defaultFieldValues: defaultValues |
| | | |
| | | } |
| | | }) |
| | | } |
| | | } |
| New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata"> |
| | | <apiVersion>56.0</apiVersion> |
| | | <isExposed>true</isExposed> |
| | | <targets> |
| | | <target>lightning__RecordPage</target> |
| | | <target>lightning__AppPage</target> |
| | | <target>lightning__HomePage</target> |
| | | <target>lightning__RecordAction</target> |
| | | </targets> |
| | | </LightningComponentBundle> |
| | |
| | | <div class="exampleHolder" if:true={IsLoading}> |
| | | <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner> |
| | | <lightning-button label="Show Toast" onclick={ShowToastEvent}></lightning-button> |
| | | <lightning-button onclick={handleConfirmClick} label="Open Confirm Modal"></lightning-button> |
| | | </div> |
| | | </template> |
| | |
| | | import { |
| | | ShowToastEvent |
| | | } from 'lightning/platformShowToastEvent'; |
| | | import LightningConfirm from 'lightning/confirm'; |
| | | |
| | | export default class LexOCSMNoToReportRepair extends LightningElement { |
| | | @api recordId; |
| | |
| | | }).then(result => { |
| | | console.log(result); |
| | | if (result != null) { |
| | | this.IsLoading = false; |
| | | this.Id = result.Id; |
| | | this.OCSMAdministrativeReportNumberC = result.OCSMAdministrativeReportNumberC; |
| | | this.OCSMAdministrativeReportDateC = result.OCSMAdministrativeReportDateC; |
| | | this.AwareDateC = result.AwareDateC; |
| | | |
| | | this.OCSMNoToReport(); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | }).catch(error => { |
| | | console.log(error); |
| | |
| | | |
| | | // OCSM不要报告 |
| | | OCSMNoToReport() { |
| | | if (!confirm("不要报告后无法撤回,是否继续?")) { |
| | | return; |
| | | } |
| | | if (this.OCSMAdministrativeReportNumberC != undefined || |
| | | this.OCSMAdministrativeReportDateC != undefined) { |
| | | this.ShowToastEvent("已经报告的QIS,不可以点击OCSM不要报告。", "error") |
| | | return; |
| | | } |
| | | if (this.AwareDateC != undefined) { |
| | | updateRepair({ |
| | | recordId: this.Id |
| | | }).then(result => { |
| | | console.log(result); |
| | | if (result.length > 0) { |
| | | var split = result.split(", "); |
| | | alert(split[1]); |
| | | } |
| | | window.location.reload(); |
| | | }) |
| | | } else { |
| | | this.ShowToastEvent("没有AwareDate或已经OCSM行政报告,请确认。", "error") |
| | | return; |
| | | } |
| | | this.handleConfirmClick("不要报告后无法撤回,是否继续?"); |
| | | } |
| | | |
| | | // 弹窗 |
| | |
| | | }); |
| | | this.dispatchEvent(event); |
| | | } |
| | | |
| | | async handleConfirmClick(msg) { |
| | | const result = await LightningConfirm.open({ |
| | | message: msg, |
| | | variant: 'headerless', |
| | | label: 'this is the aria-label value' |
| | | }); |
| | | |
| | | if (result) { |
| | | if (this.OCSMAdministrativeReportNumberC != undefined || |
| | | this.OCSMAdministrativeReportDateC != undefined) { |
| | | this.ShowToastEvent("已经报告的QIS,不可以点击OCSM不要报告。", "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } |
| | | if (this.AwareDateC != undefined) { |
| | | updateRepair({ |
| | | recordId: this.Id |
| | | }).then(result => { |
| | | console.log(result); |
| | | if (result.length > 0) { |
| | | var split = result.split(", "); |
| | | this.ShowToastEvent(split[1], "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } |
| | | window.location.reload(); |
| | | }) |
| | | } else { |
| | | this.ShowToastEvent("没有AwareDate或已经OCSM行政报告,请确认。", "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } |
| | | } else { |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | } |
| | | } |
| | |
| | | this.isCNBuyC = result.isCNBuyC; |
| | | |
| | | this.OCSMNogoods(); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | }).catch(error => { |
| | | console.log(error); |
| | |
| | | OCSMNogoods() { |
| | | if (this.QISStatusC != 'RC检测申请') { |
| | | this.ShowToastEvent("OCM服务本部已经收到实物", "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } else { |
| | | if ((this.isAEProfileC == undefined || this.isPAEProfileC == undefined) && this.isCNBuyC != 'true') { |
| | | this.ShowToastEvent("安全信息未判定,请联系质量法规部", "error"); |
| | | var btns = document.getElementsByName('rc_recieved'); |
| | | for (var i = 0; i < btns.length; i++) { |
| | | btns[i].disabled = true; |
| | | btns[i].className = 'btnDisabled'; |
| | | } |
| | | this.ShowToastEvent("安全信息未判定,请联系质量法规部", "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } else { |
| | | updateQisForRCRecieved({ |
| | | QId: this.Id, |
| | |
| | | }).then(result => { |
| | | console.log(result); |
| | | if (result.length > 0) { |
| | | alert(result); |
| | | this.ShowToastEvent(result, "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } |
| | | }) |
| | | } |
| | |
| | | <div class="exampleHolder" if:true={IsLoading}> |
| | | <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner> |
| | | <lightning-button label="Show Toast" onclick={ShowToastEvent}></lightning-button> |
| | | <lightning-button onclick={handleConfirmClick} label="Open Confirm Modal"></lightning-button> |
| | | </div> |
| | | </template> |
| | |
| | | import { |
| | | ShowToastEvent |
| | | } from 'lightning/platformShowToastEvent'; |
| | | |
| | | import LightningConfirm from 'lightning/confirm'; |
| | | |
| | | export default class LexOCSMToReportRepair extends LightningElement { |
| | | @api recordId; |
| | |
| | | }).then(result => { |
| | | console.log(result); |
| | | if (result != null) { |
| | | this.IsLoading = false; |
| | | this.Id = result.Id; |
| | | this.AwareDateC = result.AwareDateC; |
| | | this.OCSMAdministrativeReportStatusC = result.OCSMAdministrativeReportStatusC; |
| | | |
| | | this.OCSMToReport(); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | }).catch(error => { |
| | | console.log(error); |
| | |
| | | |
| | | // OCSM要报告 |
| | | OCSMToReport() { |
| | | if (!confirm("报告后无法撤回,是否继续?")) { |
| | | return; |
| | | } |
| | | if (this.OCSMAdministrativeReportStatusC == undefined && this.AwareDateC != undefined) { |
| | | updateRepair({ |
| | | recordId: this.Id |
| | | }).then(result => { |
| | | console.log(result); |
| | | if (result.length > 0) { |
| | | var split = result.split(", "); |
| | | alert(split[1]); |
| | | } |
| | | location.reload(); |
| | | }) |
| | | } else { |
| | | this.ShowToastEvent("没有AwareDate或已经OCSM行政报告,请确认。", "error") |
| | | return; |
| | | } |
| | | this.handleConfirmClick("报告后无法撤回,是否继续?"); |
| | | } |
| | | |
| | | // 弹窗 |
| | |
| | | }); |
| | | this.dispatchEvent(event); |
| | | } |
| | | |
| | | async handleConfirmClick(msg) { |
| | | const result = await LightningConfirm.open({ |
| | | message: msg, |
| | | variant: 'headerless', |
| | | label: 'this is the aria-label value' |
| | | }); |
| | | if(result){ |
| | | if (this.OCSMAdministrativeReportStatusC == undefined && this.AwareDateC != undefined) { |
| | | updateRepair({ |
| | | recordId: this.Id |
| | | }).then(result => { |
| | | console.log(result); |
| | | if (result.length > 0) { |
| | | var split = result.split(", "); |
| | | this.ShowToastEvent(split[1], "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } |
| | | location.reload(); |
| | | }) |
| | | } else { |
| | | this.ShowToastEvent("没有AwareDate或已经OCSM行政报告,请确认。", "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } |
| | | } |
| | | else{ |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | } |
| | | } |
| | |
| | | this.email = result.email; |
| | | |
| | | this.OSHNogoods(); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | }).catch(error => { |
| | | console.log(error); |
| | |
| | | OSHNogoods() { |
| | | if (this.QISStatusC != 'OSH检测申请' && this.QISStatusC != '完毕') { |
| | | this.ShowToastEvent("OSH已经收到实物", "error") |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } else { |
| | | updateOSHNogoods({ |
| | | Id: this.Id, |
| | |
| | | console.log(result); |
| | | if (result.length > 0) { |
| | | var split = result.split(", "); |
| | | alert(split[1]); |
| | | this.ShowToastEvent(split[1], "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | }) |
| | | } |
| | |
| | | <div class="exampleHolder" if:true={IsLoading}> |
| | | <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner> |
| | | <lightning-button label="Show Toast" onclick={ShowToastEvent}></lightning-button> |
| | | <lightning-button onclick={handleConfirmClick} label="Open Confirm Modal"></lightning-button> |
| | | </div> |
| | | </template> |
| | |
| | | import { |
| | | ShowToastEvent |
| | | } from 'lightning/platformShowToastEvent'; |
| | | import LightningConfirm from 'lightning/confirm'; |
| | | |
| | | |
| | | export default class LexPreContractSubmit extends LightningElement { |
| | | @api recordId; |
| | |
| | | }).then(result => { |
| | | console.log(result); |
| | | if (result != null) { |
| | | this.IsLoading = false; |
| | | this.oldIsRecognitionModelC = result.oldIsRecognitionModelC; |
| | | this.uploadToRMTimeC = result.uploadToRMTimeC; |
| | | this.IsRecognitionModelTrueC = result.IsRecognitionModelTrueC; |
| | |
| | | this.Id = result.Id; |
| | | |
| | | this.preContractSubmit(); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | }).catch(error => { |
| | | console.log(error); |
| | |
| | | preContractSubmit() { |
| | | if (this.oldIsRecognitionModelC) { |
| | | if (this.uploadToRMTimeC == null) { |
| | | this.ShowToastEvent('当前维修合同的经销商是先款对象,需要先【上传认款合同】,然后完成认款以后才能复核。', "error") |
| | | this.ShowToastEvent('当前维修合同的经销商是先款对象,需要先【上传认款合同】,然后完成认款以后才能复核。', "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } else { |
| | | if (!this.IsRecognitionModelTrueC) { |
| | | this.ShowToastEvent('当前维修合同没有完成认款,不能进行复核。', "error") |
| | | this.ShowToastEvent('当前维修合同没有完成认款,不能进行复核。', "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } |
| | | } |
| | | } |
| | | var status = this.MCApprovalStatusC; |
| | | if (status != 'Draft' && status != 'Reject' && status != undefined) { |
| | | this.ShowToastEvent('复核已经提交,请确认状态。', "error") |
| | | this.ShowToastEvent('复核已经提交,请确认状态。', "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } |
| | | var con_no = this.ContractprintCompletedC; |
| | | if (con_no == undefined) { |
| | | this.ShowToastEvent('合同盖章完毕为空,不能提交合同复核申请。', "error") |
| | | this.ShowToastEvent('合同盖章完毕为空,不能提交合同复核申请。', "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } |
| | | if (!confirm("一旦提交此记录以待批准,根据您的设置您可能不再能够编辑此记录或将他从批准过程中调回。是否继续?")) { |
| | | return; |
| | | } |
| | | processResults({ |
| | | recordId: this.recordId |
| | | }).catch(error => { |
| | | if (error.body.pageErrors[0] != null) { |
| | | var errmsg = error.body.pageErrors[0].message.toString(); |
| | | this.ShowToastEvent(errmsg + '_sys', "error") |
| | | return; |
| | | } |
| | | }) |
| | | this.handleConfirmClick("一旦提交此记录以待批准,根据您的设置您可能不再能够编辑此记录或将他从批准过程中调回。是否继续?"); |
| | | } |
| | | |
| | | // 弹窗 |
| | |
| | | }); |
| | | this.dispatchEvent(event); |
| | | } |
| | | |
| | | async handleConfirmClick(msg) { |
| | | const result = await LightningConfirm.open({ |
| | | message: msg, |
| | | variant: 'headerless', |
| | | label: 'this is the aria-label value' |
| | | }); |
| | | |
| | | if (result) { |
| | | processResults({ |
| | | recordId: this.Id |
| | | }).catch(error => { |
| | | if (error.body.pageErrors[0] != null) { |
| | | var errmsg = error.body.pageErrors[0].message.toString(); |
| | | this.ShowToastEvent(errmsg, "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } |
| | | }) |
| | | } else { |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | } |
| | | } |
| | |
| | | }).then(result => { |
| | | this.DeliveredProductC = result; |
| | | window.open('/apex/ProductRepairQuote?productid=' + this.DeliveredProductC + '&flag=asset', '', 'height=250, width=500, top=300, left=350,location=no') |
| | | }).catch(error => { |
| | | console.log(error); |
| | | }) |
| | | } |
| | | } |
| | |
| | | <template> |
| | | <div class="exampleHolder" if:true={IsLoading}> |
| | | <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner> |
| | | <lightning-button label="Show Toast" onclick={ShowToastEvent}></lightning-button> |
| | | </div> |
| | | </template> |
| | |
| | | CloseActionScreenEvent |
| | | } from 'lightning/actions'; |
| | | import init from '@salesforce/apex/buttonQISReportCtl.init'; |
| | | import { |
| | | NavigationMixin |
| | | } from 'lightning/navigation'; |
| | | import { |
| | | encodeDefaultFieldValues |
| | | } from 'lightning/pageReferenceUtils'; |
| | | import { |
| | | ShowToastEvent |
| | | } from 'lightning/platformShowToastEvent'; |
| | | |
| | | export default class LexQISMBCrequestNew extends LightningElement { |
| | | export default class LexQISMBCrequestNew extends NavigationMixin(LightningElement) { |
| | | @api recordId; |
| | | str; |
| | | IsLoading = true; |
| | |
| | | // 新建QIS M-BC申请. |
| | | QISMBCRequestNew() { |
| | | var status = this.QISStatusC; |
| | | |
| | | if (status != '完毕' && status != '已回答' && status != '取消') { |
| | | alert("QIS没有审批完毕或取消,不可以创建QIS M-BC!"); |
| | | this.ShowToastEvent("QIS没有审批完毕或取消,不可以创建QIS M-BC!", "error"); |
| | | return; |
| | | } |
| | | var url = "a20/e?retURL=%2Fa20%2Fo&Name=" + this.Name + "&CF00N10000006Q4NP_lkid=" + this.Id; |
| | | window.top.location.href = url; |
| | | const url = encodeDefaultFieldValues({ |
| | | Name: this.Name, |
| | | QIS_request_name__c: this.Id |
| | | }); |
| | | this[NavigationMixin.Navigate]({ |
| | | type: 'standard__objectPage', |
| | | attributes: { |
| | | objectApiName: 'QIS_M_BC__c', |
| | | actionName: 'new' |
| | | }, |
| | | state: { |
| | | nooverride: '1', |
| | | defaultFieldValues: url |
| | | } |
| | | }); |
| | | // var url = "a20/e?retURL=%2Fa20%2Fo&Name=" + this.Name + "&CF00N10000006Q4NP_lkid=" + this.Id; |
| | | // window.open(url); |
| | | } |
| | | |
| | | ShowToastEvent(msg, type) { |
| | | const event = new ShowToastEvent({ |
| | | title: '', |
| | | message: msg, |
| | | variant: type |
| | | }); |
| | | this.dispatchEvent(event); |
| | | } |
| | | } |
| | |
| | | <target>lightning__RecordAction</target> |
| | | <target>lightning__FlowScreen</target> |
| | | </targets> |
| | | <!-- 定义变量 --> |
| | | <targetConfigs> |
| | | <targetConfig targets="lightning__FlowScreen"> |
| | | <property name="recordId" type="String" label="recordId"/> |
| | | </targetConfig> |
| | | </targetConfigs> |
| | | </LightningComponentBundle> |
| | |
| | | this.RentalApplyDiscountApproval(); |
| | | } |
| | | }) |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | }).catch(error => { |
| | | console.log(error); |
| | |
| | | |
| | | if (power != '2B2_备品中心检测&仓库管理') { |
| | | this.ShowToastEvent("对不起,您没有权限提交此申请!", "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } |
| | | |
| | | var status = this.RentalApplyDiscountStatusC; |
| | | if (status == '审批中') { |
| | | this.ShowToastEvent("审批提交成功,当前正在审批请勿再提交!", "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } |
| | | if (status == '批准') { |
| | | this.ShowToastEvent("审批已批准,请勿再提交!", "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } |
| | | if (status == '草案中' || status == undefined || status == '驳回') { |
| | |
| | | console.log(result); |
| | | if (result.length > 0) { |
| | | var split = result.split(", "); |
| | | alert("提交失败 " + split[1]); |
| | | this.ShowToastEvent("提交失败 " + split[1], "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } |
| | | }) |
| | | } else { |
| | | this.ShowToastEvent("提交失败", "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } |
| | | } |
| | |
| | | <div class="exampleHolder" if:true={IsLoading}> |
| | | <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner> |
| | | <lightning-button label="Show Toast" onclick={ShowToastEvent}></lightning-button> |
| | | <lightning-button onclick={handleConfirmClick} label="Open Confirm Modal"></lightning-button> |
| | | </div> |
| | | </template> |
| | |
| | | import { |
| | | ShowToastEvent |
| | | } from 'lightning/platformShowToastEvent'; |
| | | import LightningConfirm from 'lightning/confirm'; |
| | | |
| | | export default class LexSCSubmit extends LightningElement { |
| | | @api recordId; |
| | |
| | | }).then(result => { |
| | | console.log(result); |
| | | if (result != null) { |
| | | this.IsLoading = false; |
| | | this.Id = result.Id; |
| | | this.StatusC = result.StatusC; |
| | | |
| | | this.SCSubmit(); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | }).catch(error => { |
| | | console.log(error); |
| | |
| | | // 提交待审批 |
| | | SCSubmit() { |
| | | if (this.StatusC != '草案中') { |
| | | this.ShowToastEvent("已经提交审批", "error") |
| | | this.ShowToastEvent("已经提交审批", "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } |
| | | |
| | | if (!confirm("一旦OCM提交此记录以待批准,根据您的设置您可能不再能够编辑此记录或将他从批准过程中调回。是否继续?")) { |
| | | return; |
| | | } |
| | | |
| | | updateQISSCReport({ |
| | | QId: this.Id |
| | | }).then(result => { |
| | | console.log(result); |
| | | if (result.length > 0) { |
| | | var split = result.split(", "); |
| | | alert(split[1]); |
| | | } else { |
| | | this.ShowToastEvent("已提交", "success") |
| | | window.location.reload(); |
| | | } |
| | | }) |
| | | this.handleConfirmClick("一旦OCM提交此记录以待批准,根据您的设置您可能不再能够编辑此记录或将他从批准过程中调回。是否继续?"); |
| | | } |
| | | |
| | | ShowToastEvent(msg, type) { |
| | |
| | | }); |
| | | this.dispatchEvent(event); |
| | | } |
| | | |
| | | async handleConfirmClick(msg) { |
| | | const result = await LightningConfirm.open({ |
| | | message: msg, |
| | | variant: 'headerless', |
| | | label: 'this is the aria-label value' |
| | | }); |
| | | |
| | | if(result){ |
| | | updateQISSCReport({ |
| | | QId: this.Id |
| | | }).then(result => { |
| | | console.log(result); |
| | | if (result.length > 0) { |
| | | var split = result.split(", "); |
| | | this.ShowToastEvent(split[1], "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } else { |
| | | this.ShowToastEvent("已提交", "success") |
| | | window.location.reload(); |
| | | } |
| | | }) |
| | | }else{ |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | } |
| | | } |
| | |
| | | |
| | | // 新建CIC/产品 |
| | | SelectProduct2CIC() { |
| | | console.log(11111111); |
| | | var pathnames = window.location.pathname.split("/"); |
| | | if (pathnames[1] == "emptyHtmlDoc.html") { |
| | | window.open("/apex/SelectProduct2CIC?cicid=" + this.Id, "_parent"); |
| | |
| | | <template> |
| | | <div class="toReportHolder" if:true={IsLoading}> |
| | | <div class="exampleHolder" if:true={IsLoading}> |
| | | <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner> |
| | | <lightning-button label="Show Toast" onclick={ShowToastEvent}></lightning-button> |
| | | <lightning-button onclick={handleConfirmClick} label="Open Confirm Modal"></lightning-button> |
| | | </div> |
| | | </template> |
| | |
| | | api, |
| | | wire |
| | | } from "lwc"; |
| | | import LightningConfirm from 'lightning/confirm'; |
| | | |
| | | |
| | | export default class LexSendNFM103 extends LightningElement { |
| | | @api recordId; |
| | | detailedAddress; |
| | | dealer; |
| | | numberofEffectiveContract; |
| | | newProductGuaranteTxt; |
| | |
| | | userName; |
| | | profileName; |
| | | Id; |
| | | DetailedAddress; |
| | | surplusCount = 0; |
| | | url; |
| | | HPActiveC; |
| | | |
| | | @wire(CurrentPageReference) |
| | | getStateParameters(currentPageReference) { |
| | | if (currentPageReference) { |
| | | this.url = currentPageReference.state.backgroundContext; |
| | | const urlValue = currentPageReference.state.recordId; |
| | | if (urlValue) { |
| | | let str = `${urlValue}`; |
| | |
| | | btns[i].className = 'btnDisabled'; |
| | | } |
| | | this.Id = result.Id; |
| | | this.detailedAddress = result.detailedAddress; |
| | | this.HPActiveC = result.HPActiveC; |
| | | this.DetailedAddress = result.detailedAddress; |
| | | this.dealer = result.DealerC; |
| | | this.numberofEffectiveContract = result.numberofEffectiveContract; |
| | | this.newProductGuaranteTxt = result.newProductGuaranteTxt; |
| | |
| | | this.foo(); |
| | | } |
| | | }) |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | }).catch(error => { |
| | | console.log(error); |
| | | }); |
| | | } |
| | | |
| | | foo() { |
| | | // queryForrecords3({ |
| | | // dealer: this.dealer |
| | | // }).then(result => { |
| | | // if (result.length > 0 && result[0].FirstParagraph__c == true) { |
| | | // if (!confirm("该经销商为先款对象,是否继续申请修理?")) { |
| | | // return; |
| | | // } |
| | | // } |
| | | // if ( |
| | | // this.numberofEffectiveContract == "无" && this.newProductGuaranteTxt != "2: 多年保修" && |
| | | // this.newProductGuaranteTxt != "2: 服务多年保修" && this.newProductGuaranteTxt != "8: 市场多年保修" && |
| | | // this.onSiteRepair == "直送SORC修理" |
| | | // ) { |
| | | // if (!confirm("设备为非维修合同且非多年保修对象品,请确认是否直送SORC修理?")) { |
| | | // return; |
| | | // } |
| | | // } |
| | | // if ((this.maintenanceContract != undefined || this.VMMaintenanceContract != undefined) && |
| | | // this.onSiteRepair == "RC修理" && this.FSEState == "山东省" |
| | | // ) { |
| | | // if (!confirm("该设备为维修合同或多年保修对象品,请确认是否送至RC修理?")) { |
| | | // return; |
| | | // } |
| | | // } |
| | | // var today = Date.now(); |
| | | // var dateReceiptQuestions = Date.parse(this.dateReceiptQuestions); |
| | | // var dates = (today - dateReceiptQuestions) / (24 * 60 * 60 * 1000); |
| | | // if (this.profileName != "系统管理员" && this.userName != "胡 玉成" && this.userName != "李 琪清" && |
| | | // this.userName != "郭 洋" && |
| | | // this.delayReportReason == undefined && dates > "1" && |
| | | // this.repairSource != "QIS转修理") { |
| | | // alert("申请修理时SAP修理申请日超过问题联络收到日1天,必须填写问超时报告的理由"); |
| | | // return; |
| | | // } |
| | | // if (this.quickRepairSign == true && (this.numberofEffectiveContract == "有" || this.newProductGuaranteTxt == "2: 多年保修" || |
| | | // this.newProductGuaranteTxt == "2: 服务多年保修" || this.newProductGuaranteTxt == "8: 市场多年保修") && |
| | | // (this.onSiteRepair == "RC修理" || this.onSiteRepair == "办事处修理" || this.onSiteRepair == "现场修理")) { |
| | | // if (this.RCCD == "2.东北" || this.RCCD == "3.西北") { |
| | | // if (!confirm("该型号对应为合同或多年保对象品。如确认为大修理故障,需要选择直送SORC修理,请确认是否继续。")) { |
| | | // return; |
| | | // } |
| | | // } else if (this.RCCD == "1.华北" || this.RCCD == "6.华南" || this.RCCD == "4.西南") { |
| | | // if (!confirm("该型号对应为合同或多年保对象品。如确认为大修理故障,需要选择直送OGZ修理,请确认是否继续。")) { |
| | | // return; |
| | | // } |
| | | // } |
| | | // } |
| | | // var returnsProductWay = this.returnsProductway; |
| | | // if (returnsProductWay == undefined) { |
| | | // if (!confirm("返品方式为空,是否继续申请修理!")) { |
| | | // return; |
| | | // } |
| | | // } |
| | | // var DetailedAddress = this.detailedAddress; |
| | | // if (this.assetOwner != "Olympus") { |
| | | // if (DetailedAddress != undefined) { |
| | | // var prompt = '当前直返收货地址为:' + DetailedAddress + ',您确认不修改了吗?'; |
| | | // if (!confirm(prompt)) { |
| | | // return; |
| | | // } |
| | | // } else { |
| | | // alert('当前修理没有录入直返收货的详细地址,不能申请修理!'); |
| | | // return; |
| | | // } |
| | | // } |
| | | // queryForEquipments({ |
| | | // deliveredProductId: this.deliveredProductId, |
| | | // }).then(equipments => { |
| | | // if (equipments != null && equipments.length > 0) { |
| | | // var equipment = equipments[0]; |
| | | // if (equipment.Status == "廃棄") { |
| | | // alert("设备废弃,不能提交申请!"); |
| | | // return; |
| | | // } |
| | | // } |
| | | // }); |
| | | // if (this.FSEApplyForRepairTime != undefined) { |
| | | // alert("已修理申请,不再修理申请了"); |
| | | // return; |
| | | // } |
| | | // var surplusCount = 0; |
| | | // if (this.URFReapir == false) { |
| | | // queryForUrfAsset({ |
| | | // maintenanceContractId: this.maintenanceContractId, |
| | | // deliveredProductId: this.deliveredProductId, |
| | | // }).then(urfAsset => { |
| | | // var seriesMaxRepairCount = 0; |
| | | // var seriesRepairCount = 0; |
| | | // if (urfAsset != null && urfAsset.length > 0) { |
| | | // seriesMaxRepairCount = urfAsset[0].Series_MaxRepairCount_F__c; |
| | | // seriesRepairCount = urfAsset[0].Series_RepairCount_F__c; |
| | | // surplusCount = seriesMaxRepairCount - seriesRepairCount; |
| | | // } |
| | | // }); |
| | | // queryForUrfSeriesInfo({ |
| | | // URFLimitSerial: this.URFLimitSerial, |
| | | // }).then(urfSeriesInfo => { |
| | | // var urfSeries = ""; |
| | | // if (urfSeriesInfo != null && urfSeriesInfo.length > 0) { |
| | | // urfSeries = urfSeriesInfo[0].URFLimitSerial__c; |
| | | // } |
| | | // queryForRepairCount({ |
| | | // maintenanceContractId: this.maintenanceContractId, |
| | | // status1: "1.受理完毕", |
| | | // URFLimitSerial: urfSeries, |
| | | // }).then(repairCount => { |
| | | // if (repairCount.length > 0 && surplusCount == 1) { |
| | | // alert("该设备关联限次合同,目前剩余次数小于送修设备。请等待进行中修理完成后再进行申请"); |
| | | // return; |
| | | // } |
| | | // }); |
| | | // }); |
| | | // } |
| | | // if (this.status != "草案中" && this.status != "1.受理完毕(SAP待发送)" && this.status != "4.修理品返送阶段") { |
| | | // alert("不是草案中不能申请"); |
| | | // } else { |
| | | // if (this.dealer != undefined) { |
| | | if (this.HPActiveC == '無効') { |
| | | this.ShowToastEvent("本医院已无效,无法进行申请。", "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } |
| | | |
| | | // queryForFindInvalidLicense({ |
| | | // dealerId: this.dealerId, |
| | | // }).then(findInvalidLicense => { |
| | | // console.log(findInvalidLicense); |
| | | // if (findInvalidLicense.length > 0) { |
| | | // alert("经销商三证不在有效期,无法送修"); |
| | | // return; |
| | | // } |
| | | // }); |
| | | // } |
| | | // } |
| | | // if (this.ifDeadHurt == "有") { |
| | | // if (!confirm("是否确认AE要提交?")) { |
| | | // return; |
| | | // } |
| | | // } |
| | | // if (this.dayLater30 == "是") { |
| | | // alert("创建后超过30天,不能申请了"); |
| | | // return; |
| | | // } |
| | | // var prompt11 = "合同内大修次数已用完,当前修理为合同外的修理,是否继续?"; |
| | | // if (this.URFReapir == false && surplusCount == 0) { |
| | | // if (!confirm(prompt11)) { |
| | | // return; |
| | | // } |
| | | // } |
| | | // updateForRepair1({ |
| | | // recordId: this.Id |
| | | // }).then(result => { |
| | | // if (result != null && result.length > 0) { |
| | | // var split = result.split(", "); |
| | | // alert(split[1]); |
| | | // } else { |
| | | // queryForReocrds({ |
| | | // inchargeStaffId: this.inchargeStaffId, |
| | | // }).then(records => { |
| | | // if (records != null && records.length > 0) { |
| | | // var staff = records[0]; |
| | | // console.log(staff); |
| | | // updateRepair2({ |
| | | // recordId: this.Id, |
| | | // staff: staff, |
| | | // DWSign: this.DWSign, |
| | | // statusc: "1.受理完毕", |
| | | // DOJStatus: this.DOJStatus, |
| | | // SAPcondition: this.SAPcondition, |
| | | // }).then(result => { |
| | | // console.log(result); |
| | | // if (result != null && result.length > 0) { |
| | | // var split = result.split(", "); |
| | | // alert(split[1]); |
| | | // } else { |
| | | // if (this.salesOfficeCodeSelection == "成都RC") { |
| | | // alert("现阶段,成都RC仅受理四川(西藏)内镜、西南全域CV/CLV,其余实物请发至广州RC。"); |
| | | // } |
| | | // } |
| | | // }); |
| | | // queryForRds({ |
| | | // recordId: this.Id, |
| | | // }).then(rds => { |
| | | // if (rds != null && rds.length > 0) { |
| | | // var repairAft = rds[0]; |
| | | // if (repairAft.NewProductGuarante_Formula__c != repairAft.ProductGuarante_Create__c) { |
| | | // alert("该设备保修信息已发生变化,请了解"); |
| | | // } |
| | | // } |
| | | // }); |
| | | // } else { |
| | | // alert("没有找到 修理委托者"); |
| | | // } |
| | | // }); |
| | | // } |
| | | // }); |
| | | // }); |
| | | queryForrecords3({ |
| | | dealer: this.dealer |
| | | }).then(result => { |
| | | if (result.length > 0 && result[0].FirstParagraph__c == true) { |
| | | this.handleConfirmClick01("该经销商为先款对象,是否继续申请修理?"); |
| | | } else { |
| | | this.ll01(); |
| | | } |
| | | }); |
| | | |
| | | var staticResource; |
| | | var DetailedAddress = this.detailedAddress; |
| | | |
| | | getStaticResource({ |
| | | sobj: "Repair__c" |
| | | }).then(result => { |
| | |
| | | function (data) { |
| | | console.log(data); |
| | | if (data && data.object) { |
| | | DetailedAddress = data.object.detailedAddress; |
| | | this.DetailedAddress = data.object.detailedAddress; |
| | | } |
| | | this.foo(); |
| | | }, |
| | | staticResource.token); |
| | | }); |
| | | }) |
| | | } |
| | | |
| | | ll01() { |
| | | console.log(1); |
| | | if (this.numberofEffectiveContract == "无" && this.newProductGuaranteTxt != "2: 多年保修" && |
| | | this.newProductGuaranteTxt != "2: 服务多年保修" && this.newProductGuaranteTxt != "8: 市场多年保修" && |
| | | this.onSiteRepair == "直送SORC修理") { |
| | | this.handleConfirmClick02("设备为非维修合同且非多年保修对象品,请确认是否直送SORC修理?"); |
| | | } else { |
| | | this.ll02(); |
| | | } |
| | | } |
| | | |
| | | ll02() { |
| | | console.log(2); |
| | | if ((this.maintenanceContract != undefined || this.VMMaintenanceContract != undefined) && |
| | | this.onSiteRepair == "RC修理" && this.FSEState == "山东省" |
| | | ) { |
| | | this.handleConfirmClick03("该设备为维修合同或多年保修对象品,请确认是否送至RC修理?"); |
| | | } else { |
| | | this.ll03(); |
| | | } |
| | | } |
| | | |
| | | ll03() { |
| | | console.log(3); |
| | | var today = Date.now(); |
| | | var dateReceiptQuestions = Date.parse(this.dateReceiptQuestions); |
| | | var dates = (today - dateReceiptQuestions) / (24 * 60 * 60 * 1000); |
| | | if (this.profileName != "系统管理员" && this.userName != "胡 玉成" && this.userName != "李 琪清" && |
| | | this.userName != "郭 洋" && |
| | | this.delayReportReason == undefined && dates > "1" && |
| | | this.repairSource != "QIS转修理") { |
| | | this.ShowToastEvent("申请修理时SAP修理申请日超过问题联络收到日1天,必须填写问超时报告的理由", "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } |
| | | if (this.quickRepairSign == true && (this.numberofEffectiveContract == "有" || this.newProductGuaranteTxt == "2: 多年保修" || |
| | | this.newProductGuaranteTxt == "2: 服务多年保修" || this.newProductGuaranteTxt == "8: 市场多年保修") && |
| | | (this.onSiteRepair == "RC修理" || this.onSiteRepair == "办事处修理" || this.onSiteRepair == "现场修理")) { |
| | | if (this.RCCD == "2.东北" || this.RCCD == "3.西北") { |
| | | this.handleConfirmClick04("该型号对应为合同或多年保对象品。如确认为大修理故障,需要选择直送SORC修理,请确认是否继续。"); |
| | | } else if (this.RCCD == "1.华北" || this.RCCD == "6.华南" || this.RCCD == "4.西南") { |
| | | this.handleConfirmClick04("该型号对应为合同或多年保对象品。如确认为大修理故障,需要选择直送OGZ修理,请确认是否继续。"); |
| | | } else { |
| | | if (this.returnsProductway == undefined) { |
| | | this.handleConfirmClick06("返品方式为空,是否继续申请修理!"); |
| | | } else { |
| | | this.ll06(); |
| | | } |
| | | } |
| | | } else { |
| | | if (this.returnsProductway == undefined) { |
| | | this.handleConfirmClick06("返品方式为空,是否继续申请修理!"); |
| | | } else { |
| | | this.ll06(); |
| | | } |
| | | } |
| | | } |
| | | |
| | | ll06() { |
| | | console.log(6); |
| | | if (this.assetOwner != "Olympus") { |
| | | if (this.DetailedAddress != undefined) { |
| | | this.handleConfirmClick07('当前直返收货地址为:' + this.DetailedAddress + ',您确认不修改了吗?'); |
| | | } else { |
| | | this.ShowToastEvent('当前修理没有录入直返收货的详细地址,不能申请修理!', "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } |
| | | } else { |
| | | this.ll07(); |
| | | } |
| | | } |
| | | |
| | | ll07() { |
| | | console.log(7); |
| | | queryForEquipments({ |
| | | deliveredProductId: this.deliveredProductId, |
| | | }).then(equipments => { |
| | | if (equipments != null && equipments.length > 0) { |
| | | var equipment = equipments[0]; |
| | | if (equipment.Status == "廃棄") { |
| | | this.ShowToastEvent("设备废弃,不能提交申请!", "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } |
| | | } |
| | | }); |
| | | console.log(701); |
| | | if (this.FSEApplyForRepairTime != undefined) { |
| | | this.ShowToastEvent("已修理申请,不再修理申请了", "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } |
| | | console.log(702); |
| | | if (this.URFReapir == false) { |
| | | queryForUrfAsset({ |
| | | maintenanceContractId: this.maintenanceContractId, |
| | | deliveredProductId: this.deliveredProductId, |
| | | }).then(urfAsset => { |
| | | var seriesMaxRepairCount = 0; |
| | | var seriesRepairCount = 0; |
| | | if (urfAsset != null && urfAsset.length > 0) { |
| | | seriesMaxRepairCount = urfAsset[0].Series_MaxRepairCount_F__c; |
| | | seriesRepairCount = urfAsset[0].Series_RepairCount_F__c; |
| | | this.surplusCount = seriesMaxRepairCount - seriesRepairCount; |
| | | } |
| | | }); |
| | | console.log(703); |
| | | |
| | | queryForUrfSeriesInfo({ |
| | | URFLimitSerial: this.URFLimitSerial, |
| | | }).then(urfSeriesInfo => { |
| | | var urfSeries = ""; |
| | | if (urfSeriesInfo != null && urfSeriesInfo.length > 0) { |
| | | urfSeries = urfSeriesInfo[0].URFLimitSerial__c; |
| | | } |
| | | console.log(704); |
| | | |
| | | queryForRepairCount({ |
| | | maintenanceContractId: this.maintenanceContractId, |
| | | status1: "1.受理完毕", |
| | | URFLimitSerial: urfSeries, |
| | | }).then(repairCount => { |
| | | if (repairCount.length > 0 && this.surplusCount == 1) { |
| | | this.ShowToastEvent("该设备关联限次合同,目前剩余次数小于送修设备。请等待进行中修理完成后再进行申请", "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } |
| | | }); |
| | | }); |
| | | } |
| | | console.log(705); |
| | | |
| | | if (this.status != "草案中" && this.status != "1.受理完毕(SAP待发送)" && this.status != "4.修理品返送阶段") { |
| | | this.ShowToastEvent("不是草案中不能申请", "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } else { |
| | | if (this.dealer != undefined) { |
| | | queryForFindInvalidLicense({ |
| | | dealerId: this.dealerId, |
| | | }).then(findInvalidLicense => { |
| | | console.log(findInvalidLicense); |
| | | if (findInvalidLicense.length > 0) { |
| | | this.ShowToastEvent("经销商三证不在有效期,无法送修", "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | if (this.ifDeadHurt == "有") { |
| | | this.handleConfirmClick08("是否确认AE要提交?"); |
| | | } else { |
| | | this.ll08(); |
| | | } |
| | | } |
| | | |
| | | ll08() { |
| | | console.log(8); |
| | | if (this.dayLater30 == "是") { |
| | | this.ShowToastEvent("创建后超过30天,不能申请了", "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } |
| | | if (this.URFReapir == true && this.surplusCount == 0) { |
| | | this.handleConfirmClick09("合同内大修次数已用完,当前修理为合同外的修理,是否继续?"); |
| | | } else { |
| | | this.ll09(); |
| | | } |
| | | } |
| | | |
| | | ll09() { |
| | | console.log(9); |
| | | updateForRepair1({ |
| | | recordId: this.Id |
| | | }).then(result => { |
| | | if (result != null && result.length > 0) { |
| | | var split = result.split(", "); |
| | | this.ShowToastEvent(split[1], "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } else { |
| | | console.log(901); |
| | | queryForReocrds({ |
| | | inchargeStaffId: this.inchargeStaffId, |
| | | }).then(records => { |
| | | if (records != null && records.length > 0) { |
| | | var staff = records[0]; |
| | | console.log(staff); |
| | | console.log(902); |
| | | updateRepair2({ |
| | | recordId: this.Id, |
| | | staff: staff, |
| | | DWSign: this.DWSign, |
| | | statusc: "1.受理完毕", |
| | | DOJStatus: this.DOJStatus, |
| | | SAPcondition: this.SAPcondition, |
| | | }).then(result => { |
| | | console.log(result); |
| | | console.log(903); |
| | | if (result != null && result.length > 0) { |
| | | var split = result.split(", "); |
| | | this.ShowToastEvent(split[1], "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } else { |
| | | if (this.salesOfficeCodeSelection == "成都RC") { |
| | | this.ShowToastEvent("现阶段,成都RC仅受理四川(西藏)内镜、西南全域CV/CLV,其余实物请发至广州RC。", "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } |
| | | } |
| | | console.log(904); |
| | | queryForRds({ |
| | | recordId: this.Id, |
| | | }).then(rds => { |
| | | console.log(rds); |
| | | if (rds != null && rds.length > 0) { |
| | | var repairAft = rds[0]; |
| | | if (repairAft.NewProductGuarante_Formula__c != repairAft.ProductGuarante_Create__c) { |
| | | this.ShowToastEvent("该设备保修信息已发生变化,请了解", "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } |
| | | } |
| | | }); |
| | | window.open(this.url, "_self"); |
| | | }); |
| | | } else { |
| | | this.ShowToastEvent("没有找到 修理委托者", "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | ShowToastEvent(msg, type) { |
| | |
| | | }); |
| | | this.dispatchEvent(event); |
| | | } |
| | | |
| | | async handleConfirmClick01(msg) { |
| | | const result = await LightningConfirm.open({ |
| | | message: msg, |
| | | variant: 'headerless', |
| | | label: 'this is the aria-label value' |
| | | }); |
| | | if (result) { |
| | | this.ll01(); |
| | | } else { |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | } |
| | | |
| | | async handleConfirmClick02(msg) { |
| | | const result = await LightningConfirm.open({ |
| | | message: msg, |
| | | variant: 'headerless', |
| | | label: 'this is the aria-label value' |
| | | }); |
| | | if (result) { |
| | | this.ll02(); |
| | | } else { |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | } |
| | | |
| | | async handleConfirmClick03(msg) { |
| | | const result = await LightningConfirm.open({ |
| | | message: msg, |
| | | variant: 'headerless', |
| | | label: 'this is the aria-label value' |
| | | }); |
| | | if (result) { |
| | | this.ll03(); |
| | | } else { |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | } |
| | | |
| | | async handleConfirmClick04(msg) { |
| | | const result = await LightningConfirm.open({ |
| | | message: msg, |
| | | variant: 'headerless', |
| | | label: 'this is the aria-label value' |
| | | }); |
| | | if (result) { |
| | | if (this.returnsProductway == undefined) { |
| | | this.handleConfirmClick06("返品方式为空,是否继续申请修理!"); |
| | | } else { |
| | | this.ll06(); |
| | | } |
| | | } else { |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | } |
| | | |
| | | async handleConfirmClick05(msg) { |
| | | const result = await LightningConfirm.open({ |
| | | message: msg, |
| | | variant: 'headerless', |
| | | label: 'this is the aria-label value' |
| | | }); |
| | | if (result) { |
| | | if (this.returnsProductway == undefined) { |
| | | this.handleConfirmClick06("返品方式为空,是否继续申请修理!"); |
| | | } else { |
| | | this.ll06(); |
| | | } |
| | | } else { |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | } |
| | | |
| | | async handleConfirmClick06(msg) { |
| | | const result = await LightningConfirm.open({ |
| | | message: msg, |
| | | variant: 'headerless', |
| | | label: 'this is the aria-label value' |
| | | }); |
| | | if (result) { |
| | | this.ll06(); |
| | | } else { |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | } |
| | | |
| | | async handleConfirmClick07(msg) { |
| | | const result = await LightningConfirm.open({ |
| | | message: msg, |
| | | variant: 'headerless', |
| | | label: 'this is the aria-label value' |
| | | }); |
| | | if (result) { |
| | | this.ll07(); |
| | | } else { |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | } |
| | | |
| | | async handleConfirmClick08(msg) { |
| | | const result = await LightningConfirm.open({ |
| | | message: msg, |
| | | variant: 'headerless', |
| | | label: 'this is the aria-label value' |
| | | }); |
| | | if (result) { |
| | | this.ll08(); |
| | | } else { |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | } |
| | | |
| | | async handleConfirmClick09(msg) { |
| | | const result = await LightningConfirm.open({ |
| | | message: msg, |
| | | variant: 'headerless', |
| | | label: 'this is the aria-label value' |
| | | }); |
| | | if (result) { |
| | | this.ll09(); |
| | | } else { |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | } |
| | | } |
| | |
| | | <div class="toReportHolder" if:true={IsLoading}> |
| | | <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner> |
| | | <lightning-button label="Show Toast" onclick={ShowToastEvent}></lightning-button> |
| | | <lightning-button onclick={handleConfirmClick} label="Open Confirm Modal"></lightning-button> |
| | | </div> |
| | | </template> |
| | |
| | | import { |
| | | ShowToastEvent |
| | | } from 'lightning/platformShowToastEvent'; |
| | | import LightningConfirm from 'lightning/confirm'; |
| | | |
| | | export default class LexSendQISToEtQ extends LightningElement { |
| | | @api recordId; |
| | |
| | | ETQUPLOADSTATUSC; |
| | | AEDetermineResultC; |
| | | profileName; |
| | | statu = ''; |
| | | |
| | | @wire(CurrentPageReference) |
| | | getStateParameters(currentPageReference) { |
| | |
| | | }).then(result => { |
| | | console.log(result); |
| | | if (result != null) { |
| | | this.IsLoading = false; |
| | | this.Id = result.Id; |
| | | this.userId = result.userId; |
| | | this.profileId = result.profileId; |
| | |
| | | this.myReload(); |
| | | } |
| | | }) |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | }).catch(error => { |
| | | console.log(error); |
| | |
| | | |
| | | // 发送QIS到EtQ |
| | | SendQISToEtQ() { |
| | | console.log(this.profileName); |
| | | var QId = this.Id; |
| | | var uid = this.userId; |
| | | |
| | | if (this.profileName != "2F7_OSH担当" && this.profileName != "2F7_OSH质量法规") { |
| | | alert("您没有发送QIS到EtQ的权限。"); |
| | | this.ShowToastEvent("您没有发送QIS到EtQ的权限。", "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } |
| | | if (this.PAEDetermineC == undefined) { |
| | | alert("OCSM QARA的PAE判定是空的时候,不可以发送到EtQ。"); |
| | | this.ShowToastEvent("OCSM QARA的PAE判定是空的时候,不可以发送到EtQ。", "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } |
| | | if (this.AEDetermineResultC == "nonAE" && this.PAEDetermineC == "nonPAE" && this.PAEDetermineACC == "nonPAE" && this.OCMJudgementC == undefined && this.QISFinalJudgementC == undefined) { |
| | | alert("nonAE并nonPAE的QIS同步到EtQ的时候,检测结论(OCSM)是必填的。不可以发送到EtQ。"); |
| | | this.ShowToastEvent("nonAE并nonPAE的QIS同步到EtQ的时候,检测结论(OCSM)是必填的。不可以发送到EtQ。", "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } |
| | | if (this.ETQUPLOADSTATUSC == "3") { |
| | | if (!confirm("是否清空EtQ同步状态,重新同步数据?")) { |
| | | return; |
| | | } |
| | | this.handleConfirmClick("是否清空EtQ同步状态,重新同步数据?"); |
| | | } else { |
| | | this.ll(); |
| | | } |
| | | } |
| | | |
| | | var statu = ''; |
| | | myReload() { |
| | | selectQISReportC({ |
| | | QId: this.Id |
| | | }).then(record => { |
| | | console.log(record); |
| | | if (record[0].AsyncData__c == 'true' && record[0].ETQ_UPLOAD_STATUS__c != '3' || record[0].Complaint_Number__c != null) { |
| | | var btns = document.getElementsByName("sendqistoetq"); |
| | | for (var i = 0; i < btns.length; i++) { |
| | | btns[i].disabled = true; |
| | | btns[i].className = 'btnDisabled'; |
| | | } |
| | | this.ShowToastEvent('该QIS之前已经发送过了', "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } else { |
| | | this.SendQISToEtQ(); |
| | | } |
| | | }) |
| | | } |
| | | |
| | | ll() { |
| | | if (this.AEDetermineResultC != undefined && this.PAEDetermineC != undefined && this.PAEDetermineACC == undefined) { |
| | | statu = "Q1"; |
| | | this.statu = "Q1"; |
| | | } else if ( |
| | | (this.AEDetermineResultC != undefined && this.PAEDetermineC != undefined && this.PAEDetermineACC != "nonPAE" && this.PAEDetermineACC != undefined) || |
| | | (this.AEDetermineResultC == "nonAE" && this.PAEDetermineC == "nonPAE" && this.PAEDetermineACC == "nonPAE") && |
| | |
| | | (this.QISFinalJudgementC == undefined || this.QISFinalJudgementC == "质量问题")) || |
| | | (this.OCMJudgementC == "非质量问题" || this.OCMJudgementC == "现象未发现") && |
| | | this.QISFinalJudgementC == "质量问题")) { |
| | | statu = "Q2"; |
| | | this.statu = "Q2"; |
| | | } else if ((this.AEDetermineResultC == "nonAE" && this.PAEDetermineC == "nonPAE" && this.PAEDetermineACC == "nonPAE") && |
| | | ((this.OCMJudgementC == undefined || this.OCMJudgementC == "质量问题" || this.OCMJudgementC == "质量问题+非质量问题") && this.QISFinalJudgementC == "非质量问题") || |
| | | ((this.OCMJudgementC == "非质量问题" || this.OCMJudgementC == "现象未发现") && (this.QISFinalJudgementC == undefined || this.QISFinalJudgementC == "非质量问题"))) { |
| | | statu = "Q3"; |
| | | this.statu = "Q3"; |
| | | } |
| | | try { |
| | | updateQISReportC({ |
| | | QId: QId, |
| | | uid: uid |
| | | }) |
| | | updateQISReportC({ |
| | | QId: this.Id, |
| | | uid: this.userId |
| | | }) |
| | | |
| | | var qisreports = new Array() |
| | | qisreports[0] = this.Id; |
| | | var qisreports = new Array() |
| | | qisreports[0] = this.Id; |
| | | |
| | | var statuArr = new Array(); |
| | | statuArr.push(statu); |
| | | var statuArr = new Array(); |
| | | statuArr.push(this.statu); |
| | | |
| | | sendToETQ({ |
| | | iflog_Id: "", |
| | | rowDataSFDC: "", |
| | | repairIds: qisreports, |
| | | statu: statuArr[0] |
| | | }).then(result => { |
| | | alert(result); |
| | | }) |
| | | |
| | | alert("发送成功!") |
| | | var btns = document.getElementsByName("sendqistoetq"); |
| | | for (var i = 0; i < btns.length; i++) { |
| | | btns[i].disabled = true; |
| | | btns[i].className = 'btnDisabled'; |
| | | } |
| | | location.reload(); |
| | | } catch (error) { |
| | | alert("发送QIS到EtQ失败" + error.faultstring + ' code:' + error.faultcode) |
| | | } |
| | | } |
| | | |
| | | myReload() { |
| | | selectQISReportC({ |
| | | QId: this.Id |
| | | }).then(record => { |
| | | console.log(record); |
| | | if (record[0].AsyncData__c == 'true' && record[0].ETQ_UPLOAD_STATUS__c != '3' || record[0].Complaint_Number__c != null) { |
| | | var btns = document.getElementsByName("sendqistoetq"); |
| | | for (var i = 0; i < btns.length; i++) { |
| | | btns[i].disabled = true; |
| | | btns[i].className = 'btnDisabled'; |
| | | } |
| | | alert('该QIS之前已经发送过了') |
| | | sendToETQ({ |
| | | iflog_Id: "", |
| | | rowDataSFDC: "", |
| | | repairIds: qisreports, |
| | | statu: statuArr[0] |
| | | }).then(result => { |
| | | if (result == "发送成功!") { |
| | | this.ShowToastEvent(result, "success"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } else { |
| | | this.SendQISToEtQ(); |
| | | this.ShowToastEvent("发送QIS到EtQ失败," + result, "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | }) |
| | | |
| | | var btns = document.getElementsByName("sendqistoetq"); |
| | | for (var i = 0; i < btns.length; i++) { |
| | | btns[i].disabled = true; |
| | | btns[i].className = 'btnDisabled'; |
| | | } |
| | | } |
| | | |
| | | // 弹窗 |
| | |
| | | }); |
| | | this.dispatchEvent(event); |
| | | } |
| | | |
| | | async handleConfirmClick(msg) { |
| | | const result = await LightningConfirm.open({ |
| | | message: msg, |
| | | variant: 'headerless', |
| | | label: 'this is the aria-label value' |
| | | }); |
| | | |
| | | if (result) { |
| | | this.ll(); |
| | | } else { |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | } |
| | | } |
| | |
| | | <div class="exampleHolder" if:true={IsLoading}> |
| | | <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner> |
| | | <lightning-button label="Show Toast" onclick={ShowToastEvent}></lightning-button> |
| | | <lightning-button onclick={handleConfirmClick} label="Open Confirm Modal"></lightning-button> |
| | | </div> |
| | | </template> |
| | |
| | | import { |
| | | ShowToastEvent |
| | | } from 'lightning/platformShowToastEvent'; |
| | | import LightningConfirm from 'lightning/confirm'; |
| | | |
| | | export default class LexSendRepairsToEtQ extends LightningElement { |
| | | @api recordId; |
| | |
| | | profileId; |
| | | profileName; |
| | | userName; |
| | | msg; |
| | | statu = ''; |
| | | |
| | | @wire(CurrentPageReference) |
| | | getStateParameters(currentPageReference) { |
| | |
| | | }).then(result => { |
| | | console.log(result); |
| | | if (result != null) { |
| | | this.IsLoading = false; |
| | | this.Id = result.Id; |
| | | this.PAEDetermineC = result.PAEDetermineC; |
| | | this.ETQUPLOADSTATUSC = result.ETQUPLOADSTATUSC; |
| | |
| | | }).then(result => { |
| | | console.log(result); |
| | | if (result != null) { |
| | | this.IsLoading = false; |
| | | this.userName = result[0].Name; |
| | | } |
| | | }) |
| | |
| | | profileId: this.profileId |
| | | }).then(result => { |
| | | if (result != null) { |
| | | this.IsLoading = false; |
| | | this.profileName = result[0].Name; |
| | | |
| | | this.myDate(); |
| | |
| | | } |
| | | }) |
| | | |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | }).catch(error => { |
| | | console.log(error); |
| | |
| | | selectRecords({ |
| | | recordId: this.Id |
| | | }).then(result => { |
| | | if (result[0].AsyncData__c == 'true' && result[0].ETQ_UPLOAD_STATUS__c != '3' || result[0].Complaint_Number__c != null) { |
| | | if (result[0].AsyncData__c == true && result[0].ETQ_UPLOAD_STATUS__c != '3' || result[0].Complaint_Number__c != null) { |
| | | var btns = document.getElementsByName("sendrepairstoetq"); |
| | | for (var i = 0; i < btns.length; i++) { |
| | | btns[i].disabled = true; |
| | | btns[i].className = 'btnDisabled'; |
| | | } |
| | | alert('该修理之前已经发送过了'); |
| | | this.ShowToastEvent('该修理之前已经发送过了', "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } else { |
| | | this.SendRepairsToEtQ(); |
| | | } |
| | |
| | | // 发送ETQ |
| | | SendRepairsToEtQ() { |
| | | if (this.profileName != "2F7_OSH担当" && this.profileName != "2F7_OSH质量法规" && this.profileName != '系统管理员') { |
| | | alert("您没有发送修理到EtQ的权限。"); |
| | | this.ShowToastEvent("您没有发送修理到EtQ的权限。", "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } |
| | | var statu = ''; |
| | | if (this.PAEDetermineC == undefined) { |
| | | alert("OCSM QARA的PAE判定是空的时候,不可以发送到EtQ。"); |
| | | this.ShowToastEvent("OCSM QARA的PAE判定是空的时候,不可以发送到EtQ。", "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } |
| | | if (this.PAEDetermineC == "nonPAE" && this.AEDetermineResultC == "nonAE" && this.PAEDetermineACC == "nonPAE" && this.userName != "雷 新建") { |
| | | this.ShowToastEvent("Close Complait的时候,不可以发送到EtQ", "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } |
| | | if (this.ETQUPLOADSTATUSC == "3") { |
| | | if (!confirm("是否清空EtQ同步状态,重新同步数据?")) { |
| | | return; |
| | | } |
| | | this.handleConfirmClick("是否清空EtQ同步状态,重新同步数据?"); |
| | | } else { |
| | | this.ll(); |
| | | } |
| | | if (this.PAEDetermineC == "nonPAE" && this.AEDetermineResultC == "nonAE" && this.PAEDetermineACC == "nonPAE" && this.userName != "雷 新建") { |
| | | alert("Close Complait的时候,不可以发送到EtQ"); |
| | | return; |
| | | } |
| | | } |
| | | |
| | | ll() { |
| | | if (this.PAEDetermineC != undefined && this.AEDetermineResultC != undefined && this.PAEDetermineACC == undefined) { |
| | | statu = "R1"; |
| | | this.statu = "R1"; |
| | | } else if ((this.AEDetermineResultC != undefined && this.PAEDetermineC != undefined && this.PAEDetermineACC != undefined) && |
| | | !(this.PAEDetermineC == "nonPAE" && this.AEDetermineResultC == "nonAE" && this.PAEDetermineACC == "nonPAE")) { |
| | | statu = "R2"; |
| | | this.statu = "R2"; |
| | | if (this.RepairInspectionDateC == undefined) { |
| | | alert("5.修理检测日是空的时候,不可以发送到EtQ。"); |
| | | this.ShowToastEvent("5.修理检测日是空的时候,不可以发送到EtQ。", "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } |
| | | if (this.ContainUseRSAC == 1) { |
| | | alert("Final universal code为空,或者包含UseRSA,请确认。"); |
| | | this.ShowToastEvent("Final universal code为空,或者包含UseRSA,请确认。", "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } |
| | | } |
| | | try { |
| | | var repairids = new Array() |
| | | repairids[0] = this.Id; |
| | | |
| | | var statuArr = new Array(); |
| | | statuArr.push(statu); |
| | | var repairids = new Array() |
| | | repairids[0] = this.Id; |
| | | |
| | | sendToETQ({ |
| | | iflog_Id: "", |
| | | rowDataSFDC: "", |
| | | repairIds: repairids, |
| | | statu: statuArr[0] |
| | | }).then(result => { |
| | | alert(result); |
| | | location.reload(); |
| | | }) |
| | | var statuArr = new Array(); |
| | | statuArr.push(this.statu); |
| | | |
| | | var btns = document.getElementsByName("sendrepairstoetq"); |
| | | for (var i = 0; i < btns.length; i++) { |
| | | btns[i].disabled = true; |
| | | btns[i].className = 'btnDisabled'; |
| | | sendToETQ({ |
| | | iflog_Id: "", |
| | | rowDataSFDC: "", |
| | | repairIds: repairids, |
| | | statu: statuArr[0] |
| | | }).then(result => { |
| | | console.log("result:" + result); |
| | | if (result == "发送成功!") { |
| | | this.ShowToastEvent(result, "success"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } else { |
| | | this.ShowToastEvent("发送修理到EtQ失败," + result, "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | } catch (error) { |
| | | alert("发送修理到EtQ失败" + error.faultstring + ' code:' + error.faultcode); |
| | | }) |
| | | |
| | | var btns = document.getElementsByName("sendrepairstoetq"); |
| | | for (var i = 0; i < btns.length; i++) { |
| | | btns[i].disabled = true; |
| | | btns[i].className = 'btnDisabled'; |
| | | } |
| | | } |
| | | |
| | |
| | | }); |
| | | this.dispatchEvent(event); |
| | | } |
| | | |
| | | async handleConfirmClick(msg) { |
| | | const result = await LightningConfirm.open({ |
| | | message: msg, |
| | | variant: 'headerless', |
| | | label: 'this is the aria-label value' |
| | | }); |
| | | |
| | | if (result) { |
| | | this.ll(); |
| | | } else { |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | } |
| | | |
| | | } |
| | |
| | | this.ServiceCutPriceApply(); |
| | | } |
| | | }) |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | }).catch(error => { |
| | | console.log(error); |
| | |
| | | |
| | | if (power != '2F2A_RC' && power != '2F4_技术推进部' && power != '2F4_技术推进部_非SSO') { |
| | | this.ShowToastEvent("对不起,您没有权限提交此申请!", "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } |
| | | var status = this.CutPriceStatusServiceC; |
| | | if (status == '审批中') { |
| | | this.ShowToastEvent("审批提交成功,当前正在审批请勿再提交!", "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } |
| | | if (status == '批准') { |
| | | this.ShowToastEvent("审批已批准,请勿再提交!", "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } |
| | | if (status == '草案中' || status == undefined || status == '驳回') { |
| | |
| | | console.log(result); |
| | | if (result.length > 0) { |
| | | var split = result.split(", "); |
| | | alert(split[1]); |
| | | this.ShowToastEvent(split[1], "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } |
| | | }) |
| | |
| | | console.log(result); |
| | | if (result.length > 0) { |
| | | var split = result.split(", "); |
| | | alert("提交失败 " + split[1]); |
| | | this.ShowToastEvent("提交失败 " + split[1], "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } else { |
| | | this.ShowToastEvent("审批提交成功!", "success"); |
| | | location.reload(); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | }) |
| | | } |
| | |
| | | <div class="exampleHolder" if:true={IsLoading}> |
| | | <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner> |
| | | <lightning-button label="Show Toast" onclick={ShowToastEvent}></lightning-button> |
| | | <lightning-button onclick={handleConfirmClick} label="Open Confirm Modal"></lightning-button> |
| | | </div> |
| | | </template> |
| | |
| | | import init from '@salesforce/apex/otherButtonMaintenanceContractCtl.init'; |
| | | import updateColunm from '@salesforce/apex/MaintenanceContractSetColunmWebService.updateColunm'; |
| | | import up2sap from '@salesforce/apex/MaintenanceContractWebService.up2sap'; |
| | | import { ShowToastEvent } from 'lightning/platformShowToastEvent'; |
| | | import { |
| | | ShowToastEvent |
| | | } from 'lightning/platformShowToastEvent'; |
| | | import LightningConfirm from 'lightning/confirm'; |
| | | |
| | | export default class LexUploadToRecognitionModel extends LightningElement { |
| | | @api recordId; |
| | |
| | | this.PaymentPlanSumFirstC = result.PaymentPlanSumFirstC; |
| | | |
| | | this.uploadToRecognitionModel(); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | }).catch(error => { |
| | | console.log(error); |
| | | }).finally(() => { |
| | | |
| | | }); |
| | | }) |
| | | } |
| | | |
| | | // 上传认款合同 |
| | | uploadToRecognitionModel() { |
| | | if (this.ContractQuotationOrNotC == '还没做报价') { |
| | | this.ShowToastEvent("您还没有做合同报价,不能上传认款合同。", "error") |
| | | this.ShowToastEvent("您还没有做合同报价,不能上传认款合同。", "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } else if (this.MaintenanceContractNoC == undefined) { |
| | | this.ShowToastEvent('合同号码为空,不能上传认款合同。', "error") |
| | | this.ShowToastEvent('合同号码为空,不能上传认款合同。', "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } else if (this.uploadToSapTimeC != undefined) { |
| | | this.ShowToastEvent('已经上传SAP,不能再次上传认款合同。', "error") |
| | | this.ShowToastEvent('已经上传SAP,不能再次上传认款合同。', "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } else if (this.uploadToRMTimeC != undefined) { |
| | | this.ShowToastEvent('已经上传认款合同,不能再次上传认款合同。', "error") |
| | | this.ShowToastEvent('已经上传认款合同,不能再次上传认款合同。', "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } else { |
| | | if (!this.oldIsRecognitionModelC) { |
| | | this.ShowToastEvent('经销商为空或经销商不是先款对象,不需要上传认款合同。', "error") |
| | | this.ShowToastEvent('经销商为空或经销商不是先款对象,不需要上传认款合同。', "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } else if (this.PaymentPlanSumFirstC == undefined) { |
| | | this.ShowToastEvent('第一次计划付款金额不能为空。', "error") |
| | | this.ShowToastEvent('第一次计划付款金额不能为空。', "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } else { |
| | | if (!confirm('请确认是否要上传认款合同。')) { |
| | | return; |
| | | } |
| | | updateColunm({ |
| | | mcid: this.Id |
| | | }).then(result => { |
| | | if (result != '1') { |
| | | alert('上传认款合同失败,因为 来年合同相关信息修改失败') |
| | | location.href = "/" + this.Id; |
| | | } |
| | | }) |
| | | up2sap({ |
| | | mcid: this.Id |
| | | }).then(rtn => { |
| | | if (rtn == '1') { |
| | | alert("上传认款合同成功") |
| | | location.href = "/" + this.Id; |
| | | } else { |
| | | alert(rtn) |
| | | } |
| | | }) |
| | | this.handleConfirmClick('请确认是否要上传认款合同。'); |
| | | } |
| | | } |
| | | } |
| | | |
| | | ll() { |
| | | updateColunm({ |
| | | mcid: this.Id |
| | | }).then(result => { |
| | | if (result != '1') { |
| | | this.ShowToastEvent('上传认款合同失败,因为 来年合同相关信息修改失败', "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | window.reload(); |
| | | } |
| | | }) |
| | | up2sap({ |
| | | mcid: this.Id |
| | | }).then(rtn => { |
| | | if (rtn == '1') { |
| | | this.ShowToastEvent("上传认款合同成功", "success"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | window.reload(); |
| | | } else { |
| | | this.ShowToastEvent(rtn, "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } |
| | | }) |
| | | } |
| | | |
| | | // 弹窗 |
| | |
| | | }); |
| | | this.dispatchEvent(event); |
| | | } |
| | | |
| | | async handleConfirmClick(msg) { |
| | | const result = await LightningConfirm.open({ |
| | | message: msg, |
| | | variant: 'headerless', |
| | | label: 'this is the aria-label value' |
| | | }); |
| | | |
| | | if (result) { |
| | | this.ll(); |
| | | } else { |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | } |
| | | } |
| | |
| | | this.Id = result.Id; |
| | | |
| | | this.YanshoudanRequest(); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | }).catch(error => { |
| | | console.log(error); |
| | |
| | | if (result != null) { |
| | | if (result.length > 0) { |
| | | var split = result.split(", "); |
| | | alert(split[1]); |
| | | this.ShowToastEvent(split[1], "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | } |
| | | alert("已经申请过了,不允许重新申请"); |
| | | this.ShowToastEvent("已经申请过了,不允许重新申请", "error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | }) |
| | | } |
| | | |
| | |
| | | <template> |
| | | <div class="sisToOPDHolder" if:true={IsLoading}> |
| | | <div class="sisToOPDHolder" if:true={IsLoading}> |
| | | <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner> |
| | | <lightning-button label="Show Toast" onclick={ShowToastEvent}></lightning-button> |
| | | </div> |
| | | </template> |
| | |
| | | if (this.QISStatusC != '取消') { |
| | | this.ShowToastEvent('状态为取消的QIS才可以被复制并新建', 'error'); |
| | | return; |
| | | } |
| | | } |
| | | var url = "/" + this.Id + "/e?newclone=1&retURL=%2F" + this.Id + " &CF00N100000073PA0=" + this.Name + "&CF00N100000073PA0_lkid=" + this.Id; |
| | | window.open(url); |
| | | } |
| | |
| | | <!-- <apex:page controller="AccessoryAddController" showHeader="false" sidebar="false" id="allPage" action="{!init}"> --> |
| | | <apex:page controller="AccessoryAddController" showHeader="false" sidebar="false" id="allPage" action="{!init}" lightningStylesheets = "true"> |
| | | <head> |
| | | <title>附属品追加</title> |
| | | <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/> |
| | | <apex:stylesheet value="{!URLFOR($Resource.AccessoryAddCss)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.RelationListPagingCmpJS)}"/> |
| | | |
| | | <!-- 20230426 zq add style --> |
| | | <style> |
| | | body .bPageBlock .detailList .labelCol { |
| | | width: auto; |
| | | } |
| | | body input.btn { |
| | | padding: 2px 3px; |
| | | margin-left: 55px; |
| | | } |
| | | </style> |
| | | <script type="text/javascript"> |
| | | var heightAjustment = 120; |
| | | var widthAjustment = 30; |
| | | |
| | | </script> |
| | | </head> |
| | | <apex:form id="allForm"> |
| | | <apex:outputPanel id="pageallPanel"> |
| | | <apex:pageBlock id="searchBlock" tabStyle="Report"> |
| | | <apex:pageBlockSection title="附属品追加"> |
| | | <apex:outputField value="{!parentObj.Rental_Apply__r.Name}"/> |
| | | <apex:outputField value="{!parentObj.Rental_Apply__r.Demo_purpose1__c}"/> |
| | | <apex:outputField value="{!parentObj.Rental_Apply__r.Owner.Name}"/> |
| | | <apex:outputField value="{!parentObj.Rental_Apply__r.demo_purpose2__c}"/> |
| | | <apex:outputField value="{!parentObj.Rental_Apply__r.Salesdept__c}"/> |
| | | <apex:outputField value="{!parentObj.Rental_Apply__r.Product_category__c}"/> |
| | | <apex:outputField value="{!parentObj.Rental_Apply__r.WorkPlace__c}"/> |
| | | <apex:outputField value="{!parentObj.Rental_Apply__r.Equipment_Type_F__c}"/> |
| | | <apex:outputField value="{!parentObj.Rental_Apply__r.Internal_asset_location_F__c}" /> |
| | | <apex:outputText /> |
| | | <apex:outputField value="{!parentObj.Rental_Apply__r.Request_shipping_day__c}"/> |
| | | <apex:outputField value="{!parentObj.Rental_Apply__r.Request_return_day__c}"/> |
| | | <apex:outputField value="{!parentObj.Fixture_Set__r.Fixture_Set_Body_Model_No__c}"/> |
| | | <apex:outputField value="{!parentObj.Irreplaceable_flag__c}"/> |
| | | <apex:outputField value="{!parentObj.Fu_Shu_Pin_Fen_Pei_Jia__c}"/> |
| | | <apex:outputText /> |
| | | <apex:outputField value="{!parentObj.Rental_Start_Date__c}"/> |
| | | <apex:outputField value="{!parentObj.Rental_End_Date__c}"/> |
| | | |
| | | <apex:pageBlockSectionItem > |
| | | <apex:outputPanel > |
| | | <apex:outputText value="关键字" style="width:50px"/> |
| | | <apex:inputText value="{!keyword}" style="width:200px;margin-left: 50px;"/> |
| | | </apex:outputPanel> |
| | | <apex:commandButton value="检索" action="{!searchOpp}" onclick="blockme();" rerender="allForm" oncomplete="unblockUI();" /> |
| | | </apex:pageBlockSectionItem> |
| | | </apex:pageBlockSection> |
| | | <table> |
| | | <tr> |
| | | <td width="20px"/> |
| | | <!--20230426 zq <td width="200px"> --> |
| | | <td width="220px"> |
| | | <apex:outputLabel for="bieCunFangDi" value="备品存放地" /> |
| | | <!-- <apex:outputText value="{!bieCunFangDi}"/> --> |
| | | <apex:selectList value="{!bieCunFangDi}" size="1" style="margin-left: 20px; width:110px" id="bieCunFangDi"> |
| | | <apex:selectOptions value="{!bieCunFangDiOps}"/> |
| | | <!-- #OLY_OCM-659 备品存放地 选项变化时,本部 选项值随之发生变化 --> |
| | | <apex:actionSupport event="onchange" reRender="bieBenBu"/> |
| | | </apex:selectList> |
| | | </td> |
| | | <td width="10px"></td> |
| | | <!-- #OLY_OCM-654 因为MA本部和产品培训本部还是需要检索条件,所以需要别本部的检索条件 Start --> |
| | | <td width="180px"> |
| | | <apex:outputLabel for="bieBenBu" value="本部" /> |
| | | <apex:selectList value="{!bieBenBu}" size="1" style="margin-left: 20px; width:110px" id="bieBenBu"> |
| | | <apex:selectOptions value="{!bieBenBuOps}"/> |
| | | </apex:selectList> |
| | | </td> |
| | | <!-- #OLY_OCM-654 因为MA本部和产品培训本部还是需要检索条件,所以需要别本部的检索条件 End --> |
| | | </tr> |
| | | </table> |
| | | <apex:pageBlockButtons location="bottom"> |
| | | <apex:commandButton style="float:left;" action="{!save}" onclick="blockme();" value="保存" rerender="allForm" oncomplete="unblockUI();" /> |
| | | <apex:commandButton style="float:right;" action="{!cancel}" value="返回" rerender="allForm"/> |
| | | </apex:pageBlockButtons> |
| | | <div style="clear:both;"></div> |
| | | |
| | | <apex:outputPanel id="message"> |
| | | <apex:pageMessages /> |
| | | <apex:page controller="AccessoryAddController" showHeader="false" sidebar="false" id="allPage" action="{!init}" lightningStylesheets="true"> |
| | | <head> |
| | | <title>附属品追加</title> |
| | | <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/> |
| | | <apex:stylesheet value="{!URLFOR($Resource.AccessoryAddCss)}"/> |
| | | <apex:stylesheet value="{!URLFOR($Resource.StyleUtilCss)}"/><!-- 20230624 ljh lightning --> |
| | | <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.RelationListPagingCmpJS)}"/> |
| | | |
| | | <!-- 20230426 zq add style --> |
| | | <style> |
| | | body .bPageBlock .detailList .labelCol { |
| | | width: auto; |
| | | } |
| | | body input.btn { |
| | | /* padding: 2px 3px; */ |
| | | margin-left: 55px; |
| | | } |
| | | /* 20230602 ljh */ |
| | | body .message{ |
| | | margin: 0rem 0!important; |
| | | } |
| | | body .pbBottomButtons{ |
| | | margin: 0rem 0rem 0; |
| | | width: 99%; |
| | | } |
| | | </style> |
| | | <script type="text/javascript"> |
| | | var heightAjustment = 120; |
| | | var widthAjustment = 30; |
| | | |
| | | </script> |
| | | </head> |
| | | <apex:form id="allForm"> |
| | | <apex:outputPanel id="pageallPanel"> |
| | | <apex:pageBlock id="searchBlock" tabStyle="Report"> |
| | | <apex:pageBlockSection title="附属品追加"> |
| | | <apex:outputField value="{!parentObj.Rental_Apply__r.Name}"/> |
| | | <apex:outputField value="{!parentObj.Rental_Apply__r.Demo_purpose1__c}"/> |
| | | <apex:outputField value="{!parentObj.Rental_Apply__r.Owner.Name}"/> |
| | | <apex:outputField value="{!parentObj.Rental_Apply__r.demo_purpose2__c}"/> |
| | | <apex:outputField value="{!parentObj.Rental_Apply__r.Salesdept__c}"/> |
| | | <apex:outputField value="{!parentObj.Rental_Apply__r.Product_category__c}"/> |
| | | <apex:outputField value="{!parentObj.Rental_Apply__r.WorkPlace__c}"/> |
| | | <apex:outputField value="{!parentObj.Rental_Apply__r.Equipment_Type_F__c}"/> |
| | | <apex:outputField value="{!parentObj.Rental_Apply__r.Internal_asset_location_F__c}" /> |
| | | <apex:outputText /> |
| | | <apex:outputField value="{!parentObj.Rental_Apply__r.Request_shipping_day__c}"/> |
| | | <apex:outputField value="{!parentObj.Rental_Apply__r.Request_return_day__c}"/> |
| | | <apex:outputField value="{!parentObj.Fixture_Set__r.Fixture_Set_Body_Model_No__c}"/> |
| | | <apex:outputField value="{!parentObj.Irreplaceable_flag__c}"/> |
| | | <apex:outputField value="{!parentObj.Fu_Shu_Pin_Fen_Pei_Jia__c}"/> |
| | | <apex:outputText /> |
| | | <apex:outputField value="{!parentObj.Rental_Start_Date__c}"/> |
| | | <apex:outputField value="{!parentObj.Rental_End_Date__c}"/> |
| | | <!-- 20230602 ljh start --> |
| | | <!-- <apex:pageBlockSectionItem > |
| | | <apex:outputPanel > |
| | | <apex:outputText value="关键字" style="width:50px"/> |
| | | <apex:inputText value="{!keyword}" style="width:200px;margin-left: 50px;"/> |
| | | </apex:outputPanel> |
| | | </apex:pageBlock> |
| | | <c:RelationListPagingCmp id="cmpid" pgController="{!this}" hasCheckbox="true" isRadio="true" /> |
| | | </apex:outputPanel> |
| | | </apex:form> |
| | | </apex:page> |
| | | <apex:commandButton value="检索" action="{!searchOpp}" onclick="blockme();" rerender="allForm" oncomplete="unblockUI();" /> |
| | | </apex:pageBlockSectionItem> --> |
| | | <!-- 20230602 ljh end --> |
| | | </apex:pageBlockSection> |
| | | <table> |
| | | <tr> |
| | | <td width="20px"/> |
| | | <!--20230426 zq <td width="200px"> --> |
| | | <td width="220px"> |
| | | <apex:outputLabel for="bieCunFangDi" value="备品存放地" /> |
| | | <!-- <apex:outputText value="{!bieCunFangDi}"/> --> |
| | | <apex:selectList value="{!bieCunFangDi}" size="1" style="margin-left: 20px; width:110px" id="bieCunFangDi"> |
| | | <apex:selectOptions value="{!bieCunFangDiOps}"/> |
| | | <!-- #OLY_OCM-659 备品存放地 选项变化时,本部 选项值随之发生变化 --> |
| | | <apex:actionSupport event="onchange" reRender="bieBenBu"/> |
| | | </apex:selectList> |
| | | </td> |
| | | <td width="10px"></td> |
| | | <!-- #OLY_OCM-654 因为MA本部和产品培训本部还是需要检索条件,所以需要别本部的检索条件 Start --> |
| | | <td width="180px"> |
| | | <apex:outputLabel for="bieBenBu" value="本部" /> |
| | | <apex:selectList value="{!bieBenBu}" size="1" style="margin-left: 20px; width:110px" id="bieBenBu"> |
| | | <apex:selectOptions value="{!bieBenBuOps}"/> |
| | | </apex:selectList> |
| | | </td> |
| | | <!-- #OLY_OCM-654 因为MA本部和产品培训本部还是需要检索条件,所以需要别本部的检索条件 End --> |
| | | <!-- 20230602 ljh start --> |
| | | <td width="80px" align ="right">关键字:</td> |
| | | <td width="200px" align ="left"> |
| | | <apex:inputText value="{!keyword}" style="width:200px;"/> |
| | | </td> |
| | | <td width="180px"><apex:commandButton value="检索" action="{!searchOpp}" onclick="blockme();" rerender="allForm" oncomplete="unblockUI();" /></td> |
| | | <!-- 20230602 ljh start --> |
| | | </tr> |
| | | </table> |
| | | <!-- 20230602 ljh start --> |
| | | <!-- <apex:pageBlockButtons location="bottom"> |
| | | <apex:commandButton style="float:left;" action="{!save}" onclick="blockme();" value="保存" rerender="allForm" oncomplete="unblockUI();" /> |
| | | <apex:commandButton style="float:right;" action="{!cancel}" value="返回" rerender="allForm"/> |
| | | </apex:pageBlockButtons> |
| | | <div style="clear:both;"></div> |
| | | |
| | | <apex:outputPanel id="message"> |
| | | <apex:pageMessages /> |
| | | </apex:outputPanel> --> |
| | | <!-- 20230602 ljh end --> |
| | | </apex:pageBlock> |
| | | <!-- 20230602 ljh start --> |
| | | <apex:outputPanel id="message"> |
| | | <apex:pageMessages /> |
| | | </apex:outputPanel> |
| | | <apex:pageBlock> |
| | | <apex:pageBlockButtons location="bottom" style="margin:0;padding:0;"> |
| | | <apex:commandButton style="float:left;" action="{!save}" onclick="blockme();" value="保存" rerender="allForm" oncomplete="unblockUI();" /> |
| | | <apex:commandButton style="float:right;" action="{!cancel}" value="返回" rerender="allForm"/> |
| | | </apex:pageBlockButtons> |
| | | <div style="clear:both;"></div> |
| | | </apex:pageBlock> |
| | | <!-- 20230602 ljh end --> |
| | | <c:RelationListPagingCmp id="cmpid" pgController="{!this}" hasCheckbox="true" isRadio="true" /> |
| | | </apex:outputPanel> |
| | | </apex:form> |
| | | </apex:page> |
| | |
| | | <title>附属品选择</title> |
| | | <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/> |
| | | <apex:stylesheet value="{!URLFOR($Resource.AccessorySelectCss)}"/> |
| | | <apex:stylesheet value="{!URLFOR($Resource.StyleUtilCss)}"/><!-- 20230624 ljh lightning --> |
| | | <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.RelationListPagingCmpJS)}"/> |
| | |
| | | <!-- 年度毎のデータを表示 --> |
| | | <apex:tabPanel value="{!selectedTab}" tabClass="activeTab" inactiveTabClass="inactiveTab" rendered="{!IF(recordDeveloperName <> 'HP', true, false)}"> |
| | | <apex:tab label="{!historyList[0].year_c}" name="{!historyList[0].rec.Id}" rendered="{!IF(historyCount > 0, true, false)}" > |
| | | <iframe src="/apex/AccountTargetTab?id={!historyList[0].rec.Id}&accid={!recordId}" width="100%" height="450px;"></iframe> |
| | | <iframe src="/apex/AccountTargetTab?id={!historyList[0].rec.Id}&accid={!recordId}" width="100%" height="450px"></iframe> |
| | | </apex:tab> |
| | | <apex:tab label="{!historyList[1].year_c}" name="{!historyList[1].rec.Id}" rendered="{!IF(historyCount > 1, true, false)}"> |
| | | <iframe src="/apex/AccountTargetTab?id={!historyList[1].rec.Id}&accid={!recordId}" width="100%" height="450px;"></iframe> |
| | | <iframe src="/apex/AccountTargetTab?id={!historyList[1].rec.Id}&accid={!recordId}" width="100%" height="450px"></iframe> |
| | | </apex:tab> |
| | | <apex:tab label="{!historyList[2].year_c}" name="{!historyList[2].rec.Id}" rendered="{!IF(historyCount > 2, true, false)}"> |
| | | <iframe src="/apex/AccountTargetTab?id={!historyList[2].rec.Id}&accid={!recordId}" width="100%" height="450px;"></iframe> |
| | | <iframe src="/apex/AccountTargetTab?id={!historyList[2].rec.Id}&accid={!recordId}" width="100%" height="450px"></iframe> |
| | | </apex:tab> |
| | | <apex:tab label="{!historyList[3].year_c}" name="{!historyList[3].rec.Id}" rendered="{!IF(historyCount > 3, true, false)}"> |
| | | <iframe src="/apex/AccountTargetTab?id={!historyList[3].rec.Id}&accid={!recordId}" width="100%" height="450px;"></iframe> |
| | | <iframe src="/apex/AccountTargetTab?id={!historyList[3].rec.Id}&accid={!recordId}" width="100%" height="450px"></iframe> |
| | | </apex:tab> |
| | | <apex:tab label="{!historyList[4].year_c}" name="{!historyList[4].rec.Id}" rendered="{!IF(historyCount > 4, true, false)}"> |
| | | <iframe src="/apex/AccountTargetTab?id={!historyList[4].rec.Id}&accid={!recordId}" width="100%" height="450px;"></iframe> |
| | | <iframe src="/apex/AccountTargetTab?id={!historyList[4].rec.Id}&accid={!recordId}" width="100%" height="450px"></iframe> |
| | | </apex:tab> |
| | | <apex:tab label="{!historyList[5].year_c}" name="{!historyList[5].rec.Id}" rendered="{!IF(historyCount > 5, true, false)}"> |
| | | <iframe src="/apex/AccountTargetTab?id={!historyList[5].rec.Id}&accid={!recordId}" width="100%" height="450px;"></iframe> |
| | | <iframe src="/apex/AccountTargetTab?id={!historyList[5].rec.Id}&accid={!recordId}" width="100%" height="450px"></iframe> |
| | | </apex:tab> |
| | | <apex:tab label=" + " name="new"> |
| | | <iframe src="/apex/AccountTargetTab?id=&accid={!recordId}" width="100%" height="450px;"></iframe> |
| | | <iframe src="/apex/AccountTargetTab?id=&accid={!recordId}" width="100%" height="450px"></iframe> |
| | | </apex:tab> |
| | | </apex:tabPanel> |
| | | </apex:form> |
| | |
| | | </script> |
| | | |
| | | <apex:form id="Form"> |
| | | <div style="height: 265px; overflow-y: auto;"> |
| | | <div style="height: 250px;overflow-y: scroll;"> |
| | | <apex:pageMessages /> |
| | | |
| | | <apex:outputPanel layout="none" rendered="{!NOT(ISNULL(history))}"> |
| | |
| | | <apex:page standardController="eSignForm__c" extensions="AgencyConfirmPageController" showHeader="false" sidebar="false" |
| | | id="allPage" title="验收确认(经销商)" action="{!init}" docType="html-5.0"> |
| | | id="allPage" title="验收确认(经销商)" action="{!init}" docType="html-5.0" lightningStylesheets = "true"> |
| | | <apex:outputPanel id="reloadForm"> |
| | | <script type="text/javascript"> |
| | | function reload(){ |
| | |
| | | <apex:page standardController="Rental_Apply__c" extensions="EquipmentRentalExtendController" showHeader="false" sidebar="false" id="allPage" action="{!init}" lightningStylesheets="true"> |
| | | <apex:page standardController="Rental_Apply__c" extensions="EquipmentRentalExtendController" showHeader="false" sidebar="false" id="allPage" action="{!init}" lightningStylesheets="true" title="查询借出中备品"> |
| | | <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/> |
| | | <apex:stylesheet value="{!URLFOR($Resource.StyleUtilCss)}"/><!-- 20230525 ljh lightning --> |
| | | <style> |
| | | .dateFormat { |
| | | display: none; |
| | |
| | | word-break: break-all; |
| | | word-wrap: break-word; |
| | | } |
| | | /* 20230703 ljh 颜色不那么高亮 */ |
| | | div#in_Div_L td.tdRed { |
| | | background-color:red; |
| | | } |
| | |
| | | div#in_Div_L td.tdBlue { |
| | | background-color:Cyan; |
| | | } |
| | | /* 20230703 ljh 颜色不那么高亮 */ |
| | | div#in_Div_L td.tdNormal { |
| | | background-color:none; |
| | | } |
| | |
| | | div#in_Div_R td.tdNormal { |
| | | background-color:none; |
| | | } |
| | | div#in_Div_L td.dataCellBorder1{ |
| | | border-bottom: 1px solid rgb(201, 201, 201); |
| | | } |
| | | div#in_Div_R td.dataCellBorder1{ |
| | | border-bottom: 1px solid rgb(201, 201, 201); |
| | | } |
| | | |
| | | #in_Div_L table tr:nth-child(2n){background-color:#f2f2f2;} |
| | | #in_Div_R table tr:nth-child(2n){background-color:#f2f2f2;} |
| | | </style> |
| | | <script> |
| | | function searchJs() { |
| | |
| | | </apex:actionFunction> |
| | | <apex:inputHidden value="{!returnIMFupdate}" id="returnIMFupdate" /> |
| | | <apex:pageBlock id="searchBlock" title="检索"> |
| | | <apex:pageBlockButtons location="top"> |
| | | <!-- 20230616 ljh start--> |
| | | <!-- <apex:pageBlockButtons location="top"> |
| | | <table> |
| | | <tr> |
| | | <td align="right" style="padding-left: 1000px"><input type="button" value="关闭" onclick="closePage()" style="width:70px;"/></td> |
| | | <td align="right" style="padding-left: 1000px"><input type="button" class="btn" value="关闭" onclick="closePage()" style="width:70px;"/></td> |
| | | </tr> |
| | | </table> |
| | | </apex:pageBlockButtons> |
| | | </apex:pageBlockButtons> --> |
| | | <!-- 20230616 ljh end--> |
| | | <table style='width:1150px;'> |
| | | <tr style="height:55px"> |
| | | <td style="width:85px" align="right">选择条件</td> |
| | |
| | | <td style="width:95px" align="left"><apex:inputText value="{!val1}" id="val1" style="width:100px;"/></td> |
| | | <td style="width:85px" align="right">所有者</td> |
| | | <td style="width:120px" align="left"><apex:inputText value="{!ownerSearch}" style="width:100px;" /></td> |
| | | <td style="width:135px" align="center"><input type="button" value="借出中全部" onclick="searchsp1Js();" style="width:130px"/></td> |
| | | <td style="width:135px" align="center"><input type="button" value="超过中" onclick="searchsp2Js();" style="width:130px"/></td> |
| | | <td style="width:135px" align="center"><input type="button" value="1周以内回收预定" onclick="searchsp3Js();" style="width:130px"/></td> |
| | | <td style="width:135px" align="center"><input type="button" value="全部" onclick="searchsp4Js();" style="width:130px"/></td> |
| | | <td style="width:135px" align="center"><input class="btn" type="button" value="借出中全部" onclick="searchsp1Js();" style="width:130px"/></td> |
| | | <td style="width:135px" align="center"><input class="btn" type="button" value="超过中" onclick="searchsp2Js();" style="width:130px"/></td> |
| | | <td style="width:135px" align="center"><input class="btn" type="button" value="1周以内回收预定" onclick="searchsp3Js();" style="width:130px"/></td> |
| | | <td style="width:135px" align="center"><input class="btn" type="button" value="全部" onclick="searchsp4Js();" style="width:130px"/></td> |
| | | </tr> |
| | | <tr> |
| | | <td align="right" colspan="2">{!$ObjectType.Rental_Apply__c.fields.Demo_purpose1__c.label} <apex:inputField value="{!searchCondition.Demo_purpose1__c}"/></td> |
| | |
| | | ~ |
| | | <apex:inputField style="width:115px" value="{!finalDayTo.Birth_Date__c}"/> |
| | | </td> |
| | | <td align="center"><input type="button" value="检索" onclick="searchJs();" style="width:130px;font-weight:bold"/></td> |
| | | <td align="center"><input type="button" class="btn" value="检索" onclick="searchJs();" style="width:130px;"/></td> |
| | | <td></td> |
| | | <td></td> |
| | | <!-- 20210628 ljh update SFDC-C4BBFH --> |
| | |
| | | <apex:pageBlock id="dataBlock" title="结果"> |
| | | <apex:pageBlockButtons location="top" id="pageBlockButton1"> |
| | | |
| | | <input type="button" value="保存" onclick="saveJs();" style="width:80px;background-color:red;height:22px;margin-right: 20px;margin-top: 5px;"/> |
| | | <input type="button" class="btn" value="保存" onclick="saveJs();" style="width:80px;background-color:#08107b;height:32px;margin-right: 20px;margin-top: 5px;color: white;text-align: center; line-height: 32px;"/> |
| | | <!-- 分页用 SWAG-B9UBDP start --> |
| | | <table align="right" style="width: 700px;"> |
| | | <tr> |
| | |
| | | <td style="width:100px" align="left"><input type="button" value="保存" onclick="saveJs();" style="width:80px;background-color: red"/></td> |
| | | </tr> |
| | | </table> --> |
| | | <table id="msgtable"> |
| | | <!-- 20230616 ljh--> |
| | | <!-- <table id="msgtable"> |
| | | <tr> |
| | | <td> |
| | | <apex:outputPanel id="message"> |
| | |
| | | </apex:outputPanel> |
| | | </td> |
| | | </tr> |
| | | </table> |
| | | </table> --> |
| | | <apex:outputPanel id="message"> |
| | | <apex:pageMessages /> |
| | | </apex:outputPanel> |
| | | <!-- 20230616 ljh--> |
| | | <div id="out_Div_L"> |
| | | <table class="list" border="1" style="border-collapse: collapse;table-layout:fixed;border-bottom-width: 0px;border-spacing:0;width:915px;"> |
| | | <tr style="background-color:#DCDCDC;height: 50px;" class="headerRow"> |
| | |
| | | <apex:page controller="StatusPageController" showHeader="false" id="allPage" sidebar="false" action="{!init}" docType="html-5.0"> |
| | | <apex:page controller="StatusPageController" showHeader="false" id="allPage" sidebar="false" action="{!init}" docType="html-5.0" lightningStylesheets="true"> |
| | | <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/> |
| | |
| | | <apex:page standardController="eSignForm__c" extensions="HpConfirmPageController" showHeader="false" sidebar="false" |
| | | id="allPage" title="验收确认(医院)" action="{!init}" docType="html-5.0"> |
| | | id="allPage" title="验收确认(医院)" action="{!init}" docType="html-5.0" lightningStylesheets = "true"> |
| | | <apex:outputPanel id="reloadForm"> |
| | | <script type="text/javascript"> |
| | | function reload(){ |
| | |
| | | <apex:page standardController="eSignForm__c" extensions="HpConfirmPageController" showHeader="false" sidebar="false" |
| | | id="allPage" title="验收确认(医院)" action="{!init}" docType="html-5.0"> |
| | | id="allPage" title="验收确认(医院)" action="{!init}" docType="html-5.0" lightningStylesheets = "true"> |
| | | <apex:outputPanel id="reloadForm"> |
| | | <script type="text/javascript"> |
| | | function reload(){ |
| | |
| | | <apex:page controller="MainFixtureSelectController" showHeader="false" sidebar="false" id="allPage" action="{!init}"> |
| | | <!-- 20230529 ljh lightning --> |
| | | <!-- <apex:page controller="MainFixtureSelectController" showHeader="false" sidebar="false" id="allPage" action="{!init}"> --> |
| | | <apex:page controller="MainFixtureSelectController" showHeader="false" sidebar="false" id="allPage" action="{!init}" lightningStylesheets="true"> |
| | | <head> |
| | | <title>主体备品选择</title> |
| | | <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/> |
| | | <apex:stylesheet value="{!URLFOR($Resource.MainFixtureSelectCss)}"/> |
| | | <apex:stylesheet value="{!URLFOR($Resource.StyleUtilCss)}"/><!-- 20230619 ljh lightning --> |
| | | <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.RelationListPagingCmpJS)}"/> |
| | |
| | | box-sizing: border-box; |
| | | } |
| | | .nav { |
| | | width: 180px; |
| | | line-height: 20px; |
| | | border: 1px solid #000; |
| | | width: 170px;/*20230606 ljh*/ |
| | | line-height: 30px;/*20230606 ljh*/ |
| | | /* border: 1px solid #000; *//*20230610 ljh lightning*/ |
| | | -webkit-user-select: none; |
| | | -moz-user-select: none; |
| | | -ms-user-select: none; |
| | | user-select: none; |
| | | position: absolute; |
| | | top: 0; |
| | | top: -15px;/*20230606 ljh*/ |
| | | right: 0; |
| | | left: 0; |
| | | margin: 0; |
| | | z-index: 9999; |
| | | display: inline-block; |
| | | background-color: white; |
| | | /*display: none;*/ |
| | | border-radius: 0.25rem;/*20230607 ljh lightning*/ |
| | | border: 1px solid rgb(201, 201, 201);/*20230610 ljh lightning*/ |
| | | } |
| | | ul, |
| | | li { |
| | |
| | | overflow: hidden; |
| | | text-overflow: ellipsis; |
| | | } |
| | | .nav_close { |
| | | position: fixed; |
| | | top: 0; |
| | | bottom: 0; |
| | | left: 0; |
| | | right: 0; |
| | | z-index: 9990; |
| | | display: none; |
| | | } |
| | | .nav_close_a { |
| | | position: fixed; |
| | | top: 0; |
| | | bottom: 0; |
| | | left: 0; |
| | | right: 0; |
| | | z-index: 9999; |
| | | display: none; |
| | | background-color: red; |
| | | } |
| | | /*以下是下拉复选框的样式 end*/ |
| | | /*.transparent_class { |
| | | filter:alpha(opacity=50); |
| | | -moz-opacity:0.5; |
| | | -khtml-opacity: 0.5; |
| | | opacity: 0.5; |
| | | } |
| | | .checks_div_select { |
| | | width: 150px; |
| | | background-color: #e9fbfb; |
| | | border: 1px solid #18cbcd; |
| | | font-family: 'Verdana', '宋体'; |
| | | font-size: 12px; |
| | | position:absolute; |
| | | left:2px; |
| | | top:25px; |
| | | } */ |
| | | </style> |
| | | |
| | | <script type="text/javascript"> |
| | |
| | | hint +=optioncheck[i].innerText; |
| | | } |
| | | } |
| | | // console.log(hint); |
| | | j$(escapeVfId('allPage:allForm:searchBlock:mainSection:ApplyBB:bieBenBu')).val(hint); |
| | | console.log(hint); |
| | | // j$(escapeVfId('allPage:allForm:searchBlock:mainSection:ApplyBB:bieBenBu')).val(hint); |
| | | j$(escapeVfId('allPage:allForm:searchBlock:bieBenBu')).val(hint); |
| | | |
| | | } |
| | | function navClose(){ |
| | | j$("#selectCheckId").toggle(); |
| | |
| | | hint +=optioncheck[i].innerText; |
| | | } |
| | | } |
| | | j$(escapeVfId('allPage:allForm:searchBlock:mainSection:ApplyAA:bieBeiPinFenLei')).val(hint); |
| | | // j$(escapeVfId('allPage:allForm:searchBlock:mainSection:ApplyAA:bieBeiPinFenLei')).val(hint); |
| | | j$(escapeVfId('allPage:allForm:searchBlock:bieBeiPinFenLei')).val(hint); |
| | | } |
| | | function navClose_a(){ |
| | | j$("#selectCheckId_a").toggle(); |
| | |
| | | |
| | | <apex:outputPanel id="pageallPanel"> |
| | | <apex:pageBlock id="searchBlock" tabStyle="Report"> |
| | | |
| | | <apex:pageBlockSection title="主体备品选择" id="mainSection"> |
| | | <apex:outputField value="{!parentObj.Rental_Apply__r.Name}"/> |
| | | <apex:outputField value="{!parentObj.Rental_Apply__r.Demo_purpose1__c}"/> |
| | |
| | | <apex:outputField value="{!parentObj.Rental_End_Date__c}"/> |
| | | <apex:outputField value="{!parentObj.Fu_Shu_Pin_Fen_Pei_Jia__c}"/> |
| | | <apex:outputField value="{!parentObj.Rental_Start_Date__c}"/> |
| | | |
| | | <apex:pageBlockSectionItem > |
| | | <!-- 20230605 ljh lightning start --> |
| | | <!-- <apex:pageBlockSectionItem > |
| | | <apex:outputLabel for="salesd" style="font-weight: bold; font-family: Arial,Helvetica,sans-serif; font-size: 91%;color: #4a4a56;" value="备品存放地" /> |
| | | <apex:selectList value="{!bieCunFangDi}" onchange="blockme(); changebenbu(); reloadBenBu(this);return false" size="1" style="margin-left: 0px; width:110px" id="bieCunFangDi"> |
| | | <apex:selectOptions value="{!bieCunFangDiOps}"/> |
| | |
| | | } |
| | | </script> |
| | | </apex:outputPanel> |
| | | </apex:pageBlockSectionItem> |
| | | </apex:pageBlockSection> |
| | | </apex:pageBlockSectionItem>--> |
| | | </apex:pageBlockSection> |
| | | |
| | | |
| | | <table> |
| | | <tr/><tr/><tr/><tr/><tr/><tr/><tr/><tr/> |
| | | <table style="width:100%;margin:10px 0;"> |
| | | <!-- <tr/><tr/><tr/><tr/><tr/><tr/><tr/><tr/> |
| | | <tr> |
| | | <td width="50px">关键字</td> |
| | | <td><apex:inputText value="{!keyword}" style="width:200px"/></td> |
| | | <td width="20px"/> |
| | | <td><apex:commandButton value="検索" onclick=" searchOppJs(); return false;"/></td> |
| | | </tr> |
| | | <tr/><tr/><tr/><tr/><tr/><tr/> |
| | | </table> |
| | | <tr/><tr/><tr/><tr/><tr/><tr/> --> |
| | | <colgroup> |
| | | <col width="6%" /> |
| | | <col width="12%" /> |
| | | <col width="12%" /> |
| | | <col width="6%" /> |
| | | <col width="6%"/> |
| | | <col width="12%"/> |
| | | <col width="6%"/> |
| | | <col width="12%"/> |
| | | <col width="6%"/> |
| | | <col width="12%"/> |
| | | <col width="10%"/> |
| | | </colgroup> |
| | | <tr> |
| | | <td align="right" style="padding-right:5px;" >备品存放地</td> |
| | | <td align="left"> |
| | | <apex:selectList value="{!bieCunFangDi}" onchange="blockme(); changebenbu(); reloadBenBu(this);return false" size="1" style="margin-left: 0px; width:110px" id="bieCunFangDi"> |
| | | <apex:selectOptions value="{!bieCunFangDiOps}"/> |
| | | </apex:selectList> |
| | | </td> |
| | | <td align="right" style="padding-right:5px;">产品分类(GI/SP)</td> |
| | | <td align="left"> |
| | | <apex:selectList value="{!bieChanPinFenLei}" size="1" style="margin-left: 0px; width:60px" id="bieChanPinFenLei"> |
| | | <apex:selectOptions value="{!bieChanPinFenLeiOps}"/> |
| | | </apex:selectList> |
| | | </td> |
| | | <td align="right" style="padding-right:5px;" >本部</td> |
| | | <td align="left"> |
| | | <apex:outputPanel style="position: absolute;" id="S_bieBenBuApply"> |
| | | <apex:inputHidden id="bieBenBu" value="{!bieBenBu}" /> |
| | | <ul class="nav" id="nav" style="left:0px;"> |
| | | <li id="classification" class="transparent_class" style="margin-left:0px;height:30px;" onclick="navClose();return false;"> |
| | | <span id="initial">--无--</span> |
| | | </li> |
| | | <li id="selectCheckId" style="margin-left:0px;display: none;"> |
| | | <ul style="background-color: #FFFFFF;margin-left: 0;"> |
| | | <apex:repeat value="{!bieBenBuOps}" var="orr" id="selSDBB"> |
| | | <li class="sdclass" style="margin-left:0px"> |
| | | <p class="ul-nav" name="cate_id[]" > |
| | | <input type="checkbox" value="{!orr.label}" class="li-input" onclick="selectBenBu(this,'{!orr.label}');" style="display: inline-block;vertical-align: middle;" /> |
| | | <font style="">{!orr.label}</font> |
| | | </p> |
| | | </li> |
| | | </apex:repeat> |
| | | </ul> |
| | | </li> |
| | | </ul> |
| | | <script> |
| | | initShowBenbu(); |
| | | function initShowBenbu() { |
| | | var bieBenBuTemp = '{!bieBenBu}'; |
| | | if (bieBenBuTemp != null && bieBenBuTemp != undefined && bieBenBuTemp != "") { |
| | | j$("#classification").children("#initial").remove(); |
| | | var bieBenBuList = bieBenBuTemp.split(','); |
| | | for(var i=0; i< bieBenBuList.length; i++) { |
| | | var idTemp = bieBenBuList[i].trim(); |
| | | idTemp = 'Id'+idTemp.split('.')[0]; |
| | | j$("#classification").append("<span class='valClass' id='" + (idTemp) + "'>" + (bieBenBuList[i].trim() + ",") + "</span>"); |
| | | } |
| | | |
| | | var inputObj = j$(".li-input"); |
| | | if(inputObj != null){ |
| | | for(var i = 0; i < inputObj.length;i++){ |
| | | if(bieBenBuTemp.includes(inputObj[i].value)){ |
| | | inputObj[i].checked = true; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | </apex:outputPanel> |
| | | </td> |
| | | <td align="right" style="padding-right:5px;" >备品分类</td> |
| | | <td align="left" > |
| | | <apex:outputPanel style="position: absolute;" id="S_AgencyApply"> |
| | | <apex:inputHidden id="bieBeiPinFenLei" value="{!bieBeiPinFenLei}" /> |
| | | <ul class="nav" id="nav_a" style="left:0px;"> |
| | | <li id="classification_a" class="transparent_class" style="margin-left:0px;height:30px;" onclick="navClose_a();return false;"> |
| | | <span id="initial_a">--无--</span> |
| | | </li> |
| | | <li id="selectCheckId_a" style="margin-left:0px;display: none;"> |
| | | <ul style="background-color: #FFFFFF;margin-left: 0;"> |
| | | <apex:repeat value="{!bieBeiPinFenLeiOps}" var="orr" id="selSD"> |
| | | <li class="sdclass" style="margin-left:0px"> |
| | | <p class="ul-nav" name="cate_id[]" > |
| | | <input type="checkbox" value="{!orr.label}" class="li-input_a" onclick="selectAgency(this,'{!orr.label}');" style="display: inline-block;vertical-align: middle;" /> |
| | | <font style="">{!orr.label}</font> |
| | | </p> |
| | | </li> |
| | | </apex:repeat> |
| | | </ul> |
| | | </li> |
| | | </ul> |
| | | |
| | | <script> |
| | | initShowFenlei(); |
| | | function initShowFenlei() { |
| | | var bieBeiPinFenLeiTemp = '{!bieBeiPinFenLei}'; |
| | | if (bieBeiPinFenLeiTemp != null && bieBeiPinFenLeiTemp != undefined && bieBeiPinFenLeiTemp != "") { |
| | | j$("#classification_a").children("#initial_a").remove(); |
| | | var bieBeiPinFenLeiList = bieBeiPinFenLeiTemp.split(','); |
| | | for(var i=0; i< bieBeiPinFenLeiList.length; i++) { |
| | | var idTemp = bieBeiPinFenLeiList[i].trim(); |
| | | idTemp = 'Id'+idTemp.split('.')[0]; |
| | | j$("#classification_a").append("<span class='valClass_a' id='" + (idTemp) + "'>" + (bieBeiPinFenLeiList[i].trim() + ",") + "</span>"); |
| | | } |
| | | |
| | | var inputObj = j$(".li-input_a"); |
| | | if(inputObj != null){ |
| | | for(var i = 0; i < inputObj.length;i++){ |
| | | if(bieBeiPinFenLeiTemp.includes(inputObj[i].value)){ |
| | | inputObj[i].checked = true; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | </apex:outputPanel> |
| | | </td> |
| | | <td align="right" style="padding-right:5px;">关键字</td> |
| | | <td align="left" ><apex:inputText value="{!keyword}"/></td> |
| | | <td style="padding-left:20px;"><apex:commandButton value="検索" onclick=" searchOppJs(); return false;"/></td> |
| | | </tr> |
| | | </table> |
| | | <!-- 20230605 ljh lightning end --> |
| | | <table style="width:100%"> |
| | | <tr> |
| | | <td style="width:40%"> |
| | |
| | | <apex:outputPanel id="message"> |
| | | <apex:pageMessages /> |
| | | </apex:outputPanel> |
| | | |
| | | </apex:pageBlock> |
| | | <c:RelationListPagingCmp id="cmpid" pgController="{!this}" hasCheckbox="true" isRadio="true"/> |
| | | </apex:outputPanel> |
| | |
| | | <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.RelationListPagingCmpJS)}"/> |
| | | <apex:stylesheet value="{!URLFOR($Resource.StyleUtilCss)}"/><!-- 20230619 ljh lightning --> |
| | | <!-- 20230614 ljh lightning start --> |
| | | <style type="text/css"> |
| | | table.list .col_Name {width:150px;} |
| | | table.list .col_First_RAESD_Model_No_F__c {width:100px;} |
| | | table.list .col_Set_Managment_Code__c {width:90px;} |
| | | table.list .col_SerialNumber_F__c {width:80px;} |
| | | table.list .col_Loaner_Set_No__c {width:90px;} |
| | | table.list .col_RAES_Status__c {width:90px;} |
| | | body .pbSubsection{ |
| | | padding-bottom: 0; |
| | | padding-top: 0; |
| | | } |
| | | body .pbSubsection > .detailList:first-child{ |
| | | margin-top: 0; |
| | | } |
| | | </style> |
| | | <!-- 20230614 ljh lightning end --> |
| | | </head> |
| | | <apex:form id="allForm"> |
| | | <apex:outputPanel id="message"> |
| New file |
| | |
| | | <apex:page showHeader="true" sidebar="true" lightningStylesheets="true"> |
| | | <head> |
| | | <title></title> |
| | | <style> |
| | | ul li { |
| | | list-style: none; |
| | | /* line-height: 25px; */ |
| | | /* text-align: center; */ |
| | | } |
| | | a{ |
| | | text-decoration:none; |
| | | /* font-size: 20px; */ |
| | | } |
| | | </style> |
| | | </head> |
| | | <!-- Begin Default Content REMOVE THIS --> |
| | | <ul style="margin : 0 auto;"> |
| | | <li><a href="#" onclick="javascript:window.open('/apex/WebToEquipmentSetShippmentReceived','','height=500, width=1000, top=100, left=100, toolbar=no, menubar=no, scrollbars=no, location=no, status=no')">Loaner_ship_return_manage</a></li> |
| | | <hr /> |
| | | <li><a href="#" onclick="javascript:window.open('/apex/ReceivingNoteQRScan','','height=500, width=500, top=200, left=200, toolbar=no, menubar=no, scrollbars=no, location=no, status=no')">ReceivingNoteQRScan</a></li> |
| | | <hr /> |
| | | <li><a href="/apex/EquipmentRentalExtend" target="_blank">查询借出中备品</a></li> |
| | | <hr /> |
| | | <li><a href="/apex/RentalApplySequence" target="_blank" >备品排队查看</a></li> |
| | | <hr /> |
| | | <li><a href="#" onclick="javascript:window.open('/apex/WebToEquipmentSetShippmentReceived','','height=500, width=500, top=200, left=200, toolbar=no, menubar=no, scrollbars=no, location=no, status=no')">Loaner_ship_return_manage</a></li> |
| | | <hr /> |
| | | <li><a href="#" onclick="javascript:window.open('/apex/WebToEquipmentSetShippmentReceived','','height=500, width=500, top=200, left=200, toolbar=no, menubar=no, scrollbars=no, location=no, status=no')">Loaner_ship_return_manage</a></li> |
| | | <hr /> |
| | | <li><a href="#" onclick="javascript:window.open('/apex/WebToEquipmentSetShippmentReceived','','height=500, width=500, top=200, left=200, toolbar=no, menubar=no, scrollbars=no, location=no, status=no')">Loaner_ship_return_manage</a></li> |
| | | <hr /> |
| | | <li><a href="#" onclick="javascript:window.open('/apex/WebToEquipmentSetShippmentReceived','','height=500, width=500, top=200, left=200, toolbar=no, menubar=no, scrollbars=no, location=no, status=no')">Loaner_ship_return_manage</a></li> |
| | | <hr /> |
| | | <li><a href="#" onclick="javascript:window.open('/apex/WebToEquipmentSetShippmentReceived','','height=500, width=500, top=200, left=200, toolbar=no, menubar=no, scrollbars=no, location=no, status=no')">Loaner_ship_return_manage</a></li> |
| | | <hr /> |
| | | <li><a href="#" onclick="javascript:window.open('/apex/WebToEquipmentSetShippmentReceived','','height=500, width=500, top=200, left=200, toolbar=no, menubar=no, scrollbars=no, location=no, status=no')">Loaner_ship_return_manage</a></li> |
| | | <hr /> |
| | | <li><a href="#" onclick="javascript:window.open('/apex/WebToEquipmentSetShippmentReceived','','height=500, width=500, top=200, left=200, toolbar=no, menubar=no, scrollbars=no, location=no, status=no')">Loaner_ship_return_manage</a></li> |
| | | <hr /> |
| | | <li><a href="#" onclick="javascript:window.open('/apex/WebToEquipmentSetShippmentReceived','','height=500, width=500, top=200, left=200, toolbar=no, menubar=no, scrollbars=no, location=no, status=no')">Loaner_ship_return_manage</a></li> |
| | | <hr /> |
| | | <li><a href="#" onclick="javascript:window.open('/apex/WebToEquipmentSetShippmentReceived','','height=500, width=500, top=200, left=200, toolbar=no, menubar=no, scrollbars=no, location=no, status=no')">Loaner_ship_return_manage</a></li> |
| | | <hr /> |
| | | <li><a href="#" onclick="javascript:window.open('/apex/WebToEquipmentSetShippmentReceived','','height=500, width=500, top=200, left=200, toolbar=no, menubar=no, scrollbars=no, location=no, status=no')">Loaner_ship_return_manage</a></li> |
| | | <hr /> |
| | | <li><a href="#" onclick="javascript:window.open('/apex/WebToEquipmentSetShippmentReceived','','height=500, width=500, top=200, left=200, toolbar=no, menubar=no, scrollbars=no, location=no, status=no')">Loaner_ship_return_manage</a></li> |
| | | <hr /> |
| | | <li><a href="#" onclick="javascript:window.open('/apex/WebToEquipmentSetShippmentReceived','','height=500, width=500, top=200, left=200, toolbar=no, menubar=no, scrollbars=no, location=no, status=no')">Loaner_ship_return_manage</a></li> |
| | | <!-- <li>window.open('/apex/WebToEquipmentSetShippmentReceived','','height=700, width=1000, top=200, left=200, toolbar=no, menubar=no, scrollbars=no, location=no, status=no')</li> --> |
| | | </ul> |
| | | <!-- End Default Content REMOVE THIS --> |
| | | </apex:page> |
| New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <ApexPage xmlns="http://soap.sforce.com/2006/04/metadata"> |
| | | <apiVersion>56.0</apiVersion> |
| | | <availableInTouch>true</availableInTouch> |
| | | <confirmationTokenRequired>false</confirmationTokenRequired> |
| | | <label>RentalApplyList</label> |
| | | </ApexPage> |
| | |
| | | <apex:page controller="RentalApplyMultiPostponeController" action="{!init}" showHeader="false" sidebar="true" id="allPage" title="批量延期"> |
| | | <!-- 20230619 ljh --> |
| | | <!-- <apex:page controller="RentalApplyMultiPostponeController" action="{!init}" showHeader="false" sidebar="true" id="allPage" title="批量延期"> --> |
| | | <apex:page controller="RentalApplyMultiPostponeController" action="{!init}" showHeader="false" sidebar="true" id="allPage" title="批量延期" lightningStylesheets="true"> |
| | | <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.CommonUtilJs)}"/> |
| | | <apex:stylesheet value="{!URLFOR($Resource.StyleUtilCss)}"/><!-- 20230619 ljh lightning --> |
| | | <script type="text/javascript"> |
| | | //onload 的方法 |
| | | window.onload = function(){ |
| | |
| | | <!-- 返回父页面 --> |
| | | <apex:actionFunction name="senBackPage" action="{!senBackPage}" rerender="true" onComplete="unblockUI();"></apex:actionFunction> |
| | | <apex:pageBlock id="searchBlock" tabStyle="Report"> |
| | | <table style="border-bottom-width: 0px; font-size:12px;width:100%;margin-left: 40%;"> |
| | | <!-- 20230619 ljh start--> |
| | | <!-- <table style="border-bottom-width: 0px; font-size:12px;width:100%;margin-left: 40%;"> --> |
| | | <table style="border-bottom-width: 0px; font-size:12px;margin-left: 40%;"> |
| | | <!-- 20230619 ljh end--> |
| | | <tr> |
| | | <td style="width: 20%"> |
| | | <apex:commandButton onclick="searchBtnJs();return false;" rendered="true" value="下一步" style="width:70px;"/> |
| | |
| | | <!-- |
| | | * @Description: 备品排队展示包含队列信息和序列信息 |
| | | * @Author: [lijinhuan] |
| | | * @Date: 2021-10-26 14:15:03 |
| | | * @LastEditors: [lijinhuan] |
| | | * @LastEditTime: 2023-06-06 13:04:33 |
| | | --> |
| | | <!-- 20230522 ljh lightning --> |
| | | <!-- <apex:page controller="RentalApplySequenceController" showHeader="false" sidebar="false" id="allPage" action="{!init}" title="排队查看"> --> |
| | | <apex:page controller="RentalApplySequenceController" showHeader="false" sidebar="false" id="allPage" action="{!init}" title="排队查看" lightningStylesheets="true"> |
| | | <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.connection20)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.apex20)}"/> |
| | | <apex:stylesheet value="{!URLFOR($Resource.listTable)}"/><!-- 20230525 ljh lightning --> |
| | | <apex:stylesheet value="{!URLFOR($Resource.StyleUtilCss)}"/><!-- 20230525 ljh lightning --> |
| | | <style type="text/css"> |
| | | .hideDropdown select{ |
| | | display: none |
| | |
| | | box-sizing: border-box; |
| | | } |
| | | .nav { |
| | | width: 160px; |
| | | line-height: 20px; |
| | | border: 1px solid #000; |
| | | width: 180px;/*20230606 ljh*/ |
| | | line-height: 30px;/*20230606 ljh*/ |
| | | /* border: 1px solid #000; *//*20230610 ljh*/ |
| | | -webkit-user-select: none; |
| | | -moz-user-select: none; |
| | | -ms-user-select: none; |
| | |
| | | margin: 0; |
| | | z-index: 9999; |
| | | display: inline-block; |
| | | /*display: none;*/ |
| | | border-radius: 0.25rem;/*20230607 ljh*/ |
| | | border: 1px solid rgb(201, 201, 201);/*20230610 ljh lightning*/ |
| | | } |
| | | ul, |
| | | li { |
| | |
| | | white-space: nowrap; |
| | | overflow: hidden; |
| | | text-overflow: ellipsis; |
| | | } |
| | | .nav_close { |
| | | position: fixed; |
| | | top: 0; |
| | | bottom: 0; |
| | | left: 0; |
| | | right: 0; |
| | | z-index: 9990; |
| | | display: none; |
| | | } |
| | | .nav_close_a { |
| | | position: fixed; |
| | | top: 0; |
| | | bottom: 0; |
| | | left: 0; |
| | | right: 0; |
| | | z-index: 9999; |
| | | display: none; |
| | | background-color: red; |
| | | } |
| | | /*以下是下拉复选框的样式 end*/ |
| | | .transparent_class { |
| | | /*filter:alpha(opacity=50); |
| | | -moz-opacity:0.5; |
| | | -khtml-opacity: 0.5; |
| | | opacity: 0.5;*/ |
| | | } |
| | | </style> |
| | | <script> |
| | |
| | | </apex:actionFunction> |
| | | <apex:inputHidden id="checkEventId" value="{!checkEventId}" /> |
| | | <apex:pageBlock id="searchBlock" title="查看排队情况"> |
| | | <!-- 20230523 ljh lightning start --> |
| | | <!-- <apex:pageBlockSection title="检索" id="mainSection" columns="4" > |
| | | <apex:pageBlockSection title="检索" id="mainSection" columns="4" > |
| | | <apex:pageBlockSectionItem > |
| | | <apex:outputLabel value="申请单号" /> |
| | | <apex:inputText id="S_raName" value="{!S_raName}"/> |
| | |
| | | <apex:pageBlockSectionItem rendered="{!!isEquipmentCenter}"></apex:pageBlockSectionItem> |
| | | <apex:pageBlockSectionItem id="ApplyBB"> |
| | | <apex:outputLabel for="S_bieBenBuApply" value="申请人所属本部" /> |
| | | <apex:outputPanel style="position: relative; " id="S_bieBenBuApply"> |
| | | <apex:outputPanel style="position: absolute; " id="S_bieBenBuApply"> |
| | | <apex:inputHidden id="S_ApplyBenBu" value="{!S_ApplyBenBu}" /> |
| | | <ul class="nav" id="nav" style="background-color: #FFFFFF;left:0px;"> |
| | | <li id="classification" class="transparent_class" style="margin-left:0px;height:20px;" onclick="navClose();return false;"> |
| | | <li id="classification" class="transparent_class" style="margin-left:0px;height:30px;" onclick="navClose();return false;"> |
| | | <span id="initial">--无--</span> |
| | | </li> |
| | | <li id="selectCheckId" style="margin-left:0px;display: none;"> |
| | | <ul> |
| | | <ul style="margin-left:0px;"> |
| | | <apex:repeat value="{!SApplyBenBu}" var="orr" id="selSD"> |
| | | <li class="sdclass" style="margin-left:0px"> |
| | | <p class="ul-nav" name="cate_id[]" > |
| | |
| | | </ul> |
| | | </li> |
| | | </ul> |
| | | <div class="nav_close"></div> |
| | | </apex:outputPanel> |
| | | </apex:pageBlockSectionItem> |
| | | <apex:pageBlockSectionItem id="ApplyAA" > |
| | | <apex:outputLabel for="S_AgencyApply" value="申请者办事处" /> |
| | | <apex:outputPanel style="position: relative; " id="S_AgencyApply"> |
| | | <apex:outputPanel style="position: absolute; " id="S_AgencyApply"> |
| | | <apex:inputHidden id="S_Agency" value="{!S_Agency}" /> |
| | | <ul class="nav" id="nav_a" style="background-color: #FFFFFF;left:0px;"> |
| | | <li id="classification_a" class="transparent_class" style="margin-left:0px;height:20px;" onclick="navClose_a();return false;"> |
| | | <li id="classification_a" class="transparent_class" style="margin-left:0px;height:30px;" onclick="navClose_a();return false;"> |
| | | <span id="initial_a">--无--</span> |
| | | </li> |
| | | <li id="selectCheckId_a" style="margin-left:0px;display: none;"> |
| | | <ul> |
| | | <ul style="margin-left:0px;"> |
| | | <apex:repeat value="{!SApplyAgency}" var="orr" id="selSD"> |
| | | <li class="sdclass" style="margin-left:0px"> |
| | | <p class="ul-nav" name="cate_id[]" > |
| | |
| | | <apex:pageBlockSectionItem > |
| | | <apex:commandButton style="" value="检索" onclick="searchJs(); return false;"/> |
| | | </apex:pageBlockSectionItem> |
| | | </apex:pageBlockSection> --> |
| | | <div class="pbSubheader brandTertiaryBgr first tertiaryPalette" > |
| | | <h3>检索</h3> |
| | | </div> |
| | | <table style="width:100%;margin:10px 0;" > |
| | | <tr style="height:40px;"> |
| | | <td>申请单号</td> |
| | | <td><apex:inputText id="S_raName" value="{!S_raName}"/></td> |
| | | <td>型号</td> |
| | | <td><apex:inputText id="S_Fixture_Model_No" value="{!S_Fixture_Model_No}"/></td> |
| | | <td>备品出借担当</td> |
| | | <td> |
| | | <apex:inputField id="S_Person_In_Charge" value="{!S_Ra_Person.Person_In_Charge__c}" styleClass="hideDropdown" /> |
| | | </td> |
| | | <td>队列所在地区本部</td> |
| | | <td><apex:inputText id="S_bieBenBu" value="{!S_bieBenBu}"/></td> |
| | | </tr> |
| | | <tr style="height:40px;"> |
| | | <td>备品存放地</td> |
| | | <td> |
| | | <apex:selectList value="{!S_bieCunFangDi}" onchange="blockme(); changeCunfangdi();selectCunFangDiJs(this);return false;" size="1" style="width:160px" id="S_bieCunFangDi"> |
| | | <apex:selectOptions value="{!bieCunFangDiOps}"/> |
| | | </apex:selectList> |
| | | </td> |
| | | <td>申请人所属本部</td> |
| | | <td> |
| | | <apex:outputPanel style="position: relative; " id="S_bieBenBuApply"> |
| | | <apex:inputHidden id="S_ApplyBenBu" value="{!S_ApplyBenBu}" /> |
| | | <ul class="nav" id="nav" style="background-color: #FFFFFF;left:0px;"> |
| | | <li id="classification" class="transparent_class" style="margin-left:0px;height:20px;" onclick="navClose();return false;"> |
| | | <span id="initial">--无--</span> |
| | | </li> |
| | | <li id="selectCheckId" style="margin-left:0px;display: none;"> |
| | | <ul style="margin-left: 0;" > |
| | | <apex:repeat value="{!SApplyBenBu}" var="orr" id="selSD"> |
| | | <li class="sdclass" style="margin-left:0px"> |
| | | <p class="ul-nav" name="cate_id[]" > |
| | | <input type="checkbox" value="{!orr.parameterName}" class="li-input" onclick="selectBenBu(this,'{!orr.parameterName}');" style="display: inline-block;vertical-align: middle;" /> |
| | | <font style="">{!orr.parameterName}</font> |
| | | </p> |
| | | </li> |
| | | </apex:repeat> |
| | | </ul> |
| | | </li> |
| | | </ul> |
| | | <div class="nav_close"></div> |
| | | </apex:outputPanel> |
| | | </td> |
| | | <td>申请者办事处</td> |
| | | <td> |
| | | <apex:outputPanel style="position: relative; " id="S_AgencyApply"> |
| | | <apex:inputHidden id="S_Agency" value="{!S_Agency}" /> |
| | | <ul class="nav" id="nav_a" style="background-color: #FFFFFF;left:0px;"> |
| | | <li id="classification_a" class="transparent_class" style="margin-left:0px;height:20px;" onclick="navClose_a();return false;"> |
| | | <span id="initial_a">--无--</span> |
| | | </li> |
| | | <li id="selectCheckId_a" style="margin-left:0px;display: none;"> |
| | | <ul style="margin-left: 0;" > |
| | | <apex:repeat value="{!SApplyAgency}" var="orr" id="selSA"> |
| | | <li class="sdclass" style="margin-left:0px"> |
| | | <p class="ul-nav" name="cate_id[]" > |
| | | <input type="checkbox" value="{!orr.parameterName}" class="li-input" onclick="selectAgency(this,'{!orr.parameterName}');" style="display: inline-block;vertical-align: middle;" /> |
| | | <font style="">{!orr.parameterName}</font> |
| | | </p> |
| | | </li> |
| | | </apex:repeat> |
| | | </ul> |
| | | </li> |
| | | </ul> |
| | | </apex:outputPanel> |
| | | </td> |
| | | <td>备品分类</td> |
| | | <td> |
| | | <apex:selectList value="{!S_bieBeiPinFenLei}" size="1" id="bieBeiPinFenLei" style="width:180px"> |
| | | <apex:selectOptions value="{!bieBeiPinFenLeiOps}"/> |
| | | </apex:selectList> |
| | | </td> |
| | | |
| | | </tr> |
| | | <tr style="height:40px;"> |
| | | <td>产品分类(GI/SP)</td> |
| | | <td> |
| | | <apex:selectList value="{!S_Product_category}" size="1" style="width:60px" id="S_Product_category"> |
| | | <apex:selectOptions value="{!bieChanPinFenLeiOps}"/> |
| | | </apex:selectList> |
| | | </td> |
| | | <td colspan="6"> <apex:commandButton style="" value="检索" onclick="searchJs(); return false;"/> </td> |
| | | </tr> |
| | | </table> |
| | | </apex:pageBlockSection> |
| | | <!-- 数据 --> |
| | | <!-- </apex:pageBlock> --> |
| | | <!-- 20230523 ljh lightning end --> |
| | | </apex:pageBlock> |
| | | <apex:pageBlock id="MySequence"> |
| | | <apex:outputPanel id="message"> |
| | | <apex:pageMessages /> |
| | |
| | | </table> |
| | | </div> |
| | | </apex:pageBlock> |
| | | </apex:pageBlock> <!-- 20230523 ljh lightning --> |
| | | </apex:form> |
| | | |
| | | <apex:outputPanel id="checEventFrame"> |
| | |
| | | <apex:page lightningStylesheets="true" controller="RentalFixtureSetAssignController" showHeader="false" sidebar="false" id="allPage" action="{!init}"> |
| | | <apex:page lightningStylesheets="true" controller="RentalFixtureSetAssignController" showHeader="false" sidebar="false" id="allPage" action="{!init}" > |
| | | <head> |
| | | <title>备品出借分配设备</title> |
| | | <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/> |
| | | <apex:stylesheet value="{!URLFOR($Resource.RentalFixtureSetAssignCss)}"/> |
| | | <apex:stylesheet value="{!URLFOR($Resource.StyleUtilCss)}"/><!-- 20230619 ljh lightning --> |
| | | <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.RelationListPagingCmpJS)}"/> |
| | | <!-- <apex:includeScript value="{!URLFOR($Resource.connection20)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.apex20)}"/> --> |
| | | <style type="text/css"> |
| | | .hideDropdown select{ |
| | | display: none |
| | | } |
| | | .modal { |
| | | display:none; |
| | | position: fixed; /* Stay in place */ |
| | | z-index: 10; /* Sit on top */ |
| | | left: 0; |
| | | top: 0; |
| | | width: 100%; /* Full width */ |
| | | height: 100%; /* Full height */ |
| | | overflow: auto; /* Enable scroll if needed */ |
| | | background-color: rgb(0,0,0); /* Fallback color */ |
| | | background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ |
| | | } |
| | | span.dateFormat { |
| | | display: none; |
| | | } |
| | | .hideDropdown select{ |
| | | display: none |
| | | } |
| | | .modal { |
| | | display:none; |
| | | position: fixed; /* Stay in place */ |
| | | z-index: 10; /* Sit on top */ |
| | | left: 0; |
| | | top: 0; |
| | | width: 100%; /* Full width */ |
| | | height: 100%; /* Full height */ |
| | | overflow: auto; /* Enable scroll if needed */ |
| | | background-color: rgb(0,0,0); /* Fallback color */ |
| | | background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ |
| | | } |
| | | span.dateFormat { |
| | | display: none; |
| | | } |
| | | |
| | | /* Modal Content/Box */ |
| | | .modal-content { |
| | | background-color: #fefefe; |
| | | margin-left: 6px; |
| | | margin-top: 100px; |
| | | padding: 20px; |
| | | border: 1px solid #888; |
| | | right: 5%; |
| | | position: absolute; |
| | | width: 200px; |
| | | } |
| | | .modal-content-cancel { |
| | | background-color: #fefefe; |
| | | margin-left: -150px; |
| | | margin-top: 100px; |
| | | padding: 20px; |
| | | border: 1px solid #888; |
| | | left: 50%; |
| | | position: absolute; |
| | | width: 300px; |
| | | } |
| | | /* Modal Content/Box */ |
| | | .modal-content { |
| | | background-color: #fefefe; |
| | | margin-left: 6px; |
| | | margin-top: 100px; |
| | | padding: 20px; |
| | | border: 1px solid #888; |
| | | right: 5%; |
| | | position: absolute; |
| | | width: 200px; |
| | | } |
| | | .modal-content-cancel { |
| | | background-color: #fefefe; |
| | | margin-left: -150px; |
| | | margin-top: 100px; |
| | | padding: 20px; |
| | | border: 1px solid #888; |
| | | left: 50%; |
| | | position: absolute; |
| | | width: 300px; |
| | | } |
| | | /* 20230606 ljh lightning start */ |
| | | body .detailList .dataCol input[type="text"],body .detailList .dataCol select{ |
| | | min-width: 180px; |
| | | } |
| | | /* body .bPageBlock .detailList .dataCol{ |
| | | width: 8%; |
| | | } */ |
| | | body .bPageBlock .detailList .dataCol input[type="checkbox"]:first-child{ |
| | | margin-top: 0; |
| | | } |
| | | body .detailList td{ |
| | | position: static; |
| | | } |
| | | /*以下是下拉复选框的样式 start*/ |
| | | * { |
| | | margin: 0; |
| | | padding: 0; |
| | | box-sizing: border-box; |
| | | } |
| | | .nav { |
| | | width: 180px;/*20230606 ljh*/ |
| | | line-height: 30px;/*20230606 ljh*/ |
| | | /* border: 1px solid #000; *//*20230610 ljh*/ |
| | | -webkit-user-select: none; |
| | | -moz-user-select: none; |
| | | -ms-user-select: none; |
| | | user-select: none; |
| | | position: absolute; |
| | | top: 0; |
| | | right: 0; |
| | | left: 0; |
| | | margin: 0; |
| | | z-index: 9999; |
| | | display: inline-block; |
| | | border-radius: 0.25rem;/*20230607 ljh lightning*/ |
| | | border: 1px solid rgb(201, 201, 201);/*20230610 ljh lightning*/ |
| | | } |
| | | ul,li { |
| | | list-style: none; |
| | | } |
| | | .nav li input { |
| | | margin: 0px 3px 0px 3px; |
| | | } |
| | | |
| | | body { |
| | | position: relative; |
| | | } |
| | | ul, |
| | | li { |
| | | list-style: none; |
| | | } |
| | | .nav_1st { |
| | | width: 180px; |
| | | height: 6px; |
| | | line-height: 20px; |
| | | padding: 5px 30px 5px 5px; |
| | | border: 1px solid #000; |
| | | background-color: rgb(255, 255, 255); |
| | | background-size: 5%; |
| | | -webkit-user-select: none; |
| | | -moz-user-select: none; |
| | | -ms-user-select: none; |
| | | user-select: none; |
| | | margin: 0 auto; |
| | | } |
| | | .nav_1st0 { |
| | | width: 160px; |
| | | height: 6px; |
| | | margin-left: 19px; |
| | | line-height: 20px; |
| | | padding: 5px 30px 5px 5px; |
| | | background-color: rgb(255, 255, 255); |
| | | border: 1px solid #000; |
| | | background-size: 5%; |
| | | -webkit-user-select: none; |
| | | -moz-user-select: none; |
| | | -ms-user-select: none; |
| | | user-select: none; |
| | | margin: 0 auto; |
| | | } |
| | | |
| | | .nav { |
| | | width: 180px; |
| | | line-height: 20px; |
| | | border: 1px solid #000; |
| | | -webkit-user-select: none; |
| | | -moz-user-select: none; |
| | | -ms-user-select: none; |
| | | user-select: none; |
| | | position: absolute; |
| | | top: 11.4rem; |
| | | z-index: 9999; |
| | | display: none; |
| | | } |
| | | .nav0 { |
| | | width: 160px; |
| | | line-height: 20px; |
| | | border: 1px solid #000; |
| | | -webkit-user-select: none; |
| | | -moz-user-select: none; |
| | | -ms-user-select: none; |
| | | user-select: none; |
| | | position: absolute; |
| | | top: 9.5rem; |
| | | z-index: 9999; |
| | | display: none; |
| | | } |
| | | |
| | | |
| | | .nav_close { |
| | | position: fixed; |
| | | top: 0; |
| | | bottom: 0; |
| | | left: 0; |
| | | right: 0; |
| | | z-index: 9990; |
| | | display: none; |
| | | } |
| | | .nav_close0 { |
| | | position: fixed; |
| | | top: 0; |
| | | bottom: 0; |
| | | left: 0; |
| | | right: 0; |
| | | z-index: 9990; |
| | | display: none; |
| | | } |
| | | |
| | | .nav li input { |
| | | margin: 0px 3px 0px 3px; |
| | | } |
| | | |
| | | .nav li p:hover { |
| | | background: #1e90ff; |
| | | color: #fff; |
| | | } |
| | | .nav0 li input { |
| | | margin: 0px 3px 0px 3px; |
| | | } |
| | | |
| | | .nav0 li p:hover { |
| | | background: #1e90ff; |
| | | color: #fff; |
| | | } |
| | | |
| | | #classification { |
| | | white-space: nowrap; |
| | | overflow: hidden; |
| | | text-overflow: ellipsis; |
| | | } |
| | | #classification0 { |
| | | white-space: nowrap; |
| | | overflow: hidden; |
| | | text-overflow: ellipsis; |
| | | } |
| | | |
| | | .nav li p:hover { |
| | | background: #1e90ff; |
| | | color: #fff; |
| | | } |
| | | #classification_f,#classification_b { |
| | | white-space: nowrap; |
| | | overflow: hidden; |
| | | text-overflow: ellipsis; |
| | | } |
| | | </style> |
| | | <script type="text/javascript"> |
| | | var heightAjustment = 120; |
| | | var widthAjustment = 30; |
| | | var clickLineNo; |
| | | var iszhu; |
| | | |
| | | window.onload = () => { |
| | | j$(".nav_1st").click(function () { |
| | | j$(".nav,.nav_close").toggle(); |
| | | }); |
| | | j$(".nav_1st0").click(function () { |
| | | j$(".nav0,.nav_close0").toggle(); |
| | | }); |
| | | |
| | | j$(".nav_close").click(function () { |
| | | j$(".nav,.nav_close").hide(); |
| | | }); |
| | | j$(".nav_close0").click(function () { |
| | | j$(".nav0,.nav_close0").hide(); |
| | | }); |
| | | |
| | | j$(".li-input").click(function () { |
| | | var checked2 = j$(this).prop("checked"); |
| | | if (checked2 == true) { |
| | | j$(this).prop("checked", false); |
| | | } else { |
| | | j$(this).prop("checked", true); |
| | | // 20230607 ljh lightning start |
| | | j$(document).bind("click",function(e){ |
| | | var e = e || window.event; //事件对象,兼容IE |
| | | var target = e.target || e.srcElement; //源对象,兼容火狐和IE |
| | | while(target){ |
| | | // console.log(target.id); |
| | | if (target.id && (target.id == "nav_f" ||target.id == "nav_b")){ |
| | | //循环判断至根节点,防止点击的是#selected和它的子元素 |
| | | return; |
| | | } |
| | | }); |
| | | j$(".ul-nav").click(function () { |
| | | var checked1 = j$(this).children("input").prop("checked"); |
| | | console.log('checked1***',checked1); |
| | | if (checked1 == false) { |
| | | j$("#classification").children("#initial").remove(); |
| | | j$(this).children("input").prop("checked", true); |
| | | j$("#classification").append("<span class='valClass' id='" + (j$(this).children("input")[0].value.trim().replace('.','')) + "'>" + (j$(this) |
| | | .text().trim() + ",") + "</span>"); |
| | | } else { |
| | | j$(this).children("input").prop("checked", false); |
| | | j$("#classification").children("#" + (j$(this).children("input")[0].value.trim().replace('.',''))).remove(); |
| | | var length = j$("#classification").html().length; |
| | | if (length === 0) { |
| | | j$("#classification").append("<span class='valClass' id='initial'>--无--</span>"); |
| | | } |
| | | target = target.parentNode; |
| | | } |
| | | j$("#selectCheckId_f").hide(); //点击的不是#selected和它的子元素,隐藏下拉菜单 |
| | | j$("#selectCheckId_b").hide(); |
| | | }) |
| | | //点击 分类选择 |
| | | function selectFenLei(obj,name){ |
| | | var checked1 = j$(obj).prop("checked"); |
| | | if (checked1 == true) { |
| | | j$("#classification_f").children("#initial_f").remove(); |
| | | var idTemp = j$(obj).value().trim(); |
| | | idTemp = 'Id'+idTemp.split('.')[0]; |
| | | j$("#classification_f").append("<span class='valClass' id='" + (idTemp) + "'>" + (j$(obj) |
| | | .value().trim() + ",") + "</span>"); |
| | | } else { |
| | | var idTemp = 'Id'+name.split('.')[0]; |
| | | j$("#classification_f").children("#" + (idTemp)).remove(); |
| | | var length = j$("#classification_f").html().length; |
| | | if (length === 0) { |
| | | j$("#classification_f").append("<span class='valClass' id='initial_f'>--无--</span>"); |
| | | } |
| | | |
| | | var optioncheck = j$(".valClass"); |
| | | var hint = ''; |
| | | for(var i = 0;i<optioncheck.length;i++){ |
| | | } |
| | | var optioncheck = j$(".valClass"); |
| | | var hint = ''; |
| | | for(var i = 0;i<optioncheck.length;i++){ |
| | | if(optioncheck[i].innerText != '--无--'){ |
| | | hint +=optioncheck[i].innerText; |
| | | } |
| | | j$("#valId").attr("title",hint); |
| | | j$("[id*='salesdepartments']").val(hint); |
| | | // j$("#salesdepartments").val(hint); |
| | | // alert(j$("[id*='salesdepartments']").val()); |
| | | }); |
| | | j$(".ul-nav0").click(function () { |
| | | var checked1 = j$(this).children("input").prop("checked"); |
| | | console.log('checked1***00',checked1); |
| | | if (checked1 == false) { |
| | | j$("#classification0").children("#initial0").remove(); |
| | | j$(this).children("input").prop("checked", true); |
| | | j$("#classification0").append("<span class='valClass0' id='" + (j$(this).children("input")[0].value.trim()) + "'>" + (j$(this) |
| | | .text().trim() + ",") + "</span>"); |
| | | } else { |
| | | j$(this).children("input").prop("checked", false); |
| | | j$("#classification0").children("#" + (j$(this).children("input")[0].value.trim())).remove(); |
| | | var length = j$("#classification0").html().length; |
| | | if (length === 0) { |
| | | j$("#classification0").append("<span class='valClass0' id='initial0'>--无--</span>"); |
| | | } |
| | | } |
| | | |
| | | var optioncheck = j$(".valClass0"); |
| | | var hint = ''; |
| | | for(var i = 0;i<optioncheck.length;i++){ |
| | | hint +=optioncheck[i].innerText; |
| | | } |
| | | j$("#valId0").attr("title",hint); |
| | | j$("[id*='equipmenttypes']").val(hint); |
| | | // j$("#equipmenttypes").val(hint); |
| | | }); |
| | | |
| | | } |
| | | j$("[id*='equipmenttypes']").val(hint); |
| | | } |
| | | |
| | | // function tagclick() { |
| | | // j$(".nav,.nav_close").toggle(); |
| | | // } |
| | | // function tagclick0() { |
| | | // j$(".nav0,.nav_close0").toggle(); |
| | | // } |
| | | |
| | | |
| | | //点击 本部选择 |
| | | function selectBenBu(obj,name){ |
| | | var checked1 = j$(obj).prop("checked"); |
| | | if (checked1 == true) { |
| | | j$("#classification_b").children("#initial_b").remove(); |
| | | var idTemp = j$(obj).value().trim(); |
| | | idTemp = 'Id'+idTemp.split('.')[0]; |
| | | j$("#classification_b").append("<span class='valClass' id='" + (idTemp) + "'>" + (j$(obj) |
| | | .value().trim() + ",") + "</span>"); |
| | | } else { |
| | | var idTemp = 'Id'+name.split('.')[0]; |
| | | j$("#classification_b").children("#" + (idTemp)).remove(); |
| | | var length = j$("#classification_b").html().length; |
| | | if (length === 0) { |
| | | j$("#classification_b").append("<span class='valClass' id='initial_b'>--无--</span>"); |
| | | } |
| | | } |
| | | var optioncheck = j$(".valClass"); |
| | | var hint = ''; |
| | | for(var i = 0;i<optioncheck.length;i++){ |
| | | if(optioncheck[i].innerText != '--无--'){ |
| | | hint +=optioncheck[i].innerText; |
| | | } |
| | | } |
| | | j$("[id*='salesdepartments']").val(hint); |
| | | } |
| | | // 分类 |
| | | function navClose_f(){ |
| | | j$("#selectCheckId_f").toggle(); |
| | | } |
| | | // 本部 |
| | | function navClose_b(){ |
| | | j$("#selectCheckId_b").toggle(); |
| | | } |
| | | // 20230607 ljh lightning end |
| | | function saveGoPageJs(clickLineNo1, iszhu1) { |
| | | blockme(); |
| | | clickLineNo = clickLineNo1; |
| | |
| | | lock.prop('checked', true); |
| | | saveGoPageJs_save(); |
| | | } |
| | | |
| | | |
| | | |
| | | function saveGoPageJsComplete() { |
| | | var errorFlag = j$(escapeVfId('allPage:allForm:hasError')).value(); |
| | | if(errorFlag == 'false'){ |
| | |
| | | <apex:outputField value="{!parentObj.Request_shipping_day__c}"/> |
| | | <apex:outputField value="{!parentObj.Request_return_day__c}"/> |
| | | <apex:outputField value="{!parentObj.Product_category__c}"/> |
| | | <apex:outputPanel id="SelectOP" style="display:flex;margin-left: 27%;" rendered="{!!(parentObj.Demo_purpose1__c=='维修代用'||parentObj.Demo_purpose1__c=='协议借用')}"> |
| | | <apex:pageBlockSectionItem id="SelectOP" rendered="{!!(parentObj.Demo_purpose1__c=='维修代用'||parentObj.Demo_purpose1__c=='协议借用')}"> |
| | | <!-- 20220106 ljh 放开 服务培训/学会 parentObj.CampaignType__c=='服务培训/学会'|| --> |
| | | <apex:outputLabel for="bieBeiPinFenLei" style="font-weight: bold; font-family: Arial,Helvetica,sans-serif; font-size: 91%;color: #4a4a56;" value="备品分类" /> |
| | | <div id="selectCheckId0" style="margin-left: 19px;"> |
| | | <div class="nav_1st0" id="valId0" title="" style="height: 19px;"> <!-- lighting升级 20230210 lt 多选框的样式不正确问题 add style="height: 19px;" --> |
| | | <p id="classification0" style="margin-top: -7px;"><span id="initial0">--无--</span></p> |
| | | </div> |
| | | <ul class="nav0" style="background-color: #FFFFFF;"> |
| | | <div id="divId0" style="display:"> |
| | | <apex:repeat value="{!bieBeiPinFenLeiOps}" var="orr" id="selSD0"> |
| | | <li class="sdclass" style="margin-left:0px"> |
| | | <p class="ul-nav0" name="cate_id[]" > |
| | | <input type="checkbox" value="{!orr.value}" class="li-input" style="display: inline-block;vertical-align: middle;" /> |
| | | <font style="">{!orr.label}</font> |
| | | </p> |
| | | </li> |
| | | </apex:repeat> |
| | | </div> |
| | | </ul> |
| | | <div class="nav_close0"></div> |
| | | </div> |
| | | <apex:outputLabel for="bieBeiPinFenLei" style="font-weight: bold; font-family: Arial,Helvetica,sans-serif; font-size: 91%;color: #4a4a56;" value="备品分类" /> |
| | | <apex:outputPanel style="position:absolute; " id="S_bieFenLei"> |
| | | <ul class="nav" id="nav_f" style="background-color: #FFFFFF;left:0px;top:-5px;"> |
| | | <li id="classification_f" class="transparent_class" style="margin-left:0px;height:30px;" onclick="navClose_f();return false;"> |
| | | <span id="initial_f">--无--</span> |
| | | </li> |
| | | <li id="selectCheckId_f" style="margin-left:0px;display: none;"> |
| | | <ul style="margin-left:0px;"> |
| | | <apex:repeat value="{!bieBeiPinFenLeiOps}" var="orr" id="selFL"> |
| | | <li class="sdclass" style="margin-left:0px"> |
| | | <p class="ul-nav" name="cate_id[]" > |
| | | <input type="checkbox" value="{!orr.value}" onclick="selectFenLei(this,'{!orr.value}');" class="li-input" style="display: inline-block;vertical-align: middle;"/> |
| | | <font style="">{!orr.label}</font> |
| | | </p> |
| | | </li> |
| | | </apex:repeat> |
| | | </ul> |
| | | </li> |
| | | </ul> |
| | | </apex:outputPanel> |
| | | <apex:outputPanel id="Selectsalesd" style="display:flex;margin-left: 30%;" rendered="{!!(parentObj.Demo_purpose1__c=='维修代用'||parentObj.Demo_purpose1__c=='协议借用')}"> |
| | | </apex:pageBlockSectionItem> |
| | | <apex:pageBlockSectionItem id="Selectsalesd" rendered="{!!(parentObj.Demo_purpose1__c=='维修代用'||parentObj.Demo_purpose1__c=='协议借用')}"> |
| | | <!-- 20220106 ljh 放开 服务培训/学会 parentObj.CampaignType__c=='服务培训/学会'|| --> |
| | | <apex:outputLabel for="salesd" style="font-weight: bold; font-family: Arial,Helvetica,sans-serif; font-size: 91%;color: #4a4a56;" value="本部" /> |
| | | <div id="selectCheckId" style="margin-left: 19px;"> |
| | | <div class="nav_1st" id="valId" title="" style="height: 19px;"> |
| | | <!-- lighting升级 20230210 lt 多选框的样式不正确问题 add style="height: 19px;" --> |
| | | <p id="classification" style="margin-top: -7px;"><span id="initial">--无--</span></p> |
| | | </div> |
| | | <ul class="nav" style="background-color: #FFFFFF;"> |
| | | <div id="divId" style="display:"> |
| | | <apex:outputPanel style="position:absolute; " id="S_bieBenBu"> |
| | | <ul class="nav" id="nav_b" style="background-color: #FFFFFF;left:0px;"> |
| | | <li id="classification_b" class="transparent_class" style="margin-left:0px;height:30px;" onclick="navClose_b();return false;"> |
| | | <span id="initial_b">--无--</span> |
| | | </li> |
| | | <li id="selectCheckId_b" style="margin-left:0px;display: none;"> |
| | | <ul style="margin-left:0px;"> |
| | | <apex:repeat value="{!bieBenBuOps}" var="orr" id="selSD"> |
| | | <li class="sdclass" style="margin-left:0px"> |
| | | <p class="ul-nav" name="cate_id[]" > |
| | | <input type="checkbox" value="{!orr.value}" class="li-input" style="display: inline-block;vertical-align: middle;" /> |
| | | <font style="">{!orr.label}</font> |
| | | </p> |
| | | </li> |
| | | <li class="sdclass" style="margin-left:0px"> |
| | | <p class="ul-nav" name="cate_id[]" > |
| | | <input type="checkbox" value="{!orr.value}" onclick="selectBenBu(this,'{!orr.value}');" class="li-input" style="display: inline-block;vertical-align: middle;"/> |
| | | <font style="">{!orr.label}</font> |
| | | </p> |
| | | </li> |
| | | </apex:repeat> |
| | | </div> |
| | | </ul> |
| | | </li> |
| | | </ul> |
| | | <div class="nav_close"></div> |
| | | </div> |
| | | </apex:outputPanel> |
| | | </apex:outputPanel> |
| | | </apex:pageBlockSectionItem> |
| | | <apex:inputField rendered="{!!(parentObj.Demo_purpose1__c=='维修代用'||parentObj.Demo_purpose1__c=='协议借用')}" id="product_category" value="{!parentObj.Product_category_Sys__c}" /> |
| | | <!-- 20220106 ljh 放开 服务培训/学会 parentObj.CampaignType__c=='服务培训/学会'|| --> |
| | | </apex:pageBlockSection> |
| | | |
| | | |
| | | <table style="width: 450px;margin: auto;float: left;margin-top: 1.5%;" > |
| | | <!-- <tr> |
| | | |
| | | <td></td> |
| | | </tr> --> |
| | | <!-- 20230526 ljh lightning start--> |
| | | <!-- <table style="width: 450px;margin: auto;float: left;margin-top: 1.5%;" > --> |
| | | <table style="width: 450px;margin: auto;float: left;" > |
| | | <tr><td colspan="{!IF(parentObj.demo_purpose2__c == '学会展会'&&!(contains(parentObj.Salesdepartment__c,'MA本部')||contains(parentObj.Salesdepartment__c,'产品培训')),4,2)}"> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <apex:outputPanel rendered="{!parentObj.demo_purpose2__c == '学会展会'&&!(contains(parentObj.Salesdepartment__c,'MA本部')||contains(parentObj.Salesdepartment__c,'产品培训'))}"> |
| | | <td style="width:50px;font-weight: bold;font-family: Arial,Helvetica,sans-serif;font-size: 91%;color: #4a4a56;"> |
| | |
| | | <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.instascan)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.CommonUtilJs)}"/> |
| | | <apex:stylesheet value="{!URLFOR($Resource.listTable)}"/><!-- 20230525 ljh lightning --> |
| | | <apex:stylesheet value="{!URLFOR($Resource.StyleUtilCss)}"/><!-- 20230525 ljh lightning --> |
| | | <style type="text/css"> |
| | | .hideDropdown select{ |
| | | display: none |
| | |
| | | <title>借出备品配套明细选择</title> |
| | | <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/> |
| | | <apex:stylesheet value="{!URLFOR($Resource.RentalFixtureSetDetilSelectCss)}"/> |
| | | <apex:stylesheet value="{!URLFOR($Resource.StyleUtilCss)}"/><!-- 20230624 ljh lightning --> |
| | | <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.RelationListPagingCmpJS)}"/> |
| | |
| | | <script type="text/javascript"> |
| | | // 数量添加加减符号 |
| | | j$(".dataCellBorder1.col_Rental_Num__c").each(function () { |
| | | // 20230614 ljh lightning start |
| | | if(!this.firstElementChild.disabled){ |
| | | j$(this).append('<input type="button" style="width: auto;" class="inc btn" value="+" /><input type="button" style="width: auto;" class="dec btn" value="-" />'); |
| | | } |
| | | // j$(this).append('<input type="button" style="width: auto;" class="inc btn" value="+" /><input type="button" style="width: auto;" class="dec btn" value="-" />'); |
| | | j$(this).append('<input type="button" style="width:1.5rem;line-height:1.5rem;" class="inc btn" value="+" /><input type="button" style="width:1.5rem;line-height:1.5rem;" class="dec btn" value="-" />'); |
| | | } |
| | | else{ |
| | | j$(this).append('<input type="button" style="width: auto;" class="dec btn" value="-" />'); |
| | | // j$(this).append('<input type="button" style="width: auto;" class="dec btn" value="-" />'); |
| | | j$(this).append('<input type="button" style="width:1.5rem;line-height:1.5rem;" class="dec btn" value="-" />'); |
| | | } |
| | | // 20230614 ljh lightning end |
| | | }); |
| | | j$(".dataCellBorder1.col_Rental_Num__c input[type=button]").on("click", function() { |
| | | var $button = j$(this); |
| | |
| | | <title>备品配套选择</title> |
| | | <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/> |
| | | <apex:stylesheet value="{!URLFOR($Resource.RentalFixtureSetSelectCss)}"/> |
| | | <apex:stylesheet value="{!URLFOR($Resource.StyleUtilCss)}"/><!-- 20230624 ljh lightning --> |
| | | <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.RelationListPagingCmpJS)}"/> |
| | |
| | | |
| | | <apex:outputPanel id="pageallPanel"> |
| | | <apex:pageBlock id="searchBlock" tabStyle="Report"> |
| | | <table style="width:700px;"> |
| | | <table style="width:700px;margin-bottom: 10px;"> |
| | | <tr> |
| | | <td width="50px">关键字</td> |
| | | <td width="200px"><apex:inputText value="{!keyword}" style="width:98%;"/></td> |
| | |
| | | $td.find("input[type=text]").attr('disabled',true); |
| | | }); |
| | | } else { |
| | | j$(this).append('<input type="button" style="width: auto;" class="inc btn" value="+" /><input type="button" style="width: auto;" class="dec btn" value="-" />'); |
| | | } |
| | | // 20230614 ljh lightning start |
| | | // j$(this).append('<input type="button" style="width: auto;" class="inc btn" value="+" /><input type="button" style="width: auto;" class="dec btn" value="-" />'); |
| | | j$(this).append('<input type="button" style="width:1.5rem;line-height:1.5rem;" class="inc btn" value="+" /><input type="button" style="width:1.5rem;line-height: 1.5rem;" class="dec btn" value="-" />'); |
| | | // 20230614 ljh lightning end |
| | | } |
| | | }); |
| | | j$(".dataCellBorder1.col_Rental_Num__c input[type=button]").on("click", function(index) { |
| | | var $button = j$(this); |
| | |
| | | <apex:page controller="StatusPageController" showHeader="false" id="allPage" sidebar="false" action="{!init}" docType="html-5.0"> |
| | | <apex:page controller="StatusPageController" showHeader="false" id="allPage" sidebar="false" action="{!init}" docType="html-5.0" lightningStylesheets="true"> |
| | | <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/> |
| | |
| | | <apex:page id="allPage" showHeader="false" sidebar="false" Controller="SetPersonalProductTargetController" action="{!init}"> |
| | | <apex:page id="allPage" showHeader="false" sidebar="false" Controller="SetPersonalProductTargetController" action="{!init}" lightningStylesheets="true"> |
| | | <head> |
| | | <title>担当者重点产品目标设定</title> |
| | | <!-- 2018年7月25日 SWAG-B2Z344 by 张玉山 |
| | |
| | | <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/> |
| | | <style type="text/css"> |
| | | |
| | | |
| | | |
| | | body input[type="text"], .slds-vf-scope input[type="text"] { |
| | | padding: 0; |
| | | } |
| | | table > tbody > tr > th, .slds-vf-scope .listViewport table > tr > td, .slds-vf-scope .listViewport table > tr > th { |
| | | padding: .2rem; |
| | | } |
| | | body .bPageBlock.apexDefaultPageBlock { |
| | | border-top: 2px solid #cfc1c1; |
| | | } |
| | | |
| | | |
| | | #crossTable th ,#topTable th, #topTable ,#bodyTable{ |
| | | border-right: 1px solid #c9c9c9; |
| | | } |
| | | |
| | | #leftTable , #crossTable { |
| | | border-left: 1px solid #c9c9c9; |
| | | } |
| | | |
| | | #leftTable,#bodyTable { |
| | | border-bottom: 1px solid #c9c9c9; |
| | | } |
| | | |
| | | |
| | | |
| | | .StandLeft{ |
| | | |
| | | } |
| | |
| | | // 2018年7月6日 SWAG-AZHBH7 添加UpdateJs 调用Apex 中Update函数 by 张玉山 |
| | | function UpdateJs() { |
| | | blockme_dark(); |
| | | if (window.confirm('确定要反应到目标吗?')) { |
| | | if (window.confirm('确定要反映到目标吗?')) { |
| | | Update(); |
| | | } else { |
| | | unblockUI(); |
| | |
| | | } |
| | | //CHAN-BDQBLX 20210129 ljh end |
| | | /*****************************/ |
| | | var heightAjustment = 160; |
| | | var heightAjustment = 180; |
| | | var widthAjustment = 15; |
| | | function windowResize() { |
| | | blockHeight = j$(window).innerHeight() - j$(escapeVfId('allPage:allForm:headBlock')).height() - j$('div#MessageBlock').height() - heightAjustment; |
| | |
| | | <apex:outputPanel id="popupBox" layout="block"> |
| | | <input type="file" id="file_input" name="attFile" accept=".csv" /><br/> |
| | | <center> |
| | | <apex:commandButton value="确认" onclick="remoteLocationPost(); return false;" style="width: 20%; margin: 20px 10px 0px 10px" /> |
| | | <apex:commandButton value="确认" onclick="remoteLocationPost(); return false;" style="width: 20%; " /> |
| | | <apex:commandButton value="取消" onclick="popupBox.hide();" style="width: 20%; margin: 20px 10px 0px 10px" /> |
| | | </center> |
| | | </apex:outputPanel> |
| | |
| | | <table id="ButtonTable" border="0" > |
| | | <tr> |
| | | <td> |
| | | 本部 <apex:selectList value="{!salesDpt}" size="1" style="width:120px;" disabled="{!!(loginUser.ProfileId == $Label.ProfileId_SystemAdmin || loginUser.ProfileId == $Label.ProfileId_103)}" onchange="searchByDptJs();return false;"><apex:selectOptions value="{!salesDptOpts}"/></apex:selectList> |
| | | 省 <apex:inputField id="province" value="{!loginUser.Province__c}" style="width:90px;" onchange="searchByProvinceJs();return false;"></apex:inputField> |
| | | 本部 <apex:selectList value="{!salesDpt}" size="1" style="width:120px;" disabled="{!!(loginUser.ProfileId == $Label.ProfileId_SystemAdmin || loginUser.ProfileId == $Label.ProfileId_103)}" onchange="searchByDptJs();return false;"><apex:selectOptions value="{!salesDptOpts}"/></apex:selectList> |
| | | 省 <apex:inputField id="province" value="{!loginUser.Province__c}" style="width:90px;" onchange="searchByProvinceJs();return false;"></apex:inputField> |
| | | <script type="text/javascript"> |
| | | var isadmin = {!(loginUser.ProfileId == $Label.ProfileId_SystemAdmin || loginUser.ProfileId == $Label.ProfileId_103)}; |
| | | if (!isadmin) { |
| | | j$(escapeVfId('allPage:allForm:headBlock:province')).attr("disabled",true); |
| | | } |
| | | </script> |
| | | 职种 <apex:selectList id="jobCategory" value="{!loginUser.Job_Category__c}" size="1" style="width:80px;" onchange="searchByFilterJs();return false;"> |
| | | 职种 <apex:selectList id="jobCategory" value="{!loginUser.Job_Category__c}" size="1" style="width:80px;" onchange="searchByFilterJs();return false;"> |
| | | <apex:selectOptions value="{!userJobCategorys}"/> |
| | | </apex:selectList> |
| | | {!$ObjectType.User.fields.Consumable_sales__c.Label} <apex:inputField value="{!loginUser.Consumable_sales__c}" style="width:80px;" onchange="searchByFilterJs();return false;"></apex:inputField> |
| | | 产品担当 |
| | | </apex:selectList> |
| | | {!$ObjectType.User.fields.Consumable_sales__c.Label} <apex:inputField value="{!loginUser.Consumable_sales__c}" style="width:80px;" onchange="searchByFilterJs();return false;"></apex:inputField> |
| | | 产品担当 |
| | | <apex:selectList value="{!productUser}" size="1" style="width:100px;" onchange="searchByFilterJs();return false;"> |
| | | <apex:selectOptions value="{!productUserOptions}"/> |
| | | </apex:selectList> |
| | | <!-- xiongyl重点产品 |
| | | </apex:selectList> |
| | | <!-- xiongyl重点产品 |
| | | <apex:selectList value="{!opp.Important_Key_product_category__c}" id="impKey" size="1" style="width:280px;" onchange="searchByImpKeyJs();return false;"> |
| | | <apex:selectOptions value="{!impProductOptions}"/> |
| | | </apex:selectList> !--> |
| | | <apex:inputCheckBox id="checkAll" value="{!checkAll}" onchange="searchByFilterJs(); false;"/><apex:outputLabel value="经理以下" for="checkAll"/> |
| | | </apex:selectList> !--> |
| | | <apex:inputCheckBox id="checkAll" value="{!checkAll}" onchange="searchByFilterJs(); false;"/><apex:outputLabel value="经理以下" for="checkAll"/> |
| | | <input type="hidden" id="targetCategory" value="{!target_category}"/> |
| | | <input type="hidden" id="titileSize" value="{titileSize}"/> |
| | | </td> |
| | | <td align="right" width="10%"> |
| | | <apex:commandButton value="反应到目标" rerender="dummy" onclick="UpdateJs();return false;" rendered="{!Not(isPast)}"/> |
| | | <apex:commandButton value="反映到目标" rerender="dummy" onclick="UpdateJs();return false;" rendered="{!Not(isPast)}"/> |
| | | </td> |
| | | <!--CHAN-BDQBLX 20210129 ljh start --> |
| | | <td> |
| | |
| | | </table> |
| | | </div> |
| | | <div id="out_Div"> |
| | | <table class="list" style="border-collapse: collapse;border-bottom-width: 0px;table-layout:fixed;" border="0" cellspacing="0" cellpadding="0" id="topTable"> |
| | | <table class="list" style="border-collapse: collapse;border-bottom-width: 0px;table-layout:fixed;width:100%;" border="0" cellspacing="0" cellpadding="0" id="topTable"> |
| | | <thead> |
| | | <tr class="headerRow" id="header_R"> |
| | | <apex:repeat value="{!opportunity_category}" var="oc" id="opportunityCategoryRepeat_R_2"> |
| | |
| | | </tbody> |
| | | </table> |
| | | </div> |
| | | <div style="clear:both;height:0px;"></div> |
| | | <div id="in_Div_L" > |
| | | <table class="list" style="border-bottom-width: 0px;table-layout:fixed;" border="0" cellspacing="0" cellpadding="0" id="leftTable"> |
| | | <table class="list" style="table-layout:fixed;" cellspacing="0" cellpadding="0" id="leftTable"> |
| | | <apex:variable value="{!1}" var="cnt" /> |
| | | <apex:repeat value="{!dataBeans}" var="dbs" id="dbRepeat_L"> |
| | | <tr class="dataRow {!IF(MOD(cnt, 2)==0, 'odd', 'even')} {!IF(cnt==1, 'first', '')}" id="dataRow_L"> |
| | |
| | | </div> |
| | | |
| | | <div id="in_Div"> |
| | | <table class="list" style="border-collapse: collapse;border-bottom-width: 0px;table-layout:fixed;" border="0" cellspacing="0" cellpadding="0" id="bodyTable"> |
| | | <table class="list" style="border-collapse: collapse;table-layout:fixed;" cellspacing="0" cellpadding="0" id="bodyTable"> |
| | | |
| | | <tbody> |
| | | </tbody> |
| | |
| | | <apex:page id="Page" showHeader="false" sidebar="false" Controller="SetPersonalTargetController" action="{!init}"> |
| | | <apex:page id="Page" showHeader="false" sidebar="false" Controller="SetPersonalTargetController" action="{!init}" lightningStylesheets="true"> |
| | | <head> |
| | | <title>部门担当者目标设定(医院担当)</title> |
| | | |
| | | <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/> |
| | | <!-- <apex:stylesheet value="{!URLFOR($Resource.listTable)}"/> --> |
| | | <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.jqueryTableFix)}"/> |
| | | <!-- <apex:includeScript value="{!URLFOR($Resource.jqueryTableFix)}"/> --> |
| | | <style> |
| | | body input[type="text"], .slds-vf-scope input[type="text"] { |
| | | padding: 0; |
| | | } |
| | | table > tbody > tr > th, .slds-vf-scope .listViewport table > tr > td, .slds-vf-scope .listViewport table > tr > th { |
| | | padding: .2rem; |
| | | } |
| | | #Page\:Form\:editBlock > div.pbBody { |
| | | height: 420px; |
| | | } |
| | | body .bPageBlock.apexDefaultPageBlock { |
| | | border-top: 2px solid #cfc1c1; |
| | | } |
| | | |
| | | |
| | | #MainTable th { |
| | | border-right: 1px solid #c9c9c9; |
| | | } |
| | | #MainTable { |
| | | border: 1px solid #c9c9c9; |
| | | } |
| | | </style> |
| | | |
| | | <script type="text/javascript"> |
| | | //CHAN-BDQBLX 20210125 you start |
| | |
| | | datarows -= 2; |
| | | } |
| | | var allSum = 0; |
| | | var cols = [0, 0, 0, 0, 0, 0, 0, 0]; |
| | | //DB202303443108 20230407 you start 增加一个0 |
| | | var cols = [0, 0, 0, 0, 0, 0, 0, 0, 0]; |
| | | //DB202303443108 20230407 you start |
| | | // 行 |
| | | for (var i = 0; i < datarows; i++) { |
| | | var rowSum = 0; |
| | | // 列 |
| | | for (var j = 0; j < 8; j++) { |
| | | //DB202303443108 20230407 you start 8改成9 因为变成了9列 |
| | | for (var j = 0; j < 9; j++) { |
| | | var amount = 0; |
| | | |
| | | var raw = j$(escapeVfId('Page:Form:editBlock:dbRepeat:' + i + ':amountRepeat:' + j + ':inAmountValue')).value(); |
| | |
| | | j$(escapeVfId('Page:Form:editBlock:dbRepeat:' + i + ':totalrow')).text(toNumComma(rowSum)); |
| | | } |
| | | // 列 |
| | | for (var j = 0; j < 8; j++) { |
| | | for (var j = 0; j < 9; j++) { |
| | | j$(escapeVfId('totalcol' + j)).text(toNumComma(cols[j])); |
| | | } |
| | | // 総計 |
| | |
| | | } else { |
| | | prev(false); |
| | | } |
| | | } |
| | | function checkOwner(val, id, rownum) { |
| | | // changeFlgセット |
| | | j$(escapeVfId('Page:Form:dataBlock:changeFlg')).val(1); |
| | | var ids = id.split(":"); |
| | | var isChangedid = ids[0] + ":" + ids[1] + ":" + ids[2] + ":" + ids[3] + ":" + ids[4] + ":isChanged"; |
| | | console.log('zheli:'+isChangedid); |
| | | j$(escapeVfId(isChangedid)).val("1"); |
| | | j$(escapeVfId(id))[0].style.background="#FFFF33"; |
| | | } |
| | | |
| | | function searchByDptJs() { |
| | |
| | | <apex:outputPanel id="MessageP"> |
| | | <apex:pagemessages /> |
| | | </apex:outputPanel> |
| | | <font style="font-size:15px;font-weight:700;">录入担当者各自的目标 (注:请输入含税金额)</font> |
| | | <font style="font-size:15px;font-weight:700;">录入担当者各自的目标 (注:请输入含税金额)</font> |
| | | <!--CHAN-BDQBLX 20210125 you start --> |
| | | <apex:actionFunction name="exportcsv" action="{!exportBycsv}"/> |
| | | <apex:actionFunction name="passToController" action="{!importCSVFile}" rerender="Form, MessageP" oncomplete="unblockUI();"> |
| | |
| | | <apex:outputPanel id="popupBox" layout="block"> |
| | | <input type="file" id="file_input" name="attFile" accept=".csv" /><br/> |
| | | <center> |
| | | <apex:commandButton value="确认" onclick="remoteLocationPost(); return false;" style="width: 20%; margin: 20px 10px 0px 10px" /> |
| | | <apex:commandButton value="确认" onclick="remoteLocationPost(); return false;" style="width: 20%;"/> |
| | | <apex:commandButton value="取消" onclick="popupBox.hide();" style="width: 20%; margin: 20px 10px 0px 10px" /> |
| | | </center> |
| | | </apex:outputPanel> |
| | |
| | | <table id="ConditionTable" border="0" width="100%"> |
| | | <tr> |
| | | <!-- <apex:outputPanel rendered="{!loginUser.ProfileId == $Label.ProfileId_SystemAdmin}" layout="none"> --> |
| | | <td width="170">本部 <apex:selectList id="accTypeOptsId" value="{!salesDpt}" size="1" style="width:120px;" disabled="{!!(loginUser.ProfileId == $Label.ProfileId_SystemAdmin || loginUser.ProfileId == $Label.ProfileId_103 || loginUser.ProfileId == $Label.ProfileId_2s6dashboard )}" onchange="searchByDptJs();return false;"><apex:selectOptions value="{!salesDptOpts}" /> |
| | | <!--<apex:inputHidden id="salesDptOpts1" value="{!salesDptOpts}" />--> |
| | | <!--DB202303443108 20230410 you start--> |
| | | <td width="170">本部 <apex:selectList id="accTypeOptsId" value="{!salesDpt}" size="1" style="width:120px;" disabled="{!!(loginUser.ProfileId == $Label.ProfileId_SystemAdmin || loginUser.ProfileId == $Label.ProfileId_103 || loginUser.ProfileId == $Label.ProfileId_2s6dashboard )}" onchange="searchByDptJs();return false;"><apex:selectOptions value="{!salesDptOpts}" /> |
| | | |
| | | <!--<apex:inputHidden id="salesDptOpts1" value="{!salesDptOpts}" />--> |
| | | </apex:selectList> |
| | | |
| | | </td> |
| | | <!-- </apex:outputPanel> --> |
| | | <td width="179">省 <apex:inputField id="province" value="{!loginUser.Province__c}" style="width:140px;" onchange="searchByProvinceJs();return false;"></apex:inputField> |
| | | <!--DB202303443108 20230410 you end --> |
| | | |
| | | <td width="179">省 <apex:inputField id="province" value="{!loginUser.Province__c}" style="width:140px;" onchange="searchByProvinceJs();return false;"></apex:inputField> |
| | | <script type="text/javascript"> |
| | | var isadmin = {!(loginUser.ProfileId == $Label.ProfileId_SystemAdmin || loginUser.ProfileId == $Label.ProfileId_103 || loginUser.ProfileId == $Label.ProfileId_2s6dashboard)}; |
| | | if (!isadmin) { |
| | |
| | | } |
| | | </script> |
| | | </td> |
| | | <td width="300"> |
| | | 职种 <apex:selectList id="jobCategory" value="{!loginUser.Job_Category__c}" size="1" style="width:80px;" onchange="searchByFilterJs();return false;"> |
| | | <td width="350"> |
| | | <!--DB202303443108 20230407 you start--> |
| | | SFDC职种 <apex:selectList id="jobCategory" value="{!loginUser.SFDCPosition_C__c}" size="1" style="width:80px;" onchange="searchByFilterJs();return false;"> |
| | | <apex:selectOptions value="{!userJobCategorys}"/> |
| | | </apex:selectList> |
| | | 医院担当 |
| | | </apex:selectList> |
| | | <!--DB202303443108 20230407 you end--> |
| | | 医院担当 |
| | | <apex:selectList value="{!productUser}" id="productUserid" size="1" style="width:100px;" onchange="searchByFilterJs();return false;"> |
| | | <apex:selectOptions value="{!productUserOptions}"/> |
| | | </apex:selectList> |
| | | </apex:selectList> |
| | | </td> |
| | | <td width="60"><apex:inputCheckBox id="checkAll" value="{!checkAll}" onchange="checkAll(this);return false;"/><apex:outputLabel value="全选" for="checkAll"/></td> |
| | | <td width="60"><apex:inputCheckBox id="checkAll" value="{!checkAll}" onchange="checkAll(this);return false;" selected="true"/><apex:outputLabel value="全选" for="checkAll"/></td> |
| | | <td> |
| | | <apex:repeat value="{!plist}" var="p" id="postRepeat"> |
| | | <apex:inputCheckBox value="{!p.check}" id="post" onchange="searchByFilterJs();return false;"/><apex:outputLabel value="{!p.positionName}" for="post"/> |
| | | <apex:inputCheckBox value="{!p.check}" id="post" onchange="searchByFilterJs();return false;"/><apex:outputLabel value="{!p.positionName}" for="post"/> |
| | | </apex:repeat> |
| | | </td> |
| | | <!-- 20220613 WLIG-CER9NQ you 页面中拿掉改成batch执行 |
| | |
| | | </td> |
| | | --> |
| | | <!--CHAN-BDQBLX 20210125 you start --> |
| | | <td width="80"> |
| | | <td width="108"> |
| | | <apex:commandbutton onclick="exportJs();return false;" id="export" value="导出数据模板"> |
| | | </apex:commandbutton> |
| | | </td> |
| | | <td width="40"> |
| | | <td width="60"> |
| | | <apex:commandButton onclick="openPopupCSV(); return false;" value="导入" rerender="Form"/> |
| | | </td> |
| | | <!--CHAN-BDQBLX 20210125 you end --> |
| | |
| | | <!-- バック側にパラメータを増やしたくないため、1になれないパラメータを入れます --> |
| | | <!-- ここの値は1かどうかの判断のみで使います --> |
| | | <apex:inputHidden id="changeFlg" value="{!saveFlg}"/> |
| | | <table class="list" style="border-bottom-width: 0px;" border="0" cellspacing="0" cellpadding="0" id="MainTable"> |
| | | <table class="list" style="width:100%;" cellspacing="0" cellpadding="0" id="MainTable"> |
| | | <thead> |
| | | <tr class="headerRow"> |
| | | <th width="70px" class="headerRow booleanColumn">本部</th> |
| | | <th width="70px" class="headerRow booleanColumn">省</th> |
| | | <th class="headerRow booleanColumn">角色</th> |
| | | <th width="70px" class="headerRow booleanColumn">担当</th> |
| | | <th width="70px" class="headerRow booleanColumn" style="min-width: 70px;">本部</th> |
| | | <th width="70px" class="headerRow booleanColumn" style="min-width: 70px;">省</th> |
| | | <!--<th class="headerRow booleanColumn">角色</th>--> |
| | | <th width="70px" class="headerRow booleanColumn" style="min-width: 70px;">担当</th> |
| | | <th width="70px" class="headerRow booleanColumn">HR通用职级</th> <!-- 20220517 lt SWAG-CD28H3 Update --> |
| | | <th width="70px" class="headerRow booleanColumn">负责<br/>产品分类(主)</th> |
| | | <!--wangweipeng 20210615--> |
| | | <th width="70px" class="headerRow booleanColumn">负责<br/>产品分类(兼)</th> |
| | | <th width="70px" class="headerRow booleanColumn" style="min-width: 70px;">目标类型</th> |
| | | <apex:repeat value="{!opportunity_category}" var="oc" id="opportunityCategoryRepeat"> |
| | | <th width="75px" class="headerRow booleanColumn"><apex:outputText id="categoryValue" value="{!oc}"></apex:outputText></th> |
| | | </apex:repeat> |
| | | <th width="85" class="headerRow booleanColumn" style="background-color:#AAAACC;">合计</th> |
| | | <!-- 20230510 ljh start --> |
| | | <th width="70px" class="headerRow booleanColumn" style="min-width: 70px;">备注</th> |
| | | <!-- 20230510 ljh end --> |
| | | </tr> |
| | | </thead> |
| | | <tbody> |
| | |
| | | <tr class="dataRow {!IF(MOD(cnt, 2)==0, 'odd', 'even')} {!IF(cnt==1, 'first', '')}" bgcolor="#AAAACC"> |
| | | <td class="dataCell"></td> |
| | | <td class="dataCell"></td> |
| | | <td class="dataCell"></td> |
| | | <!--暂时隐藏<td class="dataCell"></td>--> |
| | | <td class="dataCell"></td> |
| | | <td class="dataCell"></td> |
| | | <!--wangweipeng 20210615--> |
| | | <td class="dataCell"></td> |
| | | <td class="dataCell"></td> |
| | | <td class="dataCell" style="text-align:center;">合计</td> |
| | | <td class="dataCell" style="text-align:right;" id="totalcol0"></td> |
| | |
| | | <td class="dataCell" style="text-align:right;" id="totalcol5"></td> |
| | | <td class="dataCell" style="text-align:right;" id="totalcol6"></td> |
| | | <td class="dataCell" style="text-align:right;" id="totalcol7"></td> |
| | | <!--DB202303443108 20230407 you start--> |
| | | <td class="dataCell" style="text-align:right;" id="totalcol8"></td> |
| | | <!--DB202303443108 20230407 you end--> |
| | | <td class="dataCell" style="text-align:right;" id="totalAll"></td> |
| | | <!-- 20230510 ljh start --> |
| | | <td class="dataCell" style="text-align:right;" id="totalcol9"></td> |
| | | <!-- 20230510 ljh end --> |
| | | </tr> |
| | | <apex:repeat value="{!dataBeans}" var="dbs" id="dbRepeat"> |
| | | <tr class="dataRow {!IF(MOD(cnt, 2)==0, 'odd', 'even')} {!IF(cnt==1, 'first', '')}"> |
| | | <td class="dataCell">{!dbs.user.Salesdepartment__c}</td> |
| | | <td class="dataCell">{!dbs.user.Salesdepartment__c}<!--{!dbs.user.Dept__c}--></td> |
| | | <td class="dataCell">{!dbs.user.Province__c}</td> |
| | | <td class="dataCell">{!dbs.user.UserRole.Name}</td> |
| | | <!--暂时隐藏<td class="dataCell">{!dbs.user.UserRole.Name}</td>--> |
| | | <td class="dataCell">{!dbs.user.Alias}</td> |
| | | <td class="dataCell">{!dbs.user.HR_Post__c}</td> <!-- 20220517 lt SWAG-CD28H3 Update --> |
| | | <td class="dataCell" style="word-wrap:break-word;max-width:70px;">{!SUBSTITUTE(dbs.user.Product_specialist_incharge_product__c, ";", "; ")}</td> |
| | | <td class="dataCell" style="word-wrap:break-word;">{!SUBSTITUTE(dbs.user.Product_specialist_incharge_product__c, ";", "; ")}</td> |
| | | <!--wangweipeng 20210615--> |
| | | <td class="dataCell" style="word-wrap:break-word;max-width:70px;">{!SUBSTITUTE(dbs.user.Responsible_for_Products_Concurrently__c, ";", "; ")}</td> |
| | | <td class="dataCell" style="word-wrap:break-word;">{!SUBSTITUTE(dbs.user.Responsible_for_Products_Concurrently__c, ";", "; ")}</td> |
| | | <td class="dataCell"> <apex:inputField id="inTargetType" value="{!dbs.opportunity.TargetType__c}" style="width:100%;text-align:left;" onchange="checkOwner(this.value, this.id, {!cnt});"></apex:inputField> |
| | | <script type="text/javascript"> |
| | | var ispast = {!isPast}; |
| | | if (ispast) { |
| | | j$(escapeVfId('Page:Form:editBlock:dbRepeat:' + {!cnt-1} + ':inTargetType')).attr("disabled",true); |
| | | } |
| | | //j$(escapeVfId('Page:Form:editBlock:dbRepeat:' + {!cnt-1} + ':inTargetType')).val('个人'); |
| | | </script> |
| | | </td> |
| | | |
| | | <apex:variable value="{!1}" var="cnt2" /> |
| | | <apex:repeat value="{!dbs.amount}" var="amount" id="amountRepeat"> |
| | | <td class="dataCell" style="text-align:right;"> |
| | | <apex:inputField id="inAmountValue" value="{!amount.Amount}" style="width:92%; text-align:right;" onchange="checkMoney(this.value, this.id);"></apex:inputField> |
| | | <apex:inputField id="inAmountValue" value="{!amount.Amount}" style="width:100%; text-align:right;" onchange="checkMoney(this.value, this.id);"></apex:inputField> |
| | | <script type="text/javascript"> |
| | | var ispast = {!isPast}; |
| | | if (ispast) { |
| | |
| | | <apex:variable value="{!cnt2 + 1}" var="cnt2" /> |
| | | </apex:repeat> |
| | | <td class="dataCell" style="text-align:right; background-color:#AAAACC;"> |
| | | <apex:outputText id="totalrow" style="width:92%;" value="{0,number,#,##0.00}"> |
| | | <apex:outputText id="totalrow" style="width:100%;" value="{0,number,#,##0.00}"> |
| | | <apex:param value="" /> |
| | | </apex:outputText> |
| | | <apex:inputHidden id="isChanged" value="{!dbs.isChanged}"/> |
| | | </td> |
| | | <!-- 20230510 ljh start --> |
| | | <td class="dataCell" style="word-wrap:break-word;"> |
| | | <apex:inputField id="inRemarks" value="{!dbs.opportunity.remarks__c}" style="width:100%;text-alig:left;" onchange="checkOwner(this.value, this.id, {!cnt});" onkeyup="if(value.length>15)value=value.slice(0,15)"/> |
| | | <script type="text/javascript"> |
| | | var ispast = {!isPast}; |
| | | if (ispast) { |
| | | j$(escapeVfId('Page:Form:editBlock:dbRepeat:' + {!cnt-1} + ':inRemarks')).attr("disabled",true); |
| | | } |
| | | </script> |
| | | <!-- 春眠不觉晓处处闻啼鸟夜来风雨声 --> |
| | | </td> |
| | | <!-- 20230510 ljh end --> |
| | | </tr> |
| | | <apex:variable value="{!cnt + 1}" var="cnt" /> |
| | | </apex:repeat> |
| | |
| | | </table> |
| | | <script type="text/javascript"> |
| | | j$(function() { |
| | | var blockHeight = j$(window).innerHeight() - j$(escapeVfId('Page:Form:headBlock')).height() - 60; |
| | | j$(escapeVfId('MainTable')).tablefix({height: blockHeight, fixRows: 2, fixCols: 0}); |
| | | // var blockHeight = j$(window).innerHeight() - j$(escapeVfId('Page:Form:headBlock')).height() - 60; |
| | | // j$(escapeVfId('MainTable')).tablefix({height: blockHeight, fixRows: 2, fixCols: 0}); |
| | | }); |
| | | calc(); |
| | | </script> |
| | |
| | | <apex:page id="Page" showHeader="false" sidebar="false" Controller="SetProductTargetController" action="{!init}"> |
| | | <apex:page id="Page" showHeader="false" sidebar="false" Controller="SetProductTargetController" action="{!init}" lightningStylesheets="true"> |
| | | <head> |
| | | <title>各省重点产品目标设定</title> |
| | | |
| | |
| | | <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.jqueryTableFix)}"/> |
| | | <style> |
| | | body input[type="text"], .slds-vf-scope input[type="text"] { |
| | | padding: 0; |
| | | } |
| | | table > tbody > tr > th, .slds-vf-scope .listViewport table > tr > td, .slds-vf-scope .listViewport table > tr > th { |
| | | padding: .2rem; |
| | | } |
| | | body .bPageBlock.apexDefaultPageBlock { |
| | | border-top: 2px solid #cfc1c1; |
| | | } |
| | | /*#Page\:Form\:editBlock > div.pbBody { |
| | | height: 500px; |
| | | }*/ |
| | | |
| | | #crossTable th ,#topTable th, #topTable ,#bodyTable{ |
| | | border-right: 1px solid #c9c9c9; |
| | | } |
| | | |
| | | #leftTable , #crossTable { |
| | | border-left: 1px solid #c9c9c9; |
| | | } |
| | | |
| | | #leftTable,#bodyTable { |
| | | border-bottom: 1px solid #c9c9c9; |
| | | } |
| | | |
| | | </style> |
| | | |
| | | <script type="text/javascript"> |
| | | window.onload = function getInfo() { |
| | |
| | | for(var i = 0; i< tbl.rows.length;i++){ |
| | | if(document.getElementById("Page:Form:dataBlock:dbRepeat_L:"+i+":owner_mlktp")){ |
| | | document.getElementById("Page:Form:dataBlock:dbRepeat_L:"+i+":owner_mlktp").style.display="none"; |
| | | document.getElementById("Page:Form:dataBlock:dbRepeat_L:"+i+":owner").style.width="80%"; |
| | | document.getElementById("Page:Form:dataBlock:dbRepeat_L:"+i+":owner").style.width="99%"; |
| | | } |
| | | //j$("Page:Form:dataBlock:dbRepeat_L:"+i+":owner_mlktp").attr('display','none'); |
| | | //j$("Page:Form:dataBlock:dbRepeat_L:"+i+":owner").css("width","80%"); |
| | |
| | | // } |
| | | passToController(this.result); |
| | | popupBox.hide(); |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
| | | //CHAN-BDQBLX 20210205 ljh end |
| | | </script> |
| | | <style> |
| | | .TestCss{ |
| | | width:80%; |
| | | width:99%; |
| | | } |
| | | div#out_Div { |
| | | position:relative; |
| | |
| | | <apex:outputPanel id="popupBox" layout="block"> |
| | | <input type="file" id="file_input" name="attFile" accept=".csv" /><br/> |
| | | <center> |
| | | <apex:commandButton value="确认" onclick="remoteLocationPost(); return false;" style="width: 20%; margin: 20px 10px 0px 10px" /> |
| | | <apex:commandButton value="确认" onclick="remoteLocationPost(); return false;" style="width: 20%; " /> |
| | | <apex:commandButton value="取消" onclick="popupBox.hide();" style="width: 20%; margin: 20px 10px 0px 10px" /> |
| | | </center> |
| | | </apex:outputPanel> |
| | |
| | | <table id="ButtonTable" border="0" width="100%"> |
| | | <tr> |
| | | <td> |
| | | 本部 <apex:selectList value="{!salesDpt}" size="1" style="width:120px" onchange="searchByDptJs();return false;"><apex:selectOptions value="{!salesDptOpts}"/></apex:selectList> |
| | | 省 <apex:inputField value="{!opp.SAP_Province__c}" id="province" style="width:140px" onchange="searchByProvinceJs();return false;"></apex:inputField> |
| | | <!-- 重点目标分类 <apex:selectList value="{!target_category}" size="1" style="width:140px" onchange="searchByCategoryJs();return false;"><apex:selectOptions value="{!targetOpts}"/></apex:selectList> |
| | | 重点产品 |
| | | 本部 <apex:selectList value="{!salesDpt}" size="1" style="width:120px" onchange="searchByDptJs();return false;"><apex:selectOptions value="{!salesDptOpts}"/></apex:selectList> |
| | | 省 <apex:inputField value="{!opp.SAP_Province__c}" id="province" style="width:140px" onchange="searchByProvinceJs();return false;"></apex:inputField> |
| | | <!-- 重点目标分类 <apex:selectList value="{!target_category}" size="1" style="width:140px" onchange="searchByCategoryJs();return false;"><apex:selectOptions value="{!targetOpts}"/></apex:selectList> |
| | | 重点产品 |
| | | <apex:selectList value="{!opp.Important_Key_product_category__c}" id="impKey" size="1" style="width:200px;" onchange="searchByImpKeyJs();return false;"> |
| | | <apex:selectOptions value="{!impProductOptions}"/> |
| | | </apex:selectList>--> |
| | |
| | | <!-- ljh 样式调整 20210204 start --> |
| | | <!--CHAN-BDQBLX 20210204 ljh end --> |
| | | <td align="right"> |
| | | <apex:commandButton value="反应到目标" rerender="dummy" onclick="UpdateJs(this);return false;" rendered="{!Not(isPast)}" id="setTarget"/> |
| | | <apex:commandButton value="反映到目标" rerender="dummy" onclick="UpdateJs(this);return false;" rendered="{!Not(isPast)}" id="setTarget"/> |
| | | <apex:commandbutton onclick="exportJs();return false;" id="export" value="导出数据模板"></apex:commandbutton> |
| | | <apex:commandButton onclick="openPopupCSV(); return false;" value="导入" rerender="Form"/> |
| | | </td> |
| | |
| | | <apex:inputHidden id="changeFlg" value="{!saveFlg}"/> |
| | | <div id="Div_all"> |
| | | <div id="out_Div_L"> |
| | | <table class="list" style="border-bottom-width: 0px;table-layout:fixed;" border="0" cellspacing="0" cellpadding="0" id="crossTable"> |
| | | <table class="list" style="border-bottom-width: 0px;table-layout:fixed;" cellspacing="0" cellpadding="0" id="crossTable"> |
| | | <thead> |
| | | <tr class="headerRow" id="Head_L"> |
| | | <th width="140px" class="headerRow booleanColumn">销售本部</th> |
| | |
| | | </table> |
| | | </div> |
| | | <div id="out_Div" > |
| | | <table class="list" style="border-collapse: collapse;border-bottom-width: 0px;table-layout:fixed;" id="topTable"> |
| | | <table class="list" style="border-collapse: collapse;border-bottom-width: 0px;table-layout:fixed;width:100%;" id="topTable"> |
| | | <thead> |
| | | <tr class="headerRow" id="header_R"> |
| | | <apex:repeat value="{!opportunity_category}" var="oc" id="opportunityCategoryRepeat"> |
| | |
| | | </tbody> |
| | | </table> |
| | | </div> |
| | | <div style="clear:both;height:0px;"></div> |
| | | <div id="in_Div_L"> |
| | | <table class="list" style="table-layout:fixed;border-bottom-width: 0px;" border="0" cellspacing="0" cellpadding="0" id="leftTable"> |
| | | <table class="list" style="table-layout:fixed;" border="0" cellspacing="0" cellpadding="0" id="leftTable"> |
| | | <tbody> |
| | | |
| | | <apex:repeat value="{!dataBeans}" var="dbs" id="dbRepeat_L"> |
| | | <tr class="dataRow {!IF(MOD(cnt, 2)==0, 'odd', 'even')} {!IF(cnt==1, 'first', '')}"> |
| | | <td class="dataCell" width="140px">{!dbs.department}</td> |
| | | <td class="dataCell" width="110px"><apex:outputField value="{!dbs.opportunity.SAP_Province__c}"></apex:outputField></td> |
| | | <td class="dataCell" width="160px"><apex:inputField id="owner" value="{!dbs.opportunity.Owner_System__c}" onchange="checkOwner(this.value, this.id, {!cnt});" style="width:80%;"></apex:inputField> |
| | | <td class="dataCell" width="160px"><apex:inputField id="owner" value="{!dbs.opportunity.Owner_System__c}" onchange="checkOwner(this.value, this.id, {!cnt});" style="width:99%;"></apex:inputField> |
| | | <script type="text/javascript"> |
| | | var ispast = {!isPast}; |
| | | if (ispast) { |
| | |
| | | </div> |
| | | |
| | | <div id="in_Div" > |
| | | <table class="list" style="border-collapse: collapse;border-bottom-width: 0px;table-layout:fixed;" id="bodyTable"> |
| | | <table class="list" style="border-collapse: collapse;table-layout:fixed;width:100%;" id="bodyTable"> |
| | | |
| | | <tbody> |
| | | <apex:repeat value="{!dataBeans}" var="dbs" id="dbRepeat"> |
| | |
| | | </script> |
| | | </apex:pageBlock> |
| | | </apex:form> |
| | | </apex:page> |
| | | </apex:page> |
| | |
| | | <apex:page id="Page" showHeader="false" sidebar="false" Controller="SetProvinceTargetController" action="{!init}"> |
| | | <apex:page id="Page" showHeader="false" sidebar="false" Controller="SetProvinceTargetController" action="{!init}" lightningStylesheets="true"> |
| | | <head> |
| | | <title>各省目标设定</title> |
| | | |
| | |
| | | <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.jqueryTableFix)}"/> |
| | | |
| | | <style> |
| | | |
| | | body input[type="text"], .slds-vf-scope input[type="text"] { |
| | | padding: 0; |
| | | } |
| | | table > tbody > tr > th, .slds-vf-scope .listViewport table > tr > td, .slds-vf-scope .listViewport table > tr > th { |
| | | padding: .2rem; |
| | | } |
| | | body .bPageBlock.apexDefaultPageBlock { |
| | | border-top: 2px solid #cfc1c1; |
| | | } |
| | | |
| | | |
| | | #MainTable th { |
| | | border-right: 1px solid #c9c9c9; |
| | | } |
| | | #MainTable { |
| | | border: 1px solid #c9c9c9; |
| | | } |
| | | </style> |
| | | |
| | | |
| | | <script type="text/javascript"> |
| | | function DisableAllButtons (actionText) { |
| | |
| | | } |
| | | function UpdateJs(actionText) { |
| | | blockme(); |
| | | if (window.confirm('确定要反应到目标吗?')) { |
| | | if (window.confirm('确定要反映到目标吗?')) { |
| | | Update(); |
| | | DisableAllButtons(actionText); |
| | | } else { |
| | |
| | | |
| | | function calc() { |
| | | debugger; |
| | | var JianDangfalg3 =j$(escapeVfId('Page:Form:editBlock:JianDangfalg')).value(); |
| | | // DB202305259561 fy 20230517 start |
| | | // var JianDangfalg3 =j$(escapeVfId('Page:Form:editBlock:JianDangfalg')).value(); |
| | | var JianDangfalg3 = '{!JianDangfalg}'; |
| | | // DB202305259561 fy 20230517 end |
| | | // alert('sss= '+s); |
| | | var isorgtbl = j$('div[name=bodyTable]'); |
| | | var tbl = document.getElementById('MainTable'); |
| | |
| | | datarows -= 2; |
| | | } |
| | | var allSum = 0; |
| | | var cols = [0, 0, 0, 0, 0, 0, 0, 0]; |
| | | //DB202305277681 fy 20230517 start |
| | | // var cols = [0, 0, 0, 0, 0, 0, 0, 0]; |
| | | var cols = [0, 0, 0, 0, 0, 0, 0, 0, 0]; |
| | | //DB202305277681 fy 20230517 end |
| | | // 行 |
| | | for (var i = 0; i < datarows; i++) { |
| | | var rowSum = 0; |
| | | // 列 |
| | | for (var j = 0; j < 8; j++) { |
| | | for (var j = 0; j < 9; j++) { |
| | | var amount = 0; |
| | | var x=j; |
| | | if(JianDangfalg3=='true'){ |
| | |
| | | |
| | | } |
| | | // 列 |
| | | for (var j = 0; j < 8; j++) { |
| | | for (var j = 0; j < 9; j++) { |
| | | j$(escapeVfId('totalcol' + j)).text(toNumComma(cols[j])); |
| | | } |
| | | // 総計 |
| | |
| | | <apex:outputPanel id="popupBox" layout="block"> |
| | | <input type="file" id="file_input" name="attFile" accept=".csv" /><br/> |
| | | <center> |
| | | <apex:commandButton value="确认" onclick="remoteLocationPost(); return false;" style="width: 20%; margin: 20px 10px 0px 10px" /> |
| | | <apex:commandButton value="确认" onclick="remoteLocationPost(); return false;" style="width: 20%; " /> |
| | | <apex:commandButton value="取消" onclick="popupBox.hide();" style="width: 20%; margin: 20px 10px 0px 10px" /> |
| | | </center> |
| | | </apex:outputPanel> |
| | |
| | | |
| | | <!--CHAN-BDQBLX 20210129 you start --> |
| | | <td align="center" width="10%"> |
| | | <apex:commandButton value="反应到目标" rerender="dummy" onclick="UpdateJs(this);return false;" rendered="{!Not(isPast)}" id="setTarget"/> |
| | | <apex:commandButton value="反映到目标" rerender="dummy" onclick="UpdateJs(this);return false;" rendered="{!Not(isPast)}" id="setTarget"/> |
| | | <apex:commandbutton onclick="exportJs();return false;" id="export" value="导出数据模板"> |
| | | </apex:commandbutton> |
| | | <apex:commandButton onclick="openPopupCSV(); return false;" value="导入" rerender="Form"/> |
| | |
| | | <!-- バック側にパラメータを増やしたくないため、1になれないパラメータを入れます --> |
| | | <!-- ここの値は1かどうかの判断のみで使います --> |
| | | <apex:inputHidden id="changeFlg" value="{!saveFlg}"/> |
| | | <table class="list" style="border-bottom-width: 0px;" border="0" cellspacing="0" cellpadding="0" id="MainTable"> |
| | | <table class="list" cellspacing="0" cellpadding="0" id="MainTable"> |
| | | <thead> |
| | | <tr class="headerRow"> |
| | | <th width="110px" class="headerRow booleanColumn" id="baseName">销售本部</th> |
| | |
| | | <!-- <td class="dataCell" id="NameHold"></td> --> |
| | | <td class="dataCell" style="text-align:center;">合计</td> |
| | | <apex:variable value="JianDangfalg" var="JianDangfalg2" rendered="{!IF(JianDangfalg, true, false)}" > |
| | | <td class="dataCell" style="text-align:right;" id="totalcol8"></td> |
| | | <td class="dataCell" style="text-align:right;" id="totalcol9"></td> |
| | | </apex:variable> |
| | | <td class="dataCell" style="text-align:right;" id="totalcol0"></td> |
| | | <td class="dataCell" style="text-align:right;" id="totalcol1"></td> |
| | |
| | | <td class="dataCell" style="text-align:right;" id="totalcol5"></td> |
| | | <td class="dataCell" style="text-align:right;" id="totalcol6"></td> |
| | | <td class="dataCell" style="text-align:right;" id="totalcol7"></td> |
| | | <!-- DB202305277681 fy 20230517 start --> |
| | | <td class="dataCell" style="text-align:right;" id="totalcol8"></td> |
| | | <!-- DB202305277681 fy 20230517 end --> |
| | | <td class="dataCell" style="text-align:right;" id="totalAll"></td> |
| | | </tr> |
| | | <apex:repeat value="{!dataBeans}" var="dbs" id="dbRepeat"> |
| | |
| | | <apex:variable value="{!1}" var="cnt2" /> |
| | | <apex:repeat value="{!dbs.amount}" var="amount" id="amountRepeat"> |
| | | <td class="dataCell" style="text-align:right;"> |
| | | <apex:inputField id="inAmountValue" value="{!amount.Amount}" style="width:92%; text-align:right;" onchange="checkMoney(this.value, this.id);"></apex:inputField> |
| | | <apex:inputField id="inAmountValue" value="{!amount.Amount}" style="width:100%; text-align:right;" onchange="checkMoney(this.value, this.id);"></apex:inputField> |
| | | <script type="text/javascript"> |
| | | var ispast = {!isPast}; |
| | | if (ispast) { |
| | |
| | | <apex:variable value="{!cnt2 + 1}" var="cnt2" /> |
| | | </apex:repeat> |
| | | <td class="dataCell" style="text-align:right; background-color:#AAAACC;"> |
| | | <apex:outputText id="totalrow" style="width:92%;" value="{0,number,#,##0.00}"> |
| | | <apex:outputText id="totalrow" style="width:100%;" value="{0,number,#,##0.00}"> |
| | | <apex:param value="" /> |
| | | </apex:outputText> |
| | | <apex:inputHidden id="isChanged" value="{!dbs.isChanged}"/> |
| | |
| | | </script> |
| | | </apex:pageBlock> |
| | | </apex:form> |
| | | </apex:page> |
| | | </apex:page> |
| | |
| | | <apex:page controller="StatusPageController" showHeader="false" id="allPage" sidebar="false" action="{!init}" docType="html-5.0"> |
| | | <apex:page controller="StatusPageController" showHeader="false" id="allPage" sidebar="false" action="{!init}" docType="html-5.0" lightningStylesheets="true"> |
| | | <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/> |
| | |
| | | table.list .col_Asset__r_Fixture_Model_No_F__c {width:150px;} |
| | | table.list .col_Fixture_Name__c {width:100px;} |
| | | table.list .col_Asset__r_Fixture_Status__c {width:70px;} |
| | | table.list .col_Asset__r_SerialNumber {width:100px;} |
| | | table.list .col_Asset__r_Salesdepartment__c {width:100px;} |
| | | table.list .col_Asset__r_Internal_asset_location__c {width:100px;} |
| | | table.list .col_Asset__r_Product_category__c {width:120px;} |
| | | table.list .col_Asset__r_Equipment_Type__c {width:90px;} |
| | | table.list .col_Asset__r_Consumable_Guaranteen_end__c {width:100px;} |
| | | table.list .col_Asset__r_You_Xiao_Ku_Cun__c {width:70px;} |
| | | table.list .col_Asset__r_In_wh_Fu_Shu_Pin_You_Xiao_Ku_Cun_Sum__c {width:180px;} |
| | |
| | | table.list .col_Fixture_Model_No_F__c{width:170px;} |
| | | table.list .col_Fixture_Name__c{width:120px;} |
| | | table.list .col_Substitute_flag__c{width:80px;} |
| | | table.list .col_SerialNumber_F__c{width:90px;} |
| | | table.list .col_Zhu_Ti_Fen_Pei_Jia__c{width:90px;} |
| | | table.list .col_Asset__r_Fixture_Status__c{width:90px;} |
| | | table.list .col_Asset__r_Pre_Arrival_wh_time__c {width:100px;} |
| | | table.list .col_Asset__r_Asset_return_Day__c {width:100px;} |
| | | table.list .col_Asset__r_RAES_Final_reply_day_DF__c {width:120px;} |
| | | table.list .col_Asset__r_Repairing_RC_Shipped_Date__c {width:150px;} |
| | | table.list .col_Asset__r_Pre_Inspection_Comment__c {width:100px;} |
| | | table.list .col_Lei_Ji_Jie_Chu_Shu_Asset_Jia__c {width:100px;} |
| | | table.list .col_Equipment_Type__c {width:100px;} |
| | | table.list .col_Asset__r_Salesdepartment__c {width:100px;} |
| | | table.list .col_Asset__r_SalesProvince__c {width:100px;} |
| | | table.list .col_Asset__r_Internal_asset_location__c {width:100px;} |
| | | table.list .col_Cancel_Reason__c {width:100px;} |
| | | table.list .col_Loaner_cancel_reason__c {width:100px;} |
| | | table.list .col_Loaner_cancel_Remarks__c {width:100px;} |
| | |
| | | overflow: hidden; |
| | | float:left; |
| | | /* width:32768px; */ /* 20230523 ljh lightning */ |
| | | width: 1100px; |
| | | /* width: 1200px; */ |
| | | } |
| | | div#out_Div_L { |
| | | position:relative; |
| | |
| | | float:left; |
| | | /* width:32768px; */ /* 20230523 ljh lightning */ |
| | | height: 100px; /* tbodyを表示する高さ、後でjsにて調整 */ |
| | | width: 1100px; |
| | | /* width: 1200px; */ |
| | | } |
| | | div#in_Div_L { |
| | | position:relative; |
| | |
| | | heightsp = bottomspace; |
| | | } |
| | | blockHeight = j$(window).innerHeight() - j$(escapeVfId('allPage:allForm:searchBlock')).height() - heightAjustment; |
| | | // console.log(j$(window).innerHeight() +'-'+ j$(escapeVfId('allPage:allForm:searchBlock')).height() +'-'+ heightAjustment+'-'+heightsp); |
| | | blockHeight = blockHeight - heightsp; |
| | | |
| | | sbwidth = scrollbarWidth(); |
| | | blockWidth = j$(escapeVfId('allPage:allForm:searchBlock')).width() - j$('div#out_Div_L').width() - widthAjustment - sbwidth - 20; |
| | | // 20230531 ljh start |
| | | // blockWidth = j$(escapeVfId('allPage:allForm:searchBlock')).width() - j$('div#out_Div_L').width() - widthAjustment - sbwidth - 20; |
| | | blockWidth = j$(escapeVfId('allPage:allForm:searchBlock')).width() - j$('div#out_Div_L').width()- sbwidth; |
| | | // 20230531 ljh end |
| | | //コンポネートなのでIDを変更 |
| | | // 20230519 ljh start |
| | | // j$(escapeVfId('allPage:allForm:cmpid:cmpinnerid:dataBlock')).css('height', blockHeight + 78 + 'px'); |
| | |
| | | // 20230519 ljh 增记if判断 |
| | | // j$('div#out_Div').css('width', (blockWidth + sbwidth) + 'px'); |
| | | // j$('div#in_Div').css('width', (blockWidth + sbwidth) + 'px'); |
| | | if (j$('table#tableData').width() > j$('div#in_Div').width()) { |
| | | j$('div#out_Div').css('width', (blockWidth + sbwidth) + 'px'); |
| | | j$('div#in_Div').css('width', (blockWidth + sbwidth) + 'px'); |
| | | // 20230704 ljh start |
| | | if(blockWidth > 1000){ |
| | | j$('div#out_Div').css('width', (blockWidth) + 'px'); |
| | | j$('div#in_Div').css('width', (blockWidth) + 'px'); |
| | | }else{ |
| | | j$('table#tableData').css('width', (blockWidth) + 'px'); |
| | | j$('table#tableHeader').css('width', (blockWidth) + 'px'); |
| | | } |
| | | // if (j$('table#tableData').width() > j$('div#in_Div').width()) { |
| | | // j$('div#out_Div').css('width', (blockWidth) + 'px'); |
| | | // j$('div#in_Div').css('width', (blockWidth) + 'px'); |
| | | // } |
| | | // 20230704 ljh end |
| | | } |
| | | if (j$('table#tableData').width() > j$('div#in_Div').width()) { |
| | | j$('div#in_Div').css('height', (blockHeight + sbwidth) +'px'); |
| | |
| | | // tableWidth -= headerCol.width(); |
| | | tableWidth -= listColClassWidthMap[colClass]; |
| | | // 20230519 ljh lightning end |
| | | |
| | | // 全部最小化する |
| | | j$('body .pbBody table.list td.' + colClass).children().hide(); |
| | | j$('body .pbBody table.list td.' + colClass).width(7).css("font-size", "0"); |
| | |
| | | tableWidth += listColClassWidthMap[colClass] + 2 - hiddenWidth; // 2 is border |
| | | // } |
| | | } |
| | | |
| | | j$('table#tableData').css('width', (tableWidth + 2) + 'px'); |
| | | j$('table#tableHeader').css('width', (tableWidth + 2) + 'px'); |
| | | |
| | | |
| | | } |
| | | function getColClassName(pObj) { |
| | | |
| New file |
| | |
| | | /* 20230616 ljh start lightning */ |
| | | /* 表格表格和框*/ |
| | | body .pbBody table.list tr th, body .pbBody table.list tr td { |
| | | border: 1px solid #ededed; |
| | | white-space: normal; |
| | | } |
| | | body .pbBody table.list tr.headerRow td,body .pbBody table.list tr.headerRow th { |
| | | background: #f2f3f3; |
| | | border-width: 0 0 1px 1px; |
| | | border-color: #e0e3e5; |
| | | font-size: .9em; |
| | | font-weight: bold; |
| | | } |
| | | /*信息提示颜色*/ |
| | | body .bPageBlock .pbSubheader, .slds-vf-scope .bPageBlock .pbSubheader{ |
| | | background-color: #08107b !important;; |
| | | color: #FFF !important;; |
| | | } |
| | | body .infoM2, body .infoM3, body .infoM4, .slds-vf-scope .infoM2, .slds-vf-scope .infoM3, .slds-vf-scope .infoM4 { |
| | | background-color: #08107b !important; |
| | | } |
| | | body .message, .slds-vf-scope .message{ |
| | | background-color: #08107b !important; |
| | | } |
| | | body .pbButton{ |
| | | text-align: left; |
| | | } |
| | | |
| | | /*检索框不乱*/ |
| | | body .detailList .dataCol input[type="text"],body .detailList .dataCol select{ |
| | | min-width: 180px; |
| | | padding: 0; |
| | | } |
| | | body .bPageBlock .detailList .dataCol{ |
| | | width: 8%; |
| | | } |
| | | body .detailList td{ |
| | | position: static; |
| | | } |
| New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <StaticResource xmlns="http://soap.sforce.com/2006/04/metadata"> |
| | | <cacheControl>Public</cacheControl> |
| | | <contentType>text/css</contentType> |
| | | </StaticResource> |