98个文件已修改
73个文件已添加
4 文件已重命名
5个文件已删除
7 文件已复制
| | |
| | | public String idl {get; set;} |
| | | public boolean IS_Alert_Price_Apply {get; set;} |
| | | public ID userid {get; set;} |
| | | |
| | | |
| | | public Consumable_order_AlertController() { |
| | | idl = ApexPages.currentPage().getParameters().get('id'); |
| | | |
| | |
| | | |
| | | } |
| | | public void init() { |
| | | String orderRecordTypeId = [select Id,DeveloperName from RecordType where SobjectType = 'Consumable_order__c' and DeveloperName = 'Order'].Id; |
| | | list<Consumable_order__c> COList = |
| | | [select id, SalesManager__c,RecordTypeId, Order_type__c, Order_status__c |
| | | from Consumable_order__c where id =:idl]; |
| | |
| | | userid = UserInfo.getUserId(); |
| | | if( COList[0].SalesManager__c != null |
| | | && COList[0].SalesManager__c == userid |
| | | && COList[0].RecordTypeId.equals('01210000000c9dt') |
| | | // && COList[0].RecordTypeId.equals('01210000000c9dt') |
| | | && COList[0].RecordTypeId.equals(orderRecordTypeId) |
| | | && COList[0].Order_type__c.equals('订单') |
| | | && COList[0].Order_status__c.equals('已提交')){ |
| | | IS_Alert_Price_Apply = true; |
| | |
| | | } |
| | | //IS_Alert_Price_Apply = true; |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
| New file |
| | |
| | | public with sharing class LexEquipmentRentalApply_FromQISCtl { |
| | | public LexEquipmentRentalApply_FromQISCtl() { |
| | | |
| | | } |
| | | |
| | | @AuraEnabled |
| | | public static List<Rental_Apply__c> rentalApp(String recordId){ |
| | | try { |
| | | List<Rental_Apply__c> rep = [select Id from Rental_Apply__c where QIS_number__c =: recordId and Status__c <> '取消' and Status__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,Repair__c 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; |
| | | res.repair = rep.Repair__c; |
| | | 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; |
| | | @AuraEnabled |
| | | public String repair; |
| | | } |
| | | |
| | | 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> |
| New file |
| | |
| | | public with sharing class LexPast2YearsRepairPriceReportController { |
| | | @AuraEnabled |
| | | public static ReturnData init(String recordId){ |
| | | ReturnData returnData = new ReturnData(); |
| | | String reportId = [select Id from Report where DeveloperName ='Last2YearsRepairPrice3'].Id; |
| | | returnData.reportId = reportId; |
| | | |
| | | String mCEName = [select Name from Maintenance_Contract_Estimate__c where Id = :recordId].Name; |
| | | returnData.mCEName = mCEName; |
| | | |
| | | return returnData; |
| | | |
| | | } |
| | | private class ReturnData{ |
| | | @AuraEnabled |
| | | public String reportId; |
| | | @AuraEnabled |
| | | public String mCEName; |
| | | } |
| | | } |
| New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <ApexClass xmlns="http://soap.sforce.com/2006/04/metadata"> |
| | | <apiVersion>51.0</apiVersion> |
| | | <status>Active</status> |
| | | </ApexClass> |
| New file |
| | |
| | | public with sharing class LexRentalApplyESetRefreshStaController { |
| | | |
| | | @AuraEnabled |
| | | public static String eSetRefreshStatus(String raeSetId) { |
| | | return eSetRefreshStatusBatch(new List<String> {raeSetId}); |
| | | } |
| | | |
| | | public static String eSetRefreshStatusBatch(List<String> raeSetIds) { |
| | | List<Rental_Apply_Equipment_Set__c> updateList1 = new List<Rental_Apply_Equipment_Set__c>(); |
| | | |
| | | if (!raeSetIds.isEmpty()) { |
| | | for (Rental_Apply_Equipment_Set__c raes: [ |
| | | SELECT Id,Repair_Status1__c,Repair_Status_Text__c,Final_reply_day__c,Final_reply_day_text__c, |
| | | Received_Confirm_NG_Not_Return__c,Received_Confirm_NG_Not_Return_Text__c, |
| | | Received_Confirm_Status_Text__c, Received_Confirm_Status_F__c |
| | | , NG_Final_reply_day_Text__c |
| | | , NG_Final_reply_day_F__c |
| | | , Yizhouweixiu_Final_reply_day_Text__c |
| | | , Yizhouweixiu_Final_reply_day_F__c |
| | | , Extend_Final_reply_day_Text__c |
| | | , Extend_Final_reply_day_F__c |
| | | , QIS_Final_reply_day_Text__c |
| | | , QIS_Final_reply_day_F__c |
| | | , Repair_cancel_Final_reply_day_Text__c |
| | | , Repair_cancel_Final_reply_day_F__c |
| | | , Return_to_office_Final_reply_day_Text__c |
| | | , Return_to_office_Final_reply_day_F__c |
| | | , Repair_delete_Final_reply_day_Text__c |
| | | , Repair_delete_Final_reply_day_F__c |
| | | , Yigoudaihuo_Final_reply_day_Text__c |
| | | , Yigoudaihuo_Final_reply_day_F__c |
| | | , Guzhangpaicha_Final_reply_day_Text__c |
| | | , Guzhangpaicha_Final_reply_day_F__c |
| | | , Repair_Agreed_Quotation_Text__c |
| | | , Repair_Agreed_Quotation_F__c |
| | | , Return_to_office_Final_reply_day_U_RC__c |
| | | , Return_to_office_Final_reply_day_U_RC_F__c |
| | | , Extend_Date__c |
| | | , Extend_Date_F__c |
| | | , Received_NG_ReAssign_Text__c |
| | | , Received_NG_ReAssign__c |
| | | //【FY23大及巨大课题】长假备品借用延期开发 2022/12/27 start xxf |
| | | , Final_reply_day_Holiday_backup__c |
| | | , NG_Final_reply_day_F_Holiday_backup__c |
| | | , NG_Final_reply_day_Text_Holiday_backup__c |
| | | , Yizhouweixiu_Final_reply_day_F_Holiday__c |
| | | , Yizhouweixiu_Final_reply_day_TextHoliday__c |
| | | , Extend_Final_reply_day_F_Holiday_backup__c |
| | | , Extend_Final_reply_day_Text_Holiday_back__c |
| | | , QIS_Final_reply_day_F_Holiday_backup__c |
| | | , QIS_Final_reply_day_Text_Holiday_backup__c |
| | | , Repair_cancel_Final_reply_day_F_Holiday__c |
| | | , Repair_cancel_Final_reply_day_Text_Holid__c |
| | | , Return_to_office_Final_reply_day_F_Ho__c |
| | | , Return_to_office_Final_reply_day_Text_Ho__c |
| | | , Repair_delete_Final_reply_day_F_Holiday__c |
| | | , Repair_delete_Final_reply_day_Text_Ho__c |
| | | , Yigoudaihuo_Final_reply_day_F_Holiday__c |
| | | , Yigoudaihuo_Final_reply_day_Text_Holiday__c |
| | | , FGuzhangpaicha_Final_reply_day_F_Holiday__c |
| | | , Guzhangpaicha_Final_reply_day_Text_Holid__c |
| | | , Return_to_office_Final_reply_day_U_RC_Ho__c |
| | | , Return_to_office_Final_reply_day_U_RC_FH__c |
| | | //【FY23大及巨大课题】长假备品借用延期开发 2022/12/27 end xxf |
| | | FROM Rental_Apply_Equipment_Set__c |
| | | WHERE Id IN :raeSetIds |
| | | ]) { |
| | | Rental_Apply_Equipment_Set__c upd = UpdateRentalApplyEquipmentSetBatch.setRAES(raes); |
| | | if (upd != null) { |
| | | updateList1.add(upd); |
| | | } |
| | | } |
| | | } |
| | | //bp2 |
| | | // List<Equipment_Set_Detail__c> esdList = [ |
| | | // select Id,Asset_condition__c,Asset_condition_Text__c, |
| | | // Serial_Lot__c,Serial_Lot_text__c, |
| | | // Asset__r.Loaner_accsessary__c, Loaner_accsessary_text__c, |
| | | // Active_judgement__c,Active_judgement_select__c,Active_judgement_text__c, |
| | | // Last_Reserve_RAES_Detail_RAES_F__c,Last_Reserve_RAES_Detail_RAES_Id__c, |
| | | // Equipment_Set_Last_Reserve_RAES_F__c,Equipment_Set_Last_Reserve_RAES_Id__c |
| | | // from Equipment_Set_Detail__c |
| | | // where Equipment_Set__c IN :eSetIds]; |
| | | // List<Equipment_Set_Detail__c> updateList2 = UpdateRentalApplyEquipmentSetBatch.setESD(esdList); |
| | | |
| | | Savepoint sp = Database.setSavepoint(); |
| | | try { |
| | | if (!updateList1.isEmpty()) update updateList1; |
| | | //bp2 if (updateList2.size() > 0) update updateList2; |
| | | return '1'; |
| | | } catch (System.Exception e) { |
| | | Database.rollback(sp); |
| | | return e.getMessage(); |
| | | } |
| | | // return '1'; |
| | | } |
| | | |
| | | } |
| New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <ApexClass xmlns="http://soap.sforce.com/2006/04/metadata"> |
| | | <apiVersion>50.0</apiVersion> |
| | | <status>Active</status> |
| | | </ApexClass> |
| New file |
| | |
| | | public with sharing class LexVMcontractUsageRateNewController { |
| | | @AuraEnabled |
| | | public static String init(String recordId){ |
| | | try { |
| | | String reportId = [select Id from Report where DeveloperName ='VM_contract_bottun'].Id; |
| | | return reportId; |
| | | } |
| | | catch (Exception e) { |
| | | return e.getMessage(); |
| | | } |
| | | |
| | | } |
| | | } |
| New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <ApexClass xmlns="http://soap.sforce.com/2006/04/metadata"> |
| | | <apiVersion>51.0</apiVersion> |
| | | <status>Active</status> |
| | | </ApexClass> |
| | |
| | | global without sharing class LightingButtonConstant { |
| | | //任务的状态‘OLY中标’ |
| | | public static final String STATUS_OLYwinBid = 'OLY中标'; |
| | | //任务的状态‘竞争对手中标’ |
| | | public static final String STATUS_Bid_LoseBid = '竞争对手中标'; |
| | | //中标通知书的状态‘处理完毕’ |
| | | public static final String STATUS_Bid_Announcement_Consent = '处理完毕'; |
| | | //中标通知书的状态‘草案中’ |
| | |
| | | public static InitData init(String taskId){ |
| | | InitData res = new initData(); |
| | | try{ |
| | | task__c task = [SELECT id, OpportunityId__c |
| | | task__c task = [SELECT id, OpportunityId__c , taskStatus__c |
| | | FROM task__c |
| | | WHERE Id =: taskId |
| | | LIMIT 1]; |
| | | |
| | | res.task = task; |
| | | res.taskStatus = task.taskStatus__c; |
| | | res.OpportunityId = task.OpportunityId__c; |
| | | |
| | | Opportunity opp = [SELECT Sales_owner_buchangID__c,Manager_name__c,Sales_owner_buchang__c, |
| | |
| | | System.debug(LoggingLevel.INFO, '*** e: ' + e); |
| | | } |
| | | return res; |
| | | } |
| | | |
| | | } |
| | | |
| | | public class ReturnData{ |
| | | |
| | | } |
| | | |
| | | //OLY中标 |
| | | @AuraEnabled |
| | | public static String taskOLYwinBid(String recordId) { |
| | | String messageText = ''; |
| | | try { |
| | | Opportunity opp = [SELECT Id,ConfirmationofAward__c FROM Opportunity WHERE Id = :recordId LIMIT 1]; |
| | | opp.Id = recordId; |
| | | opp.ConfirmationofAward__c = LightingButtonConstant.STATUS_OLYwinBid; |
| | | messageText = '1'; |
| | | update opp; |
| | | System.debug(LoggingLevel.INFO, '*** winBid: ' + opp); |
| | | return messageText; |
| | | } catch (Exception ex) { |
| | | System.debug(LoggingLevel.INFO, '*** winBidXu: ' + ex); |
| | | messageText = ex.getMessage(); |
| | | return messageText; |
| | | } |
| | | } |
| | | //竞争对手中标 |
| | | @AuraEnabled |
| | | public static String taskLoseBid(String recordId) { |
| | | String messageText = ''; |
| | | try { |
| | | Opportunity opp = [SELECT Id,ConfirmationofAward__c FROM Opportunity WHERE Id = :recordId LIMIT 1]; |
| | | opp.Id = recordId; |
| | | opp.ConfirmationofAward__c = LightingButtonConstant.STATUS_Bid_LoseBid; |
| | | messageText = '1'; |
| | | update opp; |
| | | System.debug(LoggingLevel.INFO, '*** winBid: ' + opp); |
| | | return messageText; |
| | | } catch (Exception ex) { |
| | | System.debug(LoggingLevel.INFO, '*** winBidXu: ' + ex); |
| | | messageText = ex.getMessage(); |
| | | return messageText; |
| | | } |
| | | } |
| | | public class InitData{ |
| | | //询价数据 |
| | | @AuraEnabled |
| | | public Opportunity opp; |
| | | @AuraEnabled |
| | | public String stageName; |
| | | public String StageName; |
| | | @AuraEnabled |
| | | public Boolean SAP_Send_OK; |
| | | @AuraEnabled |
| | |
| | | @AuraEnabled |
| | | public String OpportunityId; |
| | | @AuraEnabled |
| | | public String taskStatus; |
| | | @AuraEnabled |
| | | public task__c task; |
| | | } |
| | | |
| | |
| | | public with sharing class RentalApplyESetRefreshStatusController { |
| | | public RentalApplyESetRefreshStatusController() { |
| | | |
| | | } |
| | | @AuraEnabled |
| | | public static String eSetRefreshStatus(String raeSetId) { |
| | | return eSetRefreshStatusBatch(new List<String> {raeSetId}); |
| | |
| | | // } |
| | | // return '1'; |
| | | // } |
| | | |
| | | @AuraEnabled |
| | | Webservice static String postponeCheck(String endDate, Integer d) { |
| | | Date before5day = getWD_addday(date.parse(endDate), d); |
| | | if (Date.today() > before5day) { |
| | |
| | | /** |
| | | * 注残申请备品的管控 |
| | | */ |
| | | @AuraEnabled |
| | | WebService static String RentalApplyCheckForSAoneEle(String SaID) { |
| | | Statu_Achievements__c Sac = [select id, |
| | | SalesChannel__c, |
| | |
| | | , RecordType.DeveloperName //20201202 ljh add |
| | | , BeiPinWindow__c //20201202 ljh add |
| | | , Add_Reason__c // 20210429 1831 you |
| | | ,RecordtypeId |
| | | FROM TransferApply__c |
| | | WHERE Id = :taId |
| | | FOR UPDATE |
| | | ]; |
| | | |
| | | if (taList.isEmpty()) { |
| | | return '调拨单不存在。'; |
| | | } |
| | |
| | | if(!errorList.isEmpty()) { |
| | | return String.join(errorList, '\n'); |
| | | } |
| | | system.debug('zzm :'+ta.Status__c +',RecordtypeId:' +ta.RecordtypeId); |
| | | if(ta.Status__c == '草案中') { |
| | | |
| | | ta.Status__c = '填写完毕'; |
| | | } |
| | | else { |
| | |
| | | WHERE Id = :taId |
| | | FOR UPDATE |
| | | ]; |
| | | |
| | | if (taList.isEmpty()) { |
| | | return '调拨单不存在。'; |
| | | } |
| | |
| | | public static InitData init(String recordId){ |
| | | InitData res = new initData(); |
| | | try{ |
| | | Account report = [SELECT Name,Department_Class_ID_18__c,Department_Class__c,Hospital_ID__c,Hospital__c,Id FROM Account WHERE Id =: recordId LIMIT 1]; |
| | | Account report = [SELECT Department_Class__r.Id,Hospital__r.Id,Name,Department_Class__c,Hospital__c,Id FROM Account WHERE Id =: recordId LIMIT 1]; |
| | | System.debug(LoggingLevel.INFO, '*** opp: ' + report); |
| | | res.Id = report.Id; |
| | | res.HospitalC = report.Hospital__c; |
| | | res.HospitalIdC = report.Hospital_ID__c; |
| | | res.HospitalId = report.Hospital__r.Id; |
| | | res.DepartmentClassC = report.Department_Class__c; |
| | | res.DepartmentClassIdC = report.Department_Class_ID_18__c; |
| | | res.DepartmentClassId = report.Department_Class__r.Id; |
| | | res.Name = report.Name; |
| | | |
| | | res.userID = UserInfo.getUserId(); |
| | | |
| | | System.debug(LoggingLevel.INFO, '*** res: ' + res); |
| | | }catch(Exception e){ |
| | |
| | | return res; |
| | | } |
| | | |
| | | // 查找UserName |
| | | @AuraEnabled |
| | | public static List<User> initUserName(String userId){ |
| | | List<User> res = new List<User>(); |
| | | try{ |
| | | res = [SELECT Id,name,RepairSalesPoint_Province_China__c,Employee_No__c FROM User WHERE Id=: userId ]; |
| | | }catch(Exception e){ |
| | | System.debug(LoggingLevel.INFO, '*** e: ' + e); |
| | | } |
| | | return res; |
| | | } |
| | | |
| | | @AuraEnabled |
| | | public static List<Account> selecctAccountByAccountId(String AccountId){ |
| | | try { |
| | | List<Account> accounts = [SELECT ParentId,Parent.RecordTypeId,Parent.RecordType_DeveloperName__c ,Parent.Parent.FSE_GI_Main_Leader__c, Parent.Parent.FSE_GI_Main_Leader__r.Name,Parent.Parent.FSE_SP_Main_Leader__r.Name,Parent.Parent.FSE_SP_Main_Leader__c,Parent.Parent.FSE_GI_Main_Leader__r.Work_Location__c,Parent.Parent.FSE_SP_Main_Leader__r.Work_Location__c FROM Account WHERE ID=:AccountId]; |
| | | return accounts; |
| | | } catch (Exception e) { |
| | | throw new AuraHandledException(e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | public class InitData{ |
| | | @AuraEnabled |
| | | public String Id; |
| | | @AuraEnabled |
| | | public String HospitalC; |
| | | @AuraEnabled |
| | | public String HospitalIdC; |
| | | public String HospitalId; |
| | | @AuraEnabled |
| | | public String DepartmentClassC; |
| | | @AuraEnabled |
| | | public String DepartmentClassIdC; |
| | | public String DepartmentClassId; |
| | | @AuraEnabled |
| | | public String Name; |
| | | @AuraEnabled |
| | | public String userID; |
| | | } |
| | | } |
| | |
| | | <ApexClass xmlns="http://soap.sforce.com/2006/04/metadata"> |
| | | <apiVersion>56.0</apiVersion> |
| | | <status>Active</status> |
| | | </ApexClass> |
| | | </ApexClass> |
| New file |
| | |
| | | public with sharing class buttonAssetCtl { |
| | | public buttonAssetCtl() { |
| | | |
| | | } |
| | | |
| | | @AuraEnabled |
| | | 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]; |
| | | System.debug(LoggingLevel.INFO, '*** opp: ' + report); |
| | | res.Id = report.Id; |
| | | res.Name = report.Name; |
| | | res.NoPartRiskDateFC = report.NoPartRiskDate_F__c; |
| | | res.ProductIDC = report.Product_ID__c; |
| | | res.AccountId = report.AccountId; |
| | | res.HPIdC = report.HP_Id__c; |
| | | res.HospitalC = report.Hospital__c; |
| | | res.DepartmentClassC = report.Department_Class__c; |
| | | res.HospitalId = report.Hospital__r.Id; |
| | | res.DepartmentClassId = report.Department_Class__r.Id; |
| | | |
| | | res.userID = UserInfo.getUserId(); |
| | | |
| | | res.day = Date.today(); |
| | | res.day1 = Date.today().addDays(-10); |
| | | res.day2 = Date.today().addDays(+365); |
| | | res.notCreateRepairFromAssetButton= System.Label.notCreateRepairFromAssetButton; |
| | | res.notCreateRepairFromAssetButton02= System.Label.notCreateRepairFromAssetButton02; |
| | | |
| | | System.debug(LoggingLevel.INFO, '*** res: ' + res); |
| | | }catch(Exception e){ |
| | | System.debug(LoggingLevel.INFO, '*** e: ' + e); |
| | | } |
| | | return res; |
| | | } |
| | | |
| | | // 查找UserName |
| | | @AuraEnabled |
| | | public static List<User> initUserName(String userId){ |
| | | List<User> res = new List<User>(); |
| | | try{ |
| | | res = [SELECT Id,name,RepairSalesPoint_Province_China__c,Employee_No__c FROM User WHERE Id=: userId ]; |
| | | }catch(Exception e){ |
| | | System.debug(LoggingLevel.INFO, '*** e: ' + e); |
| | | } |
| | | return res; |
| | | } |
| | | |
| | | //查询Account修理画面“修理品返送地”问题调查-后续 |
| | | @AuraEnabled |
| | | public static List<Account> selecctAccountBySegmentId(String segmentId){ |
| | | try { |
| | | List<Account> accounts = [SELECT id,ParentId,Parent.RecordTypeId, Parent.Parent.FSE_GI_Main_Leader__r.Work_Location__c,Parent.Parent.FSE_SP_Main_Leader__r.Work_Location__c FROM Account WHERE Id=:segmentId]; |
| | | return accounts; |
| | | } catch (Exception e) { |
| | | throw new AuraHandledException(e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | //查询Product2 |
| | | @AuraEnabled |
| | | public static List<Product2> selecctProduct2ById(String Id){ |
| | | try { |
| | | List<Product2> accounts = [SELECT id,Name,Can_Repair__c from Product2 where ID=:Id]; |
| | | return accounts; |
| | | } catch (Exception e) { |
| | | throw new AuraHandledException(e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | //查询QIS_Report__c |
| | | @AuraEnabled |
| | | public static List<QIS_Report__c> selecctQISReportByFomatToday(String AssetId,Date fomatToday){ |
| | | try { |
| | | List<QIS_Report__c> accounts = [SELECT id,Name,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<Repair__c> selecctRepairByFomatToday(String AssetId, Date fomatToday){ |
| | | try { |
| | | List<Repair__c> accounts = [SELECT Name from Repair__c where Delivered_Product__c =:AssetId and Status2__c!='00.删除' and Status2__c!='00.取消' and FSE_ApplyForRepair_Day__c >=: fomatToday order by FSE_ApplyForRepair_Day__c desc limit 1]; |
| | | return accounts; |
| | | } catch (Exception e) { |
| | | throw new AuraHandledException(e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | //查询Repair__c |
| | | @AuraEnabled |
| | | public static List<Account> selecctAccountByAccountId(String AccountId){ |
| | | try { |
| | | List<Account> accounts = [SELECT id,Parent.RecordTypeId, Parent.RecordType_DeveloperName__c ,Parent.Parent.FSE_GI_Main_Leader__c, Parent.Parent.FSE_GI_Main_Leader__r.Name,Parent.Parent.FSE_SP_Main_Leader__r.Name,Parent.Parent.FSE_SP_Main_Leader__c,Parent.Parent.FSE_GI_Main_Leader__r.Work_Location__c,Parent.Parent.FSE_SP_Main_Leader__r.Work_Location__c FROM Account WHERE ID=: AccountId]; |
| | | return accounts; |
| | | } catch (Exception e) { |
| | | throw new AuraHandledException(e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | public class InitData{ |
| | | @AuraEnabled |
| | | public String Id; |
| | | @AuraEnabled |
| | | public String userID; |
| | | @AuraEnabled |
| | | public Date day; |
| | | @AuraEnabled |
| | | public Date day2; |
| | | @AuraEnabled |
| | | public Date day1; |
| | | @AuraEnabled |
| | | public String Name; |
| | | @AuraEnabled |
| | | public Date NoPartRiskDateFC; |
| | | @AuraEnabled |
| | | public String ProductIDC; |
| | | @AuraEnabled |
| | | public String AccountId; |
| | | @AuraEnabled |
| | | public String HPIdC; |
| | | @AuraEnabled |
| | | public String HospitalC; |
| | | @AuraEnabled |
| | | public String DepartmentClassC; |
| | | @AuraEnabled |
| | | public String HospitalId; |
| | | @AuraEnabled |
| | | public String DepartmentClassId; |
| | | @AuraEnabled |
| | | public String notCreateRepairFromAssetButton; |
| | | @AuraEnabled |
| | | public String notCreateRepairFromAssetButton02; |
| | | |
| | | } |
| | | } |
| 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 buttonCampaignCtl { |
| | | public buttonCampaignCtl() { |
| | | |
| | | } |
| | | |
| | | @AuraEnabled |
| | | public static InitData init(String recordId){ |
| | | InitData res = new initData(); |
| | | try{ |
| | | Campaign report = [SELECT Id,Status FROM Campaign WHERE Id =: recordId LIMIT 1]; |
| | | System.debug(LoggingLevel.INFO, '*** opp: ' + report); |
| | | res.Id = report.Id; |
| | | res.Status = report.Status; |
| | | |
| | | System.debug(LoggingLevel.INFO, '*** res: ' + res); |
| | | }catch(Exception e){ |
| | | System.debug(LoggingLevel.INFO, '*** e: ' + e); |
| | | } |
| | | return res; |
| | | } |
| | | |
| | | public class InitData{ |
| | | @AuraEnabled |
| | | public String Id; |
| | | @AuraEnabled |
| | | public String Status; |
| | | } |
| | | } |
| 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 buttonCaseCtl { |
| | | public buttonCaseCtl() { |
| | | |
| | | } |
| | | |
| | | @AuraEnabled |
| | | public static InitData init(String recordId){ |
| | | InitData res = new initData(); |
| | | try{ |
| | | Case report = [SELECT Id FROM Case WHERE Id =: recordId LIMIT 1]; |
| | | System.debug(LoggingLevel.INFO, '*** opp: ' + report); |
| | | res.Id = report.Id; |
| | | |
| | | |
| | | System.debug(LoggingLevel.INFO, '*** res: ' + res); |
| | | }catch(Exception e){ |
| | | System.debug(LoggingLevel.INFO, '*** e: ' + e); |
| | | } |
| | | return res; |
| | | } |
| | | |
| | | public class InitData{ |
| | | @AuraEnabled |
| | | public String Id; |
| | | } |
| | | } |
| 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> |
| | |
| | | <ApexClass xmlns="http://soap.sforce.com/2006/04/metadata"> |
| | | <apiVersion>56.0</apiVersion> |
| | | <status>Active</status> |
| | | </ApexClass> |
| | | </ApexClass> |
| | |
| | | <ApexClass xmlns="http://soap.sforce.com/2006/04/metadata"> |
| | | <apiVersion>56.0</apiVersion> |
| | | <status>Active</status> |
| | | </ApexClass> |
| | | </ApexClass> |
| | |
| | | public static InitData init(String recordId){ |
| | | InitData res = new initData(); |
| | | try{ |
| | | On_Call__c report = [SELECT Id FROM On_Call__c WHERE Id =: recordId LIMIT 1]; |
| | | On_Call__c report = [SELECT Id,Name,Oncall_Equipment__r.Id,segment__r.Id,segment__c,HP__c,HospitalId__c,Salesdepartment_HP_ID__c,Salesdepartment_HP__c,Oncall_Equipment__c,Trable_occur_daY_collect_c__c FROM On_Call__c WHERE Id =: recordId LIMIT 1]; |
| | | System.debug(LoggingLevel.INFO, '*** opp: ' + report); |
| | | res.Id = report.Id; |
| | | res.Name = report.Name; |
| | | res.SegmentC = report.segment__c; |
| | | res.SegmentId = report.segment__r.Id; |
| | | res.HPC = report.HP__c; |
| | | res.HospitalIdC = report.HospitalId__c; |
| | | res.SalesdepartmentHPIDC = report.Salesdepartment_HP_ID__c; |
| | | res.SalesdepartmentHPC = report.Salesdepartment_HP__c; |
| | | res.OncallEquipmentC = report.Oncall_Equipment__c; |
| | | res.OncallEquipmentId = report.Oncall_Equipment__r.Id; |
| | | res.TrableOccurdaYCollectC = report.Trable_occur_daY_collect_c__c; |
| | | |
| | | res.userID = UserInfo.getUserId(); |
| | | |
| | | System.debug(LoggingLevel.INFO, '*** res: ' + res); |
| | | }catch(Exception e){ |
| | |
| | | return res; |
| | | } |
| | | |
| | | @AuraEnabled |
| | | public static List<Account> selecctAccountBySegmentId(String segmentId){ |
| | | try { |
| | | List<Account> accounts = [SELECT ParentId,Parent.RecordTypeId,Parent.RecordType_DeveloperName__c ,Parent.Parent.FSE_GI_Main_Leader__c, Parent.Parent.FSE_GI_Main_Leader__r.Name,Parent.Parent.FSE_SP_Main_Leader__r.Name,Parent.Parent.FSE_SP_Main_Leader__c FROM Account WHERE Id=: segmentId]; |
| | | return accounts; |
| | | } catch (Exception e) { |
| | | throw new AuraHandledException(e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | @AuraEnabled |
| | | public static List<Account> selecctAccountBySegmentId02(String segmentId){ |
| | | try { |
| | | List<Account> accounts = [SELECT id,ParentId,Parent.RecordTypeId,Parent.RecordType_DeveloperName__c, Parent.Parent.FSE_GI_Main_Leader__r.Work_Location__c,Parent.Parent.FSE_SP_Main_Leader__r.Work_Location__c FROM Account WHERE Id=: segmentId]; |
| | | return accounts; |
| | | } catch (Exception e) { |
| | | throw new AuraHandledException(e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | // 查找UserName |
| | | @AuraEnabled |
| | | public static List<User> initUserName(String userId){ |
| | | List<User> res = new List<User>(); |
| | | try{ |
| | | res = [SELECT Id,name,RepairSalesPoint_Province_China__c,Employee_No__c FROM User WHERE Id=: userId ]; |
| | | }catch(Exception e){ |
| | | System.debug(LoggingLevel.INFO, '*** e: ' + e); |
| | | } |
| | | return res; |
| | | } |
| | | |
| | | public class InitData{ |
| | | @AuraEnabled |
| | | public String Id; |
| | | @AuraEnabled |
| | | public String Name; |
| | | @AuraEnabled |
| | | public String SegmentC; |
| | | @AuraEnabled |
| | | public String HPC; |
| | | @AuraEnabled |
| | | public String HospitalIdC; |
| | | @AuraEnabled |
| | | public String SalesdepartmentHPIDC; |
| | | @AuraEnabled |
| | | public String SalesdepartmentHPC; |
| | | @AuraEnabled |
| | | public String OncallEquipmentC; |
| | | @AuraEnabled |
| | | public Date TrableOccurdaYCollectC; |
| | | @AuraEnabled |
| | | public String userID; |
| | | @AuraEnabled |
| | | public String SegmentId; |
| | | @AuraEnabled |
| | | public String OncallEquipmentId; |
| | | } |
| | | } |
| | |
| | | public static InitData init(String recordId){ |
| | | InitData res = new initData(); |
| | | try{ |
| | | QIS_Report__c report = [SELECT is_CNBuy__c,isPAE_Profile__c,isAE_Profile__c,Name,QIS_Status__c,PAE_DetermineAC__c,AE_DetermineResult__c,ETQ_UPLOAD_STATUS__c,QIS_final_judgement__c,OCM_judgement__c,PAE_Determine__c,Id FROM QIS_Report__c WHERE Id =: recordId LIMIT 1]; |
| | | QIS_Report__c report = [SELECT Source_OnCall__r.Id,nonyushohin__r.Id,Hospital_Department__r.Id,Hospital__r.Id,source_for_repair__c,Trable_occur_daY_collect__c,nonyushohin__c,Hospital_Department__c,Department_Class__c,Department_Class__r.Id,Source_OnCall__c,HP_ID__c,Special_follow__c,next_action__c,Hospital__c,is_CNBuy__c,isPAE_Profile__c,isAE_Profile__c,Name,QIS_Status__c,PAE_DetermineAC__c,AE_DetermineResult__c,ETQ_UPLOAD_STATUS__c,QIS_final_judgement__c,OCM_judgement__c,PAE_Determine__c,Id FROM QIS_Report__c WHERE Id =: recordId LIMIT 1]; |
| | | res.Hospital = report.Hospital__c; |
| | | res.HospitalId = report.Hospital__r.Id; |
| | | res.nextAction = report.next_action__c; |
| | | res.SpecialFollow = report.Special_follow__c; |
| | | res.HPID = report.HP_ID__c; |
| | | res.SourceOnCallId = report.Source_OnCall__r.Id; |
| | | res.SourceOnCall = report.Source_OnCall__c; |
| | | res.DepartmentClassId = report.Department_Class__r.Id; |
| | | res.DepartmentClass = report.Department_Class__c; |
| | | res.HospitalDepartment = report.Hospital_Department__c; |
| | | res.HospitalDepartmentId = report.Hospital_Department__r.Id; |
| | | res.nonyushohin = report.nonyushohin__c; |
| | | res.nonyushohinId = report.nonyushohin__r.Id; |
| | | res.TrableOccurDaYCollect = report.Trable_occur_daY_collect__c; |
| | | res.sourceForRepair = report.source_for_repair__c; |
| | | |
| | | |
| | | res.PAEDetermineC = report.PAE_Determine__c; |
| | | res.PAEDetermineACC = report.PAE_DetermineAC__c; |
| | | res.OCMJudgementC = report.OCM_judgement__c; |
| | |
| | | return res; |
| | | } |
| | | |
| | | @AuraEnabled |
| | | public static List<Account> selecctAccountByAccountId(String HospitalDepartmentId){ |
| | | try { |
| | | List<Account> accounts = [SELECT ParentId,Parent.RecordTypeId, Parent.RecordType_DeveloperName__c ,Parent.Parent.FSE_GI_Main_Leader__c, Parent.Parent.FSE_GI_Main_Leader__r.Name,Parent.Parent.FSE_SP_Main_Leader__r.Name,Parent.Parent.FSE_SP_Main_Leader__c,Parent.Parent.FSE_GI_Main_Leader__r.Work_Location__c,Parent.Parent.FSE_SP_Main_Leader__r.Work_Location__c FROM Account WHERE ID=: HospitalDepartmentId]; |
| | | return accounts; |
| | | } catch (Exception e) { |
| | | throw new AuraHandledException(e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | // 查找UserName |
| | | @AuraEnabled |
| | | public static List<User> initUserName(String userId){ |
| | | List<User> res = new List<User>(); |
| | | try{ |
| | | res = [SELECT Id,name,RepairSalesPoint_Province_China__c FROM User WHERE Id=: userId ]; |
| | | }catch(Exception e){ |
| | | System.debug(LoggingLevel.INFO, '*** e: ' + e); |
| | | } |
| | | return res; |
| | | } |
| | | |
| | | public class InitData{ |
| | | @AuraEnabled |
| | | public String SourceOnCallId; |
| | | @AuraEnabled |
| | | public String nonyushohinId; |
| | | @AuraEnabled |
| | | public String Hospital; |
| | | @AuraEnabled |
| | | public String HospitalId; |
| | | @AuraEnabled |
| | | public String nextAction; |
| | | @AuraEnabled |
| | | public Boolean SpecialFollow; |
| | | @AuraEnabled |
| | | public String HPID; |
| | | @AuraEnabled |
| | | public String SourceOnCall; |
| | | @AuraEnabled |
| | | public String DepartmentClassId; |
| | | @AuraEnabled |
| | | public String DepartmentClass; |
| | | @AuraEnabled |
| | | public String HospitalDepartment; |
| | | @AuraEnabled |
| | | public String nonyushohin; |
| | | @AuraEnabled |
| | | public Date TrableOccurDaYCollect; |
| | | @AuraEnabled |
| | | public String sourceForRepair; |
| | | @AuraEnabled |
| | | public String HospitalDepartmentId; |
| | | |
| | | @AuraEnabled |
| | | public String isAEProfileC; |
| | | @AuraEnabled |
| | | public String isCNBuyC; |
| New file |
| | |
| | | public with sharing class lexEquipmentRentalApply_FromSACtl { |
| | | public lexEquipmentRentalApply_FromSACtl() { |
| | | |
| | | } |
| | | |
| | | //获取当前登录人的 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 { |
| | | Statu_Achievements__c rep = [select Id,Name,Opp_Hospitalo__c,Opp_DeptClass__c,Opp_ClassName__c,Opportunity__c from Statu_Achievements__c where Id =: recordId]; |
| | | res.achievement = rep.Name; |
| | | res.hospital = rep.Opp_Hospitalo__c; |
| | | res.departmentClass = rep.Opp_DeptClass__c; |
| | | res.oppClassName = rep.Opp_ClassName__c; |
| | | res.opportunity = rep.Opportunity__c; |
| | | return res; |
| | | } catch (Exception e) { |
| | | throw new AuraHandledException(e.getMessage()); |
| | | } |
| | | } |
| | | public class InitData{ |
| | | @AuraEnabled |
| | | public String achievement; |
| | | @AuraEnabled |
| | | public String hospital; |
| | | @AuraEnabled |
| | | public String departmentClass; |
| | | @AuraEnabled |
| | | public String oppClassName; |
| | | @AuraEnabled |
| | | public String opportunity; |
| | | } |
| | | |
| | | 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> |
| New file |
| | |
| | | public with sharing class lexRentalFixtureSetAssignController { |
| | | |
| | | @AuraEnabled |
| | | public static InitData init(String recordId){ |
| | | InitData res = new InitData(); |
| | | try { |
| | | Rental_Apply__c ra = [SELECT Id, Campaign__c, Campaign__r.Status, Repair__c, Repair_Final_Inspection_Date_F__c, RC_return_to_office__c, |
| | | Status__c, Rental_Apply_Equipment_Set_Cnt__c, demo_purpose2__c FROM Rental_Apply__c where Id = :recordId]; |
| | | |
| | | res.ra = ra; |
| | | System.debug('ra.Campaign__c=='+ra.Campaign__c); |
| | | if(ra.Campaign__c != null){ |
| | | String campId = ra.Campaign__c; |
| | | Campaign camp = [SELECT Id, Status FROM Campaign Where Id = :campId]; |
| | | res.CampaignStatus = camp.Status; |
| | | } |
| | | System.debug('res==='+res); |
| | | return res; |
| | | } |
| | | catch (Exception e) { |
| | | System.debug('lexRentalFixtureSetAssignControllerError==='+e); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | |
| | | public class InitData{ |
| | | @AuraEnabled |
| | | public Rental_Apply__c ra; |
| | | @AuraEnabled |
| | | public String CampaignStatus; |
| | | } |
| | | } |
| New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <ApexClass xmlns="http://soap.sforce.com/2006/04/metadata"> |
| | | <apiVersion>50.0</apiVersion> |
| | | <status>Active</status> |
| | | </ApexClass> |
| | |
| | | res.Name = report.Name; |
| | | res.ContractQuotationOrNotC = report.Contract_quotation_or_not__c; |
| | | res.PaymentPlanSumFirstC = report.Payment_Plan_Sum_First__c; |
| | | res.RecordTypeId1 = Schema.SObjectType.Maintenance_Contract__c.getRecordTypeInfosByName().get('服务合同').getRecordTypeId(); |
| | | System.debug(LoggingLevel.INFO, '*** res: ' + res); |
| | | }catch(Exception e){ |
| | | System.debug(LoggingLevel.INFO, '*** e: ' + e); |
| | |
| | | public static List<Maintenance_Contract_Estimate__c> selectMaintenanceContractEstimate(String recordId){ |
| | | List<Maintenance_Contract_Estimate__c> res = new List<Maintenance_Contract_Estimate__c>(); |
| | | try{ |
| | | res = [SELECT RecordTypeId from Maintenance_Contract_Estimate__c ]; |
| | | res = [SELECT Id from Maintenance_Contract_Estimate__c where Maintenance_Contract__c=:recordId]; |
| | | }catch(Exception e){ |
| | | System.debug(LoggingLevel.INFO, '*** e: ' + e); |
| | | } |
| | |
| | | <apex:inputHidden id="currentPageRecordCnt" value="{!currentPageRecordCnt}"/> |
| | | <!-- 左 ヘッダ --> |
| | | <div id="out_Div_L"> |
| | | <table class="list" style="border-bottom-width: 0px; font-size:11px; border-spacing:0;" border="" id="tableHeader_L"> |
| | | <tr class="dataRow" height="1px"> |
| | | <table class="list" style="border-bottom-width: 0px; font-size:11px; border-spacing:0;table-layout:fixed" border="" id="tableHeader_L"> |
| | | <!-- 20230511 ljh lightning start --> |
| | | <!-- <tr class="dataRow" height="1px"> |
| | | <apex:outputPanel layout="none" rendered="{!hasChkBox}"> |
| | | <td class="col_chk"></td> |
| | | </apex:outputPanel> |
| | | <apex:outputPanel layout="none" rendered="{!Not(hasChkBox)}"> |
| | | <td class="col_noChk"></td> |
| | | |
| | | <td class="col_noChk"></td> |
| | | </apex:outputPanel> |
| | | <apex:variable value="{!0}" var="cnt" /> |
| | | <apex:repeat value="{!titleLeft}" var="t"> |
| | | <td class="col_{!columnLeftCss[cnt]}"></td> |
| | | <apex:variable value="{!cnt + 1}" var="cnt" /> |
| | | </apex:repeat> |
| | | </tr> |
| | | <tr> --> |
| | | <!-- 20230511 ljh lightning end --> |
| | | <tr class="headerRow" height="30px"> |
| | | <apex:outputPanel layout="none" rendered="{!hasChkBox}"> |
| | | <apex:outputPanel layout="none" rendered="{!Not(isRadioBox)}"> |
| | | <td style="width:20px" class="col_chk" align="center"> |
| | | <!-- 20230511 ljh lightning start --> |
| | | <!-- <td style="width:20px" class="col_chk" align="center"> --> |
| | | <td style="width:32px" class="col_chk" align="center"> |
| | | <!-- 20230511 ljh lightning end --> |
| | | <input type='checkbox' onClick='checkAll()' id='checker'/> |
| | | </td> |
| | | </apex:outputPanel> |
| | | </apex:outputPanel> |
| | | |
| | | <apex:outputPanel layout="none" rendered="{!isRadioBox}"> |
| | | <td class="col_chk"></td> |
| | | <!-- 20230511 ljh lightning start --> |
| | | <!-- <td class="col_chk"></td> --> |
| | | <td style="width:32px;" class="col_chk"></td> |
| | | <!-- 20230511 ljh lightning start --> |
| | | </apex:outputPanel> |
| | | |
| | | <apex:outputPanel layout="none" rendered="{!Not(hasChkBox)}"> |
| | | <td class="col_noChk"></td> |
| | | <!-- 20230511 ljh lightning start--> |
| | | <!-- <td class="col_noChk"></td> --> |
| | | <td class="col_noChk" style="display:none"></td> |
| | | <!-- 20230511 ljh lightning end--> |
| | | </apex:outputPanel> |
| | | <apex:variable value="{!0}" var="cnt" /> |
| | | <apex:repeat value="{!titleLeft}" var="t"> |
| | |
| | | </div> |
| | | <!-- 右 ヘッダ --> |
| | | <div id="out_Div"> |
| | | <table class="list" style="border-bottom-width: 0px; font-size:11px; border-spacing:0;" border="" id="tableHeader"> |
| | | <tr class="dataRow" height="1px"> |
| | | <table class="list" style="border-bottom-width: 0px; font-size:11px; border-spacing:0;table-layout:fixed;" border="" id="tableHeader"> |
| | | <!-- 20230512 ljh lightning start--> |
| | | <!-- <tr class="dataRow" height="1px"> |
| | | <apex:variable value="{!0}" var="cnt" /> |
| | | <apex:repeat value="{!titleRight}" var="t"> |
| | | <td class="col_{!columnRightCss[cnt]}"></td> |
| | | <apex:variable value="{!cnt + 1}" var="cnt" /> |
| | | </apex:repeat> |
| | | <td class="col_Scroll"></td> |
| | | </tr> |
| | | <td class="col_Scroll"></td> |
| | | </tr>--> |
| | | <!-- 20230512 ljh lightning end--> |
| | | <tr class="headerRow" height="30px"> |
| | | <apex:variable value="{!0}" var="cnt" /> |
| | | <apex:repeat value="{!titleRight}" var="t"> |
| | | <td class="col_{!columnRightCss[cnt]}"> |
| | | <!-- 20230511 ljh lightning start --> |
| | | <!-- <td class="col_{!columnRightCss[cnt]} "> --> |
| | | <td class="col_{!columnRightCss[cnt]} colViewing" onclick ="test(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;"> |
| | | <!-- 20220107 ljh update start --> |
| | |
| | | <div style="clear:both;height:0px;"></div> |
| | | <!-- 左 データリスト --> |
| | | <div id="in_Div_L"> |
| | | <table class="list" style="border-bottom-width: 0px; font-size:11px; border-spacing:0;" border="" id="tableData_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"> |
| | | <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}"> |
| | | <td class="dataCellBorder1" style="" align="center"> |
| | | <!-- 20230512 ljh lightning add style="width:32px;" --> |
| | | <td class="dataCellBorder1" style="width:32px;" 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> |
| | |
| | | </div> |
| | | <!-- 右 データリスト --> |
| | | <div id="in_Div"> |
| | | <table class="list" style="border-bottom-width: 0px; font-size:11px; border-spacing:0;" border="" id="tableData"> |
| | | <!-- 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"> |
| | | <apex:variable value="{!1}" var="cnt" /> |
| | | <apex:repeat value="{!pageController.viewList}" var="or" id="oppTable"> |
| | | <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);}"> |
| | |
| | | </table> |
| | | </div><!-- /in_Div --> |
| | | </apex:outputPanel> |
| | | <apex:outputPanel layout="none" rendered="{!isDisplayPaging}"> |
| | | <!-- 20230523 ljh lightning 分页 代码换位置 start --> |
| | | <!-- <apex:outputPanel layout="none" rendered="{!isDisplayPaging}"> |
| | | |
| | | <apex:outputPanel layout="none" rendered="{!hasPrevious}"> |
| | | <button onclick="if('{!userCustomPaging}' == 'true') {searchPreviousCustom();} else {searchPreviousJs();}return false;" class="btn">前へ</button> |
| | |
| | | <apex:selectList value="{!goPageInt}" size="1" style="width:50px" id="goPageInt"><apex:selectOptions value="{!pageNumList}" id="pageNumList"/></apex:selectList> |
| | | <button onclick="if('{!userCustomPaging}' == 'true') {searchGoPageCustom();} else {searchGoPageJs();}return false;" class="btn">go</button> |
| | | </apex:outputPanel> |
| | | </apex:outputPanel> |
| | | </apex:outputPanel> --> |
| | | <!-- 20230523 ljh lightning 分页 代码换位置 end --> |
| | | </apex:pageBlock> |
| | | <!-- 20230523 ljh lightning 分页 代码换位置 start --> |
| | | <apex:outputPanel layout="none" rendered="{!isDisplayPaging}"> |
| | | <apex:outputPanel layout="none" rendered="{!hasPrevious}"> |
| | | <button onclick="if('{!userCustomPaging}' == 'true') {searchPreviousCustom();} else {searchPreviousJs();}return false;" class="btn">前へ</button> |
| | | </apex:outputPanel> |
| | | <apex:outputPanel layout="none" rendered="{!!hasPrevious}"> |
| | | <button class="btn" disabled="disabled" |
| | | style="cursor: default;border-color: #e5e5e5; background: #f0f0f0;color: #a8a8a8;">前へ</button> |
| | | </apex:outputPanel> |
| | | |
| | | <span class="count">{!page}</span><span>|</span> |
| | | <span class="count">{!maxPage}</span> |
| | | <apex:outputPanel layout="none" rendered="{!hasNext}"> |
| | | <button onclick="if('{!userCustomPaging}' == 'true') {searchNextCustom();} else {searchNextJs();}return false;" class="btn" >次へ</button> |
| | | </apex:outputPanel> |
| | | <apex:outputPanel layout="none" rendered="{!!hasNext}"> |
| | | <button class="btn" disabled="disabled" |
| | | style="cursor: default;border-color: #e5e5e5; background: #f0f0f0;color: #a8a8a8;">次へ</button> |
| | | </apex:outputPanel> |
| | | |
| | | <apex:outputPanel id="canGoPage" layout="none" rendered="{!canGoPage}"> |
| | | <apex:selectList value="{!goPageInt}" size="1" style="width:50px" id="goPageInt"><apex:selectOptions value="{!pageNumList}" id="pageNumList"/></apex:selectList> |
| | | <button onclick="if('{!userCustomPaging}' == 'true') {searchGoPageCustom();} else {searchGoPageJs();}return false;" class="btn">go</button> |
| | | </apex:outputPanel> |
| | | </apex:outputPanel> |
| | | <!-- 20230523 ljh lightning 分页 代码换位置 end --> |
| | | <script type="text/javascript"> |
| | | var heightAjustment = 120; |
| | | var widthAjustment = 30; |
| | | var bottomspace = '{!bottomSp}'; |
| | | var i = 0; |
| | | j$(document).ready(function(){ |
| | | console.log({!isFirstRefresh}); |
| | | if({!isFirstRefresh}){ |
| | | blockme(); |
| | | init(); |
| | | } |
| | | // 20230523 ljh lightning start |
| | | if(i == 0){ |
| | | tableWidth = j$('body .pbBody table#tableHeader').width(); |
| | | 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(); |
| | | } |
| | | }); |
| | | i++; |
| | | } |
| | | // 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()); |
| | | }); |
| | | // 20230523 ljh lightning end |
| | | }); |
| | | |
| | | function runSFDCAddRemote(MetadataConnectionWarning) { |
| | |
| | | // blockme(); |
| | | sortTablefunc(key); |
| | | } |
| | | // 20230523 ljh lightning start |
| | | // j$(function() { |
| | | // var tableWidth = 0; |
| | | // j$('body .pbBody table#tableHeader tr.headerRow td').each(function() { |
| | | // var colClass = getColClassName(this); |
| | | // if (colClass != 'col_Scroll') { |
| | | // var headerCol = j$('body .pbBody table.list tr.headerRow td.' + colClass); |
| | | // tableWidth += headerCol.width(); |
| | | // } |
| | | // }); |
| | | // j$('table#tableData').css('width', (tableWidth + 2) + 'px'); |
| | | // j$('table#tableHeader').css('width', (tableWidth + 2) + 'px'); |
| | | |
| | | j$(function() { |
| | | var tableWidth = 0; |
| | | j$('body .pbBody table#tableHeader tr.headerRow td').each(function() { |
| | | var colClass = getColClassName(this); |
| | | if (colClass != 'col_Scroll') { |
| | | var headerCol = j$('body .pbBody table.list tr.headerRow td.' + colClass); |
| | | tableWidth += headerCol.width(); |
| | | } |
| | | }); |
| | | j$('table#tableData').css('width', (tableWidth + 2) + 'px'); |
| | | j$('table#tableHeader').css('width', (tableWidth + 2) + 'px'); |
| | | |
| | | // list の headerRow の tdに toggleWidth() を追加 |
| | | bindTdToggleWidth(); |
| | | }); |
| | | // // list の headerRow の tdに toggleWidth() を追加 |
| | | // bindTdToggleWidth(); |
| | | // }); |
| | | // 20230523 ljh lightning end |
| | | var elements = document.getElementsByTagName("select"); |
| | | for (i = 0; i < elements.length; i++) { |
| | | var id = elements[i].id; |
| | |
| | | j$("a[name='out_Div_a']").bind("click",function(event){ |
| | | event.stopPropagation(); |
| | | }); |
| | | windowResize(); |
| | | // windowResize(); // 20230523 ljh lightning |
| | | </script> |
| | | </apex:outputPanel> |
| | | <!-- </apex:form> --> |
| | | </apex:component> |
| | | </apex:component> |
| New file |
| | |
| | | import { |
| | | LightningElement, |
| | | wire, |
| | | api |
| | | } from 'lwc'; |
| | | import { |
| | | CurrentPageReference |
| | | } from "lightning/navigation"; |
| | | import { ShowToastEvent } from 'lightning/platformShowToastEvent'; |
| | | |
| | | export default class LexAccessory_Add extends LightningElement { |
| | | @api recordId; |
| | | IsLoading = true; |
| | | |
| | | @wire(CurrentPageReference) |
| | | getStateParameters(currentPageReference) { |
| | | if (currentPageReference) { |
| | | const urlValue = currentPageReference.state.recordId; |
| | | if (urlValue) { |
| | | let str = `${urlValue}`; |
| | | this.recordId = str; |
| | | } |
| | | } |
| | | } |
| | | |
| | | connectedCallback(){ |
| | | this.IsLoading = false; |
| | | if (this.recordId.length == 0) { |
| | | this.ShowToastEvent("请选择一个借出备品配套一览明细信息", "warning"); |
| | | } else { |
| | | window.open("/apex/AccessoryAdd?recid=" + this.recordId, "_top"); |
| | | } |
| | | } |
| | | |
| | | //弹框 |
| | | ShowToastEvent(msg,type) { |
| | | const event = new ShowToastEvent({ |
| | | title: '', |
| | | message: msg, |
| | | variant: type |
| | | }); |
| | | this.dispatchEvent(event); |
| | | } |
| | | |
| | | } |
copy from force-app/main/default/lwc/lexCustomNewMCMaintenance copy/lexCustomNewMCMaintenance.html
copy to force-app/main/default/lwc/lexAccessory_Select/lexAccessory_Select.html
| New file |
| | |
| | | import { |
| | | LightningElement, |
| | | wire, |
| | | api |
| | | } from 'lwc'; |
| | | import { |
| | | CurrentPageReference |
| | | } from "lightning/navigation"; |
| | | |
| | | |
| | | export default class LexAccessory_Select extends LightningElement { |
| | | @api recordId; |
| | | IsLoading = true; |
| | | |
| | | @wire(CurrentPageReference) |
| | | getStateParameters(currentPageReference) { |
| | | if (currentPageReference) { |
| | | const urlValue = currentPageReference.state.recordId; |
| | | if (urlValue) { |
| | | let str = `${urlValue}`; |
| | | this.recordId = str; |
| | | } |
| | | } |
| | | } |
| | | |
| | | connectedCallback(){ |
| | | this.IsLoading = false; |
| | | if(this.recordId){ |
| | | window.open("/apex/AccessorySelect?pt_recid="+this.recordId, "_top"); |
| | | } |
| | | } |
| | | |
| | | } |
copy from force-app/main/default/lwc/lexCustomNewMaintenance copy/lexCustomNewMaintenance.js-meta.xml
copy to force-app/main/default/lwc/lexAccessory_Select/lexAccessory_Select.js-meta.xml
| | |
| | | } |
| | | }).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'; |
| | |
| | | } |
| | | |
| | | async cancelSubmit(){ |
| | | window.open('/apex/AssetMaintainDetail?id='+this.recordId,'AssetMaintainDetail', 'width=600,height=200'); |
| | | window.open('/apex/AssetMaintainDetail?id='+this.recordId,'_blank'); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | async cancelSubmit(){ |
| | | window.open('/apex/AssetMaintain?id='+this.recordId,'lexAssetMaintainPage', 'width=600,height=200'); |
| | | window.open('/apex/AssetMaintain?id='+this.recordId,'_blank'); |
| | | } |
| | | } |
| | |
| | | } |
| | | }).catch(error => { |
| | | console.log(error); |
| | | }).finally(() => { |
| | | |
| | | }); |
| | | }) |
| | | } |
| | | |
| | | // 复制 |
| | |
| | | } |
| | | }).catch(error => { |
| | | console.log(error); |
| | | }).finally(() => { |
| | | |
| | | }); |
| | | }) |
| | | } |
| | | |
| | | // 复制 |
| | |
| | | <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/buttonCampaignCtl.init'; |
| | | import { |
| | | ShowToastEvent |
| | | } from 'lightning/platformShowToastEvent'; |
| | | |
| | | export default class LexCreateAssessmentReport extends LightningElement { |
| | | @api recordId; |
| | |
| | | if (status == '公开中') { |
| | | window.open("/apex/AssessmentReport?camid=" + this.Id, "_top"); |
| | | } else { |
| | | this.ShowToastEvent("只有批准后才能创建报告!", "error") |
| | | alert("只有批准后才能创建报告!"); |
| | | } |
| | | } |
| | | |
| | | 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> |
| | |
| | | <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/buttonCampaignCtl.init'; |
| | | import { ShowToastEvent } from 'lightning/platformShowToastEvent'; |
| | | |
| | | export default class LexCreateInstructReport extends LightningElement { |
| | | @api recordId; |
| | |
| | | CreateInstructReport() { |
| | | var status = this.Status; |
| | | if (status == '公开中') { |
| | | window.open("/apex/InstructReport?camid="+this.Id, "_top"); |
| | | window.open("/apex/InstructReport?camid=" + this.Id, "_top"); |
| | | } else { |
| | | this.ShowToastEvent("只有批准后才能创建报告!", "error") |
| | | alert("只有批准后才能创建报告!") |
| | | } |
| | | } |
| | | |
| | | 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> |
| | |
| | | if (result != null) { |
| | | this.IsLoading = false; |
| | | this.Id = result.Id; |
| | | this.HospitalC = result.HospitalC; |
| | | this.HospitalIdC = result.HospitalIdC; |
| | | this.DepartmentClassC = result.DepartmentClassC; |
| | | this.DepartmentClassIdC = result.DepartmentClassIdC; |
| | | this.HospitalC = result.HospitalC == undefined ? "" : result.HospitalC;; |
| | | this.HospitalIdC = result.HospitalIdC == undefined ? "" : result.HospitalIdC;; |
| | | this.DepartmentClassC = result.DepartmentClassC == undefined ? "" : result.DepartmentClassC;; |
| | | this.DepartmentClassIdC = result.DepartmentClassIdC == undefined ? "" : result.DepartmentClassIdC;; |
| | | this.Name = result.Name; |
| | | |
| | | this.CreateNewServiceContract(); |
| | |
| | | |
| | | console.log(url); |
| | | |
| | | // window.top.location.href = url; |
| | | window.top.location.href = 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> |
| New file |
| | |
| | | .createEmailHolder{ |
| | | position: relative; |
| | | display: inline-block; |
| | | width: 80px; |
| | | height: 80px; |
| | | text-align: center; |
| | | } |
| | | .container .uiContainerManager{ |
| | | display: none !important; |
| | | } |
| New file |
| | |
| | | <template> |
| | | <div class="createEmailHolder" 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 } 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'; |
| | | |
| | | export default class lexCreateQISFromAsset extends LightningElement { |
| | | @api recordId; |
| | | IsLoading = true; |
| | | Old_Repair_Name; |
| | | |
| | | @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; |
| | | } |
| | | } |
| | | |
| | | } |
| | | }).catch(err=>{ |
| | | console.log("error:"); |
| | | console.log(err); |
| | | }).finally(()=>{ |
| | | |
| | | }); |
| | | } |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | <?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> |
copy from force-app/main/default/lwc/lexCustomNewMCMaintenance copy/lexCustomNewMCMaintenance.html
copy to force-app/main/default/lwc/lexCreateRepairFromAsset/lexCreateRepairFromAsset.html
| New file |
| | |
| | | import { |
| | | LightningElement, |
| | | wire, |
| | | api |
| | | } from 'lwc'; |
| | | import { |
| | | CurrentPageReference |
| | | } from "lightning/navigation"; |
| | | import { |
| | | CloseActionScreenEvent |
| | | } from 'lightning/actions'; |
| | | import init from '@salesforce/apex/buttonAssetCtl.init'; |
| | | import initUserName from '@salesforce/apex/buttonAssetCtl.initUserName'; |
| | | import selecctAccountByAccountId from '@salesforce/apex/buttonAssetCtl.selecctAccountByAccountId'; |
| | | import selecctProduct2ById from '@salesforce/apex/buttonAssetCtl.selecctProduct2ById'; |
| | | import selecctRepairByFomatToday from '@salesforce/apex/buttonAssetCtl.selecctRepairByFomatToday'; |
| | | import selecctQISReportByFomatToday from '@salesforce/apex/buttonAssetCtl.selecctQISReportByFomatToday'; |
| | | |
| | | export default class LexCreateRepairFromAsset extends LightningElement { |
| | | @api recordId; |
| | | str; |
| | | IsLoading = true; |
| | | Id; |
| | | userID; |
| | | EmployeeNoC; |
| | | day; |
| | | day1; |
| | | day2; |
| | | Name; |
| | | NoPartRiskDateFC; |
| | | ProductIDC; |
| | | AccountId; |
| | | HPIdC; |
| | | HospitalC; |
| | | DepartmentClassC; |
| | | HospitalId; |
| | | DepartmentClassId; |
| | | RepairSalesPointProvinceChinaC; |
| | | notCreateRepairFromAssetButton; |
| | | notCreateRepairFromAssetButton02; |
| | | |
| | | @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 => { |
| | | console.log(result); |
| | | if (result != null) { |
| | | this.IsLoading = false; |
| | | this.Id = result.Id; |
| | | this.userID = result.userID; |
| | | this.day = result.day; |
| | | this.day1 = result.day1; |
| | | this.day2 = result.day2; |
| | | this.Name = result.Name; |
| | | this.NoPartRiskDateFC = result.NoPartRiskDateFC == undefined ? "" : result.NoPartRiskDateFC; |
| | | this.ProductIDC = result.ProductIDC == undefined ? "" : result.ProductIDC; |
| | | this.AccountId = result.AccountId == undefined ? "" : result.AccountId; |
| | | this.HPIdC = result.HPIdC == undefined ? "" : result.HPIdC; |
| | | this.HospitalC = result.HospitalC == undefined ? "" : result.HospitalC; |
| | | this.DepartmentClassC = result.DepartmentClassC == undefined ? "" : result.DepartmentClassC; |
| | | this.HospitalId = result.HospitalId == undefined ? "" : result.HospitalId; |
| | | this.DepartmentClassId = result.DepartmentClassId == undefined ? "" : result.DepartmentClassId; |
| | | this.notCreateRepairFromAssetButton = result.notCreateRepairFromAssetButton; |
| | | this.notCreateRepairFromAssetButton02 = result.notCreateRepairFromAssetButton02; |
| | | |
| | | initUserName({ |
| | | userId: this.userID |
| | | }).then(result => { |
| | | console.log(result); |
| | | if (result != null) { |
| | | this.EmployeeNoC = result[0].Employee_No__c; |
| | | this.RepairSalesPointProvinceChinaC = result[0].RepairSalesPoint_Province_China__c; |
| | | } |
| | | this.CreateRepairFromAsset(); |
| | | }) |
| | | |
| | | |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | }).catch(error => { |
| | | console.log(error); |
| | | }) |
| | | } |
| | | |
| | | // 新建修理 |
| | | CreateRepairFromAsset() { |
| | | var nCRepairFromAssetBSting = this.notCreateRepairFromAssetButton; |
| | | var nCRepairFromAssetB02Sting = this.notCreateRepairFromAssetButton02; |
| | | nCRepairFromAssetBSting = nCRepairFromAssetBSting + nCRepairFromAssetB02Sting; |
| | | var nCRepairFromAssetBList = nCRepairFromAssetBSting.split(','); |
| | | var EmployeeNo = this.EmployeeNoC; |
| | | |
| | | if (nCRepairFromAssetBList.indexOf(EmployeeNo) != -1) { |
| | | alert("对不起,您无权使用此按钮创建修理!"); |
| | | 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 = ''; |
| | | |
| | | selecctQISReportByFomatToday({ |
| | | AssetId: this.Id, |
| | | fomatToday: fomatToday |
| | | }).then(records => { |
| | | console.log(records); |
| | | if (records.length >= 1) { |
| | | var boolday = confirm('请确认此件是否属于10天内重复报告,如果是,请使用原QIS信息填写。'); |
| | | if (!boolday) { |
| | | return; |
| | | } |
| | | } |
| | | if (records.length >= 1) { |
| | | QIS_Name = records[0].Name; |
| | | QIS_Id = records[0].Id; |
| | | } |
| | | }) |
| | | selecctRepairByFomatToday({ |
| | | AssetId: this.Id, |
| | | fomatToday: fomatToday |
| | | }).then(records2 => { |
| | | console.log(records2); |
| | | if (records2.length >= 1) { |
| | | var boolday = confirm('此件设备如为10天内重复报告,建议回到原修理单使用复制功能提交。请确认是否继续新建修理? '); |
| | | if (!boolday) { |
| | | return; |
| | | } |
| | | } |
| | | if (records2.length >= 1) { |
| | | Old_Repair_Name = records2[0].Name; |
| | | } |
| | | }) |
| | | 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联络'); |
| | | } |
| | | selecctProduct2ById({ |
| | | Id: this.ProductIDC |
| | | }).then(recordP => { |
| | | console.log(recordP); |
| | | |
| | | if (recordP != null && recordP.length > 0) { |
| | | var canRepair = recordP[0].Can_Repair__c; |
| | | if (canRepair == '第三方') { |
| | | alert('非我司修理对象,无法新建修理,如有不明请咨询CIC'); |
| | | return; |
| | | } |
| | | if (canRepair == '不' || canRepair == null) { |
| | | alert('本设备无法新建修理'); |
| | | return; |
| | | } |
| | | if (canRepair == 'RC送修') { |
| | | url1 = "&00N10000009HAJl=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']; |
| | | } |
| | | |
| | | } |
| | | } |
| | | 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); |
| | | }) |
| | | } |
| | | } |
| New file |
| | |
| | | <?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> |
| | | <target>lightning__FlowScreen</target> |
| | | </targets> |
| | | <!-- 定义变量 --> |
| | | <targetConfigs> |
| | | <targetConfig targets="lightning__FlowScreen"> |
| | | <property name="recordId" type="String" label="recordId"/> |
| | | </targetConfig> |
| | | </targetConfigs> |
| | | </LightningComponentBundle> |
copy from force-app/main/default/lwc/lexCustomNewMCMaintenance copy/lexCustomNewMCMaintenance.html
copy to force-app/main/default/lwc/lexCreateRepairFromDepartment/lexCreateRepairFromDepartment.html
| New file |
| | |
| | | import { |
| | | LightningElement, |
| | | wire, |
| | | api |
| | | } from 'lwc'; |
| | | import { |
| | | CurrentPageReference |
| | | } from "lightning/navigation"; |
| | | import { |
| | | CloseActionScreenEvent |
| | | } from 'lightning/actions'; |
| | | import init from '@salesforce/apex/buttonAccountCtl.init'; |
| | | import initUserName from '@salesforce/apex/buttonAccountCtl.initUserName'; |
| | | import selecctAccountByAccountId from '@salesforce/apex/buttonAccountCtl.selecctAccountByAccountId'; |
| | | |
| | | export default class LexCreateRepairFromDepartment extends LightningElement { |
| | | @api recordId; |
| | | str; |
| | | IsLoading = true; |
| | | Id; |
| | | RepairSalesPointProvinceChinaC; |
| | | HospitalC; |
| | | HospitalId; |
| | | DepartmentClassC; |
| | | DepartmentClassId; |
| | | Name; |
| | | userID; |
| | | |
| | | @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 => { |
| | | 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.DepartmentClassC = result.DepartmentClassC == undefined ? "" : result.DepartmentClassC;; |
| | | this.DepartmentClassId = result.DepartmentClassId == undefined ? "" : result.DepartmentClassId;; |
| | | this.Name = result.Name; |
| | | this.userID = result.userID; |
| | | |
| | | initUserName({ |
| | | userId: this.userID |
| | | }).then(result => { |
| | | console.log(result); |
| | | if (result != null) { |
| | | this.RepairSalesPointProvinceChinaC = result[0].RepairSalesPoint_Province_China__c; |
| | | } |
| | | this.CreateRepairFromDepartment(); |
| | | }) |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | }).catch(error => { |
| | | console.log(error); |
| | | }) |
| | | } |
| | | |
| | | |
| | | //新建修理 |
| | | CreateRepairFromDepartment() { |
| | | var RecordTypeId; |
| | | var Incharge_Staff = ''; |
| | | var Incharge_Staff_id = ''; |
| | | var Work_Location = ''; |
| | | var FSE_GI_Main_Leader__id = ''; |
| | | var FSE_GI_Main_Leader__name = ''; |
| | | var FSE_SP_Main_Leader__id = ''; |
| | | var FSE_SP_Main_Leader__name = ''; |
| | | |
| | | selecctAccountByAccountId({ |
| | | AccountId: this.Id |
| | | }).then(List => { |
| | | console.log(List); |
| | | if (List[0]['ParentId'] != null) { |
| | | RecordTypeId = List[0]['Parent']['RecordType_DeveloperName__c'].substring(0, 15); |
| | | console.log(RecordTypeId); |
| | | 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); |
| | | console.log(recordId); |
| | | 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; |
| | | } |
| | | } |
| | | 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); |
| | | }) |
| | | } |
| | | } |
| New file |
| | |
| | | <?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> |
| | | <target>lightning__FlowScreen</target> |
| | | </targets> |
| | | <!-- 定义变量 --> |
| | | <targetConfigs> |
| | | <targetConfig targets="lightning__FlowScreen"> |
| | | <property name="recordId" type="String" label="recordId"/> |
| | | </targetConfig> |
| | | </targetConfigs> |
| | | </LightningComponentBundle> |
copy from force-app/main/default/lwc/lexCustomNewMCMaintenance copy/lexCustomNewMCMaintenance.html
copy to force-app/main/default/lwc/lexCreateRepairFromOnCall/lexCreateRepairFromOnCall.html
| New file |
| | |
| | | import { |
| | | LightningElement, |
| | | wire, |
| | | api |
| | | } from 'lwc'; |
| | | import { |
| | | CurrentPageReference |
| | | } from "lightning/navigation"; |
| | | import { |
| | | CloseActionScreenEvent |
| | | } from 'lightning/actions'; |
| | | import init from '@salesforce/apex/buttonOnCallCtl.init'; |
| | | import selecctAccountBySegmentId from '@salesforce/apex/buttonOnCallCtl.selecctAccountBySegmentId'; |
| | | import selecctAccountBySegmentId02 from '@salesforce/apex/buttonOnCallCtl.selecctAccountBySegmentId02'; |
| | | import initUserName from '@salesforce/apex/buttonOnCallCtl.initUserName'; |
| | | |
| | | export default class LexCreateRepairFromOnCall extends LightningElement { |
| | | @api recordId; |
| | | str; |
| | | IsLoading = true; |
| | | Id; |
| | | RepairSalesPointProvinceChinaC; |
| | | Name; |
| | | SegmentC; |
| | | HPC; |
| | | HospitalIdC; |
| | | SalesdepartmentHPIDC; |
| | | SalesdepartmentHPC; |
| | | OncallEquipmentC; |
| | | TrableOccurdaYCollectC; |
| | | userID; |
| | | SegmentId; |
| | | OncallEquipmentId; |
| | | |
| | | @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 => { |
| | | console.log(result); |
| | | if (result != null) { |
| | | this.IsLoading = false; |
| | | this.Id = result.Id; |
| | | this.Name = result.Name; |
| | | this.SegmentC = result.SegmentC == undefined ? "" : result.SegmentC; |
| | | this.HPC = result.HPC == undefined ? "" : result.HPC; |
| | | this.HospitalIdC = result.HospitalIdC == undefined ? "" : result.HospitalIdC; |
| | | this.SalesdepartmentHPIDC = result.SalesdepartmentHPIDC == undefined ? "" : result.SalesdepartmentHPIDC; |
| | | this.SalesdepartmentHPC = result.SalesdepartmentHPC == undefined ? "" : result.SalesdepartmentHPC; |
| | | this.OncallEquipmentC = result.OncallEquipmentC == undefined ? "" : result.OncallEquipmentC; |
| | | this.TrableOccurdaYCollectC = result.TrableOccurdaYCollectC == undefined ? "" : result.TrableOccurdaYCollectC; |
| | | this.userID = result.userID; |
| | | this.SegmentId = result.SegmentId == undefined ? "" : result.SegmentId; |
| | | this.OncallEquipmentId = result.OncallEquipmentId == undefined ? "" : result.OncallEquipmentId; |
| | | |
| | | initUserName({ |
| | | userId: this.userID |
| | | }).then(result => { |
| | | console.log(result); |
| | | if (result != null) { |
| | | this.RepairSalesPointProvinceChinaC = result[0].RepairSalesPoint_Province_China__c; |
| | | } |
| | | this.CreateRepairFromOnCall(); |
| | | }) |
| | | |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | }).catch(error => { |
| | | console.log(error); |
| | | }) |
| | | } |
| | | |
| | | //新建修理 |
| | | CreateRepairFromOnCall() { |
| | | var Work_Location = ''; |
| | | var Incharge_Staff = ''; |
| | | var Incharge_Staff_id = ''; |
| | | 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 RecordTypeId; |
| | | |
| | | selecctAccountBySegmentId({ |
| | | segmentId: this.SegmentId |
| | | }).then(List => { |
| | | console.log(List); |
| | | if (List[0]['ParentId']) { |
| | | RecordTypeId = List[0]['Parent']['RecordType_DeveloperName__c'].substring(0, 15); |
| | | console.log(RecordTypeId); |
| | | } |
| | | |
| | | selecctAccountBySegmentId02({ |
| | | segmentId: this.SegmentId |
| | | }).then(account => { |
| | | console.log(account); |
| | | if (account[0].ParentId != null) { |
| | | if (account[0].Parent.RecordTypeId != null || account[0].Parent.RecordTypeId != undefined) { |
| | | var recordId = account[0].Parent.RecordType_DeveloperName__c.substring(0, 15); |
| | | console.log(recordId); |
| | | if (recordId == 'Department_Class_GI' || recordId == 'Department_Class_BF' || recordId == 'Department_Class_ET') { |
| | | if (account[0].Parent.Parent.FSE_GI_Main_Leader__c != null) { |
| | | Work_Location = account[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 (account[0].Parent.Parent.FSE_SP_Main_Leader__c != null) { |
| | | Work_Location = account[0].Parent.Parent.FSE_SP_Main_Leader__r.Work_Location__c; |
| | | } |
| | | } |
| | | } |
| | | |
| | | 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 (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?CF00N10000002FIJU_lkid=" + this.Id + "&CF00N10000002FIJU=" + this.Name + "&CF00N10000002Dx66_lkid=" + this.HospitalIdC + "&CF00N10000002Dx66=" + this.HPC + "&CF00N10000002Dx5t_lkid=" + this.SalesdepartmentHPIDC + "&CF00N10000002Dx5t=" + this.SalesdepartmentHPC + "&CF00N10000002Dx5n_lkid=" + this.SegmentId + "&CF00N10000002Dx5n=" + this.SegmentC + "&CF00N10000002Dx1X_lkid=" + this.OncallEquipmentId + "&CF00N10000002Dx1X=" + this.OncallEquipmentC + "&CF00N10000002EMHw_lkid=" + Incharge_Staff_id + "&CF00N10000002EMHw=" + Incharge_Staff + "&00N10000002Dx5y=" + this.TrableOccurdaYCollectC + "&00N10000002FH86=%e4%bb%8eOn-Call&00N10000006P6Rn=" + this.RepairSalesPointProvinceChinaC + "&00N10000006P6SM=" + encodeURI(Work_Location) + "&retURL=%2F" + this.Id; |
| | | window.open(url); |
| | | }) |
| | | }) |
| | | } |
| | | } |
| New file |
| | |
| | | <?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> |
| | | <target>lightning__FlowScreen</target> |
| | | </targets> |
| | | <!-- 定义变量 --> |
| | | <targetConfigs> |
| | | <targetConfig targets="lightning__FlowScreen"> |
| | | <property name="recordId" type="String" label="recordId"/> |
| | | </targetConfig> |
| | | </targetConfigs> |
| | | </LightningComponentBundle> |
copy from force-app/main/default/lwc/lexCustomNewMCMaintenance copy/lexCustomNewMCMaintenance.html
copy to force-app/main/default/lwc/lexCreateRepairFromQIS/lexCreateRepairFromQIS.html
| New file |
| | |
| | | import { |
| | | LightningElement, |
| | | wire, |
| | | api |
| | | } from 'lwc'; |
| | | import { |
| | | CurrentPageReference |
| | | } from "lightning/navigation"; |
| | | import { |
| | | CloseActionScreenEvent |
| | | } from 'lightning/actions'; |
| | | import init from '@salesforce/apex/buttonQISReportCtl.init'; |
| | | import initUserName from '@salesforce/apex/buttonQISReportCtl.initUserName'; |
| | | import selecctAccountByAccountId from '@salesforce/apex/buttonQISReportCtl.selecctAccountByAccountId'; |
| | | |
| | | export default class LexCreateRepairFromQIS extends LightningElement { |
| | | @api recordId; |
| | | str; |
| | | IsLoading = true; |
| | | Id; |
| | | Name; |
| | | RepairSalesPointProvinceChinaC; |
| | | Hospital; |
| | | HospitalId; |
| | | nextAction; |
| | | SpecialFollow; |
| | | HPID; |
| | | SourceOnCall; |
| | | DepartmentClassId; |
| | | DepartmentClass; |
| | | HospitalDepartment; |
| | | nonyushohin; |
| | | TrableOccurDaYCollect; |
| | | sourceForRepair; |
| | | OCMJudgementC |
| | | HospitalDepartmentId; |
| | | userId; |
| | | SourceOnCallId; |
| | | nonyushohinId; |
| | | |
| | | @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 => { |
| | | 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.nonyushohinId = result.nonyushohinId == undefined ? "" : result.nonyushohinId; |
| | | this.Hospital = result.Hospital == undefined ? "" : result.Hospital; |
| | | this.HospitalId = result.HospitalId == undefined ? "" : result.HospitalId; |
| | | this.nextAction = result.nextAction == undefined ? "" : result.nextAction; |
| | | this.SpecialFollow = result.SpecialFollow == undefined ? "" : result.SpecialFollow; |
| | | this.HPID = result.HPID == undefined ? "" : result.HPID; |
| | | this.SourceOnCall = result.SourceOnCall == undefined ? "" : result.SourceOnCall; |
| | | this.DepartmentClassId = result.DepartmentClassId == undefined ? "" : result.DepartmentClassId; |
| | | this.DepartmentClass = result.DepartmentClass == undefined ? "" : result.DepartmentClass; |
| | | this.HospitalDepartment = result.HospitalDepartment == undefined ? "" : result.HospitalDepartment; |
| | | this.nonyushohin = result.nonyushohin == undefined ? "" : result.nonyushohin; |
| | | this.TrableOccurDaYCollect = result.TrableOccurDaYCollect == undefined ? "" : result.TrableOccurDaYCollect; |
| | | this.sourceForRepair = result.sourceForRepair == undefined ? "" : result.sourceForRepair; |
| | | this.OCMJudgementC = result.OCMJudgementC == undefined ? "" : result.OCMJudgementC; |
| | | this.HospitalDepartmentId = result.HospitalDepartmentId == undefined ? "" : result.HospitalDepartmentId; |
| | | this.userId = result.userId; |
| | | |
| | | initUserName({ |
| | | userId: this.userId |
| | | }).then(result => { |
| | | console.log(result); |
| | | if (result != null) { |
| | | this.RepairSalesPointProvinceChinaC = result[0].RepairSalesPoint_Province_China__c; |
| | | } |
| | | 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; |
| | | } |
| | | console.log(newflag); |
| | | if (newflag) { |
| | | selecctAccountByAccountId({ |
| | | HospitalDepartmentId: this.HospitalDepartmentId |
| | | }).then(List => { |
| | | console.log(List); |
| | | var RecordTypeId; |
| | | 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 (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); |
| | | |
| | | }) |
| | | } else { |
| | | alert("不能新建修理"); |
| | | } |
| | | } |
| | | } |
| New file |
| | |
| | | <?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> |
| | | <target>lightning__FlowScreen</target> |
| | | </targets> |
| | | <!-- 定义变量 --> |
| | | <targetConfigs> |
| | | <targetConfig targets="lightning__FlowScreen"> |
| | | <property name="recordId" type="String" label="recordId"/> |
| | | </targetConfig> |
| | | </targetConfigs> |
| | | </LightningComponentBundle> |
| | |
| | | } |
| | | }).catch(error => { |
| | | console.log(error); |
| | | }).finally(() => { |
| | | |
| | | }); |
| | | }) |
| | | } |
| | | |
| | | // 制作报告书 |
| | |
| | | <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> |
| | |
| | | } from 'lightning/actions'; |
| | | import init from '@salesforce/apex/otherButtonMaintenanceContractCtl.init'; |
| | | import selectMaintenanceContractEstimate from '@salesforce/apex/otherButtonMaintenanceContractCtl.selectMaintenanceContractEstimate'; |
| | | import { |
| | | ShowToastEvent |
| | | } from 'lightning/platformShowToastEvent'; |
| | | |
| | | export default class LexCustomAnewMaintenance extends LightningElement { |
| | | @api recordId; |
| | |
| | | IsLoading = true; |
| | | Id; |
| | | StatusC; |
| | | RecordTypeId; |
| | | RecordTypeDeveloperNameC; |
| | | URFContractC; |
| | | |
| | | @wire(CurrentPageReference) |
| | |
| | | if (result != null) { |
| | | this.IsLoading = false; |
| | | this.Id = result.Id; |
| | | this.RecordTypeId = result.RecordTypeId; |
| | | this.RecordTypeDeveloperNameC = result.RecordTypeDeveloperNameC; |
| | | this.StatusC = result.StatusC; |
| | | this.URFContractC = result.URFContractC; |
| | | |
| | |
| | | //中止 |
| | | CustomAnew() { |
| | | if (this.StatusC != "引合中") { |
| | | this.ShowToastEvent("维修合同不是询价中的状态,不能再报价", "error") |
| | | // alert("维修合同不是询价中的状态,不能再报价"); |
| | | alert("维修合同不是询价中的状态,不能再报价") |
| | | } else { |
| | | init().then(result => { |
| | | if (result.length == 1) { |
| | | if (this.RecordTypeId == "01210000000gTYq") { |
| | | //URF限次合同2期 LY 20220902 start |
| | | selectMaintenanceContractEstimate({ |
| | | recordId: this.Id |
| | | }).then(ids => { |
| | | console.log(ids); |
| | | if (ids.length == 1) { |
| | | if (this.RecordTypeDeveloperNameC == "NewMaintenance_Contract") { |
| | | if (this.URFContractC == true) { |
| | | window.open("/apex/SelectAssetEstimateURF?copyid=" + ids[0], "_top"); |
| | | window.open("/apex/SelectAssetEstimateURF?copyid=" + ids[0].Id, "_top"); |
| | | } else { |
| | | window.open("/apex/SelectAssetEstimateVM?copyid=" + ids[0], "_top"); |
| | | window.open("/apex/SelectAssetEstimateVM?copyid=" + ids[0].Id, "_top"); |
| | | } |
| | | //URF限次合同2期 LY 20220902 end |
| | | } else { |
| | | window.open("/apex/SelectAssetEstimate?copyid=" + ids[0], "_top"); |
| | | window.open("/apex/SelectAssetEstimate?copyid=" + ids[0].Id, "_top"); |
| | | } |
| | | |
| | | } else { |
| | | this.ShowToastEvent('请选择一个报价', "error") |
| | | // alert('请选择一个报价'); |
| | | alert('请选择一个报价') |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | |
| | | // 弹窗 |
| | | 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> |
| | |
| | | <template> |
| | | <div class="exampleHolder" if:true={IsLoading}> |
| | | <div class="toReportHolder" if:true={IsLoading}> |
| | | <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner> |
| | | </div> |
| | | </template> |
| | |
| | | Id; |
| | | StatusC; |
| | | IsRecognitionModelC; |
| | | RecordTypeId; |
| | | URFContractC; |
| | | RecordTypeDeveloperNameC; |
| | | |
| | | @wire(CurrentPageReference) |
| | | getStateParameters(currentPageReference) { |
| | |
| | | this.Id = result.Id; |
| | | this.StatusC = result.StatusC; |
| | | this.IsRecognitionModelC = result.IsRecognitionModelC; |
| | | this.RecordTypeId = result.RecordTypeId; |
| | | this.RecordTypeId1 = result.RecordTypeId1; |
| | | this.URFContractC = result.URFContractC; |
| | | this.RecordTypeDeveloperNameC = result.RecordTypeDeveloperNameC; |
| | | |
| | | this.CustomNewMC(); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | |
| | | |
| | | // 新建新服务合同报价 |
| | | CustomNewMC() { |
| | | if ( this.StatusC != "引合中") { |
| | | if (this.StatusC != "引合中") { |
| | | alert("维修合同不是询价中的状态,不能新建报价"); |
| | | window.history.go(-1); |
| | | } else { |
| | | //维修合同新建报价时,如果是先款对象,弹出对话框提示 thh 20220304 start |
| | | if (this.IsRecognitionModelC == 1) { |
| | | if (!confirm("该经销商为先款对象,是否继续新建报价?")) { |
| | | window.history.go(-1); |
| | | return; |
| | | } |
| | | } |
| | | //维修合同新建报价时,如果是先款对象,弹出对话框提示 thh 20220304 end |
| | | if (this.RecordTypeId == this.RecordTypeId1) { |
| | | if (this.URFContractC == "0") { |
| | | 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"); |
| | | } |
| | | |
| | | } |
| | | } |
| | | } |
| | |
| | | <!-- 定义变量 --> |
| | | <targetConfigs> |
| | | <targetConfig targets="lightning__FlowScreen"> |
| | | <property name="recordId" type="String" label="recordId"/> |
| | | <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> |
| | | <lightning-button label="Show Toast" onclick={ShowToastEvent}></lightning-button> |
| | | </div> |
| | | </template> |
| | |
| | | CloseActionScreenEvent |
| | | } from 'lightning/actions'; |
| | | import init from '@salesforce/apex/otherButtonMaintenanceContractCtl.init'; |
| | | import { |
| | | ShowToastEvent |
| | | } from 'lightning/platformShowToastEvent'; |
| | | |
| | | export default class LexCustomNewMaintenance extends LightningElement { |
| | | @api recordId; |
| | |
| | | IsLoading = true; |
| | | Id; |
| | | StatusC; |
| | | RecordTypeId; |
| | | RecordTypeDeveloperNameC; |
| | | |
| | | @wire(CurrentPageReference) |
| | | getStateParameters(currentPageReference) { |
| | |
| | | this.IsLoading = false; |
| | | this.Id = result.Id; |
| | | this.StatusC = result.StatusC; |
| | | this.RecordTypeId = result.RecordTypeId; |
| | | this.RecordTypeDeveloperNameC = result.RecordTypeDeveloperNameC; |
| | | |
| | | this.CustomNew(); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | |
| | | // 新建维修合同报价 |
| | | CustomNew() { |
| | | if (this.StatusC != "引合中") { |
| | | this.ShowToastEvent("维修合同不是询价中的状态,不能新建报价", "error"); |
| | | // alert("维修合同不是询价中的状态,不能新建报价"); |
| | | alert("维修合同不是询价中的状态,不能新建报价"); |
| | | } else { |
| | | if (this.RecordTypeId == "01210000000gTYq") { |
| | | if (this.RecordTypeDeveloperNameC == "NewMaintenance_Contract") { |
| | | window.open("/apex/SelectAssetEstimateVM?mcid=" + this.Id, "_top"); |
| | | } else { |
| | | window.open("/apex/SelectAssetEstimate?mcid=" + this.Id, "_top"); |
| | | } |
| | | } |
| | | } |
| | | |
| | | // 弹窗 |
| | | 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> |
| | |
| | | } |
| | | |
| | | async cancelSubmit(){ |
| | | window.open('/apex/TransferApplySelectDetailSub?id='+this.recordId,'DetailBulkUpdateLWC', 'width=600,height=200'); |
| | | window.open('/apex/TransferApplySelectDetailSub?id='+this.recordId,'_blank'); |
| | | } |
| | | |
| | | //old js |
| 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/lexEquipmentRentalApply_FromQISCtl.rentalApp'; |
| | | import rentalApp 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'; |
| | | |
| | | // 新建备品借出申请(QIS) |
| | | export default class LexEquipmentRentalApply_FromQIS2 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{ |
| | | const defaultValues = encodeDefaultFieldValues({ |
| | | QIS_Report__c: this.recordId, |
| | | Hospital: result.hospital, |
| | | Strategic_dept: result.departmentClass, |
| | | Account:result.hospitalDepartment, |
| | | Demo_purpose1:'维修代用', |
| | | demo_purpose2:'索赔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 |
| | | }); |
| | | |
| | | this[NavigationMixin.Navigate]({ |
| | | type: 'standard__objectPage', |
| | | attributes: { |
| | | objectApiName: 'Rental_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"> |
| | | <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> |
| | | </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/lexEquipmentRentalApply_FromSACtl.init'; |
| | | import UserInfo_Owner from '@salesforce/apex/lexEquipmentRentalApply_FromSACtl.UserInfo_Owner'; |
| | | import { ShowToastEvent } from 'lightning/platformShowToastEvent'; |
| | | import { encodeDefaultFieldValues } from 'lightning/pageReferenceUtils'; |
| | | import RentalApplyCheckForSAoneEle from '@salesforce/apex/RentalApplyWebService.RentalApplyCheckForSAoneEle'; |
| | | |
| | | // 新建备品借出申请(注残) |
| | | export default class LexEquipmentRentalApply_FromSA 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); |
| | | // if(rtn == 'Fin'){ |
| | | // var url = '/a0t/e?CF00N10000006pvpb={!URLENCODE(Statu_Achievements__c.Name)}&CF00N10000006pvpb_lkid={!URLENCODE(Statu_Achievements__c.Id)}&retURL=%2F{!URLENCODE(Statu_Achievements__c.Id)}&CF00N10000003Mp1d={!URLENCODE(Statu_Achievements__c.Opp_Hospitalo__c)}&CF00N10000003Mp1d_lkid={!URLENCODE(Statu_Achievements__c.Opp_Hospital_Id__c)}&Name={!URLENCODE('*')}&00N10000003Msk0={!URLENCODE('产品试用')}&00N10000003Msk5={!URLENCODE('已购待货')}&CF00N10000003O3V6={!URLENCODE(Statu_Achievements__c.Opp_DeptClass__c)}&CF00N10000003O3V6_lkid={!URLENCODE(Statu_Achievements__c.Opp_DeptClass_Id__c)}&CF00N10000003Mp2R={!Statu_Achievements__c.Opp_ClassName__c}&CF00N10000003Mp2R_lkid={!URLENCODE(Statu_Achievements__c.Opp_Class_Id__c)}&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)}&CF00N10000003O3VB={!URLENCODE(Statu_Achievements__c.Opportunity__c)}&CF00N10000003O3VB_lkid={!URLENCODE(Statu_Achievements__c.OpportunityId__c)}' |
| | | // window.top.location.href = url; |
| | | // }else{ |
| | | // alert(rtn ); |
| | | // } |
| | | RentalApplyCheckForSAoneEle({SaID:this.recordId}) |
| | | .then(res=>{ |
| | | if(res == 'Fin'){ |
| | | init({ |
| | | recordId: this.recordId |
| | | }).then(result => { |
| | | this.IsLoading = false; |
| | | |
| | | if (result != null) { |
| | | UserInfo_Owner({}).then(res=>{ |
| | | if(res.isFormalStuff == 'true'){ |
| | | this.showToast('试用期内,不能申请','warning'); |
| | | return; |
| | | }else{ |
| | | const defaultValues = encodeDefaultFieldValues({ |
| | | Statu_Achievements: result.achievement, |
| | | retURL:this.recordId, |
| | | Hospital: 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 |
| | | }); |
| | | |
| | | this[NavigationMixin.Navigate]({ |
| | | type: 'standard__objectPage', |
| | | attributes: { |
| | | objectApiName: 'Rental_Apply__c', |
| | | actionName: 'new' |
| | | }, |
| | | state:{ |
| | | defaultFieldValues: this.defaultValues |
| | | } |
| | | }) |
| | | } |
| | | }) |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | // window.location.reload(); |
| | | } |
| | | }).catch(error => { |
| | | console.log("error"); |
| | | console.log(error); |
| | | }) |
| | | }else{ |
| | | this.showToast(res,'warning'); |
| | | return; |
| | | } |
| | | }) |
| | | .catch(err=>{console.log(err)}) |
| | | } |
| | | |
| | | 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"> |
| | | <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> |
| | | </LightningComponentBundle> |
| | |
| | | } |
| | | |
| | | async cancelSubmit(){ |
| | | window.open('/apex/Lost_Return_DeliverySlip?id='+this.recordId,'LostReturnDeliverySlip', 'width=600,height=200'); |
| | | window.open('/apex/Lost_Return_DeliverySlip?id='+this.recordId,'_blank'); |
| | | } |
| | | |
| | | //old js |
| | |
| | | if (result.length > 0) { |
| | | var split = result.split(", "); |
| | | alert(split[1]); |
| | | } |
| | | window.location.reload(); |
| | | } |
| | | window.location.reload(); |
| | | }) |
| | | } else { |
| | | this.ShowToastEvent("没有AwareDate或已经OCSM行政报告,请确认。", "error") |
| | |
| | | } |
| | | }).catch(error => { |
| | | console.log(error); |
| | | }).finally(() => { |
| | | |
| | | }); |
| | | }) |
| | | } |
| | | |
| | | // 打印维修委托书 |
| New file |
| | |
| | | .exampleHolder{ |
| | | position: relative; |
| | | top: 0; |
| | | width: 0; |
| | | left: 0; |
| | | right: 0; |
| | | margin: 0 auto; |
| | | } |
| | | |
| | | .uiContainerManager { |
| | | display:none; |
| | | } |
| New file |
| | |
| | | <template> |
| | | |
| | | </template> |
| New file |
| | |
| | | import { LightningElement,wire,track,api} from 'lwc'; |
| | | import { CurrentPageReference } from "lightning/navigation"; |
| | | import { CloseActionScreenEvent } from 'lightning/actions'; |
| | | import { ShowToastEvent } from 'lightning/platformShowToastEvent'; |
| | | |
| | | import init from '@salesforce/apex/LexPast2YearsRepairPriceReportController.init'; |
| | | export default class lexPast2YearsRepairPriceReport extends LightningElement { |
| | | @api recordId; |
| | | |
| | | |
| | | @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(returnData => { |
| | | console.log(returnData); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | // /lightning/r/Report/00O100000058Bzh/view?fv0={!Maintenance_Contract_Estimate__c.Name} |
| | | window.location="/lightning/r/Report/" + returnData.reportId+'/view?fv0='+returnData.mCEName; |
| | | this.IsLoading = false; |
| | | }) |
| | | } |
| | | |
| | | } |
| New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata" fqn="lexPast2YearsRepairPriceReport"> |
| | | <apiVersion>51.0</apiVersion> |
| | | <isExposed>true</isExposed> |
| | | <targets> |
| | | <target>lightning__RecordPage</target> |
| | | <target>lightning__AppPage</target> |
| | | <target>lightning__HomePage</target> |
| | | <target>lightning__RecordAction</target> |
| | | </targets> |
| | | </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> |
| | |
| | | } |
| | | }).catch(error => { |
| | | console.log(error); |
| | | }).finally(() => { |
| | | |
| | | }); |
| | | }) |
| | | } |
| | | |
| | | // 修理报价预估 |
| | |
| | | <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 { |
| | | ShowToastEvent |
| | | } from 'lightning/platformShowToastEvent'; |
| | | |
| | | export default class LexQISMBCrequestNew extends LightningElement { |
| | | @api recordId; |
| | |
| | | var status = this.QISStatusC; |
| | | |
| | | if (status != '完毕' && status != '已回答' && status != '取消') { |
| | | this.ShowToastEvent("QIS没有审批完毕或取消,不可以创建QIS M-BC!", "error"); |
| | | alert("QIS没有审批完毕或取消,不可以创建QIS M-BC!"); |
| | | return; |
| | | } |
| | | var url = "a20/e?retURL=%2Fa20%2Fo&Name=" + this.Name + "&CF00N10000006Q4NP_lkid=" + this.Id; |
| | | window.top.location.href = url; |
| | | } |
| | | |
| | | 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 |
| | |
| | | .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; |
| | | } |
| New file |
| | |
| | | <template> |
| | | <div class="holder" 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> |
| New file |
| | |
| | | import { LightningElement, track, wire, api} from 'lwc'; |
| | | import LightningConfirm from 'lightning/confirm'; |
| | | import rentalApplyEquipmentSetReassign from '@salesforce/apex/RentalApplyEquipmentSetWebService.rentalApplyEquipmentSetReassign'; |
| | | export default class lexReassign extends LightningElement { |
| | | @api recordId; |
| | | //只获取当前list选中的一览Id |
| | | @api rentalApplySetIds; |
| | | IsLoading=true; |
| | | //提示信息 |
| | | msg; |
| | | |
| | | connectedCallback(){ |
| | | console.log(this.recordId); |
| | | console.log(JSON.stringify(this.rentalApplySetIds)); |
| | | // if(this.rentalApplySetIds.length<1){ |
| | | if (this.recordId && JSON.stringify(this.rentalApplySetIds)) { |
| | | LightningConfirm.open({ |
| | | message: '你确定要重新分配吗?', |
| | | variant: 'headerless', |
| | | label: 'this is the aria-label value', |
| | | }).then(res=>{ |
| | | if(res){ |
| | | rentalApplyEquipmentSetReassign({ |
| | | raesID: this.rentalApplySetIds[0] |
| | | }).then(result=>{ |
| | | if(result == '1'){ |
| | | this.msg = "已重新分配"; |
| | | this.closeAction(); |
| | | }else{ |
| | | this.msg = result; |
| | | return; |
| | | } |
| | | }) |
| | | } |
| | | }) |
| | | }else{ |
| | | this.msg = "请选择借出备品一览"; |
| | | return; |
| | | } |
| | | } |
| | | |
| | | closeAction() { |
| | | //返回当前的备品申请 |
| | | window.open("/"+this.recordId,'_self'); |
| | | } |
| | | } |
| New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata" fqn="lexReassign"> |
| | | <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"> |
| | | <property name="recordId" type="String" label="recordId"/> |
| | | <property name="rentalApplySetIds" type="String[]" label="rentalApplySetIds"/> |
| | | </targetConfig> |
| | | </targetConfigs> |
| | | </LightningComponentBundle> |
| | |
| | | import { ShowToastEvent } from 'lightning/platformShowToastEvent'; |
| | | |
| | | |
| | | import eSetRefreshStatus from '@salesforce/apex/RentalApplyESetRefreshStatusController.eSetRefreshStatus'; |
| | | import eSetRefreshStatus from '@salesforce/apex/LexRentalApplyESetRefreshStaController.eSetRefreshStatus'; |
| | | export default class lexRentalApplyESetRefreshStatus extends LightningElement { |
| | | @api raeSetId; |
| | | IsLoading=true; |
| 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; |
| | | } |
| New file |
| | |
| | | <template> |
| | | <div class="holder" 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> |
| New file |
| | |
| | | import { LightningElement, track, wire, api } from 'lwc'; |
| | | import {CurrentPageReference} from 'lightning/navigation'; |
| | | import init from '@salesforce/apex/lexRentalFixtureSetAssignController.init'; |
| | | import assignBtn from '@salesforce/apex/RentalApplyWebService.AssignBtn'; |
| | | |
| | | export default class lexRentalFixtureSetAssign extends LightningElement { |
| | | @api recordId |
| | | msg; |
| | | @wire(CurrentPageReference) |
| | | getStateParameters(currentPageReference){ |
| | | console.log("进入页面"); |
| | | if(currentPageReference){ |
| | | const urvalue=currentPageReference.state.recordId; |
| | | if(urvalue){ |
| | | let str=`${urvalue}`; |
| | | this.recordId=str; |
| | | } |
| | | } |
| | | } |
| | | |
| | | connectedCallback(){ |
| | | init({ |
| | | recordId:this.recordId |
| | | }).then(result =>{ |
| | | console.log(this.recordId); |
| | | console.log(result); |
| | | let res = result.ra; |
| | | console.log("res==="+JSON.stringify(res)); |
| | | if(res.Campaign__c != '' || res.Campaign__c != undefined){ |
| | | if(res.CampaignStatus == '取消'){ |
| | | this.msg = '学会取消,不可分配'; |
| | | return; |
| | | } |
| | | } |
| | | |
| | | if(res.Repair__c != '' || res.Repair__c != undefined){ |
| | | if(res.Repair_Final_Inspection_Date_F__c != null && res.Repair_Final_Inspection_Date_F__c !='' || (res.RC_return_to_office__c!=null && res.RC_return_to_office__c != '')){ |
| | | this.msg = '修理有最终检测日或修理品返送日,不可分配'; |
| | | return; |
| | | } |
| | | } |
| | | |
| | | assignBtn({ |
| | | Rid: this.recordId |
| | | }).then(resultMsg=>{ |
| | | if(res.Status__c == '取消' && res.Rental_Apply_Equipment_Set_Cnt__c != 0){ |
| | | window.open("/apex/RentalFixtureSetAssign?pt_recid=" + this.recordId); |
| | | this.closeAction(); |
| | | }else if((res.demo_purpose2__c == '学会展会' || res.demo_purpose2__c == '课题研究' || res.demo_purpose2__c == '培训中心')&& res.Status__c == '草案中'){ |
| | | this.msg = "不能分配,请确认申请的状态"; |
| | | return |
| | | }else if((res.demo_purpose2__c =='试用(无询价)' || res.demo_purpose2__c == '试用(有询价)' || res.demo_purpose2__c =='动物实验' || res.demo_purpose2__c == '一般维修代用' || res.demo_purpose2__c== '保修合同用户维修代用' || res.demo_purpose2__c == '已购待货') && res.Status__c != '已批准' && res.Status__c != '已出库指示'){ |
| | | this.msg = "不能分配,请确认申请的状态"; |
| | | return; |
| | | }else if(resultMsg == 'Fin'){ |
| | | window.open("/apex/RentalFixtureSetAssign?pt_recid=" + this.recordId); |
| | | this.closeAction(); |
| | | }else{ |
| | | this.msg = resultMsg; |
| | | return; |
| | | } |
| | | }) |
| | | }) |
| | | } |
| | | |
| | | closeAction() { |
| | | //返回当前的备品申请 |
| | | window.open("/"+this.recordId,'_self'); |
| | | } |
| | | } |
| New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata" fqn="lexRentalFixtureSetAssign"> |
| | | <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"> |
| | | <property name="recordId" type="String" label="recordId"/> |
| | | </targetConfig> |
| | | </targetConfigs> |
| | | </LightningComponentBundle> |
| 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; |
| | | } |
| New file |
| | |
| | | <template> |
| | | <div class="holder" 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> |
| New file |
| | |
| | | import { LightningElement, track, wire, api } from 'lwc'; |
| | | import init from '@salesforce/apex/lexRentalFixtureSetAssignController.init'; |
| | | import assignBtn from '@salesforce/apex/RentalApplyWebService.AssignBtn'; |
| | | |
| | | export default class lexRentalFixtureSetAssignAgency extends LightningElement { |
| | | @api recordId |
| | | msg; |
| | | |
| | | connectedCallback(){ |
| | | init({ |
| | | recordId: this.recordId |
| | | }).then(result=>{ |
| | | let res = result.ra; |
| | | console.log(res); |
| | | if(res.Campaign__c != '' || res.Campaign__c != undefined){ |
| | | if(res.CampaignStatus == '取消'){ |
| | | this.msg = '学会取消,不可分配'; |
| | | return; |
| | | } |
| | | } |
| | | |
| | | if(res.Repair__c != ''){ |
| | | if(res.Repair_Final_Inspection_Date_F__c != null && res.Repair_Final_Inspection_Date_F__c !='' || (res.RC_return_to_office__c!=null && res.RC_return_to_office__c != '')){ |
| | | this.msg = '修理有最终检测日或修理品返送日,不可分配'; |
| | | return; |
| | | } |
| | | } |
| | | |
| | | assignBtn({ |
| | | Rid: this.recordId |
| | | }).then(resultMsg => { |
| | | if(res.Status__c == '取消' && res.Rental_Apply_Equipment_Set_Cnt__c != 0){ |
| | | window.open("/apex/RentalFixtureSetAssignAgency?pt_recid=" + this.recordId); |
| | | this.closeAction(); |
| | | }else if((res.demo_purpose2__c == '学会展会' || res.demo_purpose2__c == '课题研究' || res.demo_purpose2__c == '培训中心')&& res.Status__c == '草案中'){ |
| | | this.msg = "不能分配,请确认申请的状态"; |
| | | return |
| | | }else if((res.demo_purpose2__c =='试用(无询价)' || res.demo_purpose2__c == '试用(有询价)' || res.demo_purpose2__c =='动物实验' || res.demo_purpose2__c == '一般维修代用' || res.demo_purpose2__c== '保修合同用户维修代用' || res.demo_purpose2__c == '已购待货') && res.Status__c != '已批准' && res.Status__c != '已出库指示'){ |
| | | this.msg = "不能分配,请确认申请的状态"; |
| | | return; |
| | | }else if(resultMsg == 'Fin'){ |
| | | window.open("/apex/RentalFixtureSetAssignAgency?pt_recid=" + this.recordId); |
| | | this.closeAction(); |
| | | return; |
| | | }else{ |
| | | this.msg = resultMsg; |
| | | return; |
| | | } |
| | | }) |
| | | }) |
| | | .catch(err=>{ |
| | | console.log('initErr==='+err); |
| | | }) |
| | | } |
| | | |
| | | closeAction() { |
| | | //返回当前的备品申请 |
| | | window.open("/"+this.recordId,'_self'); |
| | | } |
| | | } |
| New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata" fqn="lexRentalFixtureSetAssignAgency"> |
| | | <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"> |
| | | <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> |
| | |
| | | this.IsLoading = false; |
| | | this.Id = result.Id; |
| | | |
| | | this.QuarterlyReport(); |
| | | this.SelectProduct2CIC(); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | }).catch(error => { |
| | |
| | | |
| | | // 新建CIC/产品 |
| | | SelectProduct2CIC() { |
| | | var pathnames = window.self.location.pathname.split('/'); |
| | | console.log(11111111); |
| | | var pathnames = window.location.pathname.split("/"); |
| | | if (pathnames[1] == "emptyHtmlDoc.html") { |
| | | window.open("/apex/SelectProduct2CIC?cicid=" + this.Id, "_parent"); |
| | | } else { |
| | |
| | | <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> |
| | |
| | | .Holder{ |
| | | .holder{ |
| | | position: relative; |
| | | display: inline-block; |
| | | width: 80px; |
| | |
| | | |
| | | .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="Holder" if:true={IsLoading}> |
| | | <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner> |
| | | </div> |
| | | <div class="holder" 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> |
| | |
| | | import { CloseActionScreenEvent } from 'lightning/actions'; |
| | | import init from '@salesforce/apex/SelectSubstituteControllerLWT.initFromSelectSubstituteButton'; |
| | | import selectRentalApplyEquipmentSetByID from '@salesforce/apex/SelectSubstituteControllerLWT.selectRentalApplyEquipmentSetByID'; |
| | | import { ShowToastEvent } from 'lightning/platformShowToastEvent'; |
| | | |
| | | export default class selectSubstituteLWC extends LightningElement { |
| | | |
| | | @api recordId; |
| | | id; |
| | | RentalApplyId; |
| | | Status; |
| | | IsLoading=true; |
| | | @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; |
| | | } |
| | | } |
| | | } |
| | | @api rentalApplyEquipmentSetIds; |
| | | msg; |
| | | |
| | | |
| | | // @wire(CurrentPageReference) |
| | | // getStateParameters(currentPageReference){ |
| | | // if(currentPageReference) { |
| | | // const urlValue = currentPageReference.state.recordId; |
| | | // if(urlValue) { |
| | | // let str = `${urlValue}`; |
| | | // 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()); |
| | | }); |
| | | init({ |
| | | recordId:this.recordId, |
| | | }).then(result=>{ |
| | | this.IsLoading = false; |
| | | if(this.rentalApplyEquipmentSetIds.length<1){ |
| | | this.msg = "请选择一条借出备品一览记录"; |
| | | return; |
| | | }else if(this.rentalApplyEquipmentSetIds.length>1){ |
| | | this.msg = "只能选择一条记录"; |
| | | return; |
| | | }else{ |
| | | selectRentalApplyEquipmentSetByID({ |
| | | recordId: this.rentalApplyEquipmentSetIds[0] |
| | | }).then(res=>{ |
| | | console.log(res); |
| | | if(res.RAES_Status__c !='已批准' && res.RAES_Status__c!= '已出库指示'){ |
| | | this.msg = '申请书状态不符合分配代替品条件,请确认申请的状态'; |
| | | return; |
| | | }else{ |
| | | if(res.RAES_Status__c == '草案中' || res.RAES_Status__c == '申请中' || res.Shippment_loaner_time2__c != null){ |
| | | this.msg = "一览的状态不符合分配替代品条件"; |
| | | return; |
| | | }else if(res.Irreplaceable_flag__c == true){ |
| | | this.msg = "申请人勾选了代替品不可"; |
| | | return; |
| | | }else{ |
| | | window.open("/apex/RentalFixtureSetSelect?pt_recid="+ this.recordId +"&raesid="+this.rentalApplyEquipmentSetIds[0]); |
| | | this.closeAction(); |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | }).catch(err=>{ |
| | | console.log("error:"); |
| | | console.log(err); |
| | | }).finally(()=>{ |
| | | |
| | | }); |
| | | console.log("error:"+err); |
| | | }) |
| | | } |
| | | |
| | | closeAction() { |
| | | //返回当前的备品申请 |
| | | console.log(window.url); |
| | | window.open("/"+this.recordId,'_self'); |
| | | } |
| | | |
| | | |
| | | async cancelSubmit(){ |
| | | // 可分配代替品前提1 -- 备品借出申请的状态:“已批准”到“已出库指示” |
| | | if(this.Status != '已批准' && this.Status != '已出库指示') { |
| | | // alert('申请书状态不符合分配代替品条件,请确认申请的状态'); |
| | | const event = new ShowToastEvent({ |
| | | title: '提示信息', |
| | | message:'申请书状态不符合分配代替品条件,请确认申请的状态' |
| | | }); |
| | | this.dispatchEvent(event); |
| | | } else { |
| | | // 可分配代替品前提2 -- 所选借出备品配套一览的状态:‘已批准’到‘出库前已检测’ |
| | | var soqlRecord ; |
| | | await selectRentalApplyEquipmentSetByID({recordId:this.recordId}) |
| | | .then(res=>{ |
| | | soqlRecord=res; |
| | | var status = soqlRecord.RAES_Status__c; |
| | | var irreplaceable = soqlRecord.Irreplaceable_flag__c; |
| | | var shipTime = soqlRecord.Shippment_loaner_time2__c; |
| | | |
| | | if(status == "草案中" || status == "申请中" || shipTime != null) { |
| | | // alert("一览的状态不符合分配替代品条件"); |
| | | const event = new ShowToastEvent({ |
| | | title: '提示信息', |
| | | message:"一览的状态不符合分配替代品条件" |
| | | }); |
| | | this.dispatchEvent(event); |
| | | } else if(irreplaceable=="true") { |
| | | // alert("申请人勾选了代替品不可"); |
| | | const event = new ShowToastEvent({ |
| | | title: '提示信息', |
| | | message:"申请人勾选了代替品不可" |
| | | }); |
| | | this.dispatchEvent(event); |
| | | } else { |
| | | window.open("/apex/RentalFixtureSetSelect?pt_recid="+this.RentalApplyId+"&raesid="+this.recordId); |
| | | } |
| | | }); |
| | | |
| | | } |
| | | } |
| | | } |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata" fqn="selectSubstituteLWC"> |
| | | <LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata" fqn="lexRentalFixtureSetAssign"> |
| | | <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> |
| | | <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="rentalApplyEquipmentSetIds" type="String[]" label="rentalApplyEquipmentSetIds"/> |
| | | |
| | | </targetConfig> |
| | | |
| | | </targetConfigs> |
| | | </LightningComponentBundle> |
| | |
| | | } |
| | | |
| | | 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) { |
| | | // 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) { |
| | | |
| | | 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("没有找到 修理委托者"); |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | | }); |
| | | // 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("没有找到 修理委托者"); |
| | | // } |
| | | // }); |
| | | // } |
| | | // }); |
| | | // }); |
| | | |
| | | var staticResource; |
| | | var DetailedAddress = this.detailedAddress; |
| | |
| | | @api recordId; |
| | | transferApplyPermission; |
| | | IsLoading=true; |
| | | cancelResult; |
| | | |
| | | @wire(CurrentPageReference) |
| | | getStateParameters(currentPageReference) { |
| | |
| | | console.log('this.transferApplyId:' + this.recordId); |
| | | applyPermission().then(result => { |
| | | console.log(result); |
| | | this.transferApplyPermission = result; |
| | | this.cancelSubmit(); |
| | | |
| | | }).catch( error =>{ |
| | | console.log(error); |
| | | }); |
| | | } |
| | | |
| | | cancelSubmit(){ |
| | | |
| | | if (this.transferApplyPermission == false) { |
| | | this.transferApplyPermission = result; |
| | | if (this.transferApplyPermission == false) { |
| | | this.showToast('','没有提交申请的权限','warning'); |
| | | this.IsLoading=false; |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | |
| | | }).then(cancel=>{ |
| | | if(cancel) { |
| | | submitApply({taId:this.recordId}).then(submitRes=>{ |
| | | if(submitRes == '1'){ |
| | | this.showToast('','提交成功','success'); |
| | | setTimeout(function(){ |
| | | window.location.href = window.location; |
| | | }, 1500 ); |
| | | }else{ |
| | | this.showToast("",submitRes,"warning"); |
| | | } |
| | | console.log(submitRes); |
| | | this.cancelResult = submitRes; |
| | | this.cancelSubmit().then(res=>{ |
| | | this.IsLoading=false; |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | }); |
| | | |
| | | }); |
| | | this.IsLoading=false; |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | }).catch( error =>{ |
| | | this.showToast("",submitRes,"error"); |
| | | }); |
| | | // this.IsLoading=false; |
| | | // this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } else{ |
| | | this.IsLoading=false; |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | |
| | | |
| | | }); |
| | | |
| | | } |
| | | } |
| | | |
| | | |
| | | }).catch( error =>{ |
| | | console.log(error); |
| | | }); |
| | | } |
| | | |
| | | |
| | | async cancelSubmit(){ |
| | | console.log(this.cancelResult); |
| | | if(this.cancelResult == '1') { |
| | | console.log(this.cancelResult); |
| | | this.dispatchEvent( |
| | | new ShowToastEvent({ |
| | | message:'提交成功', |
| | | variant: "success" |
| | | }) |
| | | ); |
| | | setTimeout(function(){ |
| | | window.location.href = window.location; |
| | | }, 1500 ) |
| | | } else { |
| | | this.dispatchEvent( |
| | | new ShowToastEvent({ |
| | | message:this.cancelResult, |
| | | variant: "warning" |
| | | }) |
| | | ); |
| | | console.log("result:",this.cancelResult); |
| | | // await this.showToast("",this.cancelResult,"warning"); |
| | | } |
| | | |
| | | } |
| | | |
| | | showToast(_title,_message,_variant) { |
| New file |
| | |
| | | <template> |
| | | <div class="ApplicationSubmit" 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 } from "lightning/navigation"; |
| | | import { CloseActionScreenEvent } from 'lightning/actions'; |
| | | import init from '@salesforce/apex/OppLoseController.init'; |
| | | import taskLoseBid from '@salesforce/apex/OppLoseController.taskLoseBid'; |
| | | import { ShowToastEvent } from 'lightning/platformShowToastEvent'; |
| | | import { updateRecord } from 'lightning/uiRecordApi'; |
| | | import LightningConfirm from 'lightning/confirm'; |
| | | export default class lexTaskOLYwinBid extends LightningElement { |
| | | @api recordId; |
| | | taskStatus;//任务 状态 |
| | | OpportunityId;//任务 ID |
| | | IsLoading = true; |
| | | @wire(CurrentPageReference) |
| | | getStateParameters(currentPageReference){ |
| | | if(currentPageReference){ |
| | | const urlValue=currentPageReference.state.recordId; |
| | | if(urlValue){ |
| | | let str=`${urlValue}`; |
| | | this.recordId=str; |
| | | } |
| | | } |
| | | } |
| | | connectedCallback(){ |
| | | init({ |
| | | taskId: this.recordId |
| | | }).then(result => { |
| | | this.IsLoading = false; |
| | | console.log(result.OpportunityId,result.taskStatus); |
| | | this.OpportunityId = result.OpportunityId; |
| | | this.taskStatus = result.taskStatus; |
| | | this.taskLoseBid(); |
| | | }) |
| | | } |
| | | |
| | | taskLoseBid(){ |
| | | if(this.taskStatus == '04 取消'){ |
| | | this.showToast('任务取消,不可操作',"error"); |
| | | }else{ |
| | | LightningConfirm.open({ |
| | | message: '是否确认竞争对手中标?', |
| | | variant: 'headerless', |
| | | label: 'this is the aria-label value', |
| | | }).then(res=>{ |
| | | if(res) { |
| | | taskLoseBid({recordId:this.OpportunityId}).then(requst=>{ |
| | | if(requst == '1'){ |
| | | this.showToast("操作成功!","success"); |
| | | this.updateRecordView(); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | if(requst != "1"){ |
| | | this.showToast(requst,"error"); |
| | | } |
| | | }) |
| | | }else{ |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | this.updateRecordView(this.recordId); |
| | | return; |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | showToast(msg,type) { |
| | | const event = new ShowToastEvent({ |
| | | message: msg, |
| | | variant: type |
| | | }); |
| | | this.dispatchEvent(event); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | updateRecordView() { |
| | | updateRecord({fields: { Id: this.OpportunityId }}); |
| | | } |
| | | } |
| File was renamed from force-app/main/default/lwc/lexCustomAnewMaintenance copy/lexCustomAnewMaintenance.js-meta.xml |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <?xml version="1.0"?> |
| | | <LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata"> |
| | | <apiVersion>54.0</apiVersion> |
| | | <apiVersion>54.0</apiVersion> |
| | | <isExposed>true</isExposed> |
| | | <targets> |
| | | <target>lightning__RecordPage</target> |
| New file |
| | |
| | | <template> |
| | | <div class="ApplicationSubmit" 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 } from "lightning/navigation"; |
| | | import { CloseActionScreenEvent } from 'lightning/actions'; |
| | | import init from '@salesforce/apex/OppLoseController.init'; |
| | | import taskOLYwinBid from '@salesforce/apex/OppLoseController.taskOLYwinBid'; |
| | | import { ShowToastEvent } from 'lightning/platformShowToastEvent'; |
| | | import { updateRecord } from 'lightning/uiRecordApi'; |
| | | import LightningConfirm from 'lightning/confirm'; |
| | | export default class lexTaskOLYwinBid extends LightningElement { |
| | | @api recordId; |
| | | taskStatus;//任务 状态 |
| | | OpportunityId;//任务 ID |
| | | IsLoading = true; |
| | | @wire(CurrentPageReference) |
| | | getStateParameters(currentPageReference){ |
| | | if(currentPageReference){ |
| | | const urlValue=currentPageReference.state.recordId; |
| | | if(urlValue){ |
| | | let str=`${urlValue}`; |
| | | this.recordId=str; |
| | | } |
| | | } |
| | | } |
| | | connectedCallback(){ |
| | | init({ |
| | | taskId: this.recordId |
| | | }).then(result => { |
| | | this.IsLoading = false; |
| | | console.log(result.OpportunityId,result.taskStatus); |
| | | this.OpportunityId = result.OpportunityId; |
| | | this.taskStatus = result.taskStatus; |
| | | this.taskOLYwinBid(); |
| | | }) |
| | | } |
| | | //任务 OLY中标 |
| | | taskOLYwinBid(){ |
| | | if(this.taskStatus == '04 取消'){ |
| | | this.showToast('任务取消,不可操作',"error"); |
| | | }else{ |
| | | LightningConfirm.open({ |
| | | message: '是否确认竞争对手中标?', |
| | | variant: 'headerless', |
| | | label: 'this is the aria-label value', |
| | | }).then(res=>{ |
| | | if(res) { |
| | | taskOLYwinBid({recordId:this.OpportunityId}).then(requst=>{ |
| | | if(requst == '1'){ |
| | | this.showToast("操作成功!","success"); |
| | | this.updateRecordView(); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | if(requst != "1"){ |
| | | this.showToast(requst,"error"); |
| | | } |
| | | }) |
| | | }else{ |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | this.updateRecordView(this.recordId); |
| | | return; |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | showToast(msg,type) { |
| | | const event = new ShowToastEvent({ |
| | | message: msg, |
| | | variant: type |
| | | }); |
| | | this.dispatchEvent(event); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | updateRecordView() { |
| | | updateRecord({fields: { Id: this.OpportunityId }}); |
| | | } |
| | | } |
copy from force-app/main/default/lwc/lexCustomAnewMaintenance copy/lexCustomAnewMaintenance.js-meta.xml
copy to force-app/main/default/lwc/lexTaskOLYwinBid/lexTaskOLYwinBid.js-meta.xml
| File was copied from force-app/main/default/lwc/lexCustomAnewMaintenance copy/lexCustomAnewMaintenance.js-meta.xml |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <?xml version="1.0"?> |
| | | <LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata"> |
| | | <apiVersion>54.0</apiVersion> |
| | | <apiVersion>54.0</apiVersion> |
| | | <isExposed>true</isExposed> |
| | | <targets> |
| | | <target>lightning__RecordPage</target> |
| | |
| | | import init from '@salesforce/apex/TenderingButtonController.initTenderingController'; |
| | | import sqlResult from '@salesforce/apex/TenderingButtonController.sqlResult'; |
| | | import { ShowToastEvent } from 'lightning/platformShowToastEvent'; |
| | | import LightningConfirm from 'lightning/confirm'; |
| | | export default class lexTenderingLostButton extends LightningElement { |
| | | @api recordId;//当前这条数据的id |
| | | status;//状态 |
| | |
| | | } |
| | | // 判断是否需要新建询价 |
| | | if(this.status == '05.询价中'|| this.status == '06.成交' || this.status == '07.部分成交' || this.status == '08.失单' || result.length > 0){ |
| | | if(confirm('此项目已关联询价,请确实是否新建询价提交失单。')) { |
| | | |
| | | }else{ |
| | | return; |
| | | } |
| | | LightningConfirm.open({ |
| | | message: '此项目已关联询价,请确实是否新建询价提交失单。', |
| | | variant: 'headerless', |
| | | label: 'this is the aria-label value', |
| | | }).then(res=>{ |
| | | if(res) { |
| | | window.open(`/apex/TenderLostPage?id=${this.recordId}`,'','height=500,width=800,top=200,left=250,location=no'); |
| | | }else{ |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } |
| | | }); |
| | | } |
| | | window.open(`/apex/TenderLostPage?id=${this.recordId}`,'','height=500,width=800,top=200,left=250,location=no'); |
| | | }) |
| | | } |
| | | showToast(msg,type) { |
| | |
| | | }); |
| | | this.dispatchEvent(event); |
| | | } |
| | | } |
| | | } |
| 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; |
| | | } |
| New file |
| | |
| | | <template> |
| | | <div class="holder" 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> |
| New file |
| | |
| | | import { LightningElement, track, wire, api } from 'lwc'; |
| | | import {CurrentPageReference} from 'lightning/navigation'; |
| | | |
| | | export default class lexUnassign extends LightningElement { |
| | | @api recordId; |
| | | @api rentalApplySetIds; |
| | | msg; |
| | | IsLoading=true; |
| | | |
| | | @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(){ |
| | | |
| | | if(this.rentalApplySetIds == undefined || this.rentalApplySetIds.length<1){ |
| | | window.open("/apex/EquipmentRentalUnassign?raId="+this.recordId); |
| | | }else{ |
| | | window.open("/apex/EquipmentRentalUnassign?raId="+this.recordId+"&EquipmentId="+this.rentalApplySetIds); |
| | | } |
| | | this.closeAction(); |
| | | } |
| | | |
| | | closeAction() { |
| | | //返回当前的备品申请 |
| | | window.open("/"+this.recordId,'_self'); |
| | | } |
| | | } |
| New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata" fqn="lexUnassign"> |
| | | <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"> |
| | | <property name="recordId" type="String" label="recordId"/> |
| | | <property name="rentalApplySetIds" type="String[]" label="rentalApplySetIds"/> |
| | | </targetConfig> |
| | | </targetConfigs> |
| | | </LightningComponentBundle> |
| New file |
| | |
| | | .exampleHolder{ |
| | | position: relative; |
| | | top: 0; |
| | | width: 0; |
| | | left: 0; |
| | | right: 0; |
| | | margin: 0 auto; |
| | | } |
| | | |
| | | .uiContainerManager { |
| | | display:none; |
| | | } |
| New file |
| | |
| | | <template> |
| | | |
| | | </template> |
| New file |
| | |
| | | import { LightningElement,wire,track,api} from 'lwc'; |
| | | import { CurrentPageReference } from "lightning/navigation"; |
| | | import { CloseActionScreenEvent } from 'lightning/actions'; |
| | | import { ShowToastEvent } from 'lightning/platformShowToastEvent'; |
| | | |
| | | import init from '@salesforce/apex/LexVMcontractUsageRateNewController.init'; |
| | | |
| | | export default class lexVMcontractUsageRateNew extends LightningElement { |
| | | @api recordId; |
| | | |
| | | |
| | | @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 => { |
| | | console.log(result); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | // /lightning/r/Report/00O10000006S0oF/view?fv0={!Maintenance_Contract__c.Id} |
| | | |
| | | // /00O10000006S0oF?pv0={!Maintenance_Contract__c.Id} |
| | | window.location="/lightning/r/Report/" + result+'/view?fv0='+this.recordId; |
| | | this.IsLoading = false; |
| | | }) |
| | | } |
| | | } |
| New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata" fqn="lexVMcontractUsageRateNew"> |
| | | <apiVersion>51.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 |
| | |
| | | .outerBorderCss{ |
| | | border: 1px solid #D4D4D4; |
| | | border-radius : 5px; |
| | | border-top : 3px solid #565959; |
| | | } |
| | | .borderCss{ |
| | | border: 1px solid #D4D4D4; |
| | | border-radius : 5px; |
| | | margin-bottom : 7px; |
| | | border-top : 3px solid #565959; |
| | | } |
| | | .headerDorderCss{ |
| | | border-top: 1px solid #565959; |
| | | border-bottom: 1px solid #D4D4D4; |
| | | padding:3px; |
| | | } |
| | | .centerCss{ |
| | | text-align: center; |
| | | } |
| | | .centerCss .left{ |
| | | margin-left: 100px; |
| | | }/* sample css file *//* sample css file */ |
| 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; |
| | | } |
| New file |
| | |
| | | <template> |
| | | <div class="holder" 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> |
| New file |
| | |
| | | import { LightningElement,api, track, wire } from 'lwc'; |
| | | import {CurrentPageReference} from 'lightning/navigation'; |
| | | import { CloseActionScreenEvent } from 'lightning/actions'; |
| | | import getUserId from '@salesforce/apex/RentalApplyControllerLWT.getUserId'; |
| | | import init from '@salesforce/apex/SelectSubstituteControllerLWT.initFromSelectSubstituteButton'; |
| | | import selectRentalApplyEquipmentSetByID from '@salesforce/apex/SelectSubstituteControllerLWT.selectRentalApplyEquipmentSetByID'; |
| | | import selectRentalApplyEquipmentSetByRACID from '@salesforce/apex/SelectSubstituteControllerLWT.selectRentalApplyEquipmentSetByRACID'; |
| | | import { ShowToastEvent } from 'lightning/platformShowToastEvent'; |
| | | |
| | | export default class rentalApplyJumpLWC extends LightningElement { |
| | | |
| | | @api recordId; |
| | | id; |
| | | @api rentalApplyIds; |
| | | RentalApplyId; |
| | | //提示信息 |
| | | msg; |
| | | IsLoading=true; |
| | | |
| | | @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=>{ |
| | | if(result!=null){ |
| | | this.id=result.id; |
| | | this.RentalApplyId=result.RentalApplyId; |
| | | this.cancelSubmit().then(res=>{ |
| | | this.IsLoading=false; |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | }); |
| | | } |
| | | }).catch(err=>{ |
| | | console.log("error:"); |
| | | console.log(err); |
| | | }).finally(()=>{ |
| | | |
| | | }); |
| | | } |
| | | |
| | | |
| | | |
| | | async cancelSubmit(){ |
| | | // 可分配代替品前提1 -- 备品借出申请的状态:“已批准”到“已出库指示” |
| | | var userIdArr = ['00510000001O6HoAAK','00510000001O6I2AAK','00510000000gW9pAAE','00510000000gW9BAAU','00510000008pVbWAAU','00510000001OOMjAAO','00510000005sEEMAA2','00510000004pNOtAAM','00510000005QJ2eAAG','00510000007iCmcAAE','00510000006kIg8AAE','00510000004rbkzAAA','00510000003LMHuAAO','00510000000gW92AAE']; |
| | | //当前用户登录id |
| | | var userId; |
| | | await getUserId().then(res=>{ |
| | | userId=res; |
| | | }) |
| | | .catch(err=>{ |
| | | console.log("getUserIderr==="+err); |
| | | }) |
| | | //TODO==== |
| | | userId = '00510000001O6HoAAK'; |
| | | if(userIdArr.indexOf(userId)== -1){ |
| | | this.msg = '对不起你没有此操作的权限!'; |
| | | this.IsLoading = false; |
| | | return; |
| | | } else { |
| | | console.log('this.rentalApplyIds=='+this.rentalApplyIds); |
| | | if(this.rentalApplyIds == undefined || this.rentalApplyIds.length<1){ |
| | | this.msg = '请选择借出备品一览记录'; |
| | | this.IsLoading = false; |
| | | return; |
| | | }else{ |
| | | let raid = this.RentalApplyId; |
| | | await selectRentalApplyEquipmentSetByRACID({recordId:this.recordId}).then(res=>{ |
| | | console.log('selectRentalApplyEquipmentSetByRACID=='+JSON.stringify(res)); |
| | | |
| | | var allRecords = res; |
| | | var validSize= allRecords.length; |
| | | var canJump = false; |
| | | for(var i=0;i<validSize;i++){ |
| | | if(allRecords[i].Allow_Adjust_Queue_Flag__c == true){ |
| | | canJump = true; |
| | | break; |
| | | } |
| | | } |
| | | if(canJump == true){ |
| | | this.msg = '请选择借出备品一览记录有已经允许插队的,请选择未允许的一览'; |
| | | this.IsLoading = false; |
| | | return; |
| | | }else{ |
| | | let records=[this.recordId]; |
| | | window.open("/apex/RentalApplyJump?objId="+this.recordId+"&raesIds="+ this.rentalApplyIds, 'RentalApplyJump', 'width=700,height=300'); |
| | | this.closeAction(); |
| | | } |
| | | }) |
| | | .catch(error=>{ |
| | | console.log('selectRentalApplyEquipmentSetByRACIDerr==='+error); |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | |
| | | closeAction() { |
| | | //返回当前的备品申请 |
| | | window.open("/"+this.recordId,'_self'); |
| | | } |
| | | } |
| New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata" fqn="rentalApplyJumpLWC"> |
| | | <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"> |
| | | <property name="recordId" type="String" label="recordId"/> |
| | | <property name="rentalApplyIds" type="String[]" label="rentalApplyIds"/> |
| | | </targetConfig> |
| | | </targetConfigs> |
| | | </LightningComponentBundle> |
| | |
| | | <apex:page docType="html-5.0" applyHtmlTag="false" showHeader="false" sidebar="false" standardStylesheets="false"> |
| | | <apex:page docType="html-5.0" applyHtmlTag="false" showHeader="false" sidebar="false" standardStylesheets="false" lightningStylesheets='true'> |
| | | |
| | | <!-- ローディング中 --> |
| | | <div ng-show="working" style="padding-top:40px; text-align:center"> |
| | |
| | | <apex:page controller="AccessorySelectController" showHeader="false" sidebar="false" id="allPage" action="{!init}"> |
| | | <!-- 20230526 ljh lightning --> |
| | | <!-- <apex:page controller="AccessorySelectController" showHeader="false" sidebar="false" id="allPage" action="{!init}"> --> |
| | | <apex:page controller="AccessorySelectController" showHeader="false" sidebar="false" id="allPage" action="{!init}" lightningStylesheets="true"> |
| | | |
| | | <head> |
| | | <title>附属品选择</title> |
| | | <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/> |
| | |
| | | </script> |
| | | </apex:outputPanel> |
| | | <!-- </apex:pageBlockSectionItem> --> |
| | | |
| | | <apex:pageBlockButtons location="bottom"> |
| | | <!-- <apex:commandButton style="float:left;" value="检索" action="{!searchOpp}" onclick="blockme();" rerender="allForm, checEventFrame" oncomplete="unblockUI();" /> --> |
| | | <apex:commandButton style="float:left;" action="{!save}" value="保存" onclick="blockme();" rerender="allForm,checEventFrame" oncomplete="unblockUI();" /> |
| | | <apex:commandButton style="float:left;" value="取消分配" onclick="unassign(); return false;" rerender="allForm,checEventFrame"/> |
| | | <apex:commandButton style="float:left;" value="取消" onclick="clickCancel(); return false;" /> |
| | | <apex:commandButton style="float:right;" action="{!turnback}" value="返回" rerender="allForm,checEventFrame"/> |
| | | </apex:pageBlockButtons> |
| | | <!-- 20230526 ljh lightning start outputPanel 新加 pageBlockButtons注释--> |
| | | <apex:outputPanel style="float:left;"> |
| | | <!-- <apex:pageBlockButtons location="bottom"> --> |
| | | <!-- <apex:commandButton style="float:left;" value="检索" action="{!searchOpp}" onclick="blockme();" rerender="allForm, checEventFrame" oncomplete="unblockUI();" /> --> |
| | | <apex:commandButton style="float:left;" action="{!save}" value="保存" onclick="blockme();" rerender="allForm,checEventFrame" oncomplete="unblockUI();" /> |
| | | <apex:commandButton style="float:left;" value="取消分配" onclick="unassign(); return false;" rerender="allForm,checEventFrame"/> |
| | | <apex:commandButton style="float:left;" value="取消" onclick="clickCancel(); return false;" /> |
| | | <apex:commandButton style="float:right;" action="{!turnback}" value="返回" rerender="allForm,checEventFrame"/> |
| | | <!-- </apex:pageBlockButtons> --> |
| | | </apex:outputPanel> |
| | | <!-- 20230526 ljh lightning end--> |
| | | <div style="clear:both;"></div> |
| | | |
| | | <apex:outputPanel id="message"> |
| | |
| | | <!-- 年度毎のデータを表示 --> |
| | | <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 sidebar="false" showHeader="true" action="{!init}" standardcontroller="AssessmentReport__c" extensions="AssessmentReportController" id="allPage"> |
| | | <apex:page sidebar="false" showHeader="true" action="{!init}" standardcontroller="AssessmentReport__c" extensions="AssessmentReportController" id="allPage" 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:includeScript value="{!URLFOR($Resource.AWSService, 'AWSService.js') }" /> |
| | | <apex:stylesheet value="{!URLFOR($Resource.StyleUtilCss)}"/> |
| | | <style> |
| | | /*点击授课内容之后,页面*/ |
| | | body .detailList .dataCol input[type="text"],body .detailList .dataCol select { |
| | | min-width: 8rem; |
| | | } |
| | | body .bPageBlock .detailList .labelCol { |
| | | width: 12%; |
| | | } |
| | | </style> |
| | | |
| | | <script> |
| | | var aws = JSON.parse('{!awsString}'); |
| | |
| | | } |
| | | for(var i=0;i<contacts.length;i++){ |
| | | contact[contacts[i].dataId] = contacts[i].lastName.replace(/"/g,""); |
| | | //2023 07 04 张赫阳 PIPL改造 Start |
| | | document.getElementById(contacts[i].dataId).innerHTML = contact[contacts[i].dataId]; |
| | | //2023 07 04 张赫阳 PIPL改造 End |
| | | } |
| | | console.log(JSON.stringify(contact)); |
| | | }; |
| | |
| | | } |
| | | </script> |
| | | |
| | | <apex:form id="allForm"> |
| | | <apex:form id="allForm" style="width:99%;"> |
| | | |
| | | <apex:pageBlock title="{!IF(AssessmentReport!=null && AssessmentReport.Name != null , AssessmentReport.Name, '授课/考核报告')}" id="allBlock"> |
| | | <apex:pageBlockButtons id="manyBtn" > |
| | |
| | | <apex:commandButton action="{!save}" onclick="blockme();" oncomplete="unblockUI();" disabled="{!Inputdisabled}" rerender="allForm" value="保存"/> |
| | | <apex:commandButton id="Cancel" action="{!EditRecord}" onclick="blockme();" oncomplete="unblockUI();" rendered="{!Not(Inputdisabled)}" rerender="allForm" value="取消"/> |
| | | <apex:commandButton action="{!Submit}" disabled="{!If(AssessmentReport.Status__c = '草案中' , false, true)}" rerender="allForm" value="保存并提交审批"/> |
| | | <apex:commandButton action="{!cancel}" style="float:right;" onclick="blockme();" oncomplete="unblockUI();" rerender="allForm" value="不保存(返回)"/> |
| | | <apex:commandButton action="{!saveAndCancel}" onclick="blockme();" oncomplete="unblockUI();" style="float:right;" rerender="allForm" disabled="{!Inputdisabled}" value="保存(返回)"/> |
| | | <apex:commandButton action="{!cancel}" onclick="blockme();" oncomplete="unblockUI();" rerender="allForm" value="不保存(返回)"/> |
| | | <apex:commandButton action="{!saveAndCancel}" onclick="blockme();" oncomplete="unblockUI();" rerender="allForm" disabled="{!Inputdisabled}" value="保存(返回)"/> |
| | | </apex:pageBlockButtons> |
| | | <apex:pageMessages id="pageMessages"></apex:pageMessages> |
| | | |
| | |
| | | <table id="theTable_header" style ="width: 98%; text-align: center;" styleClass="list"> |
| | | <thead> |
| | | <tr> |
| | | <td style="width: 18%" scope="col">医院科室</td> |
| | | <td style="width: 8%" scope="col">姓名</td> |
| | | <td style="width: 17%" scope="col">医院科室</td> |
| | | <td style="width: 5%" scope="col">姓名</td> |
| | | <td style="width: 14%" scope="col">营业本部</td> |
| | | <td style="width: 8%" scope="col">省</td> |
| | | <td style="width: 8%" scope="col">市</td> |
| | | <td style="width: 5%" scope="col">省</td> |
| | | <td style="width: 5%" scope="col">市</td> |
| | | <td style="width: 5%" scope="col">出勤情况</td> |
| | | <td style="width: 5%" scope="col">课堂参与度</td> |
| | | <td style="width: 8%" scope="col">课堂参与度</td> |
| | | <td style="width: 5%" scope="col">成绩</td> |
| | | <td style="width: 5%" scope="col">课后作业完成情况</td> |
| | | <td style="width: 10%" scope="col">课后作业完成情况</td> |
| | | <td style="width: 24%" scope="col">备注</td> |
| | | </tr> |
| | | </thead> |
| | |
| | | <div id="tablediv" style="overflow:auto; width:100%; height:200px; text-align: center;"> |
| | | <apex:dataTable value="{!ARSInfoList}" var="al" id="theTable_content" border="0" |
| | | style="width:99%;border-bottom-width: 0px; font-size:11px; border-spacing:0;" styleClass="list"> |
| | | <apex:column style="width: 18%"> |
| | | <apex:column style="width: 17%"> |
| | | <apex:outputField style="resize:vertical;width: 95%" id="Department" value="{!al.CamMem.Department_ID__c}"/> |
| | | </apex:column> |
| | | <!-- id="{!al.CamMem.Contact_ID__r.AWS_Data_Id__c}" onmouseover="showPIDiv('{!al.CamMem.Contact_ID__r.AWS_Data_Id__c}')" onmouseout="hidePIDiv('{!al.CamMem.Contact_ID__r.AWS_Data_Id__c}')" --> |
| | | <apex:column style="width: 8%" > |
| | | <apex:column style="width: 5%" > |
| | | <!-- <apex:outputField style="resize:vertical;width: 95%" id="Name" value="{!al.CamMem.Contact_ID__c}" /> --> |
| | | <span id="{!al.CamMem.Contact_ID__r.AWS_Data_Id__c}" onmouseover="showPIDiv('{!al.CamMem.Contact_ID__r.AWS_Data_Id__c}')" onmouseout="hidePIDiv('{!al.CamMem.Contact_ID__r.AWS_Data_Id__c}')">{!al.ARS.Name}</span> |
| | | </apex:column> |
| | | <apex:column style="width: 14%"> |
| | | <apex:outputText style="resize:vertical;width: 95%" id="dept" value="{!al.CamMem.dept__c}"/> |
| | | </apex:column> |
| | | <apex:column style="width: 8%"> |
| | | <apex:column style="width: 5%"> |
| | | <apex:outputText style="resize:vertical;width: 95%" id="State" value="{!al.CamMem.State__c}"/> |
| | | </apex:column> |
| | | <apex:column style="width: 8%"> |
| | | <apex:column style="width: 5%"> |
| | | <apex:outputText style="resize:vertical;width: 95%" id="City" value="{!al.CamMem.City__c}"/> |
| | | </apex:column> |
| | | <apex:column style="width: 5%"> |
| | | <apex:inputField rendered="{!Not(Inputdisabled)}" style="resize:vertical;width: 95%" id="AttendStatus" value="{!al.ARS.AttendStatus__c}"/> |
| | | <apex:outputField rendered="{!Inputdisabled}" style="resize:vertical;width: 95%" id="AttendStatus_Output" value="{!al.ARS.AttendStatus__c}"/> |
| | | </apex:column> |
| | | <apex:column style="width: 5%"> |
| | | <apex:column style="width: 8%"> |
| | | <apex:inputField rendered="{!Not(Inputdisabled)}" style="resize:vertical;width: 95%" id="AttendRate" value="{!al.ARS.AttendRate__c}"/> |
| | | <apex:outputField rendered="{!Inputdisabled}" style="resize:vertical;width: 95%" id="AttendRate_Output" value="{!al.ARS.AttendRate__c}"/> |
| | | </apex:column> |
| | |
| | | <apex:inputField rendered="{!Not(Inputdisabled)}" style="resize:vertical;width: 95%" id="Grade" value="{!al.ARS.Grade__c}"/> |
| | | <apex:outputField rendered="{!Inputdisabled}" style="resize:vertical;width: 95%" id="Grade_Output" value="{!al.ARS.Grade__c}"/> |
| | | </apex:column> |
| | | <apex:column style="width: 5%"> |
| | | <apex:column style="width: 10%"> |
| | | <apex:inputField rendered="{!Not(Inputdisabled)}" value="{!al.ARS.HomeworkFeedback__c}" style="width: 95%" id="HomeworkFeedback" /> |
| | | <apex:outputField rendered="{!Inputdisabled}" style="resize:vertical;width: 95%" id="HomeworkFeedback_Output" value="{!al.ARS.HomeworkFeedback__c}"/> |
| | | </apex:column> |
| | |
| | | <apex:page controller="BmeWorkController" showHeader="false" sidebar="false" id="allPage" action="{!init}"> |
| | | <apex:page controller="BmeWorkController" showHeader="false" sidebar="false" id="allPage" action="{!init}" lightningStylesheets='true'> |
| | | <head> |
| | | <title>BME工作跟进</title> |
| | | <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/> |
| | |
| | | <table style="border-bottom-width: 0px; font-size:12px;"> |
| | | <tr> |
| | | <td width="150px"> |
| | | <apex:commandButton onclick="blockme()" oncomplete="unblockUI();" action="{!save}" value="保存" style="height:30px;width:50px;"/> |
| | | <apex:commandButton value="检索" onclick="NewSearch();return false;" style="height:30px;width:70px;"/> |
| | | <apex:commandButton onclick="blockme()" oncomplete="unblockUI();" action="{!save}" value="保存" style="height:30px;width:60px;"/> |
| | | <apex:commandButton value="检索" onclick="NewSearch();return false;" style="height:30px;width:60px;"/> |
| | | </td> |
| | | <td width="1000px"> |
| | | <apex:pageMessages /> |
| | |
| | | <apex:page id="communitiesSelfRegConfirmPage" controller="CommunitiesSelfRegConfirmController" showHeader="true" cache="false" title="{!$Label.site.registration_confirmation}" > |
| | | <apex:page id="communitiesSelfRegConfirmPage" controller="CommunitiesSelfRegConfirmController" showHeader="true" cache="false" title="{!$Label.site.registration_confirmation}" lightningStylesheets="true" > |
| | | <apex:define name="body"> |
| | | <center> |
| | | <apex:panelGrid bgcolor="white" columns="1" style="align: center;"> |
| | |
| | | <apex:page standardcontroller="DiscountProductApplication__c" sidebar="false"> |
| | | <apex:page standardcontroller="DiscountProductApplication__c" sidebar="false" lightningStylesheets='true'> |
| | | <!-- <apex:includeScript value="{!URLFOR($Resource.connection20)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.apex20)}"/> --> |
| | | <script type="text/javascript"> |
| | |
| | | <apex:page showHeader="false" sidebar="false" id="test02" title="3.关联已有询价"> |
| | | <!-- <apex:page showHeader="false" sidebar="false" id="test02" title="3.关联已有询价"> --> |
| | | <apex:page showHeader="false" sidebar="false" id="test02" title="3.关联已有询价" lightningStylesheets="true"> |
| | | <apex:includeLightning /> |
| | | <div style="width:100%;height:100%;" id="test02Container" /> |
| | | <script> |
| | |
| | | <th style="text-align:right; width:60px;">医院</th> |
| | | <td style="text-align:left; width:75px;"><apex:inputText value="{!enduser}" style="width:95%;"/></td> |
| | | <th style="text-align:right; width:60px;">{!$ObjectType.Ship__c.fields.Shipping_date__c.Label}</th> |
| | | <td style="text-align:left; width:75px;"><apex:inputField value="{!dateFrom.Birth_Date__c}" style="width:95%;"/></td> |
| | | <td style="text-align:left; width:75px;"><apex:inputField value="{!dateFrom.Birth_Date__c}" /></td> |
| | | <td style="text-align:left; width:10px;">~</td> |
| | | <td style="text-align:left; width:75px;"><apex:inputField value="{!dateTo.Birth_Date__c}" style="width:95%;"/></td> |
| | | <td style="text-align:left; width:75px;"><apex:inputField value="{!dateTo.Birth_Date__c}" /></td> |
| | | </tr> |
| | | </table> |
| | | <table style="width:100%; border: 0; border-collapse: collapse; margin: 10px 0 10px 0; " id="searchTbl2"> |
| | |
| | | <apex:page id="microbatchSelfRegPage" showHeader="true" controller="MicrobatchSelfRegController" title="{!$Label.site.user_registration}"> |
| | | <apex:page id="microbatchSelfRegPage" showHeader="true" controller="MicrobatchSelfRegController" title="{!$Label.site.user_registration}" lightningStylesheets="true"> |
| | | <apex:define name="body"> |
| | | <center> |
| | | <apex:form id="theForm" forceSSL="true"> |
| | |
| | | <apex:includeScript value="{!URLFOR($Resource.apex20)}"/> |
| | | <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/> |
| | | <apex:includeScript value="{! URLFOR($Resource.AWSService, 'AWSService.js') }" /> |
| | | <apex:stylesheet value="{!URLFOR($Resource.StyleUtilCss)}"/> |
| | | <style type="text/css"> |
| | | table#AssetTable select { |
| | | width: 98%; |
| | |
| | | .dateFormat { |
| | | display: none; |
| | | } |
| | | |
| | | body label, .slds-vf-scope label { |
| | | font-size: .875rem; |
| | | } |
| | | table.detailList th, table.detailList td{ |
| | | |
| | | vertical-align: middle; |
| | | } |
| | | body .bPageBlock .detailList .labelCol label, .slds-vf-scope .bPageBlock .detailList .labelCol label { |
| | | margin-top: -0.125rem; |
| | | } |
| | | |
| | | body .bPageBlock .detailList .dataCol { |
| | | width: auto; |
| | | } |
| | | |
| | | table.detailList td.dataCol.last input { |
| | | width: 150px; |
| | | } |
| | | div[field-api="Reporter__c"] .lookupInput { |
| | | margin-left: 10px; |
| | | } |
| | | body .detailList .dataCol input[type="text"] { |
| | | min-width: 71px; |
| | | margin-top: -4px; |
| | | } |
| | | table.detailList td.dataCol.last input[field-api="Responsible_Person__c"] { |
| | | margin-left: -5px; |
| | | } |
| | | table.detailList td.dataCol input[field-api="Manual_Department__c"] { |
| | | min-width: 368px; |
| | | } |
| | | table.detailList td.dataCol input[field-api="Hospital__c"] { |
| | | min-width: 362px; |
| | | } |
| | | |
| | | /*20230719 ljh start*/ |
| | | .mytable .pbSubsection .detailList tr td,.mytable .pbSubsection .detailList th td{ |
| | | height: 40px; |
| | | line-height: 40px; |
| | | } |
| | | .mytable tr td label{ |
| | | margin-right: 0; |
| | | margin-left: 5px; |
| | | } |
| | | body .bPageBlock .mytable .detailList .labelCol{ |
| | | width:10%; |
| | | height: 40px; |
| | | line-height: 40px; |
| | | } |
| | | .mytable .dataCol select{ |
| | | margin-bottom: 0; |
| | | } |
| | | /*20230719 ljh end*/ |
| | | </style> |
| | | <script type="text/javascript"> |
| | | var tmpaid = ""; |
| | |
| | | blockme(); |
| | | //callback();return; |
| | | //<input type="hidden" value="{!ir.Id}" id="IrId"/> |
| | | |
| | | //<input type="hidden" value="{!ir.Responsible_Person_Encrypted__c}" id="Responsible_Person_Encrypted__c"/> |
| | | //<input type="hidden" value="{!ir.phone_Encrypted__c}" id="phone_Encrypted__c"/> |
| | | let e_id = document.getElementById("IrId"); |
| | | let url = staticResource.newUrl; |
| | | |
| | |
| | | |
| | | document.getElementById("Page:Form:Block:AWS_Data_Id__c").value = aws_data1.dataId; |
| | | j$("[field-api='phone__c']").val(aws_data1.phone); |
| | | //document.getElementById("Page:Form:Block:phone_Encrypted__c").value = aws_data1.phoneEncrypt; //zhj 新方案改造 2022-12-05 |
| | | j$("[field-api='Responsible_Person__c']").val(aws_data1.responsiblePerson); |
| | | //document.getElementById("Page:Form:Block:Responsible_Person_Encrypted__c").value = aws_data1.responsiblePersonEncrypt; //zhj 新方案改造 2022-12-05 |
| | | |
| | | if (callback) { |
| | | callback(); |
| | |
| | | function saveBtnJs(){ |
| | | Encrypt(saveBtn); |
| | | } |
| | | |
| | | function submitJs(){ |
| | | Encrypt(submit); |
| | | } |
| | |
| | | </head> |
| | | <body> |
| | | <!-- HWAG-B4Q3G5 20180918Start --> |
| | | <apex:form id="Form" style="margin:0 5px;" onkeydown="if(event.keyCode==13){return false;}">> |
| | | <apex:form id="Form" style="margin:0 5px;" onkeydown="if(event.keyCode==13){return false;}"> |
| | | <!-- HWAG-B4Q3G5 20180918End --> |
| | | <script type="text/javascript"> |
| | | // 保存後、新規の報告書IDを取得 |
| | |
| | | <table> |
| | | <tr> |
| | | <td><apex:outputLabel value="{!$ObjectType.Inspection_Report__c.Label}:" style="font-size:18px;font-weight:bold;padding-right: 5px;"/></td> |
| | | <td>(<apex:inputCheckBox value="{!ir.Name_Manual__c}" id="Name_Manual" onchange="toggleIrNameDisabled(this);return false;"/> |
| | | <td>( <apex:inputCheckBox value="{!ir.Name_Manual__c}" id="Name_Manual" onchange="toggleIrNameDisabled(this);return false;"/> |
| | | <apex:outputLabel value="{!$ObjectType.Inspection_Report__c.fields.Name_Manual__c.Label}" for="Name_Manual"/>) |
| | | <apex:inputField value="{!ir.Name}" id="Ir_Name" html-disabled="disabled" style="border-width:0px;font-size:18px;font-weight:bold;padding-right:20px;-webkit-text-fill-color:black;"/> |
| | | <apex:inputField value="{!ir.Name}" id="Ir_Name" html-disabled="disabled" style="border-width:1px;font-size:18px;font-weight:bold;padding-right:20px;margin-right: 10px;-webkit-text-fill-color:black;"/> |
| | | </td> |
| | | <td style="text-align: center;padding-right: 100px;"><input class="btn" type="Button" style="width:80px;" value="保存" action="" onclick="saveBtnJs();" rerender="Form" onComplete="unblockUI();"/></td> |
| | | <td style="text-align: center;padding-right: 100px;"><input class="btn" type="Button" value="提交" action="" onclick="submitJs();" style="width:80px" rerender="Form" id="submitButton" onComplete="unblockUI();"/></td> |
| | | <td style="text-align: center;padding-right: 100px;"><apex:commandButton style="width:80px;" value="关闭窗口" onclick="location.href='/apex/OFSWindowClose';return false;" id="closeButton"/></td> |
| | | <td style="text-align: center;padding-right: 100px;"><apex:commandButton style="width:90px;" value="关闭窗口" onclick="location.href='/apex/OFSWindowClose';return false;" id="closeButton"/></td> |
| | | <td style="text-align: center;"><input class="btn" type="Button" style="width:80px;" value="PDF" action="" onclick="showPDFJs();" rerender="Form" onComplete="unblockUI();"/></td> |
| | | </tr> |
| | | </table> |
| | | <apex:pageBlockSection title="{!sectionList[0].title}" columns="{!sectionList[0].column}" showHeader="{!sectionList[0].showHeader}" rendered="{!sectionList.size>0}"> |
| | | <apex:repeat value="{!sectionList[0].sectionItemList}" var="sectionItem" id="SectionItemList"> |
| | | <apex:outputField value="{!ir[sectionItem.api]}" rendered="{!NOT(sectionItem.isDummy)&&NOT(sectionItem.isCustomize)&&NOT(sectionItem.isInput)}"/> |
| | | <apex:outputField value="{!ir[sectionItem.api]}" rendered="{!NOT(sectionItem.isDummy)&&NOT(sectionItem.isCustomize)&&NOT(sectionItem.isInput)}" /> |
| | | <apex:inputField style="width:{!sectionItem.width};height:{!sectionItem.height};" value="{!ir[sectionItem.api]}" rendered="{!NOT(sectionItem.isDummy)&&NOT(sectionItem.isCustomize)&§ionItem.isInput}" required="{!sectionItem.isRequired}" html-tabindex="{!sectionItem.index}"/> |
| | | <apex:pageblockSectionItem rendered="{!NOT(sectionItem.isDummy)&&(sectionItem.isCustomize)&&Not(isNull(sectionItem.customizeLable))}"> |
| | | <apex:outputLabel value="{!sectionItem.customizeLable}"/> |
| | |
| | | <apex:outputField value="{!ir[api]}"/> |
| | | </apex:outputPanel> |
| | | <apex:outputPanel layout="none" rendered="{!NOT(api == 'Hospital__c' && ir.Id != '')}"> |
| | | <apex:outputLabel style="font-weight: bold; padding-right: 5px;" value="{!sectionItem.apiLabelMap[api]}"/> |
| | | <apex:inputField value="{!ir[api]}" style="{!sectionItem.apiStyleMap[api]}" rendered="{!NOT(api=='') && (sectionItem.isInput || sectionItem.apiInputMap[api])}" required="{!sectionItem.apiRequireMap[api]}" html-tabindex="{!sectionItem.index}"/> |
| | | <apex:outputLabel style="font-weight: bold; padding-right: 5px; " value="{!sectionItem.apiLabelMap[api]}"/> |
| | | <apex:inputField value="{!ir[api]}" style="{!sectionItem.apiStyleMap[api]}" rendered="{!NOT(api=='') && (sectionItem.isInput || sectionItem.apiInputMap[api])}" required="{!sectionItem.apiRequireMap[api]}" html-tabindex="{!sectionItem.index}" /> |
| | | <apex:outputPanel style="display:inline-block;{!sectionItem.apiStyleMap[api]}" rendered="{!NOT(api=='') && NOT((sectionItem.isInput || sectionItem.apiInputMap[api]))}"> |
| | | <apex:outputField value="{!ir[api]}"/> |
| | | </apex:outputPanel> |
| | |
| | | <apex:inputHidden value="{!ir.phone_Encrypted__c}" id="phone_Encrypted__c"/> --> |
| | | <!-- zhj 新方案改造 2022-12-05 end--> |
| | | <apex:inputHidden value="{!ir.AWS_Data_Id__c}" id="AWS_Data_Id__c"/> |
| | | |
| | | |
| | | |
| | | |
| | | <apex:repeat value="{!sectionList}" var="section" id="SectionList"> |
| | | <apex:pageBlockSection title="{!section.title}" columns="{!section.column}" showHeader="{!section.showHeader}" rendered="{!!section.isTop}"> |
| | | <apex:repeat value="{!section.sectionItemList}" var="sectionItem" id="SectionItemList"> |
| | | <apex:outputField value="{!ir[sectionItem.api]}" rendered="{!NOT(sectionItem.isDummy)&&NOT(sectionItem.isCustomize)&&NOT(sectionItem.isInput)}"/> |
| | | <apex:inputField html-field-api="{!sectionItem.api}" style="width:{!sectionItem.width};height:{!sectionItem.height};" value="{!ir[sectionItem.api]}" rendered="{!NOT(sectionItem.isDummy)&&NOT(sectionItem.isCustomize)&§ionItem.isInput}" required="{!sectionItem.isRequired}" html-tabindex="{!sectionItem.index}"/> |
| | | <apex:pageblockSectionItem rendered="{!NOT(sectionItem.isDummy)&&(sectionItem.isCustomize)&&Not(isNull(sectionItem.customizeLable))}"> |
| | | <apex:outputLabel value="{!sectionItem.customizeLable}"/> |
| | | <apex:outputPanel layout="none"> |
| | | <apex:repeat value="{!sectionItem.apiList}" var="api"> |
| | | <!-- 保存後、病院は強制outputField --> |
| | | <apex:outputPanel layout="none" rendered="{!api == 'Hospital__c' && ir.Id != ''}"> |
| | | <apex:outputField value="{!ir[api]}"/> |
| | | </apex:outputPanel> |
| | | <apex:outputPanel layout="none" rendered="{!NOT(api == 'Hospital__c' && ir.Id != '')}"> |
| | | <apex:outputLabel style="font-weight: bold; padding-right: 5px;" value="{!sectionItem.apiLabelMap[api]}"/> |
| | | <apex:inputField html-field-api="{!api}" value="{!ir[api]}" style="{!sectionItem.apiStyleMap[api]}" rendered="{!NOT(api=='') && (sectionItem.isInput || sectionItem.apiInputMap[api])}" required="{!sectionItem.apiRequireMap[api]}" html-tabindex="{!sectionItem.index}"/> |
| | | <apex:outputPanel style="display:inline-block;{!sectionItem.apiStyleMap[api]}" rendered="{!NOT(api=='') && NOT((sectionItem.isInput || sectionItem.apiInputMap[api]))}"> |
| | | <apex:outputField value="{!ir[api]}"/> |
| | | </apex:outputPanel> |
| | | </apex:outputPanel> |
| | | <apex:pageBlockSection title="{!section.title}" columns="{!section.column}" showHeader="{!section.showHeader}" rendered="{!!section.isTop}" html-class="mytable"> |
| | | <apex:repeat value="{!section.sectionItemList}" var="sectionItem" id="SectionItemList"> |
| | | <apex:outputField value="{!ir[sectionItem.api]}" rendered="{!NOT(sectionItem.isDummy)&&NOT(sectionItem.isCustomize)&&NOT(sectionItem.isInput)}"/> |
| | | <!-- 20230719 ljh --> |
| | | <!-- <apex:inputField html-field-api="{!sectionItem.api}" style="width:{!sectionItem.width};height:{!sectionItem.height};margin-left:17px;" value="{!ir[sectionItem.api]}" rendered="{!NOT(sectionItem.isDummy)&&NOT(sectionItem.isCustomize)&§ionItem.isInput}" required="{!sectionItem.isRequired}" html-tabindex="{!sectionItem.index}"/> --> |
| | | <apex:inputField html-field-api="{!sectionItem.api}" style="width:{!sectionItem.width};height:{!sectionItem.height};" value="{!ir[sectionItem.api]}" rendered="{!NOT(sectionItem.isDummy)&&NOT(sectionItem.isCustomize)&§ionItem.isInput}" required="{!sectionItem.isRequired}" html-tabindex="{!sectionItem.index}"/> |
| | | <apex:pageblockSectionItem rendered="{!NOT(sectionItem.isDummy)&&(sectionItem.isCustomize)&&Not(isNull(sectionItem.customizeLable))}"> |
| | | <apex:outputLabel value="{!sectionItem.customizeLable}" /> |
| | | <apex:outputPanel layout="none"> |
| | | <apex:repeat value="{!sectionItem.apiList}" var="api"> |
| | | <!-- 保存後、病院は強制outputField --> |
| | | <apex:outputPanel layout="none" rendered="{!api == 'Hospital__c' && ir.Id != ''}"> |
| | | <apex:outputField value="{!ir[api]}"/> |
| | | </apex:outputPanel> |
| | | <apex:outputPanel layout="none" rendered="{!NOT(api == 'Hospital__c' && ir.Id != '')}"> |
| | | <!-- 20230719 ljh --> |
| | | <!-- <apex:outputLabel style="font-weight: bold; padding-right: 5px;" value="{!sectionItem.apiLabelMap[api]}"/> --> |
| | | <apex:outputLabel style="font-weight: bold;" value="{!sectionItem.apiLabelMap[api]}"/> |
| | | <apex:inputField html-field-api="{!api}" value="{!ir[api]}" style="{!sectionItem.apiStyleMap[api]}" rendered="{!NOT(api=='') && (sectionItem.isInput || sectionItem.apiInputMap[api])}" required="{!sectionItem.apiRequireMap[api]}" html-tabindex="{!sectionItem.index}"/> |
| | | <apex:outputPanel style="display:inline-block;{!sectionItem.apiStyleMap[api]}" rendered="{!NOT(api=='') && NOT((sectionItem.isInput || sectionItem.apiInputMap[api]))}"> |
| | | <!-- <apex:outputField value="{!ir[api]}"/> --> |
| | | {!ir[api]} |
| | | </apex:outputPanel> |
| | | </apex:outputPanel> |
| | | </apex:repeat> |
| | | </apex:outputPanel> |
| | | </apex:pageblockSectionItem> |
| | | <apex:pageblockSectionItem rendered="{!NOT(sectionItem.isDummy)&&(sectionItem.isCustomize)&&(isNull(sectionItem.customizeLable))}"> |
| | | <apex:outputPanel layout="none"> |
| | | <apex:repeat value="{!sectionItem.apiList}" var="api"> |
| | | <!-- 20230719 ljh --> |
| | | <!-- <apex:outputLabel style="font-weight: bold; padding-right: 5px;" value="{!sectionItem.apiLabelMap[api]}"/> --> |
| | | <apex:outputLabel style="font-weight: bold;" value="{!sectionItem.apiLabelMap[api]}"/> |
| | | <apex:inputField html-field-api="api" value="{!ir[api]}" style="{!sectionItem.apiStyleMap[api]}" rendered="{!NOT(api=='') && (sectionItem.isInput || sectionItem.apiInputMap[api])}" required="{!sectionItem.apiRequireMap[api]}" html-tabindex="{!sectionItem.index}"/> |
| | | <apex:outputPanel style="display:inline-block;{!sectionItem.apiStyleMap[api]}" rendered="{!NOT(api=='') && NOT((sectionItem.isInput || sectionItem.apiInputMap[api]))}"> |
| | | <apex:outputField value="{!ir[api]}"/> |
| | | </apex:outputPanel> |
| | | </apex:repeat> |
| | | </apex:outputPanel> |
| | | </apex:pageblockSectionItem> |
| | | <apex:pageBlockSectionItem rendered="{!sectionItem.isDummy}"/> |
| | | </apex:repeat> |
| | | </apex:pageBlockSection> |
| | | </apex:repeat> |
| | | <!-- zzm add 230726 start --> |
| | | <apex:outputPanel > |
| | | <table class="edittable" border="0" style="border-collapse: collapse; table-layout:fixed;margin-bottom:20px;margin-top: -10px;"> |
| | | <tr> |
| | | <td style='width: 120px;text-align: right;'>{!$ObjectType.Inspection_Report__c.fields.Agency__c.Label}</td> |
| | | <td style='min-width: 360px;padding-left: 20px;'><apex:inputField value="{!ir.Agency__c}" style="min-width: 368px;"/></td> |
| | | <td style='width: 178px;text-align: right;'>{!$ObjectType.Inspection_Report__c.fields.Agency_Contact_Id__c.Label}</td> |
| | | <td style='min-width: 360px;padding-left: 20px;'><apex:inputField value="{!ir.Agency_Contact_Id__c}" style="width:161px;"/></td> |
| | | </tr> |
| | | </table> |
| | | </apex:outputPanel> |
| | | </apex:pageblockSectionItem> |
| | | <apex:pageblockSectionItem rendered="{!NOT(sectionItem.isDummy)&&(sectionItem.isCustomize)&&(isNull(sectionItem.customizeLable))}"> |
| | | <apex:outputPanel layout="none"> |
| | | <apex:repeat value="{!sectionItem.apiList}" var="api"> |
| | | <apex:outputLabel style="font-weight: bold; padding-right: 5px;" value="{!sectionItem.apiLabelMap[api]}"/> |
| | | <apex:inputField html-field-api="api" value="{!ir[api]}" style="{!sectionItem.apiStyleMap[api]}" rendered="{!NOT(api=='') && (sectionItem.isInput || sectionItem.apiInputMap[api])}" required="{!sectionItem.apiRequireMap[api]}" html-tabindex="{!sectionItem.index}"/> |
| | | <apex:outputPanel style="display:inline-block;{!sectionItem.apiStyleMap[api]}" rendered="{!NOT(api=='') && NOT((sectionItem.isInput || sectionItem.apiInputMap[api]))}"> |
| | | <apex:outputField value="{!ir[api]}"/> |
| | | </apex:outputPanel> |
| | | </apex:repeat> |
| | | </apex:outputPanel> |
| | | </apex:pageblockSectionItem> |
| | | <apex:pageBlockSectionItem rendered="{!sectionItem.isDummy}"/> |
| | | </apex:repeat> |
| | | </apex:pageBlockSection> |
| | | </apex:repeat> |
| | | |
| | | <!-- zzm add 230726 end --> |
| | | <script type="text/javascript"> |
| | | // 病院の左側「刷新」ボタン追加 |
| | | var labels = document.getElementsByTagName("label"); |
| | |
| | | } |
| | | } |
| | | </script> |
| | | <apex:pageBlockSection title="已选保有设备字段历史" columns="1" id="CheckSection"> |
| | | <!-- zzm add 230726 start --> |
| | | <apex:pageBlockSection title="医院科室情况调查" columns="1" id="UnCheckSection1" > |
| | | <apex:outputPanel > |
| | | <table class="edittable" border="0" style="border-collapse: collapse; table-layout:fixed;"> |
| | | <tr> |
| | | <td>{!$ObjectType.Inspection_Report__c.fields.Department_Leakage_Frequency__c.Label}:</td> |
| | | <td><apex:inputField value="{!ir.Department_Leakage_Frequency__c}" style="width: 90%" required="true"/></td> |
| | | <td>{!$ObjectType.Inspection_Report__c.fields.Original_Leakage_Device__c.Label}:</td> |
| | | <td> |
| | | <apex:inputField value="{!ir.Original_Leakage_Device__c}" style="width: 90%" required="true"/> |
| | | </td> |
| | | <td>{!$ObjectType.Inspection_Report__c.fields.Leakage_Status__c.Label}:</td> |
| | | <td> |
| | | <apex:inputField value="{!ir.Leakage_Status__c}" id="Leakage_Status" required="true" style="width: 90%"/> |
| | | </td> |
| | | |
| | | </tr> |
| | | |
| | | <tr> |
| | | <td>{!$ObjectType.Inspection_Report__c.fields.Disinfectant_type__c.Label}:</td> |
| | | <td><apex:inputField value="{!ir.Disinfectant_type__c}" required="true" style="width: 90%"/></td> |
| | | <td>{!$ObjectType.Inspection_Report__c.fields.Cleaning_Solution_Brand__c.Label}:</td> |
| | | <td><apex:inputField value="{!ir.Cleaning_Solution_Brand__c}" style="width: 90%" required="true"/></td> |
| | | <td>{!$ObjectType.Inspection_Report__c.fields.Disinfection_Method__c.Label}:</td> |
| | | <td><apex:inputField value="{!ir.Disinfection_Method__c}" style="width: 90%" required="true"/></td> |
| | | |
| | | </tr> |
| | | <tr> |
| | | <td>{!$ObjectType.Inspection_Report__c.fields.Escrow__c.Label}:</td> |
| | | <td><apex:inputField value="{!ir.Escrow__c}" style="width: 90%" required="true"/></td> |
| | | <td>{!$ObjectType.Inspection_Report__c.fields.Third_Party_Maintenance__c.Label}:</td> |
| | | <td><apex:inputField value="{!ir.Third_Party_Maintenance__c}" style="width: 90%" required="true"/></td> |
| | | <td>{!$ObjectType.Inspection_Report__c.fields.CustomerSuggestion__c.Label}:</td> |
| | | <td> |
| | | <apex:inputField value="{!ir.CustomerSuggestion__c}" style="width: 90%"/> |
| | | </td> |
| | | |
| | | </tr> |
| | | |
| | | </table> |
| | | <!-- zzm add 230726 end --> |
| | | </apex:outputPanel> |
| | | </apex:pageBlockSection> |
| | | <apex:pageBlockSection title="设备点检结果" columns="1" id="CheckSection"> |
| | | <input type="hidden" id="ProductCnt" value="{!productCount}" /> |
| | | |
| | | <apex:outputPanel > |
| | | <apex:outputPanel style="padding-top:0px;"> |
| | | <table width="100%"> |
| | | <tr> |
| | | <td> </td> |
| | | <td width="100px"> |
| | | <span>全</span> |
| | | <td width="120px"> |
| | | <span style='display: inline-block;line-height: 30px; vertical-align: middle; margin-top: -18px;'>全</span> |
| | | <select style="vertical-align:text-bottom" id="allCheckResult" size="1" onchange="changeAllCheckResult(this.value);"> |
| | | <option value=" ">--无--</option> |
| | | <!-- 默认全OK --> |
| | |
| | | <!-- add by rentx 20210630 end --> |
| | | </select> |
| | | </td> |
| | | <td width="500px"> </td> |
| | | <td width="485px"> </td> |
| | | </tr> |
| | | </table> |
| | | <!-- TODO minus scroll with --> |
| | | <table id="AssetTableHeader" class="list" style="border-bottom-width: 0px; font-size:13px;" border="0" cellspacing="0" cellpadding="0"> |
| | | <tr style="border-bottom: 1px groove rgba(254, 254, 254, 0.48);background: #f2f3f3;"> |
| | | <!-- add by rentx 20210809 --> |
| | | <th class="headerCell" style="width:14px"> <apex:inputCheckbox id="checkAll1" onclick="checkAll(this)" /> </th> |
| | | <th class="headerCell" style="width:14px"> <apex:inputCheckbox id="checkAll1" onclick="checkAll(this)" style="margin-left: 5px;"/> </th> |
| | | <!-- <th class="headerCell" style="width:14px" /> --> |
| | | <!-- add by rentx 202120809 --> |
| | | <th class="headerCell" style="width:24px"/> |
| | | <th class="headerCell" style="width:24px">No.</th> |
| | | <th class="headerCell" style="width:60px">{!$ObjectType.Asset.fields.Asset_situation__c.label}</th> |
| | | <th class="headerCell">{!$ObjectType.Asset.fields.Name.label}</th> |
| | | <th class="headerCell" style="width:302px">{!$ObjectType.Asset.fields.Name.label}</th> |
| | | <th class="headerCell" style="width:100px">{!$ObjectType.Inspection_Item__c.Fields.SerialNumber__c.Label}</th> |
| | | <!-- TODO 項目の作成 --> |
| | | <th class="headerCell" style="width:80px">上次点检日</th> |
| | |
| | | <th class="headerCell" style="width:100px">{!$ObjectType.Inspection_Item__c.Fields.Diagnosis__c.Label}</th> |
| | | <!-- add by rentx 20210630 --> |
| | | <th class="headerCell" style="width:85px">{!$ObjectType.Inspection_Item__c.Fields.Abandonment_Reasons__c.Label}</th> |
| | | <th class="headerCell" style="width:16px"></th> |
| | | <!-- add by rentx 20210630 --> |
| | | <th class="headerCell" style="width:35px">{!$ObjectType.Asset.Fields.Create_repair__c.Label}</th> |
| | | <!-- <th class="headerCell" style="width:35px">{!$ObjectType.Asset.Fields.Create_repair__c.Label}</th> --> |
| | | <!-- <td class="headerScroll"></td> --> |
| | | </tr> |
| | | </table> |
| | | |
| | | <div style="height:320px; width:100%; overflow:auto;"> |
| | | <div style="height:340px; width:100%; overflow:auto;"> |
| | | <table style="border-collapse:collapse; width:100%;" id="AssetTable"> |
| | | <apex:variable value="{!1}" var="cnt" /> |
| | | <apex:repeat value="{!checkedInfoList}" var="cInfo" id="CheckedInfoList" > |
| | | <tr style="border-bottom: 1px groove rgba(254, 254, 254, 0.48);"> |
| | | <td style="width:14px"> |
| | | <td style="width:33px"> |
| | | <apex:inputCheckbox value="{!cInfo.rec_checkBox_c}" id="AssetRowCheckbox1" rendered="{!Not(cInfo.IsManual)}"/> |
| | | <apex:outputText value="{!cInfo.IsManual}" id="IsManual" style="display:none;" /> |
| | | <input type="hidden" value="{!cInfo.rec.Id}" id="CheckAssetId"/> |
| | |
| | | <td class="dataCell"> |
| | | <!-- HWAG-BDCA9J 添加了 onclick blurProduct 内容 start--> |
| | | <apex:outputField value="{!cInfo.rec.Name}" rendered="{!Not(cInfo.IsManual)}"/> |
| | | <apex:inputField value="{!cInfo.ah.Product_Manual__c}" id="Assert" style="width:90%;" rendered="{!cInfo.IsManual}" |
| | | <apex:inputField value="{!cInfo.ah.Product_Manual__c}" id="Assert" style="width:100%;" rendered="{!cInfo.IsManual}" |
| | | onclick="if(!blurProduct(this))return false;"/> |
| | | <!-- HWAG-BDCA9J 添加了 onclick blurProduct 内容 end--> |
| | | </td> |
| | |
| | | <apex:inputField value="{!cInfo.ah.Fault_Classification3__c}" id="cat3" /> |
| | | </td> |
| | | <td class="dataCell" style="width:100px"> |
| | | <apex:inputField value="{!cInfo.ah.Diagnosis__c}" style="width:93%"/> |
| | | <apex:inputField value="{!cInfo.ah.Diagnosis__c}" style="width:98%"/> |
| | | </td> |
| | | <!-- add by rentx 20210630 --> |
| | | <td class="dataCell" style="width:85px"> |
| | | <apex:inputField value="{!cInfo.ah.Abandonment_Reasons__c}" style="width:93%" /> |
| | | </td> |
| | | <!-- add by rentx 20210630 --> |
| | | <td class="dataCell" style="width:35px"> |
| | | <!-- <td class="dataCell" style="width:35px"> |
| | | <apex:outputPanel layout="none" rendered="{!Not(cInfo.IsManual)}"> |
| | | <a href="#" onclick="saveByRepairJs('{!cInfo.rec.Id}', '{!JSENCODE(cInfo.rec.Name)}', '{!cInfo.rec.Hospital__r.Id}', '{!JSENCODE(cInfo.rec.Hospital__r.Name)}', '{!cInfo.rec.Department_Class__r.Id}', '{!JSENCODE(cInfo.rec.Department_Class__r.Name)}', '{!cInfo.rec.Account.Id}', '{!JSENCODE(cInfo.rec.Account.Name)}', '只修理');">■</a> |
| | | </apex:outputPanel> |
| | | </td> |
| | | </td> --> |
| | | </tr> |
| | | <apex:variable value="{!cnt + 1}" var="cnt" /> |
| | | </apex:repeat> |
| | |
| | | </apex:pageBlockSection> |
| | | |
| | | <apex:outputPanel id="ButtonPanel"> |
| | | <table style="width:100%;"> |
| | | <table style="width:100%;margin:10px 0 10px 0;"> |
| | | <tr> |
| | | <td> |
| | | <apex:commandButton value="行追加" action="{!addNewRows}" disabled="{!Not($ObjectType.Inspection_Item__c.createable)}" |
| | |
| | | <!-- HWAG-B4Q3G5 20180918End --> |
| | | <input type="hidden" id="ProductCnt2" value="{!productCount2}" /> |
| | | <apex:outputPanel > |
| | | <div align="center"> |
| | | <!-- <div align="center"> |
| | | <apex:outputPanel id="countorder">第{!countorder}页</apex:outputPanel> |
| | | <apex:commandButton value="上一页" action="{!UpPage}" onclick="blockme();" disabled="{!IF(countorder=1,true,false)}" oncomplete="unblockUI();" reRender="Form"/> |
| | | <apex:commandButton value="下一页" action="{!DownPage}" onclick="blockme();" disabled="{!IF(countorder >=nowAssetcount ,true,false)}" oncomplete="unblockUI();" rerender="Form"/> |
| | | <apex:outputPanel id="NowOrdercount">共{!nowAssetcount}页</apex:outputPanel> |
| | | </div> |
| | | </div> --> |
| | | |
| | | <table> |
| | | <tr> |
| | |
| | | <td style="width:85px" align="right"><apex:selectList value="{!text1}" id="text1" size="1" style="width:80px"><apex:selectOptions value="{!textOpts}"/></apex:selectList></td> |
| | | <td style="width:85px" align="center"><apex:selectList value="{!cond1}" id="cond1" size="1" style="width:80px"><apex:selectOptions value="{!equalOpts}"/></apex:selectList></td> |
| | | <td style="width:95px" align="left"><apex:inputText value="{!val1}" id="val1" style="width:100px"/></td> |
| | | <td align="left"> |
| | | <td align="left" style="width:450px"> |
| | | |
| | | <apex:commandButton value="检索" onclick="searchJs();return false;" style="width:130px" rerender="dummy"/> |
| | | |
| | | <apex:commandButton value="清除条件" onclick="clearAndSearch();" style="width:130px" rerender="dummy"/> |
| | | |
| | | <span style="vertical-align: text-bottom;">使用中<apex:inputCheckBox value="{!activeOn}" /></span> |
| | | </td> |
| | | <td> |
| | | <apex:outputPanel id="countorder">第{!countorder}页 </apex:outputPanel> |
| | | <apex:commandButton value="上一页" action="{!UpPage}" onclick="blockme();" disabled="{!IF(countorder=1,true,false)}" oncomplete="unblockUI();" reRender="Form"/> |
| | | <apex:commandButton value="下一页" action="{!DownPage}" onclick="blockme();" disabled="{!IF(countorder >=nowAssetcount ,true,false)}" oncomplete="unblockUI();" rerender="Form"/> |
| | | <apex:outputPanel id="NowOrdercount"> 共{!nowAssetcount}页</apex:outputPanel> |
| | | </td> |
| | | </tr> |
| | | </table> |
| | |
| | | </apex:outputPanel> |
| | | </apex:pageBlockSection> |
| | | <!-- fxk 2021/8/4 新加 Start--> |
| | | <apex:pageBlockSection title="打印时洗消信息" columns="1" id="UnCheckSection1" > |
| | | <apex:outputPanel > |
| | | <table class="edittable" border="0" style="border-collapse: collapse; width:600px; table-layout:fixed;"> |
| | | <tr> |
| | | <td>{!$ObjectType.Inspection_Report__c.fields.CleaningFluid__c.Label}:</td> |
| | | <td><apex:inputField value="{!ir.CleaningFluid__c}" style="width: 90%"/></td> |
| | | <!-- <apex:pageBlockSection title="打印时洗消信息" columns="1" id="UnCheckSection1" > --> |
| | | <!-- <apex:outputPanel > --> |
| | | <!-- <table class="edittable" border="0" style="border-collapse: collapse; width:600px; table-layout:fixed;"> --> |
| | | <!-- <tr> --> |
| | | <!-- <td>{!$ObjectType.Inspection_Report__c.fields.CleaningFluid__c.Label}:</td> --> |
| | | <!-- <td><apex:inputField value="{!ir.CleaningFluid__c}" style="width: 90%"/></td> --> |
| | | <!-- 方式 add by rentx 20210927 start--> |
| | | <td>{!$ObjectType.Inspection_Report__c.fields.Mode__c.Label}:</td> |
| | | <td><apex:inputField value="{!ir.Mode__c}" style="width: 90%"/></td> |
| | | <!-- <td>{!$ObjectType.Inspection_Report__c.fields.Mode__c.Label}:</td> --> |
| | | <!-- <td><apex:inputField value="{!ir.Mode__c}" style="width: 90%"/></td> --> |
| | | <!-- 方式 add by rentx 20210927 end --> |
| | | <td>{!$ObjectType.Inspection_Report__c.fields.SterilizationMethod__c.Label}:</td> |
| | | <td><apex:inputField value="{!ir.SterilizationMethod__c}" style="width: 90%"/></td> |
| | | <td>{!$ObjectType.Inspection_Report__c.fields.Remarks__c.Label}:</td> |
| | | <td><apex:inputText value="{!ir.Remarks__c}" style="width: 90%"/></td> |
| | | </tr> |
| | | <tr> |
| | | <td>{!$ObjectType.Inspection_Report__c.fields.Disinfectant__c.Label}:</td> |
| | | <td><apex:inputField value="{!ir.Disinfectant__c}" style="width: 90%"/></td> |
| | | <td>{!$ObjectType.Inspection_Report__c.fields.UsedMachine__c.Label}:</td> |
| | | <td><apex:inputField value="{!ir.UsedMachine__c}" style="width: 90%"/></td> |
| | | <td>{!$ObjectType.Inspection_Report__c.fields.Used_ET__c.Label}:</td> |
| | | <td><apex:inputText value="{!ir.Used_ET__c}" style="width: 90%"/></td> |
| | | </tr> |
| | | </table> |
| | | </apex:outputPanel> |
| | | </apex:pageBlockSection> |
| | | <!-- <td>{!$ObjectType.Inspection_Report__c.fields.SterilizationMethod__c.Label}:</td> --> |
| | | <!-- <td><apex:inputField value="{!ir.SterilizationMethod__c}" style="width: 90%"/></td> --> |
| | | <!-- <td>{!$ObjectType.Inspection_Report__c.fields.Remarks__c.Label}:</td> --> |
| | | <!-- <td><apex:inputText value="{!ir.Remarks__c}" style="width: 90%"/></td> --> |
| | | <!-- </tr> --> |
| | | <!-- <tr> --> |
| | | <!-- <td>{!$ObjectType.Inspection_Report__c.fields.Disinfectant__c.Label}:</td> --> |
| | | <!-- <td><apex:inputField value="{!ir.Disinfectant__c}" style="width: 90%"/></td> --> |
| | | <!-- <td>{!$ObjectType.Inspection_Report__c.fields.UsedMachine__c.Label}:</td> --> |
| | | <!-- <td><apex:inputField value="{!ir.UsedMachine__c}" style="width: 90%"/></td> --> |
| | | <!-- <td>{!$ObjectType.Inspection_Report__c.fields.Used_ET__c.Label}:</td> --> |
| | | <!-- <td><apex:inputText value="{!ir.Used_ET__c}" style="width: 90%"/></td> --> |
| | | <!-- </tr> --> |
| | | <!-- </table> --> |
| | | <!-- </apex:outputPanel> --> |
| | | <!-- </apex:pageBlockSection> --> |
| | | <!-- fxk 2021/8/4 新加 End--> |
| | | </div> |
| | | </apex:pageBlock></div> |
| | |
| | | <apex:stylesheet value="{!URLFOR($Resource.fullcalendarCss)}"/> |
| | | |
| | | <apex:stylesheet value="{!URLFOR($Resource.PersonalCalendarCssTwo)}"/> |
| | | <style> |
| | | |
| | | div.calendarHeader div.line2 input.dayViewIconOn, div.calendarHeader div.line2 input.weekViewIconOn { |
| | | background-color: rgb(243, 243, 243); |
| | | } |
| | | div.calendarHeader div.line2 input.dayViewIcon,div.calendarHeader div.line2 input.weekViewIcon { |
| | | background-color: transparent; |
| | | } |
| | | |
| | | div.calendarHeader div.line2 { |
| | | display: inline-block; |
| | | } |
| | | .calendarHeader .dayViewIconOn , .calendarHeader .dayViewIcon, |
| | | .calendarHeader .weekViewIconOn ,.calendarHeader .weekViewIcon { |
| | | float: left; |
| | | background-repeat: no-repeat; |
| | | margin-right: 3px; |
| | | width: 24px; |
| | | height: 18px; |
| | | } |
| | | .calendarHeader .dayViewIconOn { |
| | | background-image: url(/img/sprites/calendar.gif); |
| | | background-position: -26px -36px; |
| | | display: block |
| | | } |
| | | .calendarHeader .dayViewIcon { |
| | | background-image: url(/img/sprites/calendar.gif); |
| | | background-position: 0 -36px; |
| | | display: block |
| | | } |
| | | .calendarHeader .weekViewIconOn { |
| | | background-image: url(/img/sprites/calendar.gif); |
| | | background-position: -26px -146px; |
| | | display: block |
| | | } |
| | | .calendarHeader .weekViewIcon { |
| | | background-image: url(/img/sprites/calendar.gif); |
| | | background-position: 0 -146px; |
| | | display: block |
| | | } |
| | | |
| | | .calendarHeader .arrowIcons .prevCalArrow,.calendarHeader .arrowIcons .nextCalArrow { |
| | | width: 22px; |
| | | height: 19px; |
| | | margin: 0; |
| | | background: url(/img/alohaSkin/nextPrevBtn_sprite.png) left top no-repeat |
| | | } |
| | | |
| | | .calendarHeader .arrowIcons .nextCalArrow { |
| | | background-position: right top |
| | | } |
| | | |
| | | .calendarHeader .arrowIcons a:hover .prevCalArrow { |
| | | background-position: left -19px |
| | | } |
| | | |
| | | .calendarHeader .arrowIcons a:hover .nextCalArrow { |
| | | background-position: right -19px |
| | | } |
| | | .dateLinks .datePickerIcon { |
| | | background-image: url(/img/func_icons/util/datePicker16.gif); |
| | | background-position: 0 0; |
| | | width: 16px; |
| | | height: 17px |
| | | } |
| | | |
| | | |
| | | </style> |
| | | <script type="text/javascript"> |
| | | function searchBySalesDptJs() { |
| | | var baseUrl = '{!ProvinceUrl}'; |
| | |
| | | document.location.href = baseUrl; |
| | | } |
| | | function change2DayView() { |
| | | debugger |
| | | var baseUrl = '{!DayViewUrl}'; |
| | | var pSearch = encodeURIComponent(j$(escapeVfId('Page:Form:searchText')).val()); |
| | | if (pSearch != '') { |
| | |
| | | <apex:selectList value="{!cond1}" id="cond1" size="1"><apex:selectOptions value="{!equalOpts}"/></apex:selectList> |
| | | <apex:inputText value="{!val1}" id="val1" style="width:200px"/> |
| | | <input type="submit" value="Search" onclick="searchJs();return false;"/> |
| | | <apex:inputCheckbox value="{!ocmUser}" id="ocmUser" onclick="searchJs();return false;"/><apex:outputLabel value="销售本部" for="ocmUser"/> |
| | | <apex:inputCheckbox value="{!allProvince}" id="allProvince" onclick="searchJs();return false;"/><apex:outputLabel value="全部省" for="allProvince"/> |
| | | <apex:inputCheckbox value="{!ocmUser}" id="ocmUser" onclick="searchJs();return false;" style='vertical-align: text-bottom;'/><apex:outputLabel value="销售本部" for="ocmUser"/> |
| | | <apex:inputCheckbox value="{!allProvince}" id="allProvince" style='vertical-align: text-bottom;' onclick="searchJs();return false;"/><apex:outputLabel value="全部省" for="allProvince"/> |
| | | </div> |
| | | <div style="clear:both;"></div> |
| | | <div class="dateLinks line2" style="margin:1px 10px;"> |
| | | <apex:inputText value="{!searchText}" id="searchText" style="width:200px" html-placeholder="Search Calendar" onchange="searchMark();return false;" onkeypress="return onKeyEvent(event);"/> |
| | | <input type="button" value="Prev" onclick="prevMark();return false;"/> |
| | | <input type="button" value="Next" onclick="nextMark();return false;"/> |
| | | <input type="button" value="Prev" class='btn' onclick="prevMark();return false;"/> |
| | | <input type="button" value="Next" class='btn' onclick="nextMark();return false;"/> |
| | | </div><script type="text/javascript">var jSearch = j$(escapeVfId('Page:Form:searchText'));jSearch.attr("current", "0");jSearch.attr("max", "{!markCnt}");</script> |
| | | <apex:outputPanel layout="none" rendered="{!IF(IsWeek, true, false)}"> |
| | | <!-- 週 --> |
| | | <div class="dwmIcons line2"> |
| | | <div class="dwmIcons line2" style="margin-right:20px;height: 29px;vertical-align: bottom;"> |
| | | <!-- <input type="button" value="日视图" onclick="change2DayView();return false;" class="btn dayViewIcon" onblur="this.className = 'btn dayViewIcon';" onfocus="this.className = 'btn dayViewIconOn';" onmouseout="this.className = 'btn dayViewIcon';this.className = 'btn dayViewIcon';" onmouseover="this.className = 'btn dayViewIconOn';this.className = 'btn dayViewIconOn';"/> |
| | | <input type="button" value="周视图" onclick="change2WeekView();return false;" class="btn weekViewIconOn" onblur="this.className = 'btn weekViewIconOn';" onfocus="this.className = 'btn weekViewIconOn';" onmouseout="this.className = 'btn weekViewIconOn';this.className = 'btn weekViewIconOn';" onmouseover="this.className = 'btn weekViewIconOn';this.className = 'btn weekViewIconOn';"/> --> |
| | | |
| | | <a onclick="change2DayView();" title="日视图"><img src="/s.gif" alt="日视图" class="dayViewIcon" onblur="this.className = 'dayViewIcon';" onfocus="this.className = 'dayViewIconOn';" onmouseout="this.className = 'dayViewIcon';this.className = 'dayViewIcon';" onmouseover="this.className = 'dayViewIconOn';this.className = 'dayViewIconOn';" title="日视图" /></a> |
| | | <a onclick="change2WeekView();" title="周视图"><img src="/s.gif" alt="周视图" class="weekViewIconOn" onblur="this.className = 'weekViewIconOn';" onfocus="this.className = 'weekViewIconOn';" onmouseout="this.className = 'weekViewIconOn';this.className = 'weekViewIconOn';" onmouseover="this.className = 'weekViewIconOn';this.className = 'weekViewIconOn';" title="周视图" /></a> |
| | | </div> |
| | |
| | | </apex:outputPanel> |
| | | <apex:outputPanel layout="none" rendered="{!IF(IsWeek, false, true)}"> |
| | | <!-- 日 --> |
| | | <div class="dwmIcons line2"> |
| | | <div class="dwmIcons line2" style="margin-right:20px;height: 29px;vertical-align: bottom;"> |
| | | <!-- <input type="button" value="日视图" onclick="change2DayView();return false;" class="btn dayViewIconOn" onblur="this.className = 'btn dayViewIconOn';" onfocus="this.className = 'btn dayViewIconOn';" onmouseout="this.className = 'btn dayViewIconOn';this.className = 'btn dayViewIconOn';" onmouseover="this.className = 'btn dayViewIconOn';this.className = 'btn dayViewIconOn';"/> |
| | | <input type="button" value="周视图" onclick="change2WeekView();return false;" class="btn weekViewIcon" onblur="this.className = 'btn weekViewIcon';" onfocus="this.className = 'btn weekViewIconOn';" onmouseout="this.className = 'btn weekViewIcon';this.className = 'btn weekViewIcon';" onmouseover="this.className = 'btn weekViewIconOn';this.className = 'btn weekViewIconOn';"/> --> |
| | | |
| | | <a onclick="change2DayView();" title="日视图"><img src="/s.gif" alt="日视图" class="dayViewIconOn" onblur="this.className = 'dayViewIconOn';" onfocus="this.className = 'dayViewIconOn';" onmouseout="this.className = 'dayViewIconOn';this.className = 'dayViewIconOn';" onmouseover="this.className = 'dayViewIconOn';this.className = 'dayViewIconOn';" title="日视图" /></a> |
| | | <a onclick="change2WeekView();" title="周视图"><img src="/s.gif" alt="周视图" class="weekViewIcon" onblur="this.className = 'weekViewIcon';" onfocus="this.className = 'weekViewIconOn';" onmouseout="this.className = 'weekViewIcon';this.className = 'weekViewIcon';" onmouseover="this.className = 'weekViewIconOn';this.className = 'weekViewIconOn';" title="周视图" /></a> |
| | | |
| | | </div> |
| | | <div class="dateText line2"> |
| | | <apex:outputText value="{0, date, E yyyy/MM/dd}"> |
| | |
| | | <apex:inputCheckbox value="{!t2}" onclick="showDayAll(this);"/><span style="font-size:80%;">全部展开</span> |
| | | </div> |
| | | </apex:outputPanel> |
| | | <div class="arrowIcons line2"> |
| | | <div class="arrowIcons line2" style="height: 32px;line-height: 32px;vertical-align: bottom;"> |
| | | <a href="{!PrevUrl}" title="Prev" class="prev"><img src="/s.gif" alt="Prev" title="Prev" class="prevCalArrow"/></a> |
| | | <a href="{!NextUrl}" title="Next" class="next"><img src="/s.gif" alt="Next" title="Next" class="nextCalArrow"/></a> |
| | | <a href="{!NextUrl}" title="Next" class="next"><img src="/s.gif" alt="Next" title="Next" class="nextCalArrow" style="margin-left: -4px;"/></a> |
| | | </div> |
| | | <div class="dateLinks line2" style="margin:4px 10px 2px 0px;"> |
| | | <div class="dateLinks line2" style=" height: 29px;vertical-align: bottom;"> |
| | | |
| | | <input type="hidden" value="{!mdDayFormat}" id="mdDayFormat" onchange="changedDay(this.value)" /> |
| | | <img src="/s.gif" alt="选择日期" class="datePickerIcon" onclick="DatePicker.pickDate(true, 'mdDayFormat', false, this);DatePicker.datePicker.cancelHide(getEvent(event));" title="选择日期"/> |
| | | </div> |
| | | <div class="reportActions" style="float:left;margin-left:20px;margin-bottom:0px;"> |
| | | <div class="menuButton" id="runMutton" style="position:relative;margin-bottom:0px;"> |
| | | <div class="menuButtonButton hasDefault" id="runMuttonButton" style="height:16px;padding-top:2px;padding-bottom:2px;"> |
| | | <span class="menuButtonLabel" id="runMuttonLabel" tabindex="0" style="position:absolute;top:3px;left:5px;">报表/仪表板</span> |
| | | <div class="reportActions" style="margin-left:20px;margin-bottom:1px;display: inline-block;"> |
| | | <div class="menuButton" id="runMutton" style="position:relative;margin-bottom:1px;width:120px;height: 32px;"> |
| | | <div class="menuButtonButton hasDefault" id="runMuttonButton" style="height:16px;padding-bottom:2px;"> |
| | | <span class="menuButtonLabel" id="runMuttonLabel" tabindex="0" style="position:absolute;left:5px;">报表/仪表板</span> |
| | | </div> |
| | | <div class="menuButtonMenu" id="runMuttonMenu" style="display:none;"> |
| | | <div class="menuButtonMenu" id="runMuttonMenu" style="display:none;margin-top:15px;"> |
| | | <!-- <a href="/00O10000003s5pN" target="_blank" class="menuButtonMenuLink">报告详细</a> |
| | | <a href="/00O10000003sfjN" target="_blank" class="menuButtonMenuLink">本周计划</a> |
| | | <a href="/00O10000004UUa5" target="_blank" class="menuButtonMenuLink">每月报告和实际拜访匹配</a> |
| | | <a href="/01Z10000000foL2" target="_blank" class="menuButtonMenuLink">销售仪表板</a> |
| | | <a href="/01Z10000000fqLn" target="_blank" class="menuButtonMenuLink">FSE仪表板</a> --> |
| | | <a href="/00O10000003s5pN" target="_blank" class="menuButtonMenuLink">上周报告明细</a> |
| | | |
| | | <!-- 修改硬编码 zzm 20230602--> |
| | | <!-- <a href="/00O10000003s5pN" target="_blank" class="menuButtonMenuLink">上周报告明细</a> |
| | | <a href="/00O10000004wbL7" target="_blank" class="menuButtonMenuLink">本周计划</a> |
| | | <a href="/00O10000004UUa5" target="_blank" class="menuButtonMenuLink">月别计划实施情况</a> |
| | | <a href="/01Z100000010pq7" target="_blank" class="menuButtonMenuLink">推广仪表板</a> |
| | | <a href="/01Z10000000T76l" target="_blank" class="menuButtonMenuLink">服务仪表板</a> |
| | | <a href="/01Z10000000T76l" target="_blank" class="menuButtonMenuLink">服务仪表板</a> --> |
| | | |
| | | <a href="/{!preweekPlanID}" target="_blank" class="menuButtonMenuLink">上周报告明细</a> |
| | | <a href="/{!weekPlanID}" target="_blank" class="menuButtonMenuLink">本周计划</a> |
| | | <a href="/{!monthPlanID}" target="_blank" class="menuButtonMenuLink">月别计划实施情况</a> |
| | | <a href="/{!promotPlanId}" target="_blank" class="menuButtonMenuLink">推广仪表板</a> |
| | | <a href="/{!servePlanId}" target="_blank" class="menuButtonMenuLink">服务仪表板</a> |
| | | |
| | | |
| | | </div> |
| | | </div><script type="text/javascript">new MenuButton('runMutton', false);</script> |
| | | </div> |
| | |
| | | <!-- 20230526 ljh lightning --> |
| | | <!-- <apex:page controller="QueuePageByAssetIdController" showHeader="false" sidebar="false" id="allPage" action="{!init}" lightningStylesheets="true"> --> |
| | | <apex:page controller="QueuePageByAssetIdController" showHeader="false" sidebar="false" id="allPage" action="{!init}" lightningStylesheets="true"> |
| | | <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/> |
| | | <apex:stylesheet value="{!URLFOR($Resource.QueuePageByAssetIdCss)}"/> |
| | |
| | | <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.RelationListPagingCmpJS)}"/> |
| | | <style> |
| | | table.list{ |
| | | /* 20230526 ljh lightning start */ |
| | | /* table.list{ |
| | | width: 100%!important; |
| | | } |
| | | } */ |
| | | body .detailList .dataCol input[type="text"]{min-width: 60px;width:60px;} |
| | | /* 20230526 ljh lightning end */ |
| | | </style> |
| | | <script type="text/javascript"> |
| | | var heightAjustment = 120; |
| | |
| | | <apex:outputText value="备品分类:"/><apex:outputField value="{!raesd.Equipment_Type_text__c}"/> |
| | | </apex:outputPanel> |
| | | <apex:outputPanel > |
| | | <apex:outputText value="指定排队NO.:"/><apex:inputText id="strNum" value="{!inptNumStr}" onChange="changeNum();return false;" /> |
| | | <apex:outputText value="指定排队NO.:"/><apex:inputText id="strNum" value="{!inptNumStr}" onChange="changeNum();return false;"/> |
| | | </apex:outputPanel> |
| | | <!-- 20211104 排队 add end--> |
| | | </apex:pageBlockSection> |
| | |
| | | <apex:page controller="ReantalApplySeriesNoController" showHeader="false" sidebar="false" id="allPage" action="{!init}" title="序列查看"> |
| | | <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/> |
| | | <!-- <apex:page controller="ReantalApplySeriesNoController" showHeader="false" sidebar="false" id="allPage" action="{!init}" title="序列查看"> --> |
| | | <apex:page controller="ReantalApplySeriesNoController" showHeader="false" sidebar="false" id="allPage" action="{!init}" title="序列查看" lightningStylesheets="true"> |
| | | <!-- 20230525 ljh lightning --> |
| | | <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 --> |
| | | <style type="text/css"> |
| | | .bPageBlock .detailList .dataCol { |
| | | width: auto; |
| | |
| | | </script> |
| | | <apex:form id="allForm"> |
| | | <apex:pageBlock id="searchBlock" title="序列信息"> |
| | | <apex:pageBlockSection columns="3" id="mainSection"> |
| | | <!-- 20230525 ljh lightning start --> |
| | | <!-- <apex:pageBlockSection columns="3" id="mainSection"> |
| | | <apex:pageBlockSectionItem > |
| | | <apex:outputLabel value="型号:" /> |
| | | <apex:outputField value="{!raq.Fixture_Model_No__c}"/> |
| | |
| | | </apex:pageBlockSectionItem> |
| | | <apex:pageBlockSectionItem > |
| | | <apex:outputLabel value="序列类型:"/> |
| | | <!-- {!Isadmix} --> |
| | | <apex:outputText value="{!IF(Isadmix,'混合','单一')}"/> |
| | | <!-- <input name="Isadmix" disabled="true" type="checkbox" value="{!Isadmix}" checked="{!IF(Isadmix,'checked','')}" /> --> |
| | | </apex:pageBlockSectionItem> |
| | | </apex:pageBlockSection> |
| | | </apex:pageBlockSection> --> |
| | | <table style="width:100%;margin:10px 0;" > |
| | | <tr> |
| | | <td>型号:</td> |
| | | <td>{!raq.Fixture_Model_No__c}</td> |
| | | <td>备品存放地:</td> |
| | | <td>{!raq.Internal_asset_location__c}</td> |
| | | <td>本部:</td> |
| | | <td>{!raq.Salesdepartment__c}</td> |
| | | </tr> |
| | | <tr> |
| | | <td>备品分类:</td> |
| | | <td>{!raq.Equipment_Type__c}</td> |
| | | <td>产品分类:</td> |
| | | <td>{!raq.Product_category__c}</td> |
| | | <td>序列类型:</td> |
| | | <td>{!IF(Isadmix,'混合','单一')}</td> |
| | | </tr> |
| | | </table> |
| | | <!-- 20230525 ljh lightning end --> |
| | | </apex:pageBlock> |
| | | <apex:outputPanel id="message"> |
| | | <apex:pageMessages /> |
| | |
| | | <apex:page showHeader="false" sidebar="false" id="test01" title="1.相关性确认"> |
| | | <apex:includeLightning /> |
| | | <div style="width:100%;height:100%;" id="test01Container" /> |
| | | <script> |
| | | $Lightning.use("c:test01App", function () { |
| | | $Lightning.createComponent("c:relevant", |
| | | {}, |
| | | "test01Container", |
| | | function (cmp) { |
| | | console.log('Component created, do something cool here'); |
| | | }); |
| | | }); |
| | | |
| | | var interval = setInterval(()=>{ |
| | | var hrefStr = window.location.href; |
| | | if (hrefStr.indexOf("Refresh") != -1) { |
| | | var arr = hrefStr.split("=="); |
| | | window.opener.parent.location.href = "/"+arr[1]; |
| | | top.window.close(); |
| | | clearInterval(interval); |
| | | } |
| | | },1000); |
| | | |
| | | |
| | | </script> |
| | | |
| | | </apex:page> |
| | | <!-- <apex:page showHeader="false" sidebar="false" id="test01" title="1.相关性确认"> --> |
| | | <apex:page showHeader="false" sidebar="false" id="test01" title="1.相关性确认" lightningStylesheets="true">] |
| | | <apex:includeLightning /> |
| | | <div style="width:100%;height:100%;" id="test01Container" /> |
| | | <script> |
| | | $Lightning.use("c:test01App", function () { |
| | | $Lightning.createComponent("c:relevant", |
| | | {}, |
| | | "test01Container", |
| | | function (cmp) { |
| | | console.log('Component created, do something cool here'); |
| | | }); |
| | | }); |
| | | |
| | | var interval = setInterval(()=>{ |
| | | var hrefStr = window.location.href; |
| | | if (hrefStr.indexOf("Refresh") != -1) { |
| | | var arr = hrefStr.split("=="); |
| | | window.opener.parent.location.href = "/"+arr[1]; |
| | | top.window.close(); |
| | | clearInterval(interval); |
| | | } |
| | | },1000); |
| | | |
| | | |
| | | </script> |
| | | |
| | | </apex:page> |
| | |
| | | <apex:page controller="RentalApplySequenceController" showHeader="false" sidebar="false" id="allPage" action="{!init}" title="排队查看"> |
| | | <!-- 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 --> |
| | | <style type="text/css"> |
| | | .hideDropdown select{ |
| | | display: none |
| | |
| | | </apex:actionFunction> |
| | | <apex:inputHidden id="checkEventId" value="{!checkEventId}" /> |
| | | <apex:pageBlock id="searchBlock" title="查看排队情况"> |
| | | <apex:pageBlockSection title="检索" id="mainSection" columns="4" > |
| | | <apex:pageBlockSectionItem > |
| | | <!-- 20230523 ljh lightning start --> |
| | | <!-- <apex:pageBlockSection title="检索" id="mainSection" columns="4" > |
| | | <apex:pageBlockSectionItem > |
| | | <apex:outputLabel value="申请单号" /> |
| | | <apex:inputText id="S_raName" value="{!S_raName}"/> |
| | | </apex:pageBlockSectionItem> |
| | |
| | | <apex:outputLabel for="S_bieBenBu" value="队列所在地区本部" /> |
| | | <apex:inputText id="S_bieBenBu" value="{!S_bieBenBu}"/> |
| | | </apex:pageBlockSectionItem> |
| | | <!-- onchange="blockme(); changebenbu()" --> |
| | | <!-- changebenbu(); --> |
| | | <apex:pageBlockSectionItem rendered="{!isEquipmentCenter}"> |
| | | <apex:outputLabel for="S_bieCunFangDi" value="备品存放地" /> |
| | | <apex:selectList value="{!S_bieCunFangDi}" onchange="blockme(); changeCunfangdi();selectCunFangDiJs(this);return false;" size="1" style="width:160px" id="S_bieCunFangDi"> |
| | |
| | | </apex:repeat> |
| | | </ul> |
| | | </li> |
| | | <!-- style="display: none;" --> |
| | | </ul> |
| | | <div class="nav_close"></div> |
| | | </apex:outputPanel> |
| | |
| | | </apex:repeat> |
| | | </ul> |
| | | </li> |
| | | <!-- style="display: none;" --> |
| | | </ul> |
| | | </apex:outputPanel> |
| | | </apex:pageBlockSectionItem> |
| | |
| | | </apex:pageBlockSectionItem> |
| | | |
| | | <apex:pageBlockSectionItem > |
| | | <apex:commandButton style="" value="检索" onclick="searchJs(); return false;"/> |
| | | </apex:pageBlockSectionItem> |
| | | </apex:pageBlockSection> |
| | | |
| | | <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:pageBlock> |
| | | <!-- </apex:pageBlock> --> |
| | | <!-- 20230523 ljh lightning end --> |
| | | <apex:pageBlock id="MySequence"> |
| | | <apex:outputPanel id="message"> |
| | | <apex:pageMessages /> |
| | |
| | | <col width="10%"/> |
| | | </colgroup> |
| | | <thead> |
| | | <tr class="headerRow" > |
| | | <tr class="headerRow"> |
| | | <th style="padding-bottom: 6px;">申请单号No.</th> |
| | | <th style="padding-bottom: 6px;">一览No.</th> |
| | | <th style="padding-bottom: 6px;">型号</th> |
| | |
| | | </table> |
| | | </div> |
| | | </apex:pageBlock> |
| | | </apex:pageBlock> <!-- 20230523 ljh lightning --> |
| | | </apex:form> |
| | | |
| | | <apex:outputPanel id="checEventFrame"> |
| | |
| | | <apex:inputField id="campaignType" value="{!parentObj.CampaignType__c}" /> |
| | | </td> |
| | | </apex:outputPanel> |
| | | <td colspan="2" style="text-align:end;"> |
| | | <!-- 20230526 ljh lightning start--> |
| | | <!-- <td colspan="2" style="text-align:end;"> --> |
| | | <td style="text-align:end;"> |
| | | <!-- 20230526 ljh lightning end--> |
| | | <apex:commandButton action="{!defaultScheduel}" disabled="{!parentObj.Demo_purpose1__c=='其他'||parentObj.Status__c!='已批准'}" onclick="if(!defualtconfirm()) return false;blockme();" oncomplete="unblockUI();" value="默认排队" rerender="message,campaignType"/> |
| | | <!-- 20220105 ljh rerender add cmpid --> |
| | | </td> |
| | | <td style="width:190px;"> |
| | | <!-- 20230526 ljh lightning start--> |
| | | <!-- <td style="width:190px;"> --> |
| | | <td> |
| | | <!-- 20230526 ljh lightning end--> |
| | | <apex:outputPanel rendered="{!!(parentObj.Demo_purpose1__c=='维修代用'||parentObj.Demo_purpose1__c=='协议借用'||parentObj.Status__c!='已批准')}"> |
| | | <apex:commandButton style="margin-left:20px;" onclick="if(!confirmSpecial()) return false;blockme();" action="{!specialScheduel}" disabled="{parentObj.Demo_purpose1__c=='维修代用'||parentObj.Demo_purpose1__c=='协议借用'||parentObj.Status__c!='已批准'}" value="特殊排队" rerender="cmpid,checEventFrame,message,campaignType" oncomplete="unblockUI();" /> |
| | | </apex:outputPanel> |
| | |
| | | <apex:page controller="RentalFixtureSetAssignAgencyController" showHeader="false" sidebar="false" id="allPage" action="{!init}" title="办事处分配/发货"> |
| | | <!-- 20230524 ljh lightning --> |
| | | <!-- <apex:page controller="RentalFixtureSetAssignAgencyController" showHeader="false" sidebar="false" id="allPage" action="{!init}" title="办事处分配/发货"> --> |
| | | <apex:page controller="RentalFixtureSetAssignAgencyController" showHeader="false" sidebar="false" id="allPage" action="{!init}" title="办事处分配/发货" lightningStylesheets="true"> |
| | | <!-- 20210624 ljh update SFDC-C448GR --><!-- title="办事处分配/下架/发货" --> |
| | | <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/> |
| | | <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 --> |
| | | <style type="text/css"> |
| | | .hideDropdown select{ |
| | | display: none |
| | |
| | | table.list td.col_chk { |
| | | width:30px; |
| | | } |
| | | body .pbBody table.list tr.headerRow td, body .pbBody table.list tr.headerRow th { |
| | | /* 20230524 ljh lightning start */ |
| | | /* body .pbBody table.list tr.headerRow td, body .pbBody table.list tr.headerRow th { |
| | | border-width: 1px; |
| | | } |
| | | } */ |
| | | /* 20230524 ljh lightning end */ |
| | | </style> |
| | | <script type="text/javascript"> |
| | | function checkMessage() { |
| | |
| | | <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.RelationListPagingCmpJS)}"/> |
| | | |
| | | <!-- 20230511 ljh lightning start --> |
| | | <style type="text/css"> |
| | | table.list td input[type="text"]{width:55%;} |
| | | </style> |
| | | <!-- 20230511 ljh lightning end --> |
| | | <script type="text/javascript"> |
| | | var heightAjustment = 120; |
| | | var widthAjustment = 30; |
| | |
| | | </apex:actionFunction> |
| | | <apex:outputPanel id="pageallPanel"> |
| | | <apex:pageBlock id="searchBlock" tabStyle="Report"> |
| | | <apex:pageBlockButtons location="bottom"> |
| | | <!--20230425 zq lightning下修改样式 <apex:commandButton style="float:left;" action="{!save}" value="確定" onclick="blockme();" rerender="allForm, checEventFrame" oncomplete="unblockUI();" /> |
| | | <apex:commandButton style="float:right;" value="返回上一级" action="{!goBack}"/> |
| | | --> |
| | | |
| | | <apex:commandButton action="{!save}" value="確定" onclick="blockme();" rerender="allForm, checEventFrame" oncomplete="unblockUI();" /> |
| | | <apex:commandButton style="float:right;margin: 0 10px;" value="返回上一级" action="{!goBack}"/> |
| | | <!-- 20230522 ljh lightning start --> |
| | | <!-- <apex:pageBlockButtons location="bottom"> |
| | | <apex:commandButton style="float:left;" action="{!save}" value="確定" onclick="blockme();" rerender="allForm, checEventFrame" oncomplete="unblockUI();" /> |
| | | <apex:commandButton style="float:right;" value="返回上一级" action="{!goBack}"/> |
| | | <apex:commandButton style="float:right;" value="返回申请单" action="{!cancel}"/> |
| | | </apex:pageBlockButtons> |
| | | </apex:pageBlockButtons> |
| | | <div style="clear:both;"></div> --> |
| | | <!-- 20230522 ljh lightning end --> |
| | | <table> |
| | | <tr> |
| | | <td colspan="2">{!$ObjectType.Rental_Apply_Equipment_Set__c.fields.Name.label}</td> |
| | | <td colspan="3"><apex:outputText value="{!parentObj.Name}" style="width:100px"/></td> |
| | | </tr> |
| | | <tr> |
| | | <td colspan="2">{!$ObjectType.Rental_Apply_Equipment_Set__c.fields.Fixture_Set_Idx__c.label}</td> |
| | | <td colspan="3"><apex:outputText value="{!parentObj.Fixture_Set_Idx__c}" style="width:100px"/></td> |
| | | </tr> |
| | | <tr> |
| | | <td colspan="2">{!$ObjectType.Rental_Apply_Equipment_Set__c.fields.Loaner_name_F__c.label}</td> |
| | | <td colspan="3"><apex:outputText value="{!parentObj.Loaner_name_F__c}" style="width:100px"/></td> |
| | | </tr> |
| | | <!-- <tr> |
| | | <td colspan="2">{!$ObjectType.Rental_Apply_Equipment_Set__c.fields.Loaner_code__c.label}</td> |
| | | <td colspan="3"><apex:outputText value="{!parentObj.Loaner_code__c}" style="width:100px"/></td> |
| | | </tr> --> |
| | | <!-- <tr> |
| | | <td colspan="2">{!$ObjectType.Rental_Apply_Equipment_Set__c.fields.Rental_Num__c.label}</td> |
| | | <td colspan="3"><apex:outputText value="{!parentObj.Rental_Num__c}" style="width:100px"/></td> |
| | | </tr> --> |
| | | <!--TODO 同一附属品:レ --> |
| | | |
| | | </table> |
| | | <!-- 20230522 ljh lightning start --> |
| | | <div style="width:50%;float:right;"> |
| | | <apex:commandButton style="float:left;" action="{!save}" value="確定" onclick="blockme();" rerender="allForm, checEventFrame" oncomplete="unblockUI();" /> |
| | | <apex:commandButton style="float:right;" value="返回上一级" action="{!goBack}"/> |
| | | <apex:commandButton style="float:right;" value="返回申请单" action="{!cancel}"/> |
| | | <div style="clear:both;"></div> |
| | | |
| | | <table> |
| | | <tr> |
| | | <td colspan="2">{!$ObjectType.Rental_Apply_Equipment_Set__c.fields.Name.label}</td> |
| | | <td colspan="3"><apex:outputText value="{!parentObj.Name}" style="width:100px"/></td> |
| | | </tr> |
| | | <tr> |
| | | <td colspan="2">{!$ObjectType.Rental_Apply_Equipment_Set__c.fields.Fixture_Set_Idx__c.label}</td> |
| | | <td colspan="3"><apex:outputText value="{!parentObj.Fixture_Set_Idx__c}" style="width:100px"/></td> |
| | | </tr> |
| | | <tr> |
| | | <td colspan="2">{!$ObjectType.Rental_Apply_Equipment_Set__c.fields.Loaner_name_F__c.label}</td> |
| | | <td colspan="3"><apex:outputText value="{!parentObj.Loaner_name_F__c}" style="width:100px"/></td> |
| | | </tr> |
| | | <!-- <tr> |
| | | <td colspan="2">{!$ObjectType.Rental_Apply_Equipment_Set__c.fields.Loaner_code__c.label}</td> |
| | | <td colspan="3"><apex:outputText value="{!parentObj.Loaner_code__c}" style="width:100px"/></td> |
| | | </tr> --> |
| | | <!-- <tr> |
| | | <td colspan="2">{!$ObjectType.Rental_Apply_Equipment_Set__c.fields.Rental_Num__c.label}</td> |
| | | <td colspan="3"><apex:outputText value="{!parentObj.Rental_Num__c}" style="width:100px"/></td> |
| | | </tr> --> |
| | | <!--TODO 同一附属品:レ --> |
| | | |
| | | </table> |
| | | </div> |
| | | <!-- 20230522 ljh lightning end --> |
| | | </apex:pageBlock> |
| | | <c:RelationListPagingCmp id="cmpid" pgController="{!this}" hasCheckbox="false" noSort="true"/> |
| | | </apex:outputPanel> |
| | |
| | | <apex:page standardController="Rental_Apply_Equipment_Set__c" extensions="RentalFixtureSetSelectController" showHeader="false" sidebar="false" id="allPage" action="{!init}"> |
| | | <!-- <apex:page standardController="Rental_Apply_Equipment_Set__c" extensions="RentalFixtureSetSelectController" showHeader="false" sidebar="false" id="allPage" action="{!init}"> --> |
| | | <apex:page standardController="Rental_Apply_Equipment_Set__c" extensions="RentalFixtureSetSelectController" showHeader="false" sidebar="false" id="allPage" action="{!init}" lightningStylesheets="true"> |
| | | <!-- 20230509 ljh lightning 切换 --> |
| | | <head> |
| | | <title>备品配套选择</title> |
| | | <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/> |
| | |
| | | <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.RelationListPagingCmpJS)}"/> |
| | | |
| | | <!-- 20230509 ljh lightning start --> |
| | | <style type="text/css"> |
| | | table.list td input[type="text"]{width:55%;} |
| | | </style> |
| | | <!-- 20230509 ljh lightning end --> |
| | | <script type="text/javascript"> |
| | | var heightAjustment = 120; |
| | | var widthAjustment = 30; |
| | |
| | | |
| | | </table> |
| | | <apex:outputPanel layout="none" rendered="{!IF(RecordTypeName = 'ASACDecision'&& rdRecord.PAE_reappear_confirm__c = '未确认',false , true)}"> |
| | | <table style="width:100%; {!IF(RecordTypeName = 'ASACDecision'&& rdRecord.PAE_reappear_confirm__c = '未确认', 'display: none;', '')}" > |
| | | <table style="width:100%;margin-bottom: 10px; {!IF(RecordTypeName = 'ASACDecision'&& rdRecord.PAE_reappear_confirm__c = '未确认', 'display: none;', '')}" > |
| | | <tr> |
| | | <td> |
| | | |
| | |
| | | <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> |
| | |
| | | </apex:actionFunction> |
| | | <!--CHAN-BDQBLX 20210129 ljh end --> |
| | | <apex:pageBlock id="headBlock" tabStyle="Report"> |
| | | <table id="ButtonTable" border="0" > |
| | | <table id="ButtonTable" border="0" style='height: 45px;'> |
| | | <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> |
| | | <td style='padding: 0 5px;'> |
| | | <apex:commandbutton onclick="exportJs();return false;" id="export" value="导出数据模板"></apex:commandbutton> |
| | | </td> |
| | | <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%"); |
| | |
| | | </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> |
| | | </apex:outputPanel> |
| | | <!--CHAN-BDQBLX 20210205 ljh end --> |
| | | <apex:pageBlock id="headBlock" tabStyle="Report"> |
| | | <table id="ButtonTable" border="0" width="100%"> |
| | | <table id="ButtonTable" border="0" width="100%" style='margin-bottom: 5px;'> |
| | | <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> |
| | | <!--CHAN-BDQBLX 20210204 ljh end --> |
| | | </tr> |
| | | </table> |
| | | <table id="ButtonTable" border="0" width="100%"> |
| | | <tr> |
| | | <table id="ButtonTable" border="0" width="100%" > |
| | | <tr style='line-height: 40px;height: 40px;'> |
| | | <td width="15%"></td> |
| | | <td align="center"> |
| | | <apex:commandButton value="保存" rerender="dummy" onclick="saveJs();return false;" rendered="{!Not(isPast) && loginUser.ProfileId == $Label.ProfileId_SystemAdmin}"/> |
| | |
| | | <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"> |
| | |
| | | <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> |
| | |
| | | |
| | | <apex:pageBlock id="headBlock" tabStyle="Report"> |
| | | <table id="ButtonTable" border="0" width="100%"> |
| | | <tr> |
| | | <tr style='height: 40px;'> |
| | | <td width="15%">本部 <apex:selectList value="{!salesDpt}" size="1" style="width:120px" onchange="searchJs(this.value);return false;"><apex:selectOptions value="{!salesDptOpts}"/></apex:selectList></td> |
| | | |
| | | <!--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}"/> |
| | |
| | | <apex:page showHeader="false" title="選択リスト値取得" name="選択リスト値取得" Controller="SetupCheck_PicklistValuesGetController"> |
| | | <apex:page showHeader="false" title="選択リスト値取得" name="選択リスト値取得" Controller="SetupCheck_PicklistValuesGetController" lightningStylesheets="true"> |
| | | <script> |
| | | var pick_Vals = new Array(); |
| | | <apex:repeat value="{!val_PicklistValues}" var="pickval" id="PicklistRepeat"> |
| | |
| | | <apex:page showHeader="false" id="SiteTemplate"> |
| | | <apex:page showHeader="false" id="SiteTemplate" lightningStylesheets='true'> |
| | | <apex:stylesheet value="{!URLFOR($Resource.SiteSamples, 'SiteStyles.css')}"/> |
| | | <apex:insert name="header"> |
| | | <c:SiteHeader /> |
| | |
| | | <apex:page showHeader="false" title="{!$Label.site.site_under_construction}" id="StdExceptionTemplate" cache="false"> |
| | | <apex:page showHeader="false" title="{!$Label.site.site_under_construction}" id="StdExceptionTemplate" cache="false" lightningStylesheets="true"> |
| | | <apex:stylesheet value="{!URLFOR($Resource.SiteSamples, 'SiteStyles.css')}"/> |
| | | <center> |
| | | <apex:panelGrid bgcolor="white" columns="1"> |
| | |
| | | @last modified on : 03-30-2022 |
| | | @last modified by : ChangeMeIn@UserSettingsUnder.SFDoc |
| | | --> |
| | | <apex:page controller="StraightBackAddressController" action="{!init}" showHeader="false" lightningStylesheets="true" sidebar="true" id="allPage" title="直返收货地址"> |
| | | <apex:page controller="StraightBackAddressController" 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.AWSService, 'AWSService.js') }" /> |
| | | <apex:includeScript value="{!URLFOR($Resource.connection20)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.apex20)}"/> |
| | | <apex:stylesheet value="{!URLFOR($Resource.StyleUtilCss)}"/> |
| | | <script type="text/javascript"> |
| | | var checkedTrue; |
| | | var tableDataStr = ''; |
| | |
| | | var telePhonePlaintext = ''; |
| | | var zipCodePlaintext = ''; |
| | | var detailedAddressPlaintext = ''; |
| | | //add by xq 2023/06/30 Start |
| | | var tableDataJsons = JSON.parse('{!tableDataJson}'); |
| | | console.log('tableDataJsons = ' + JSON.stringify(tableDataJsons)) |
| | | //add by xq 2023/06/30 end |
| | | function b(){ |
| | | if (!isBlocking) { |
| | | blockme(); |
| | |
| | | // Address__c DatetimeUpdate = new Address__c(); |
| | | // DatetimeUpdate = tableData[i].address; |
| | | //详细地址 |
| | | debugger |
| | | console.log('进入采用') |
| | | let address_str = address.Detailed_Address__c.trim(); |
| | | if (addressAwsData.hasOwnProperty(address.AWS_Data_Id__c)) { |
| | | address_str = addressAwsData[address.AWS_Data_Id__c].detailedAddress; |
| | |
| | | let rc = new sforce.SObject('Repair__c'); |
| | | rc.Id='{!RepairId}'; |
| | | rc.address_Contacts__c=contactsName; |
| | | debugger |
| | | rc.address_ZipCode__c = address.ZipCode__c; |
| | | rc.address_City__c = cityName; |
| | | rc.address_Contacts_Name__c = ContactPerson; |
| | |
| | | console.log('contacts == null') |
| | | return; |
| | | } |
| | | let temp = {} |
| | | let temp = {}; |
| | | temp.telephone = result.object.telephone; |
| | | temp.zipCode = result.object.zipCode; |
| | | temp.detailedAddress = result.object.detailedAddress; |
| | |
| | | var interval=self.setInterval(function (){ |
| | | console.log('setInterval index= ' + index); |
| | | if(index == correct){ |
| | | console.log('PIDATA = ' + JSON.stringify(PIData)) |
| | | console.log('PIDATA = ' + JSON.stringify(PIData)); |
| | | resolve('success') |
| | | clearInterval(interval) |
| | | } |
| | |
| | | |
| | | //zhj PIPL 2022-06-08 start |
| | | function q2(){ |
| | | //解密信息add by xq 2023/07/03 Start |
| | | for(var i in tableDataJsons){ |
| | | if(PIData[tableDataJsons[i]]){ |
| | | document.getElementById(tableDataJsons[i]).innerText = PIData[tableDataJsons[i]].lastName; |
| | | document.getElementById(tableDataJsons[i] + '_phone').innerText = PIData[tableDataJsons[i]].telephone; |
| | | document.getElementById(tableDataJsons[i]+'_ZipCode').innerText = PIData[tableDataJsons[i]].zipCode; |
| | | document.getElementById(tableDataJsons[i]+'_Detailed_Address').innerText = PIData[tableDataJsons[i]].detailedAddress; |
| | | } |
| | | } |
| | | //解密信息add by xq 2023/07/03 end |
| | | // sforce.connection.sessionId = '{!GETSESSIONID()}'; |
| | | // var p = new Promise(function(resolve, reject){ |
| | | // //查询联系人的数据 |
| | |
| | | createDiv.style.background="#dddddd"; |
| | | createDiv.style.position = "absolute"; |
| | | parentNode.appendChild(createDiv); |
| | | parentNode.style.position = "relative"; |
| | | parentNode.style.position = "relative"; |
| | | } |
| | | |
| | | function hidePIDiv(awsDataId){ |
| | |
| | | AWSService.post(staticResource.searchUrl,{ |
| | | dataIds:arr1 |
| | | },function(data){ |
| | | ub(); |
| | | if(data && data.object && data.object.length > 0){ |
| | | for (let di in data.object) { |
| | | if (data.object[di] && data.object[di].dataId) { |
| | |
| | | } |
| | | |
| | | } |
| | | ub(); |
| | | },staticResource.token) |
| | | } |
| | | |
| | |
| | | AWSService.post(staticResourceContact.searchUrl,{ |
| | | dataIds:arr2 |
| | | },function(data){ |
| | | ub(); |
| | | if(data && data.object && data.object.length > 0){ |
| | | for (let di in data.object) { |
| | | if (data.object[di] && data.object[di].dataId) { |
| | |
| | | } |
| | | |
| | | } |
| | | ub(); |
| | | },staticResourceContact.token) |
| | | } |
| | | } |
| | |
| | | <td align="left" class="oraddress" style="vertical-align: inherit;border-width: 0px 1px 1px 0px;" address-data-id="{!or.address.AWS_Data_Id__c}" contact-data-id="{!or.address.Contacts__r.AWS_Data_Id__c}"> |
| | | <!-- <apex:outputfield value="{!or.address.Contacts__c}" id="{!or.address.Contacts__c}_{!or.address.Id}"/> --> |
| | | <!-- <a href="#" id="{!or.address.Id}" onmouseover="showPIDiv('{!or.address.Id}')" onmouseout="hidePIDiv('{!or.address.Id}')" aws-data-id="{!or.address.Contacts__r.AWS_Data_Id__c}">{!or.address.Contacts__r.Name}</a> --> |
| | | <a href="#" id="{!or.address.Id}" onmouseover="showPIDiv('{!or.address.Id}')" onmouseout="hidePIDiv('{!or.address.Id}')" aws-data-id="{!or.address.AWS_Data_Id__c}">{!or.address.ContactName__c}</a> |
| | | <!-- <a href="#" id="{!or.address.Id}" onmouseover="showPIDiv('{!or.address.Id}')" onmouseout="hidePIDiv('{!or.address.Id}')" aws-data-id="{!or.address.AWS_Data_Id__c}">{!or.address.ContactName__c}</a> --> |
| | | <a href="#" id="{!or.address.Id}" aws-data-id="{!or.address.AWS_Data_Id__c}">{!or.address.ContactName__c}</a><!--add by xq 2023/06/30 Start--> |
| | | </td> |
| | | <td align="left" style="vertical-align: inherit;border-width: 0px 1px 1px 0px;"> |
| | | <apex:outputText value="{!or.address.Telephone__c}" /> |
| | | <td align="left" style="vertical-align: inherit;border-width: 0px 1px 1px 0px;" id="{!or.address.Id + '_phone'}"> |
| | | <apex:outputText value="{!or.address.Telephone__c}" /> |
| | | </td> |
| | | <td align="left" style="vertical-align: inherit;border-width: 0px 1px 1px 0px;"> |
| | | <td align="left" style="vertical-align: inherit;border-width: 0px 1px 1px 0px;" id="{!or.address.Id + '_ZipCode'}"> |
| | | <apex:outputText value="{!or.address.ZipCode__c}" /> |
| | | </td> |
| | | <td align="center" style="vertical-align: inherit;border-width: 0px 1px 1px 0px;"> |
| | |
| | | <td align="center" style="vertical-align: inherit;border-width: 0px 1px 1px 0px;"> |
| | | <apex:outputfield value="{!or.address.City__c}" /> |
| | | </td> |
| | | <td align="left" style="vertical-align: inherit;border-width: 0px 1px 1px 0px;"> |
| | | <td align="left" style="vertical-align: inherit;border-width: 0px 1px 1px 0px;" id="{!or.address.Id + '_Detailed_Address'}"> |
| | | <apex:outputText value="{!or.address.Detailed_Address__c}" /> |
| | | </td> |
| | | <td align="center" style="vertical-align: inherit;width:30px;"> |
| | | <td align="center" style="vertical-align: inherit;width:70px;border-width: 0px 0px 1px 0px;display:{!or.canEdit};"> |
| | | <apex:commandButton value=" 编辑 " onclick="onEditorJs('{!or.address.id}');return false;" style="background:#98c1fbf7;display:{!or.canEdit};"/> |
| | | </td> |
| | | <td align="center" style="vertical-align: inherit;width:30px;"> |
| | | <td align="center" style="vertical-align: inherit;width:70px;border-width: 0px 0px 1px 0px;display:{!or.canCopy};"> |
| | | <apex:commandButton value=" 复制 " onclick="onCopyJs('{!or.address.id}');return false;" style="background: #98c1fbf7;display:{!or.canCopy};"/> |
| | | </td> |
| | | <td align="center" style="vertical-align: inherit;width:30px;"> |
| | | <td align="center" style="vertical-align: inherit;width:70px;border-width: 0px 0px 1px 0px;display:{!or.canAdopt};"> |
| | | <apex:commandButton value=" 采用 " onclick="onAdoptJs(event,JSON.parse('{!or.addressJson}'));return false;" style="background: #98c1fbf7;display:{!or.canAdopt};"/> |
| | | </td> |
| | | </tr> |
| | |
| | | <!-- <apex:inputTextarea value="{!insUpdData.Detailed_Address__c}" id="Detailed_Address__c" style="resize:vertical;width: 90%" rows="3" cols="3"/> --> |
| | | <apex:inputfield value="{!insUpdData.Detailed_Address__c}" id="Detailed_Address__c" style="resize:vertical;width: 98%"/> |
| | | |
| | | <!-- 2023-02-13 zyh add Start --> |
| | | <div id="errorMsg" style="color: red;"></div> |
| | | <!-- 2023-02-13 zyh add end --> |
| | | <div id="errorMsg" class="errorMsg"></div> |
| | | </apex:pageblocksection> |
| | | |
| | | <div style="text-align: center;"> |
| | |
| | | <apex:page showHeader="false" sidebar="false" id="TenderDeletePageApp" title="关联招投标"> |
| | | <!-- <apex:page showHeader="false" sidebar="false" id="TenderDeletePageApp" title="关联招投标"> --> |
| | | <apex:page showHeader="false" sidebar="false" id="TenderDeletePageApp" title="关联招投标" lightningStylesheets="true"> |
| | | <apex:includeLightning /> |
| | | <div style="width:100%;height:100%;" id="TenderDeletePageApp" /> |
| | | <script> |
| | |
| | | <apex:page showHeader="false" sidebar="false" id="TenderLostApp" title="招标项目失单"> |
| | | <apex:includeLightning /> |
| | | <div style="width:100%;height:100%;" id="TenderLostApp" /> |
| | | |
| | | <script> |
| | | $Lightning.use("c:TenderLostApp", function () { |
| | | $Lightning.createComponent("c:tenderLost", |
| | | {}, |
| | | "TenderLostApp", |
| | | function (cmp) { |
| | | console.log('Component created, do something cool here'); |
| | | }); |
| | | }); |
| | | |
| | | // var interval = setInterval(()=>{ |
| | | // var hrefStr = window.location.href; |
| | | // if (hrefStr.indexOf("Refresh") != -1) { |
| | | // // var arr = hrefStr.split("=="); |
| | | // // window.open('/a1U/e?retURL=%2F' + arr[1] + '&RecordType=01210000000R4hM'); |
| | | // top.window.close(); |
| | | // clearInterval(interval); |
| | | // } |
| | | // },1000); |
| | | </script> |
| | | |
| | | </apex:page> |
| | | <!-- <apex:page showHeader="false" sidebar="false" id="TenderLostApp" title="招标项目失单"> --> |
| | | <apex:page showHeader="false" sidebar="false" id="TenderLostApp" title="招标项目失单" lightningStylesheets="true"> |
| | | <apex:includeLightning /> |
| | | <div style="width:100%;height:100%;" id="TenderLostApp" /> |
| | | |
| | | <script> |
| | | $Lightning.use("c:TenderLostApp", function () { |
| | | $Lightning.createComponent("c:tenderLost", |
| | | {}, |
| | | "TenderLostApp", |
| | | function (cmp) { |
| | | console.log('Component created, do something cool here'); |
| | | }); |
| | | }); |
| | | |
| | | // var interval = setInterval(()=>{ |
| | | // var hrefStr = window.location.href; |
| | | // if (hrefStr.indexOf("Refresh") != -1) { |
| | | // // var arr = hrefStr.split("=="); |
| | | // // window.open('/a1U/e?retURL=%2F' + arr[1] + '&RecordType=01210000000R4hM'); |
| | | // top.window.close(); |
| | | // clearInterval(interval); |
| | | // } |
| | | // },1000); |
| | | </script> |
| | | |
| | | </apex:page> |
| | |
| | | <apex:page standardController="contact"> |
| | | <apex:page standardController="contact" lightningStylesheets="true"> |
| | | <!-- Begin Default Content REMOVE THIS --> |
| | | <h1>Congratulations</h1> |
| | | This is your new Page |
| | |
| | | <apex:page showHeader="false" sidebar="false" id="MaintenanceContractApp" title="MaintenanceContractApp"> |
| | | <apex:page showHeader="false" sidebar="false" id="MaintenanceContractApp" title="MaintenanceContractApp" lightningStylesheets='true'> |
| | | <apex:includeLightning /> |
| | | <div style="width:100%;height:100%;" id="MaintenanceContractApp" /> |
| | | <script> |
| | |
| | | /* 20230526 ljh start lightning */ |
| | | table.list .col_IndexFromUniqueKey_Text__c{width:90px;} |
| | | table.list .col_Fixture_Model_No__c{width:120px;} |
| | | table.list .col_Fixture_Name__c{width:100px;} |
| | | table.list .col_Canceled_Flag__c{width:90px;} |
| | | table.list .col_FSD_Is_Optional__c{width:50px;} |
| | | table.list .col_Substitute_flag__c{width:70px;} |
| | | table.list .col_Fu_Shu_Pin_Fen_Pei_Jia__c{width:100px;} |
| | | table.list .col_Asset__r_SerialNumber{width:90px;} |
| | | 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_You_Xiao_Ku_Cun__c{width:90px;} |
| | | table.list .col_FSD_Is_OneToOne__c{width:70px;} |
| | | 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;} |
| | |
| | | /* 20230526 ljh lightning */ |
| | | table.list .col_Queue_Number__c {width:70px;} |
| | | table.list .col_Rental_Apply__r_Name {width:150px;} |
| | | table.list .col_Queue_Time_F__c {width:100px;} |
| | | table.list .col_Rental_Apply__r_WorkPlace__c {width:120px;} |
| | | table.list .col_Rental_Apply__r_Person_In_Charge__c {width:120px;} |
| | | table.list .col_Rental_Apply__r_Request_shipping_day__c {width:100px;} |
| | | table.list .col_Rental_Apply__r_Request_approval_time__c {width:100px;} |
| | | table.list .col_Rental_Apply__r_demo_purpose2__c {width:100px;} |
| | | table.list .col_Allow_Adjust_Queue_Flag__c {width:100px;} |
| | | table.list .col_jumpReason__c {width:100px;} |
| | | table.list .col_Queue_Conment__c {width:100px;} |
| | | table.list .col_Queue_User__c {width:100px;} |
| | | table.list .col_Rental_Apply__r_Hospital__c {width:100px;} |
| | | table.list .col_Rental_Apply__r_Campaign__c {width:100px;} |
| | |
| | | position:relative; |
| | | overflow: hidden; |
| | | float:left; |
| | | width:32768px; |
| | | /* width:32768px; */ /* 20230523 ljh lightning */ |
| | | width: 1100px; |
| | | } |
| | | div#out_Div_L { |
| | | position:relative; |
| | |
| | | position:relative; |
| | | overflow: auto; /*スクロールバー*/ |
| | | float:left; |
| | | width:32768px; |
| | | /* width:32768px; */ /* 20230523 ljh lightning */ |
| | | height: 100px; /* tbodyを表示する高さ、後でjsにて調整 */ |
| | | width: 1100px; |
| | | } |
| | | div#in_Div_L { |
| | | position:relative; |
| | |
| | | body .pbBody table.list tr.dataRow td.dataCellBorder1 {padding:0px 0px 0px 0px; border-width: 0px 0px 1px 1px; vertical-align: middle; word-break:break-all;} |
| | | } |
| | | |
| | | table.list td {width:100px;} |
| | | /* table.list td {width:100px;} */ /* 20230523 ljh lightning */ |
| | | table.list td.col_noChk {width:0px;} |
| | | table.list td select {width:95%;} |
| | | table.list td input {width:95%;} |
| | | /* 20230509 ljh lightning start */ |
| | | /* table.list td input {width:95%;} */ |
| | | table.list td input[type="text"] {width:95%;} |
| | | |
| | | input.inc.btn{ |
| | | padding: 0 4px; |
| | | } |
| | | input.dec.btn{ |
| | | padding: 0 4px; |
| | | } |
| | | /* 20230509 ljh lightning end */ |
| | | table.list td textarea { |
| | | height:50px; |
| | | width:90%; |
| | |
| | | */ |
| | | |
| | | body .pbBody table.list tr.headerRow td.col_Scroll {width:0px; padding:0px; border-width:0px;} |
| | | body .pbBody table.list tr.dataRow td.col_Scroll {width:0px; padding:0px; border-width:0px;} |
| | | body .pbBody table.list tr.dataRow td.col_Scroll {width:0px; padding:0px; border-width:0px;} |
| | | /* 20230508 ljh lightning切换 start */ |
| | | 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; |
| | | color: #000; |
| | | font-size: .9em; |
| | | font-weight: bold; |
| | | padding: 5px 2px 4px 5px; |
| | | white-space:normal; |
| | | } |
| | | body .pbBody table.list tr th, body .pbBody table.list tr td { |
| | | border: 1px solid #ededed; |
| | | color: #000; |
| | | white-space:normal; |
| | | } |
| | | table#tableData{ |
| | | width: 1000px; |
| | | } |
| | | table#tableHeader{ |
| | | width: 1000px; |
| | | } |
| | | /* 20230508 ljh lightning切换 start */ |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | // 20230511 ljh start |
| | | function ToggleWidth(obj){ |
| | | var colClass = getColClassName(obj); |
| | | j$(obj).toggleClass("colUnHideIcon"); |
| | | // j$('<col class="col_Irreplaceable_flag__c">').toggleClass("colUnHideIcon"); |
| | | rerenderColWidth(colClass, false); |
| | | } |
| | | // 20230511 ljh 注释 start |
| | | // list の headerRow の tdに toggleWidth() を追加 |
| | | function bindTdToggleWidth() { |
| | | /*function bindTdToggleWidth() { |
| | | |
| | | var i = 0; |
| | | j$('body .pbBody table#tableHeader tr.headerRow td').each(function() { |
| | |
| | | j$('div#in_Div_L').scroll(function() { |
| | | j$('div#in_Div').scrollTop(j$(this).scrollTop()); |
| | | }); |
| | | } |
| | | }*/ |
| | | // 20230511 ljh 注释 start |
| | | function windowResize() { |
| | | |
| | | var heightsp = 0; |
| | |
| | | sbwidth = scrollbarWidth(); |
| | | blockWidth = j$(escapeVfId('allPage:allForm:searchBlock')).width() - j$('div#out_Div_L').width() - widthAjustment - sbwidth - 20; |
| | | //コンポネートなのでIDを変更 |
| | | j$(escapeVfId('allPage:allForm:cmpid:cmpinnerid:dataBlock')).css('height', blockHeight + 78 + 'px'); |
| | | j$('div#in_Div').css('width', blockWidth + 'px'); |
| | | j$('div#out_Div').css('width', blockWidth + 'px'); |
| | | // 20230519 ljh start |
| | | // j$(escapeVfId('allPage:allForm:cmpid:cmpinnerid:dataBlock')).css('height', blockHeight + 78 + 'px'); |
| | | j$(escapeVfId('allPage:allForm:cmpid:cmpinnerid:dataBlock')).css('height', blockHeight + 48 + 'px'); |
| | | // 20230519 ljh end |
| | | // j$('div#in_Div').css('width', blockWidth + 'px'); // 20230519 ljh |
| | | // j$('div#out_Div').css('width', blockWidth + 'px'); // 20230519 ljh |
| | | j$('div#in_Div').css('height', blockHeight + 'px'); |
| | | j$('div#in_Div_L').css('height', blockHeight + 'px'); |
| | | |
| | |
| | | } |
| | | |
| | | if (j$('table#tableData').height() > j$('div#in_Div').height()) { |
| | | j$('div#in_Div').css('width', (blockWidth + sbwidth) + 'px'); |
| | | // 20230519 ljh 增记if判断 |
| | | // j$('div#in_Div').css('width', (blockWidth + sbwidth) + 'px'); |
| | | if (j$('table#tableData').width() > j$('div#in_Div').width()) { |
| | | j$('div#in_Div').css('width', (blockWidth + sbwidth) + 'px'); |
| | | } |
| | | } else { |
| | | j$('div#out_Div').css('width', (blockWidth + sbwidth) + 'px'); |
| | | j$('div#in_Div').css('width', (blockWidth + sbwidth) + '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'); |
| | | } |
| | | } |
| | | if (j$('table#tableData').width() > j$('div#in_Div').width()) { |
| | | j$('div#in_Div').css('height', (blockHeight + sbwidth) +'px'); |
| | |
| | | var listColClassWidthMap = {}; // colclass ==> classのwidth |
| | | var blockHeight = 0; |
| | | var sbwidth = 0; |
| | | var tableWidth = 0;// 20230519 ljh lightning add |
| | | window.onresize = windowResize; |
| | | |
| | | function rerenderColWidth(colClass, isFirst) { |
| | | |
| | | var tableWidth = j$('body .pbBody table#tableHeader').width(); |
| | | // tableWidth = j$('body .pbBody table#tableHeader').width();// 20230519 ljh lightning add |
| | | var headerCol = j$('body .pbBody table.list tr.headerRow td.' + colClass); |
| | | if (headerCol.hasClass("colUnHideIcon")) { |
| | | listColClassMap[colClass] = "colUnHideIcon"; |
| | | tableWidth -= headerCol.width(); |
| | | // 20230519 ljh lightning start |
| | | // 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"); |
| | | } else { |
| | | listColClassMap[colClass] = "colViewing"; |
| | | if (isFirst == false) { |
| | | // if (isFirst == false) { // 20230519 ljh lightning 去掉判断 |
| | | var hiddenWidth = headerCol.width(); |
| | | j$('body .pbBody table.list td.' + colClass).width("").css("font-size", ""); |
| | | j$('body .pbBody table.list td.' + colClass).children().show(); |
| | | tableWidth += listColClassWidthMap[colClass] + 2 - hiddenWidth; // 2 is border |
| | | } |
| | | // } |
| | | } |
| | | // 2023-05-04 zyh lightning升级 start |
| | | // j$('table#tableData').css('width', (tableWidth + 2) + 'px'); |
| | | j$('table#tableData').css('width', (150) + '%'); |
| | | // j$('table#tableHeader').css('width', (tableWidth + 2) + 'px'); |
| | | j$('table#tableHeader').css('width', (150) + '%'); |
| | | // 2023-05-04 zyh lightning升级 end |
| | | |
| | | j$('table#tableData').css('width', (tableWidth + 2) + 'px'); |
| | | j$('table#tableHeader').css('width', (tableWidth + 2) + 'px'); |
| | | } |
| | | function getColClassName(pObj) { |
| | | |
| | |
| | | /* 20230526 ljh start lightning */ |
| | | table.list .col_First_RAESD_Model_No_F__c {width:120px;} |
| | | table.list .col_Loaner_name_F__c {width:120px;} |
| | | table.list .col_Zhu_Ti_Fen_Pei_Jia__c {width:120px;} |
| | | table.list .col_Fu_Shu_Pin_Fen_Pei_Jia__c {width:100px;} |
| | | table.list .col_Irreplaceable_flag__c {width:100px;} |
| | | table.list .col_Substitute_flag__c {width:100px;} |
| | | table.list .col_Body_Queue_Number__c {width:100px;} |
| | | table.list .col_Pai_Dui_Jia__c {width:100px;} |
| | | table.list .col_Ke_Yi_Fen_Pei_Zhu_Ti_Jia__c {width:100px;} |
| | | table.list .col_Bie_Cun_Fang_Di_Ku_Cun_Jia__c {width:100px;} |
| | | table.list .col_Bie_Yong_Tu_Ku_Cun_Jia__c {width:100px;} |
| | | table.list .col_Bie_Ben_Bu_Ku_Cun_Jia__c {width:100px;} |
| | | table.list .col_Bie_Chan_Pin_Fen_Lei_Jia__c {width:100px;} |
| | | table.list .col_Rental_Start_Date__c {width:100px;} |
| | | table.list .col_Rental_End_Date__c {width:100px;} |
| | | table.list .col_Jie_Chu_Shi_Jian_Jia__c {width:100px;} |
| | |
| | | table.list .col_Is_Optional__c {width:59px;} |
| | | table.list .col_Quantity__c {width:49px;} |
| | | table.list .col_Is_OneToOne__c {width:49px;} |
| | | table.list .col_Rental_Num__c {width:98px;} |
| | | /* 20230517 ljh lightning start */ |
| | | /* table.list .col_Rental_Num__c {width:98px;} */ |
| | | table.list .col_Rental_Num__c {width:150px;} |
| | | /* 20230517 ljh lightning end */ |
| | | table.list .col_Rental_Num__c input {width:55%;} |
| | | table.list .col_Fixture_Set_Detail__r_Fixture_Model_No_F__c {width:280px;} |
| | | table.list .col_Fixture_Set_Detail__r_Name_CHN__c {width:230px;} |
| | | table.list .col_Fixture_Set_Detail__r_Name_CHN__c {width:230px;} |
| | | |
| | | /* 20230517 ljh lightning start */ |
| | | table.list .col_IndexFromUniqueKey_Text__c {width:70px;} |
| | | /* 20230517 ljh lightning end */ |
| | |
| | | table.list .col_Name_CHN__c {width:230px;} |
| | | table.list .col_Product2__r_Asset_Model_No__c {width:280px;} |
| | | table.list .col_Asset_Model_No__c {width:280px;} |
| | | table.list .col_Rental_Num__c {width:98px;} |
| | | /* 20230512 ljh lightning start */ |
| | | /* table.list .col_Rental_Num__c {width:98px;} */ |
| | | table.list .col_Rental_Num__c {width:150px;} |
| | | /* 20230512 ljh lightning end */ |
| | | table.list .col_Rental_Num__c input {width:55%;} |
| | | table.list .col_Fixture_Set__r_Name {width:280px;} |
| | | table.list .col_Fixture_Set__r_Loaner_name__c {width:230px;} |
| | | table.list .col_Fixture_Set__r_Loaner_name__c {width:230px;} |
| | | /* 20230512 ljh lightning start */ |
| | | table.list .col_Irreplaceable_flag__c {width:80px;} |
| | | table.list .col_Same_Accessory_flag__c{width:80px;} |
| | | table.list .col_FixtureSetDetailSelect_VF__c{width:90px;} |
| | | /* 20230512 ljh lightning end */ |
| New file |
| | |
| | | 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; |
| | | } |
| 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> |