From 1d17c4022a928eacff7309016cde76f29ad257fb Mon Sep 17 00:00:00 2001
From: liangxiaozhen <liangxiaozhen>
Date: 星期日, 06 八月 2023 18:45:18 +0800
Subject: [PATCH] 72_客户按钮提交

---
 force-app/main/default/lwc/lexNewAgencyContract/lexNewAgencyContract.html                                                                |    5 
 force-app/main/default/lwc/lexAccountDelayApplyButton/lexAccountDelayApplyButton.html                                                    |    5 
 force-app/main/default/lwc/lexAssignTaskButtonAccount/lexAssignTaskButtonAccount.css                                                     |   11 
 force-app/main/default/lwc/lexMonthlyClaimsChange/lexMonthlyClaimsChange.js-meta.xml                                                     |   11 
 force-app/main/default/classes/NewAgencyContractController.cls                                                                           |   31 +
 force-app/main/default/lwc/lextoBatchUser/lextoBatchUser.html                                                                            |    5 
 force-app/main/default/lwc/lexsurface/lexsurface.html                                                                                    |    5 
 force-app/main/default/lwc/lexCustomLink2AdvancePaymentIdentificationChange/lexCustomLink2AdvancePaymentIdentificationChange.js-meta.xml |   11 
 force-app/main/default/lwc/lexCustomLink1/lexCustomLink1.js-meta.xml                                                                     |   11 
 force-app/main/default/lwc/lexQuolifiedApplySPO/lexQuolifiedApplySPO.js                                                                  |   71 ++
 force-app/main/default/lwc/lexSampleInventory/lexSampleInventory.html                                                                    |    5 
 force-app/main/default/lwc/lexCustomLink2AdvancePaymentIdentificationChange/lexCustomLink2AdvancePaymentIdentificationChange.js          |   78 ++
 force-app/main/default/lwc/lexSubmitAndRefreshAccount/lexSubmitAndRefreshAccount.js-meta.xml                                             |   11 
 force-app/main/default/classes/MonthlyClaimsChangeController.cls                                                                         |   31 +
 force-app/main/default/lwc/lexAccountDelayApplyButton/lexAccountDelayApplyButton.js                                                      |   86 ++
 force-app/main/default/lwc/lexAgencyContractClone/lexAgencyContractClone.js                                                              |   51 +
 force-app/main/default/lwc/lexCustomLink1/lexCustomLink1.js                                                                              |   34 +
 force-app/main/default/lwc/lexCustomLink2AdvancePaymentIdentificationChange/lexCustomLink2AdvancePaymentIdentificationChange.html        |    5 
 force-app/main/default/lwc/lexSubmitAndRefresh/lexSubmitAndRefresh.html                                                                  |    5 
 force-app/main/default/classes/DealerVisitDetailsController.cls                                                                          |   31 +
 force-app/main/default/lwc/lexAccountDelayApplyButton/lexAccountDelayApplyButton.js-meta.xml                                             |   11 
 force-app/main/default/classes/toBatchOwnerController.cls-meta.xml                                                                       |    5 
 force-app/main/default/lwc/lexSubmitAndRefreshAccount/lexSubmitAndRefreshAccount.css                                                     |   11 
 force-app/main/default/classes/HosipitalToDeptController.cls                                                                             |   84 ++
 force-app/main/default/lwc/lexsurface/lexsurface.css                                                                                     |   11 
 force-app/main/default/lwc/lexMonthlyClaimsChange/lexMonthlyClaimsChange.html                                                            |    5 
 force-app/main/default/classes/AgencyContractCloneController.cls-meta.xml                                                                |    5 
 force-app/main/default/lwc/lexDealerVisitDetails/lexDealerVisitDetails.html                                                              |    5 
 force-app/main/default/lwc/lexSoakupTeam/lexSoakupTeam.css                                                                               |   11 
 force-app/main/default/lwc/lexAccountDelayApplyButton/lexAccountDelayApplyButton.css                                                     |   11 
 force-app/main/default/lwc/lextoBatchUser/lextoBatchUser.css                                                                             |   11 
 force-app/main/default/lwc/lexHosipitalToDept/lexHosipitalToDept.js                                                                      |   75 ++
 force-app/main/default/lwc/lexNewAgencyContract/lexNewAgencyContract.js-meta.xml                                                         |   11 
 force-app/main/default/lwc/lexSampleInventory/lexSampleInventory.css                                                                     |   11 
 force-app/main/default/lwc/lexSoakupTeam/lexSoakupTeam.js                                                                                |   55 +
 force-app/main/default/classes/AccountDelayApplyController.cls                                                                           |   87 ++
 force-app/main/default/lwc/lexCustomLink2AdvancePaymentIdentificationChange/lexCustomLink2AdvancePaymentIdentificationChange.css         |   11 
 force-app/main/default/classes/toBatchOwnerController.cls                                                                                |   27 
 force-app/main/default/lwc/lexSubmitAndRefresh/lexSubmitAndRefresh.css                                                                   |   11 
 force-app/main/default/classes/NewAgencyContractController.cls-meta.xml                                                                  |    5 
 force-app/main/default/lwc/lextoBatchUser/lextoBatchUser.js                                                                              |   53 +
 force-app/main/default/classes/AgencyContractCloneController.cls                                                                         |   21 
 force-app/main/default/classes/SubmitAndRefreshController.cls-meta.xml                                                                   |    5 
 force-app/main/default/classes/SubmitAndRefreshController.cls                                                                            |   24 
 force-app/main/default/lwc/lextoBatchUser/lextoBatchUser.js-meta.xml                                                                     |   11 
 force-app/main/default/classes/DealerVisitDetailsController.cls-meta.xml                                                                 |    5 
 force-app/main/default/lwc/lexQuolifiedApplySPO/lexQuolifiedApplySPO.html                                                                |    5 
 force-app/main/default/lwc/lexsurface/lexsurface.js-meta.xml                                                                             |   11 
 force-app/main/default/lwc/lexMonthlyClaimsChange/lexMonthlyClaimsChange.js                                                              |   80 ++
 force-app/main/default/lwc/lexSampleInventory/lexSampleInventory.js                                                                      |   30 
 force-app/main/default/classes/MonthlyClaimsChangeController.cls-meta.xml                                                                |    5 
 force-app/main/default/lwc/lexMonthlyClaimsChange/LexMonthlyClaimsChange.css                                                             |   11 
 force-app/main/default/lwc/lexSampleInventory/lexSampleInventory.js-meta.xml                                                             |   11 
 force-app/main/default/lwc/lexSubmitAndRefreshAccount/lexSubmitAndRefreshAccount.js                                                      |   74 ++
 force-app/main/default/classes/CustomLink2AdvancePaymentController.cls                                                                   |   30 
 force-app/main/default/classes/QuolifiedApplySPOController.cls-meta.xml                                                                  |    5 
 force-app/main/default/lwc/lexNewAgencyContract/lexNewAgencyContract.js                                                                  |   63 ++
 force-app/main/default/lwc/lexAssignTaskButtonAccount/lexAssignTaskButtonAccount.html                                                    |    5 
 force-app/main/default/lwc/lexAgencyContractClone/lexAgencyContractClone.css                                                             |   11 
 force-app/main/default/lwc/lexAgencyContractClone/lexAgencyContractClone.js-meta.xml                                                     |   11 
 force-app/main/default/lwc/lexSubmitAndRefresh/lexSubmitAndRefresh.js-meta.xml                                                           |   11 
 force-app/main/default/lwc/lexAssignTaskButtonAccount/lexAssignTaskButtonAccount.js                                                      |   49 +
 force-app/main/default/classes/QuolifiedApplySPOController.cls                                                                           |   41 +
 force-app/main/default/lwc/lexDealerVisitDetails/lexDealerVisitDetails.js-meta.xml                                                       |   11 
 force-app/main/default/lwc/lexsurface/lexsurface.js                                                                                      |   32 +
 force-app/main/default/classes/HosipitalToDeptController.cls-meta.xml                                                                    |    5 
 force-app/main/default/lwc/lexCustomLink1/lexCustomLink1.html                                                                            |    5 
 force-app/main/default/lwc/lexNewAgencyContract/lexNewAgencyContract.css                                                                 |   11 
 force-app/main/default/lwc/lexSoakupTeam/lexSoakupTeam.js-meta.xml                                                                       |   11 
 force-app/main/default/lwc/lexSubmitAndRefresh/lexSubmitAndRefresh.js                                                                    |   58 +
 force-app/main/default/lwc/lexAssignTaskButtonAccount/lexAssignTaskButtonAccount.js-meta.xml                                             |   11 
 force-app/main/default/classes/AccountDelayApplyController.cls-meta.xml                                                                  |    5 
 force-app/main/default/lwc/lexHosipitalToDept/lexHosipitalToDept.html                                                                    |    5 
 force-app/main/default/classes/CustomLink2AdvancePaymentController.cls-meta.xml                                                          |    5 
 force-app/main/default/lwc/lexDealerVisitDetails/lexDealerVisitDetails.css                                                               |   11 
 force-app/main/default/lwc/lexQuolifiedApplySPO/lexQuolifiedApplySPO.js-meta.xml                                                         |   11 
 force-app/main/default/lwc/lexQuolifiedApplySPO/lexQuolifiedApplySPO.css                                                                 |   11 
 force-app/main/default/lwc/lexSoakupTeam/lexSoakupTeam.html                                                                              |    5 
 force-app/main/default/lwc/lexSubmitAndRefreshAccount/lexSubmitAndRefreshAccount.html                                                    |    5 
 force-app/main/default/lwc/lexHosipitalToDept/lexHosipitalToDept.js-meta.xml                                                             |   11 
 force-app/main/default/lwc/lexDealerVisitDetails/lexDealerVisitDetails.js                                                                |   73 ++
 force-app/main/default/lwc/lexCustomLink1/lexCustomLink1.css                                                                             |   11 
 force-app/main/default/lwc/lexHosipitalToDept/lexHosipitalToDept.css                                                                     |   11 
 force-app/main/default/lwc/lexAgencyContractClone/lexAgencyContractClone.html                                                            |    5 
 84 files changed, 1,851 insertions(+), 0 deletions(-)

diff --git a/force-app/main/default/classes/AccountDelayApplyController.cls b/force-app/main/default/classes/AccountDelayApplyController.cls
new file mode 100644
index 0000000..6dd49ce
--- /dev/null
+++ b/force-app/main/default/classes/AccountDelayApplyController.cls
@@ -0,0 +1,87 @@
+public with sharing class AccountDelayApplyController {
+    @AuraEnabled
+    public static InitData init(String recordId){
+        InitData res  = new initData();
+
+        try {
+            Account report = [SELECT Id,Name,Is_Active__c,Grade__c,Alias_Name2__c,Abbreviation__c,Attribute_Type__c
+                                    ,Postal_Code__c,Speciality_Type__c,State_Master__c,Town__c,City_Master__c,Address__c,Street__c
+                                    ,Field3_companyname__c,WhetherRiskPassing__c,RejectionReason__c,AssociatedHospital__c,Site
+                                        FROM Account WHERE Id = :recordId];
+            List<Account_Delay_Apply__c> AccQuery = [SELECT id FROM Account_Delay_Apply__c WHERE Is_Active__c = '鐢宠涓�' and Hospital__c = :recordId];
+            res.accId = report.Id;
+            res.accname = report.Name;
+            res.status = report.Is_Active__c;
+            res.accgrade = report.Grade__c;
+            res.AliasName2 = report.Alias_Name2__c;
+            res.Abbreviation = report.Abbreviation__c;
+            res.AttributeType = report.Attribute_Type__c;
+            res.PostalCode = report.Postal_Code__c;
+            res.SpecialityType = report.Speciality_Type__c;
+            res.StateMaster = report.State_Master__c;
+            res.Town = report.Town__c;
+            res.CityMaster = report.City_Master__c;
+            res.Address = report.Address__c;
+            res.Street = report.Street__c;
+            res.Field3companyname = report.Field3_companyname__c;
+            res.WhetherRiskPassing = report.WhetherRiskPassing__c;
+            res.RejectionReason = report.RejectionReason__c;
+            res.AssociatedHospital = report.AssociatedHospital__c;
+            res.Site = report.Site;
+            res.shengId = report.State_Master__c;
+            res.shiId = report.City_Master__c;
+
+            res.AccSize = AccQuery;
+        } catch (Exception e) {
+            throw new AuraHandledException(e.getMessage());
+        }
+        return res;
+    }
+
+    public class InitData{
+        @AuraEnabled
+        public String accId;
+        @AuraEnabled
+        public String accname;
+        @AuraEnabled
+        public String status;
+        @AuraEnabled
+        public String accgrade;
+        @AuraEnabled
+        public String AliasName2;
+        @AuraEnabled
+        public String Abbreviation;
+        @AuraEnabled
+        public String AttributeType;
+        @AuraEnabled
+        public String PostalCode;
+        @AuraEnabled
+        public String SpecialityType;
+        @AuraEnabled
+        public String StateMaster;
+        @AuraEnabled
+        public String Town;
+        @AuraEnabled
+        public String CityMaster;
+        @AuraEnabled
+        public String Address;
+        @AuraEnabled
+        public String Street;
+        @AuraEnabled
+        public String Field3companyname;
+        @AuraEnabled
+        public String WhetherRiskPassing;
+        @AuraEnabled
+        public String RejectionReason;
+        @AuraEnabled
+        public String AssociatedHospital;
+        @AuraEnabled
+        public String Site;
+        @AuraEnabled
+        public String shengId;
+        @AuraEnabled
+        public String shiId;
+        @AuraEnabled
+        public List<Account_Delay_Apply__c> AccSize;
+    }
+}
\ No newline at end of file
diff --git a/force-app/main/default/classes/AccountDelayApplyController.cls-meta.xml b/force-app/main/default/classes/AccountDelayApplyController.cls-meta.xml
new file mode 100644
index 0000000..fbbad0a
--- /dev/null
+++ b/force-app/main/default/classes/AccountDelayApplyController.cls-meta.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
+    <apiVersion>56.0</apiVersion>
+    <status>Active</status>
+</ApexClass>
diff --git a/force-app/main/default/classes/AgencyContractCloneController.cls b/force-app/main/default/classes/AgencyContractCloneController.cls
new file mode 100644
index 0000000..16de7f2
--- /dev/null
+++ b/force-app/main/default/classes/AgencyContractCloneController.cls
@@ -0,0 +1,21 @@
+public with sharing class AgencyContractCloneController {
+    @AuraEnabled
+    public static InitData init(){
+        InitData res  = new initData();
+        ID myUserID = UserInfo.getUserId();
+        try {
+            User userinfo = [SELECT Id,ProfileId FROM User WHERE Id = :myUserID LIMIT 1];
+            res.Id = userinfo.Id;
+            res.ProfileId = userinfo.ProfileId;
+        } catch (Exception e) {
+            throw new AuraHandledException(e.getMessage());
+        }
+        return res;
+    }
+    public class InitData{
+        @AuraEnabled
+        public string Id;
+        @AuraEnabled
+        public string ProfileId;
+    }
+}
\ No newline at end of file
diff --git a/force-app/main/default/classes/AgencyContractCloneController.cls-meta.xml b/force-app/main/default/classes/AgencyContractCloneController.cls-meta.xml
new file mode 100644
index 0000000..754ecb1
--- /dev/null
+++ b/force-app/main/default/classes/AgencyContractCloneController.cls-meta.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
+    <apiVersion>57.0</apiVersion>
+    <status>Active</status>
+</ApexClass>
diff --git a/force-app/main/default/classes/CustomLink2AdvancePaymentController.cls b/force-app/main/default/classes/CustomLink2AdvancePaymentController.cls
new file mode 100644
index 0000000..d299005
--- /dev/null
+++ b/force-app/main/default/classes/CustomLink2AdvancePaymentController.cls
@@ -0,0 +1,30 @@
+public with sharing class CustomLink2AdvancePaymentController {
+    @AuraEnabled
+    public static InitData init(String recordId) {
+        InitData res  = new initData();
+        try {
+            Account report = [SELECT Id,Name,FirstParagraph__c,MonthlyPayment__c FROM Account WHERE Id = :recordId];
+            res.RecordTypeId = Schema.SObjectType.Advance_Payment__c.getRecordTypeInfosByDeveloperName().get('FirstParagraphChange').getRecordTypeId();
+            res.Name = report.Name;
+            res.FirstParagraph = report.FirstParagraph__c;
+            res.MonthlyPayment = report.MonthlyPayment__c;
+            List<Advance_Payment__c> records = [SELECT id,Status__c FROM Advance_Payment__c WHERE Account__c =:recordId and RecordType.Id = :res.RecordTypeId and Status__c in ('鑽夋涓�','宸叉彁浜�','鎵瑰噯涓�')];
+            res.records = records;
+        } catch (Exception e) {
+            throw new AuraHandledException(e.getMessage());
+        }
+        return res;
+    }
+    public class InitData{
+        @AuraEnabled
+        public String Name;
+        @AuraEnabled
+        public Boolean FirstParagraph;
+        @AuraEnabled
+        public Boolean MonthlyPayment;
+        @AuraEnabled
+        public List<Advance_Payment__c> records;
+        @AuraEnabled
+        public String RecordTypeId;
+    }
+}
\ No newline at end of file
diff --git a/force-app/main/default/classes/CustomLink2AdvancePaymentController.cls-meta.xml b/force-app/main/default/classes/CustomLink2AdvancePaymentController.cls-meta.xml
new file mode 100644
index 0000000..754ecb1
--- /dev/null
+++ b/force-app/main/default/classes/CustomLink2AdvancePaymentController.cls-meta.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
+    <apiVersion>57.0</apiVersion>
+    <status>Active</status>
+</ApexClass>
diff --git a/force-app/main/default/classes/DealerVisitDetailsController.cls b/force-app/main/default/classes/DealerVisitDetailsController.cls
new file mode 100644
index 0000000..999487e
--- /dev/null
+++ b/force-app/main/default/classes/DealerVisitDetailsController.cls
@@ -0,0 +1,31 @@
+public with sharing class DealerVisitDetailsController {
+    @AuraEnabled
+    public static InitData init(String recordId){
+        InitData res  = new initData();
+        ID myUserID = UserInfo.getUserId();
+        try {
+            User userinfo = [SELECT id,ProfileId FROM User WHERE Id = :myUserID LIMIT 1];
+            Account report = [SELECT Id,RecordTypeId,Department_Class_Label__c,Name,Hospital_Department_Class__c FROM Account WHERE Id = :recordId];
+            res.ProfileId = userinfo.ProfileId;
+            res.RecordTypeId = report.RecordTypeId;
+            res.DepartmentClassLabel = report.Department_Class_Label__c;
+            res.Name = report.Name;
+            res.HospitalDepartmentClass = report.Hospital_Department_Class__c;
+        } catch (Exception e) {
+            throw new AuraHandledException(e.getMessage());
+        }
+        return res;
+    }
+    public class InitData{
+        @AuraEnabled
+        public string ProfileId;
+        @AuraEnabled
+        public string RecordTypeId;
+        @AuraEnabled
+        public string DepartmentClassLabel;
+        @AuraEnabled
+        public string Name;
+        @AuraEnabled
+        public string HospitalDepartmentClass;
+    }
+}
\ No newline at end of file
diff --git a/force-app/main/default/classes/DealerVisitDetailsController.cls-meta.xml b/force-app/main/default/classes/DealerVisitDetailsController.cls-meta.xml
new file mode 100644
index 0000000..754ecb1
--- /dev/null
+++ b/force-app/main/default/classes/DealerVisitDetailsController.cls-meta.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
+    <apiVersion>57.0</apiVersion>
+    <status>Active</status>
+</ApexClass>
diff --git a/force-app/main/default/classes/HosipitalToDeptController.cls b/force-app/main/default/classes/HosipitalToDeptController.cls
new file mode 100644
index 0000000..8300409
--- /dev/null
+++ b/force-app/main/default/classes/HosipitalToDeptController.cls
@@ -0,0 +1,84 @@
+public with sharing class HosipitalToDeptController {
+    @AuraEnabled
+    public static InitData init(String recordId){
+        InitData res  = new initData();
+        try {
+            Account report = [SELECT Id,
+                                GI_Main__c,
+                                BF_owner__c,
+                                ET_owner__c,
+                                SP_Main__c,
+                                URO_owner_ID__c,
+                                GYN_owner__c,
+                                ENT_owner_ID__c,
+                                Tender_information__c,
+                                Is_upload_file__c,
+                                Name,
+                                Attribute_Type__c FROM Account WHERE Id = :recordId];
+            res.GiMain = report.GI_Main__c;
+            res.BFowner = report.BF_owner__c;
+            res.ETowner = report.ET_owner__c;
+            res.SPMain = report.SP_Main__c;
+            res.UROownerID = report.URO_owner_ID__c;
+            res.GYNowner = report.GYN_owner__c;
+            res.ENTownerID = report.ENT_owner_ID__c;
+            res.SoakupHPDeptTeam = System.Label.Confirm_SoakupHPDeptTeam;
+            res.Tenderinformation = report.Tender_information__c;
+            res.Isuploadfile = report.Is_upload_file__c;
+            res.Name = report.Name;
+            res.AttributeType = report.Attribute_Type__c;
+        } catch (Exception e) {
+            throw new AuraHandledException(e.getMessage());
+        }
+        return res;
+    }
+    @AuraEnabled
+    public static string updataAccount(String recordId,Boolean HosipitalToDept){
+        Account a = new Account();
+        try {
+            a.Id = recordId;
+            a.HosipitalToDept__c = HosipitalToDept;
+            update a;
+        } catch (Exception e) {
+            throw new AuraHandledException(e.getMessage());
+        }
+        return 'ok';
+    }
+    @AuraEnabled
+    public static string submitApproval(String recordId){
+        try {
+            Approval.ProcessSubmitRequest psr = new Approval.ProcessSubmitRequest();
+            psr.setObjectId(recordId);
+            Approval.ProcessResult submitResult = Approval.process(psr);
+            return 'ok';
+        } catch (Exception e) {
+            throw new AuraHandledException(e.getMessage());
+        }
+    }
+    public class InitData{
+        @AuraEnabled
+        public string GiMain;
+        @AuraEnabled
+        public string BFowner;
+        @AuraEnabled
+        public string ETowner;
+        @AuraEnabled
+        public string SPMain;
+        @AuraEnabled
+        public string UROownerID;
+        @AuraEnabled
+        public string GYNowner;
+        @AuraEnabled
+        public string ENTownerID;
+        @AuraEnabled
+        public string SoakupHPDeptTeam;
+        @AuraEnabled
+        public string Tenderinformation;
+        @AuraEnabled
+        public Boolean Isuploadfile;
+        @AuraEnabled
+        public string Name;
+        @AuraEnabled
+        public string AttributeType;
+    }
+}
\ No newline at end of file
diff --git a/force-app/main/default/classes/HosipitalToDeptController.cls-meta.xml b/force-app/main/default/classes/HosipitalToDeptController.cls-meta.xml
new file mode 100644
index 0000000..754ecb1
--- /dev/null
+++ b/force-app/main/default/classes/HosipitalToDeptController.cls-meta.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
+    <apiVersion>57.0</apiVersion>
+    <status>Active</status>
+</ApexClass>
diff --git a/force-app/main/default/classes/MonthlyClaimsChangeController.cls b/force-app/main/default/classes/MonthlyClaimsChangeController.cls
new file mode 100644
index 0000000..eab7fd9
--- /dev/null
+++ b/force-app/main/default/classes/MonthlyClaimsChangeController.cls
@@ -0,0 +1,31 @@
+public with sharing class MonthlyClaimsChangeController {
+    @AuraEnabled
+    public static InitData init(String recordId) {
+        InitData res  = new initData();
+
+        try {
+            Account report = [SELECT Id,DealerTypeSum__c,MonthlyPayment__c,Name FROM Account WHERE Id = :recordId];
+            res.RecordTypeId = Schema.SObjectType.Advance_Payment__c.getRecordTypeInfosByDeveloperName().get('MonthlyPaymentChange').getRecordTypeId();
+            res.MonthlyPayment = report.MonthlyPayment__c;
+            res.DealerTypeSum = report.DealerTypeSum__c;
+            res.Name = report.Name;
+            List<Advance_Payment__c> sql = [SELECT id,Status__c FROM Advance_Payment__c WHERE Account__c = :recordId and RecordTypeId = :res.RecordTypeId and Status__c in ('鑽夋涓�','宸叉彁浜�','鎵瑰噯涓�')];
+            res.records = sql;
+        } catch (Exception e) {
+            throw new AuraHandledException(e.getMessage());
+        }
+        return res;
+    }
+    public class InitData{
+        @AuraEnabled
+        public Boolean MonthlyPayment;
+        @AuraEnabled
+        public String DealerTypeSum;
+        @AuraEnabled
+        public String Name;
+        @AuraEnabled
+        public String RecordTypeId;
+        @AuraEnabled
+        public List<Advance_Payment__c> records;
+    }
+}
\ No newline at end of file
diff --git a/force-app/main/default/classes/MonthlyClaimsChangeController.cls-meta.xml b/force-app/main/default/classes/MonthlyClaimsChangeController.cls-meta.xml
new file mode 100644
index 0000000..754ecb1
--- /dev/null
+++ b/force-app/main/default/classes/MonthlyClaimsChangeController.cls-meta.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
+    <apiVersion>57.0</apiVersion>
+    <status>Active</status>
+</ApexClass>
diff --git a/force-app/main/default/classes/NewAgencyContractController.cls b/force-app/main/default/classes/NewAgencyContractController.cls
new file mode 100644
index 0000000..cd506b6
--- /dev/null
+++ b/force-app/main/default/classes/NewAgencyContractController.cls
@@ -0,0 +1,31 @@
+public with sharing class NewAgencyContractController {
+    
+    @AuraEnabled
+    public static UserResult UserInfo_Owner() {
+        UserResult result = new UserResult();
+        ID myUserID = UserInfo.getUserId();
+        try { 
+            User tempUser = [select Id,ProfileId from user where id = : myUserID ];
+            result.id = tempUser.Id;
+            result.RecordTypeId = Schema.SObjectType.Account.getRecordTypeInfosByDeveloperName().get('AgencyContract').getRecordTypeId();
+            result.ProfileId = tempUser.ProfileId;
+        } catch (exception e) {
+            result.result = e.getMessage();
+        }
+        return result;
+    }
+
+    public class UserResult {
+        @AuraEnabled
+        public string result;
+        public UserResult( ) {
+            result = 'Success';
+        }
+        @AuraEnabled
+        public string id;
+        @AuraEnabled
+        public String RecordTypeId;
+        @AuraEnabled
+        public string ProfileId;
+    }
+}
\ No newline at end of file
diff --git a/force-app/main/default/classes/NewAgencyContractController.cls-meta.xml b/force-app/main/default/classes/NewAgencyContractController.cls-meta.xml
new file mode 100644
index 0000000..754ecb1
--- /dev/null
+++ b/force-app/main/default/classes/NewAgencyContractController.cls-meta.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
+    <apiVersion>57.0</apiVersion>
+    <status>Active</status>
+</ApexClass>
diff --git a/force-app/main/default/classes/QuolifiedApplySPOController.cls b/force-app/main/default/classes/QuolifiedApplySPOController.cls
new file mode 100644
index 0000000..e66b4bf
--- /dev/null
+++ b/force-app/main/default/classes/QuolifiedApplySPOController.cls
@@ -0,0 +1,41 @@
+public with sharing class QuolifiedApplySPOController {
+    @AuraEnabled
+    public static InitData init(String recordId){
+        InitData res  = new initData();
+        ID myUserID = UserInfo.getUserId();
+        try {
+            Account report = [SELECT Id,Is_Active__c FROM Account WHERE Id = :recordId];
+            User userinfo = [SELECT id,ProfileId,Job_Category__c FROM User WHERE Id = :myUserID LIMIT 1];
+            res.IsActive = report.Is_Active__c;
+            res.ProfileId = userinfo.ProfileId;
+            res.JobCategory = userinfo.Job_Category__c;
+        } catch (Exception e) {
+            throw new AuraHandledException(e.getMessage());
+        }
+        return res;
+    }
+
+    @AuraEnabled
+    public static String updata(String recordId){
+        Account rac = new Account();
+        try {
+            rac.Id = recordId;
+            rac.Quolified_Approve_Status__c = '宸叉彁浜よ嚦SPO';
+            rac.If_Qualifying__c = true;
+            rac.If_Need_Quolified__c = true;
+            update rac;
+        } catch (Exception e) {
+            throw new AuraHandledException(e.getMessage());
+        }
+        return 'ok';
+    }
+
+    public class InitData{
+        @AuraEnabled
+        public string IsActive;
+        @AuraEnabled
+        public string ProfileId;
+        @AuraEnabled
+        public string JobCategory;
+    }
+}
\ No newline at end of file
diff --git a/force-app/main/default/classes/QuolifiedApplySPOController.cls-meta.xml b/force-app/main/default/classes/QuolifiedApplySPOController.cls-meta.xml
new file mode 100644
index 0000000..754ecb1
--- /dev/null
+++ b/force-app/main/default/classes/QuolifiedApplySPOController.cls-meta.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
+    <apiVersion>57.0</apiVersion>
+    <status>Active</status>
+</ApexClass>
diff --git a/force-app/main/default/classes/SubmitAndRefreshController.cls b/force-app/main/default/classes/SubmitAndRefreshController.cls
new file mode 100644
index 0000000..1871db6
--- /dev/null
+++ b/force-app/main/default/classes/SubmitAndRefreshController.cls
@@ -0,0 +1,24 @@
+public with sharing class SubmitAndRefreshController {
+    @AuraEnabled
+    public static InitData init(String recordId) {
+        InitData res  = new initData();
+
+        try {
+            Account_Delay_Apply__c report = [SELECT Id,Is_upload_file__c,HospitalName__c,Attribute_Type__c FROM Account_Delay_Apply__c WHERE Id = :recordId];
+            res.Isuploadfile = report.Is_upload_file__c;
+            res.HospitalName = report.HospitalName__c;
+            res.AttributeType = report.Attribute_Type__c;
+        } catch (Exception e) {
+            throw new AuraHandledException(e.getMessage());
+        }
+        return res;
+    }
+    public class InitData{
+        @AuraEnabled
+        public Boolean Isuploadfile;
+        @AuraEnabled
+        public String HospitalName;
+        @AuraEnabled
+        public String AttributeType;
+    }
+}
\ No newline at end of file
diff --git a/force-app/main/default/classes/SubmitAndRefreshController.cls-meta.xml b/force-app/main/default/classes/SubmitAndRefreshController.cls-meta.xml
new file mode 100644
index 0000000..754ecb1
--- /dev/null
+++ b/force-app/main/default/classes/SubmitAndRefreshController.cls-meta.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
+    <apiVersion>57.0</apiVersion>
+    <status>Active</status>
+</ApexClass>
diff --git a/force-app/main/default/classes/toBatchOwnerController.cls b/force-app/main/default/classes/toBatchOwnerController.cls
new file mode 100644
index 0000000..b336766
--- /dev/null
+++ b/force-app/main/default/classes/toBatchOwnerController.cls
@@ -0,0 +1,27 @@
+public with sharing class toBatchOwnerController {
+    @AuraEnabled
+    public static string ProfileId(){
+        Profile p = [select Id from Profile where id =:System.Label.ProfileId_SystemAdmin];
+        try {
+
+        } catch (Exception e) {
+            throw new AuraHandledException(e.getMessage());
+        }
+        return p.Id;
+    }
+    @AuraEnabled
+    public static InitData TypeId(){
+        InitData res  = new initData();
+        try {
+            res.RecordTypeId = Schema.SObjectType.task__c.getRecordTypeInfosByDeveloperName().get('OPD').getRecordTypeId();
+            
+        } catch (Exception e) {
+            throw new AuraHandledException(e.getMessage());
+        }
+        return res;
+    }
+    public class InitData{
+        @AuraEnabled
+        public String RecordTypeId;
+    }
+}
\ No newline at end of file
diff --git a/force-app/main/default/classes/toBatchOwnerController.cls-meta.xml b/force-app/main/default/classes/toBatchOwnerController.cls-meta.xml
new file mode 100644
index 0000000..754ecb1
--- /dev/null
+++ b/force-app/main/default/classes/toBatchOwnerController.cls-meta.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
+    <apiVersion>57.0</apiVersion>
+    <status>Active</status>
+</ApexClass>
diff --git a/force-app/main/default/lwc/lexAccountDelayApplyButton/lexAccountDelayApplyButton.css b/force-app/main/default/lwc/lexAccountDelayApplyButton/lexAccountDelayApplyButton.css
new file mode 100644
index 0000000..8f9ea09
--- /dev/null
+++ b/force-app/main/default/lwc/lexAccountDelayApplyButton/lexAccountDelayApplyButton.css
@@ -0,0 +1,11 @@
+.AccountDelayApply{
+	position: relative;
+	display: inline-block;
+	width: 80px;
+	height: 80px;
+	text-align: center;
+}
+
+.container .uiContainerManager{
+	display : none !important;
+}
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexAccountDelayApplyButton/lexAccountDelayApplyButton.html b/force-app/main/default/lwc/lexAccountDelayApplyButton/lexAccountDelayApplyButton.html
new file mode 100644
index 0000000..c7d8487
--- /dev/null
+++ b/force-app/main/default/lwc/lexAccountDelayApplyButton/lexAccountDelayApplyButton.html
@@ -0,0 +1,5 @@
+<template>
+    <div class="AccountDelayApply" if:true={IsLoading}>
+        <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner>
+    </div>
+</template>
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexAccountDelayApplyButton/lexAccountDelayApplyButton.js b/force-app/main/default/lwc/lexAccountDelayApplyButton/lexAccountDelayApplyButton.js
new file mode 100644
index 0000000..d77ad06
--- /dev/null
+++ b/force-app/main/default/lwc/lexAccountDelayApplyButton/lexAccountDelayApplyButton.js
@@ -0,0 +1,86 @@
+import { LightningElement,api, track, wire } from 'lwc';
+import {CurrentPageReference} from 'lightning/navigation';
+import { CloseActionScreenEvent } from 'lightning/actions';
+import { ShowToastEvent } from 'lightning/platformShowToastEvent';
+import { NavigationMixin } from 'lightning/navigation';
+import init from '@salesforce/apex/AccountDelayApplyController.init';
+import { encodeDefaultFieldValues } from 'lightning/pageReferenceUtils';
+export default class LexAccountDelayApplyButton extends NavigationMixin(LightningElement) {
+    @api recordId;
+    IsLoading=true;
+    label;
+    @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("杩涘叆椤甸潰111111");
+		console.log("杩涘叆椤甸潰111111" + this.recordId);
+		init({recordId:this.recordId}).then(result=>{
+            console.log('result==========',result);
+            this.IsLoading = false;
+            if(result!=null){
+                if(result.AccSize.length > 0){
+                    this.showToast('瀛樺湪鐢宠涓殑瀹㈡埛鍙樻洿鐢宠锛屾棤娉曞啀娆℃彁浜ゅ彉鏇寸敵璇枫��','error')
+                    return
+                }
+                if(result.status == '鏈夊姽'){
+                    const data = encodeDefaultFieldValues({
+                        Hospital__c:this.recordId,
+                        Grade__c:result.accgrade,
+                        HospitalName__c:result.accname,
+                        Alias_Name2__c:result.AliasName2,
+                        Abbreviation_old__c:result.Abbreviation,
+                        Abbreviation__c:result.AttributeType,
+                        Postal_Code__c:result.PostalCode,
+                        Speciality_Type__c:result.SpecialityType,
+                        State_Master__c:result.shengId,
+                        Town__c:result.Town,
+                        City_Master__c:result.shiId,
+                        Street__c:result.Street,
+                        Field3_companyname__c:result.Field3companyname,
+                        Site__c:result.Site
+                    });
+                    this[NavigationMixin.Navigate]({
+                        type: 'standard__objectPage',
+                        attributes: {
+                            objectApiName: 'Account_Delay_Apply__c', 
+                            actionName: 'new'
+                        },
+                        state:{
+                            defaultFieldValues:data
+                        }
+                    });
+
+                }else{
+                    this.showToast('璇ュ鎴蜂笉鍦ㄦ湁鏁堜腑锛屼笉鍙繘琛屽鎴峰彉鏇�','error')
+                }
+            }
+            this.dispatchEvent(new CloseActionScreenEvent());
+        }).catch(err=>{
+            console.log("error:====",err);
+            console.log(err);
+        }).finally(()=>{});
+	}
+
+    showToast(msg, type) {
+        const event = new ShowToastEvent({
+          title: "",
+          message: msg,
+          variant: type
+        });
+        this.dispatchEvent(event);
+        this.dispatchEvent(new CloseActionScreenEvent());
+    }
+}
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexAccountDelayApplyButton/lexAccountDelayApplyButton.js-meta.xml b/force-app/main/default/lwc/lexAccountDelayApplyButton/lexAccountDelayApplyButton.js-meta.xml
new file mode 100644
index 0000000..ad3c5ec
--- /dev/null
+++ b/force-app/main/default/lwc/lexAccountDelayApplyButton/lexAccountDelayApplyButton.js-meta.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata" fpn="lexAccountDelayApply">
+    <apiVersion>56.0</apiVersion>
+    <isExposed>true</isExposed>
+    <targets>
+        <target>lightning__AppPage</target>
+        <target>lightning__RecordPage</target>
+        <target>lightning__HomePage</target>
+        <target>lightning__RecordAction</target>
+    </targets>
+</LightningComponentBundle>
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexAgencyContractClone/lexAgencyContractClone.css b/force-app/main/default/lwc/lexAgencyContractClone/lexAgencyContractClone.css
new file mode 100644
index 0000000..74d0505
--- /dev/null
+++ b/force-app/main/default/lwc/lexAgencyContractClone/lexAgencyContractClone.css
@@ -0,0 +1,11 @@
+.AgencyContractClone{
+	position: relative;
+	display: inline-block;
+	width: 80px;
+	height: 80px;
+	text-align: center;
+}
+
+.container .uiContainerManager{
+	display : none !important;
+}
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexAgencyContractClone/lexAgencyContractClone.html b/force-app/main/default/lwc/lexAgencyContractClone/lexAgencyContractClone.html
new file mode 100644
index 0000000..b17c96b
--- /dev/null
+++ b/force-app/main/default/lwc/lexAgencyContractClone/lexAgencyContractClone.html
@@ -0,0 +1,5 @@
+<template>
+    <div class="AgencyContractClone" if:true={IsLoading}>
+        <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner>
+    </div>
+</template>
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexAgencyContractClone/lexAgencyContractClone.js b/force-app/main/default/lwc/lexAgencyContractClone/lexAgencyContractClone.js
new file mode 100644
index 0000000..bcdfff2
--- /dev/null
+++ b/force-app/main/default/lwc/lexAgencyContractClone/lexAgencyContractClone.js
@@ -0,0 +1,51 @@
+import { LightningElement,api, track, wire } from 'lwc';
+import {CurrentPageReference} from 'lightning/navigation';
+import { CloseActionScreenEvent } from 'lightning/actions';
+import { ShowToastEvent } from 'lightning/platformShowToastEvent';
+import { NavigationMixin } from 'lightning/navigation';
+import init from '@salesforce/apex/AgencyContractCloneController.init';
+
+export default class LexAgencyContractClone extends NavigationMixin(LightningElement) {
+    @api recordId;
+    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(){
+        init({recordId:this.recordId}).then(res => {
+            if(res != null){
+                if (res.Id == '00510000002YSBIAA4'
+                || res.Id == '00510000004PMMcAAO'
+                // || res.Id == '00510000006Vsuo'
+                || res.ProfileId == '00e10000000Y3o5AAC'
+                || res.ProfileId == '00e10000000tiSlAAI') {
+                    window.open("/"+this.recordId+"/e?clone=1&retURL="+this.recordId);
+                } else {
+                    this.showToast('娌℃湁澶嶅埗缁忛攢鍟嗗悎鍚岀殑鏉冮檺','error');
+                }
+            }
+        }).catch(err => {
+            console.log('err=====>',err)
+        })
+    }
+
+    showToast(msg, type) {
+        const event = new ShowToastEvent({
+          message: msg,
+          variant: type
+        });
+        this.dispatchEvent(event);
+        this.dispatchEvent(new CloseActionScreenEvent());
+    }
+}
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexAgencyContractClone/lexAgencyContractClone.js-meta.xml b/force-app/main/default/lwc/lexAgencyContractClone/lexAgencyContractClone.js-meta.xml
new file mode 100644
index 0000000..23ced59
--- /dev/null
+++ b/force-app/main/default/lwc/lexAgencyContractClone/lexAgencyContractClone.js-meta.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
+    <apiVersion>57.0</apiVersion>
+    <isExposed>true</isExposed>
+    <targets>
+		<target>lightning__RecordPage</target>
+		<target>lightning__AppPage</target>
+		<target>lightning__HomePage</target>
+		<target>lightning__RecordAction</target>
+	</targets>
+</LightningComponentBundle>
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexAssignTaskButtonAccount/lexAssignTaskButtonAccount.css b/force-app/main/default/lwc/lexAssignTaskButtonAccount/lexAssignTaskButtonAccount.css
new file mode 100644
index 0000000..ca79042
--- /dev/null
+++ b/force-app/main/default/lwc/lexAssignTaskButtonAccount/lexAssignTaskButtonAccount.css
@@ -0,0 +1,11 @@
+.AssignTaskButtonAccount{
+	position: relative;
+	display: inline-block;
+	width: 80px;
+	height: 80px;
+	text-align: center;
+}
+
+.container .uiContainerManager{
+	display : none !important;
+}
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexAssignTaskButtonAccount/lexAssignTaskButtonAccount.html b/force-app/main/default/lwc/lexAssignTaskButtonAccount/lexAssignTaskButtonAccount.html
new file mode 100644
index 0000000..c2681b1
--- /dev/null
+++ b/force-app/main/default/lwc/lexAssignTaskButtonAccount/lexAssignTaskButtonAccount.html
@@ -0,0 +1,5 @@
+<template>
+    <div class="AssignTaskButtonAccount" if:true={IsLoading}>
+        <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner>
+    </div>
+</template>
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexAssignTaskButtonAccount/lexAssignTaskButtonAccount.js b/force-app/main/default/lwc/lexAssignTaskButtonAccount/lexAssignTaskButtonAccount.js
new file mode 100644
index 0000000..9aaf47a
--- /dev/null
+++ b/force-app/main/default/lwc/lexAssignTaskButtonAccount/lexAssignTaskButtonAccount.js
@@ -0,0 +1,49 @@
+import { LightningElement,wire,track,api} from 'lwc';
+import { CurrentPageReference } from "lightning/navigation";
+import { CloseActionScreenEvent } from 'lightning/actions';
+import { NavigationMixin } from 'lightning/navigation';
+import { encodeDefaultFieldValues } from 'lightning/pageReferenceUtils';
+import recordTypeId from '@salesforce/apex/toBatchOwnerController.TypeId';
+
+export default class LexAssignTaskButtonAccount extends NavigationMixin(LightningElement) {
+    @api recordId;
+    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(){
+        recordTypeId().then(res => {
+            const defaultValues = encodeDefaultFieldValues({
+                account__c: this.recordId,
+                taskStatus__c: '01 鍒嗛厤',
+                taskDifferent__c: '涓婄骇鍒嗛厤浠诲姟'
+            });
+            this[NavigationMixin.Navigate]({
+                type: 'standard__objectPage',
+                attributes: {
+                    objectApiName: 'task__c',
+                    actionName: 'new'
+                },
+                state: {
+                    nooverride: '1',
+                    defaultFieldValues: defaultValues,
+                    recordTypeId: res.RecordTypeId
+                }
+            });
+        }).catch(err => {
+            console.log('err======>',err)
+        })
+        this.dispatchEvent(new CloseActionScreenEvent());
+    }
+}
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexAssignTaskButtonAccount/lexAssignTaskButtonAccount.js-meta.xml b/force-app/main/default/lwc/lexAssignTaskButtonAccount/lexAssignTaskButtonAccount.js-meta.xml
new file mode 100644
index 0000000..23ced59
--- /dev/null
+++ b/force-app/main/default/lwc/lexAssignTaskButtonAccount/lexAssignTaskButtonAccount.js-meta.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
+    <apiVersion>57.0</apiVersion>
+    <isExposed>true</isExposed>
+    <targets>
+		<target>lightning__RecordPage</target>
+		<target>lightning__AppPage</target>
+		<target>lightning__HomePage</target>
+		<target>lightning__RecordAction</target>
+	</targets>
+</LightningComponentBundle>
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexCustomLink1/lexCustomLink1.css b/force-app/main/default/lwc/lexCustomLink1/lexCustomLink1.css
new file mode 100644
index 0000000..267730d
--- /dev/null
+++ b/force-app/main/default/lwc/lexCustomLink1/lexCustomLink1.css
@@ -0,0 +1,11 @@
+.CustomLink1{
+	position: relative;
+	display: inline-block;
+	width: 80px;
+	height: 80px;
+	text-align: center;
+}
+
+.container .uiContainerManager{
+	display : none !important;
+}
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexCustomLink1/lexCustomLink1.html b/force-app/main/default/lwc/lexCustomLink1/lexCustomLink1.html
new file mode 100644
index 0000000..04d9558
--- /dev/null
+++ b/force-app/main/default/lwc/lexCustomLink1/lexCustomLink1.html
@@ -0,0 +1,5 @@
+<template>
+    <div class="CustomLink1" if:true={IsLoading}>
+        <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner>
+    </div>
+</template>
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexCustomLink1/lexCustomLink1.js b/force-app/main/default/lwc/lexCustomLink1/lexCustomLink1.js
new file mode 100644
index 0000000..b8a4191
--- /dev/null
+++ b/force-app/main/default/lwc/lexCustomLink1/lexCustomLink1.js
@@ -0,0 +1,34 @@
+import { LightningElement,api, track, wire } from 'lwc';
+import {CurrentPageReference} from 'lightning/navigation';
+
+import { NavigationMixin } from 'lightning/navigation';
+export default class LexCustomLink1 extends NavigationMixin(LightningElement) {
+    @api recordId;
+    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(){
+        this[NavigationMixin.Navigate]({
+            type: 'standard__objectPage',
+            attributes: {
+                objectApiName: 'Event',
+                actionName:'new'
+            },
+            state:{
+                defaultFieldValues:'accid='+this.recordId
+            }
+        });
+    }
+}
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexCustomLink1/lexCustomLink1.js-meta.xml b/force-app/main/default/lwc/lexCustomLink1/lexCustomLink1.js-meta.xml
new file mode 100644
index 0000000..cd90c18
--- /dev/null
+++ b/force-app/main/default/lwc/lexCustomLink1/lexCustomLink1.js-meta.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
+    <apiVersion>57.0</apiVersion>
+    <isExposed>true</isExposed>
+    <targets>
+        <target>lightning__AppPage</target>
+        <target>lightning__RecordPage</target>
+        <target>lightning__HomePage</target>
+        <target>lightning__RecordAction</target>
+    </targets>
+</LightningComponentBundle>
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexCustomLink2AdvancePaymentIdentificationChange/lexCustomLink2AdvancePaymentIdentificationChange.css b/force-app/main/default/lwc/lexCustomLink2AdvancePaymentIdentificationChange/lexCustomLink2AdvancePaymentIdentificationChange.css
new file mode 100644
index 0000000..3454804
--- /dev/null
+++ b/force-app/main/default/lwc/lexCustomLink2AdvancePaymentIdentificationChange/lexCustomLink2AdvancePaymentIdentificationChange.css
@@ -0,0 +1,11 @@
+.CustomLink2AdvancePaymentIdentificationChange{
+	position: relative;
+	display: inline-block;
+	width: 80px;
+	height: 80px;
+	text-align: center;
+}
+
+.container .uiContainerManager{
+	display : none !important;
+}
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexCustomLink2AdvancePaymentIdentificationChange/lexCustomLink2AdvancePaymentIdentificationChange.html b/force-app/main/default/lwc/lexCustomLink2AdvancePaymentIdentificationChange/lexCustomLink2AdvancePaymentIdentificationChange.html
new file mode 100644
index 0000000..84e2a4e
--- /dev/null
+++ b/force-app/main/default/lwc/lexCustomLink2AdvancePaymentIdentificationChange/lexCustomLink2AdvancePaymentIdentificationChange.html
@@ -0,0 +1,5 @@
+<template>
+    <div class="CustomLink2AdvancePaymentIdentificationChange" if:true={IsLoading}>
+        <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner>
+    </div>
+</template>
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexCustomLink2AdvancePaymentIdentificationChange/lexCustomLink2AdvancePaymentIdentificationChange.js b/force-app/main/default/lwc/lexCustomLink2AdvancePaymentIdentificationChange/lexCustomLink2AdvancePaymentIdentificationChange.js
new file mode 100644
index 0000000..81c2ca0
--- /dev/null
+++ b/force-app/main/default/lwc/lexCustomLink2AdvancePaymentIdentificationChange/lexCustomLink2AdvancePaymentIdentificationChange.js
@@ -0,0 +1,78 @@
+import { LightningElement,api, track, wire } from 'lwc';
+import {CurrentPageReference} from 'lightning/navigation';
+import { CloseActionScreenEvent } from 'lightning/actions';
+import { ShowToastEvent } from 'lightning/platformShowToastEvent';
+import { NavigationMixin } from 'lightning/navigation';
+import init from '@salesforce/apex/CustomLink2AdvancePaymentController.init';
+import { encodeDefaultFieldValues } from 'lightning/pageReferenceUtils';
+
+export default class LexCustomLink2AdvancePaymentIdentificationChange extends NavigationMixin(LightningElement) {
+    @api recordId;
+    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(){
+		init({recordId:this.recordId}).then(result=>{
+            console.log('result==========',result);
+            this.IsLoading = false;
+            if(result!=null){
+                if (result.FirstParagraph == 0) {
+                    this.showToast("鎮ㄥ凡鍙栨秷鍏堟鏍囪瘑锛屾棤闇�閲嶅鎿嶄綔",'error');
+                    return;
+                } else if (result.MonthlyPayment == true) {
+                    this.showToast("鎮ㄤ笉鑳借繘琛岀壒鎵癸紝璇峰厛鍙栨秷鏈堝害鍊烘潈鍏堟鏍囪瘑",'error');
+                    return;
+                } else {
+                    if (result.records.length > 0) {
+                        if (result.records[0].Status__c == '鑽夋涓�') {
+                            this.showToast('宸叉彁浜よ崏绋胯灏藉揩鎻愪氦瀹℃壒','error');
+                        } else {
+                            this.showToast('鏃犳硶鍒涘缓锛佸凡鏈夋湭鏈�缁堟壒鍑嗙殑鏁版嵁','error');
+                        };
+                    } else {
+                        const defaultFieldValues = encodeDefaultFieldValues({
+                            Account__c:this.recordId
+                        });
+                        this[NavigationMixin.Navigate]({
+                            type: 'standard__objectPage',
+                            attributes: {
+                                objectApiName: 'Advance_Payment__c',
+                                actionName:'new'
+                            },
+                            state:{
+                                defaultFieldValues:defaultFieldValues,
+                                recordTypeId:result.RecordTypeId
+                            }
+                        });
+                    }
+                };
+            }
+            this.dispatchEvent(new CloseActionScreenEvent());
+        }).catch(err=>{
+            console.log("error:====",err);
+            console.log(err);
+        }).finally(()=>{});
+	}
+
+    showToast(msg, type) {
+        const event = new ShowToastEvent({
+          message: msg,
+          variant: type
+        });
+        this.dispatchEvent(event);
+        this.dispatchEvent(new CloseActionScreenEvent());
+    }
+}
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexCustomLink2AdvancePaymentIdentificationChange/lexCustomLink2AdvancePaymentIdentificationChange.js-meta.xml b/force-app/main/default/lwc/lexCustomLink2AdvancePaymentIdentificationChange/lexCustomLink2AdvancePaymentIdentificationChange.js-meta.xml
new file mode 100644
index 0000000..cd90c18
--- /dev/null
+++ b/force-app/main/default/lwc/lexCustomLink2AdvancePaymentIdentificationChange/lexCustomLink2AdvancePaymentIdentificationChange.js-meta.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
+    <apiVersion>57.0</apiVersion>
+    <isExposed>true</isExposed>
+    <targets>
+        <target>lightning__AppPage</target>
+        <target>lightning__RecordPage</target>
+        <target>lightning__HomePage</target>
+        <target>lightning__RecordAction</target>
+    </targets>
+</LightningComponentBundle>
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexDealerVisitDetails/lexDealerVisitDetails.css b/force-app/main/default/lwc/lexDealerVisitDetails/lexDealerVisitDetails.css
new file mode 100644
index 0000000..385ebbd
--- /dev/null
+++ b/force-app/main/default/lwc/lexDealerVisitDetails/lexDealerVisitDetails.css
@@ -0,0 +1,11 @@
+.DealerVisitDetails{
+	position: relative;
+	display: inline-block;
+	width: 80px;
+	height: 80px;
+	text-align: center;
+}
+
+.container .uiContainerManager{
+	display : none !important;
+}
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexDealerVisitDetails/lexDealerVisitDetails.html b/force-app/main/default/lwc/lexDealerVisitDetails/lexDealerVisitDetails.html
new file mode 100644
index 0000000..3f04cd0
--- /dev/null
+++ b/force-app/main/default/lwc/lexDealerVisitDetails/lexDealerVisitDetails.html
@@ -0,0 +1,5 @@
+<template>
+    <div class="DealerVisitDetails" if:true={IsLoading}>
+        <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner>
+    </div>
+</template>
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexDealerVisitDetails/lexDealerVisitDetails.js b/force-app/main/default/lwc/lexDealerVisitDetails/lexDealerVisitDetails.js
new file mode 100644
index 0000000..35b5db0
--- /dev/null
+++ b/force-app/main/default/lwc/lexDealerVisitDetails/lexDealerVisitDetails.js
@@ -0,0 +1,73 @@
+import { LightningElement,api, track, wire } from 'lwc';
+import {CurrentPageReference} from 'lightning/navigation';
+import { CloseActionScreenEvent } from 'lightning/actions';
+import { ShowToastEvent } from 'lightning/platformShowToastEvent';
+import { NavigationMixin } from 'lightning/navigation';
+import init from '@salesforce/apex/DealerVisitDetailsController.init';
+import  ReportId  from '@salesforce/apex/AccountUrlRecordTypeIdController.ReportId';
+
+export default class LexDealerVisitDetails extends NavigationMixin(LightningElement) {
+    @api recordId;
+    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(){
+        init({recordId:this.recordId}).then(res => {
+            console.log(res,'<======res')
+            let whiteList = [
+                '00e10000000xnpHAAQ',
+                '00e10000000hkasAAA',
+                '00e10000000xyK6AAI',
+                '00e10000000xnpRAAQ',
+                // '00e10000000NbCE',
+                '00e10000000Y3o5AAC'
+            ]
+            if(res != null){
+                if(whiteList.indexOf(res.ProfileId) == -1){
+                    this.showToast("浣犳病鏈夋搷浣滄潈闄�",'error');
+                    return;
+                }
+                var accountType = res.DepartmentClassLabel;
+                var sectionMap = new Map();
+                sectionMap['娑堝寲绉�'] = 'GI';sectionMap['ET'] = 'ET';
+                sectionMap['鍛煎惛绉�'] = 'BF';sectionMap['鏅绉�'] = 'GS';
+                sectionMap['娉屽翱绉�'] = 'URO';sectionMap['濡囩'] = 'GYN';
+                sectionMap['鑰抽蓟鍠夌'] = 'ENT';sectionMap['鍏朵粬'] = 'OTH';
+                var sectionApi= sectionMap[accountType];
+                if(res.RecordTypeId == '01210000000QemGAAS'){
+                    ReportId({TypeName:'DealerVisitDetailsHospital'}).then(request => {
+                        window.open('/'+ request +'?pv='+res.Name)
+                    })
+                } else {
+                    ReportId({TypeName:'Agency_Activity'}).then(request => {
+                        window.open('/'+ request +'?pv='+ res.HospitalDepartmentClass +'&pv='+sectionApi)
+                    })
+                }
+                this.dispatchEvent(new CloseActionScreenEvent());
+            }
+        })
+    
+    }
+
+    showToast(msg, type) {
+        const event = new ShowToastEvent({
+          message: msg,
+          variant: type
+        });
+        this.dispatchEvent(event);
+        this.dispatchEvent(new CloseActionScreenEvent());
+    }
+}
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexDealerVisitDetails/lexDealerVisitDetails.js-meta.xml b/force-app/main/default/lwc/lexDealerVisitDetails/lexDealerVisitDetails.js-meta.xml
new file mode 100644
index 0000000..23ced59
--- /dev/null
+++ b/force-app/main/default/lwc/lexDealerVisitDetails/lexDealerVisitDetails.js-meta.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
+    <apiVersion>57.0</apiVersion>
+    <isExposed>true</isExposed>
+    <targets>
+		<target>lightning__RecordPage</target>
+		<target>lightning__AppPage</target>
+		<target>lightning__HomePage</target>
+		<target>lightning__RecordAction</target>
+	</targets>
+</LightningComponentBundle>
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexHosipitalToDept/lexHosipitalToDept.css b/force-app/main/default/lwc/lexHosipitalToDept/lexHosipitalToDept.css
new file mode 100644
index 0000000..d1ba5db
--- /dev/null
+++ b/force-app/main/default/lwc/lexHosipitalToDept/lexHosipitalToDept.css
@@ -0,0 +1,11 @@
+.HosipitalToDept{
+	position: relative;
+	display: inline-block;
+	width: 80px;
+	height: 80px;
+	text-align: center;
+}
+
+.container .uiContainerManager{
+	display : none !important;
+}
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexHosipitalToDept/lexHosipitalToDept.html b/force-app/main/default/lwc/lexHosipitalToDept/lexHosipitalToDept.html
new file mode 100644
index 0000000..a88a331
--- /dev/null
+++ b/force-app/main/default/lwc/lexHosipitalToDept/lexHosipitalToDept.html
@@ -0,0 +1,5 @@
+<template>
+    <div class="HosipitalToDept" if:true={IsLoading}>
+        <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner>
+    </div>
+</template>
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexHosipitalToDept/lexHosipitalToDept.js b/force-app/main/default/lwc/lexHosipitalToDept/lexHosipitalToDept.js
new file mode 100644
index 0000000..9eb1c78
--- /dev/null
+++ b/force-app/main/default/lwc/lexHosipitalToDept/lexHosipitalToDept.js
@@ -0,0 +1,75 @@
+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/HosipitalToDeptController.init';
+import updataAccount from '@salesforce/apex/HosipitalToDeptController.updataAccount';
+import executeWebSide from '@salesforce/apex/HosipitalToDeptController.submitApproval';
+
+export default class LexHosipitalToDept extends LightningElement {
+    @api recordId;
+    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(){
+        init({recordId:this.recordId}).then(res => {
+            console.log(res,'<========res')
+            if(res.GiMain == ''){
+                this.showToast('璇峰~鍐橤I涓绘媴褰�','error');
+            }else if(res.BFowner == ''){
+                this.showToast('璇峰~鍐橞F涓绘媴褰�','error');
+            }else if(res.ETowner == ''){
+                this.showToast('璇峰~鍐橢T涓绘媴褰�','error');
+            }else if(res.SPMain == ''){
+                this.showToast('璇峰~鍐橤S涓绘媴褰�','error');
+            }else if(res.UROownerID == ''){
+                this.showToast('璇峰~鍐橴RO涓绘媴褰�','error');
+            }else if(res.GYNowner == ''){
+                this.showToast('璇峰~鍐橤YN涓绘媴褰�','error');
+            }else if(res.ENTownerID == ''){
+                this.showToast('璇峰~鍐橢NT涓绘媴褰�','error');
+            }else if (confirm(res.SoakupHPDeptTeam)) {
+                updataAccount({recordId:this.recordId,HosipitalToDept:true}).catch(err => {
+                    this.showToast(err.body.message,'error');
+                })
+                executeWebSide({Hospitalid: this.recordId}).then(resp => {
+                    if (resp != 'OK') {
+                        this.showToast(resp,'error');
+                    } else {
+                        updataAccount({recordId:this.recordId,HosipitalToDept:false}).catch(err => {
+                            this.showToast(err.body.message,'error');
+                        })
+                        this.showToast('鍙嶆槧瀹屾垚','success');
+                    }
+                }).catch(err => {
+                    console.log(err,'<======err')
+                    if (err.faultcode == 'sf:INSUFFICIENT_ACCESS') {
+                        this.showToast('娌℃湁鎵ц鏉冮檺','error');
+                    } else {
+                        this.showToast(err,'success');
+                    }
+                })
+            }
+        })
+    }
+    showToast(msg, type) {
+        const event = new ShowToastEvent({
+          message: msg,
+          variant: type
+        });
+        this.dispatchEvent(event);
+        this.dispatchEvent(new CloseActionScreenEvent());
+    }
+}
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexHosipitalToDept/lexHosipitalToDept.js-meta.xml b/force-app/main/default/lwc/lexHosipitalToDept/lexHosipitalToDept.js-meta.xml
new file mode 100644
index 0000000..23ced59
--- /dev/null
+++ b/force-app/main/default/lwc/lexHosipitalToDept/lexHosipitalToDept.js-meta.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
+    <apiVersion>57.0</apiVersion>
+    <isExposed>true</isExposed>
+    <targets>
+		<target>lightning__RecordPage</target>
+		<target>lightning__AppPage</target>
+		<target>lightning__HomePage</target>
+		<target>lightning__RecordAction</target>
+	</targets>
+</LightningComponentBundle>
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexMonthlyClaimsChange/LexMonthlyClaimsChange.css b/force-app/main/default/lwc/lexMonthlyClaimsChange/LexMonthlyClaimsChange.css
new file mode 100644
index 0000000..0186940
--- /dev/null
+++ b/force-app/main/default/lwc/lexMonthlyClaimsChange/LexMonthlyClaimsChange.css
@@ -0,0 +1,11 @@
+.MonthlyClaimsChange{
+	position: relative;
+	display: inline-block;
+	width: 80px;
+	height: 80px;
+	text-align: center;
+}
+
+.container .uiContainerManager{
+	display : none !important;
+}
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexMonthlyClaimsChange/lexMonthlyClaimsChange.html b/force-app/main/default/lwc/lexMonthlyClaimsChange/lexMonthlyClaimsChange.html
new file mode 100644
index 0000000..9e47255
--- /dev/null
+++ b/force-app/main/default/lwc/lexMonthlyClaimsChange/lexMonthlyClaimsChange.html
@@ -0,0 +1,5 @@
+<template>
+    <div class="MonthlyClaimsChange" if:true={IsLoading}>
+        <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner>
+    </div>
+</template>
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexMonthlyClaimsChange/lexMonthlyClaimsChange.js b/force-app/main/default/lwc/lexMonthlyClaimsChange/lexMonthlyClaimsChange.js
new file mode 100644
index 0000000..b3c6c34
--- /dev/null
+++ b/force-app/main/default/lwc/lexMonthlyClaimsChange/lexMonthlyClaimsChange.js
@@ -0,0 +1,80 @@
+import { LightningElement,api, track, wire } from 'lwc';
+import {CurrentPageReference} from 'lightning/navigation';
+import { CloseActionScreenEvent } from 'lightning/actions';
+import { ShowToastEvent } from 'lightning/platformShowToastEvent';
+import { NavigationMixin } from 'lightning/navigation';
+import init from '@salesforce/apex/MonthlyClaimsChangeController.init';
+import { encodeDefaultFieldValues } from 'lightning/pageReferenceUtils';
+export default class LexMonthlyClaimsChange extends NavigationMixin(LightningElement) {
+    @api recordId;
+    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(){
+		init({recordId:this.recordId}).then(result=>{
+            console.log('result==========',result);
+            this.IsLoading = false;
+            if(result!=null){
+                if (result.DealerTypeSum == '鐗圭害缁忛攢鍟�') {
+                    if (result.MonthlyPayment == true) {
+                        if (result.records.length > 0) {
+                            if (result.records[0].Status__c == '鑽夋涓�') {
+                                this.showToast('宸叉彁浜よ崏绋胯灏藉揩鎻愪氦瀹℃壒','error');
+                            } else {
+                                this.showToast('鏃犳硶鍒涘缓锛佸凡鏈夋湭鏈�缁堟壒鍑嗙殑鏁版嵁','error');
+                            };
+                        } else {    
+                            const defaultFieldValues = encodeDefaultFieldValues({
+                                Account__c:this.recordId,
+                            });
+                            console.log(defaultFieldValues)
+                            this[NavigationMixin.Navigate]({
+                                type: 'standard__objectPage',
+                                attributes: {
+                                    objectApiName: 'Advance_Payment__c',
+                                    actionName:'new'
+                                },
+                                state:{
+                                    defaultFieldValues:defaultFieldValues,
+                                    recordTypeId:result.RecordTypeId
+                                }
+                            });
+                        }
+                    } else {
+                        this.showToast("鎮ㄥ凡鍙栨秷鏈堝害鏍囪瘑锛屾棤闇�閲嶅鎿嶄綔",'error');
+                    };
+                } else {
+                    this.showToast("璇疯仈绯绘湇鍔℃湰閮ㄥ鏍稿悗鍙樻洿鏍囪瘑",'error');
+                    return;
+                }
+            }
+            this.dispatchEvent(new CloseActionScreenEvent());
+        }).catch(err=>{
+            console.log("error:====",err);
+            console.log(err);
+        })
+	}
+
+    showToast(msg, type) {
+        const event = new ShowToastEvent({
+          title: "",
+          message: msg,
+          variant: type
+        });
+        this.dispatchEvent(event);
+        this.dispatchEvent(new CloseActionScreenEvent());
+    }
+}
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexMonthlyClaimsChange/lexMonthlyClaimsChange.js-meta.xml b/force-app/main/default/lwc/lexMonthlyClaimsChange/lexMonthlyClaimsChange.js-meta.xml
new file mode 100644
index 0000000..cd90c18
--- /dev/null
+++ b/force-app/main/default/lwc/lexMonthlyClaimsChange/lexMonthlyClaimsChange.js-meta.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
+    <apiVersion>57.0</apiVersion>
+    <isExposed>true</isExposed>
+    <targets>
+        <target>lightning__AppPage</target>
+        <target>lightning__RecordPage</target>
+        <target>lightning__HomePage</target>
+        <target>lightning__RecordAction</target>
+    </targets>
+</LightningComponentBundle>
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexNewAgencyContract/lexNewAgencyContract.css b/force-app/main/default/lwc/lexNewAgencyContract/lexNewAgencyContract.css
new file mode 100644
index 0000000..907c4f6
--- /dev/null
+++ b/force-app/main/default/lwc/lexNewAgencyContract/lexNewAgencyContract.css
@@ -0,0 +1,11 @@
+.NewAgencyContract{
+	position: relative;
+	display: inline-block;
+	width: 80px;
+	height: 80px;
+	text-align: center;
+}
+
+.container .uiContainerManager{
+	display : none !important;
+}
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexNewAgencyContract/lexNewAgencyContract.html b/force-app/main/default/lwc/lexNewAgencyContract/lexNewAgencyContract.html
new file mode 100644
index 0000000..a6e6f97
--- /dev/null
+++ b/force-app/main/default/lwc/lexNewAgencyContract/lexNewAgencyContract.html
@@ -0,0 +1,5 @@
+<template>
+    <div class="NewAgencyContract" if:true={IsLoading}>
+        <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner>
+    </div>
+</template>
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexNewAgencyContract/lexNewAgencyContract.js b/force-app/main/default/lwc/lexNewAgencyContract/lexNewAgencyContract.js
new file mode 100644
index 0000000..306b0a5
--- /dev/null
+++ b/force-app/main/default/lwc/lexNewAgencyContract/lexNewAgencyContract.js
@@ -0,0 +1,63 @@
+import { LightningElement,api, track, wire } from 'lwc';
+import {CurrentPageReference} from 'lightning/navigation';
+import { ShowToastEvent } from 'lightning/platformShowToastEvent';
+import UserInfo_Owner  from '@salesforce/apex/NewAgencyContractController.UserInfo_Owner';
+import { NavigationMixin } from 'lightning/navigation';
+import { encodeDefaultFieldValues } from 'lightning/pageReferenceUtils';
+import { CloseActionScreenEvent } from 'lightning/actions';
+
+export default class LexNewAgencyContract extends NavigationMixin(LightningElement) {
+    @api recordId;
+    ProfileId;
+    IsLoading=true;
+    @wire(CurrentPageReference)
+	getStateParameters(currentPageReference){
+		console.log("杩涘叆椤甸潰");
+		console.log(currentPageReference);
+		if(currentPageReference){
+			const urvalue=currentPageReference.state.recordId;
+			if(urvalue){
+				let str=`${urvalue}`;
+				this.recordId=str;
+			}
+		}
+	}
+
+    connectedCallback(){
+        UserInfo_Owner().then(res => {
+            console.log('result===>',res)
+            if (res.id == '00510000002YSBIAA4' || res.ProfileId == '00e10000000Y3o5AAC') {
+                this.showToast('浼氳嚜鍔ㄥ垎閰嶆柊寤哄悎鍚岀殑瀹㈡埛缂栫爜锛屼繚鐣欐棫缂栫爜鐨勬椂鍊欒鐢ㄥ鍒跺悎鍚屻��','success');
+                const defaultFieldValues = encodeDefaultFieldValues({
+                    Agent_Ref__c:this.recordId,
+                });
+                this[NavigationMixin.Navigate]({
+                    type: 'standard__objectPage',
+                    attributes: {
+                        objectApiName: 'Account',
+                        actionName:'new'
+                    },
+                    state:{
+                        defaultFieldValues:defaultFieldValues,
+                        recordTypeId:res.RecordTypeId
+                    }
+                });
+            } else {
+                this.showToast('娌℃湁鏂板缓鐨勬潈闄�','error');
+            }
+        }).catch(err => {
+            console.log('err:',err)
+        })
+		
+	}
+
+    showToast(msg,type) {
+        const event = new ShowToastEvent({
+            message: msg,
+            variant: type
+        });
+		this.IsLoading = false;
+		this.dispatchEvent(event);
+        this.dispatchEvent(new CloseActionScreenEvent());
+    }
+}
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexNewAgencyContract/lexNewAgencyContract.js-meta.xml b/force-app/main/default/lwc/lexNewAgencyContract/lexNewAgencyContract.js-meta.xml
new file mode 100644
index 0000000..cd90c18
--- /dev/null
+++ b/force-app/main/default/lwc/lexNewAgencyContract/lexNewAgencyContract.js-meta.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
+    <apiVersion>57.0</apiVersion>
+    <isExposed>true</isExposed>
+    <targets>
+        <target>lightning__AppPage</target>
+        <target>lightning__RecordPage</target>
+        <target>lightning__HomePage</target>
+        <target>lightning__RecordAction</target>
+    </targets>
+</LightningComponentBundle>
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexQuolifiedApplySPO/lexQuolifiedApplySPO.css b/force-app/main/default/lwc/lexQuolifiedApplySPO/lexQuolifiedApplySPO.css
new file mode 100644
index 0000000..fa2a6b4
--- /dev/null
+++ b/force-app/main/default/lwc/lexQuolifiedApplySPO/lexQuolifiedApplySPO.css
@@ -0,0 +1,11 @@
+.QuolifiedApplySPO{
+	position: relative;
+	display: inline-block;
+	width: 80px;
+	height: 80px;
+	text-align: center;
+}
+
+.container .uiContainerManager{
+	display : none !important;
+}
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexQuolifiedApplySPO/lexQuolifiedApplySPO.html b/force-app/main/default/lwc/lexQuolifiedApplySPO/lexQuolifiedApplySPO.html
new file mode 100644
index 0000000..6f76f82
--- /dev/null
+++ b/force-app/main/default/lwc/lexQuolifiedApplySPO/lexQuolifiedApplySPO.html
@@ -0,0 +1,5 @@
+<template>
+    <div class="QuolifiedApplySPO" if:true={IsLoading}>
+        <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner>
+    </div>
+</template>
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexQuolifiedApplySPO/lexQuolifiedApplySPO.js b/force-app/main/default/lwc/lexQuolifiedApplySPO/lexQuolifiedApplySPO.js
new file mode 100644
index 0000000..b7c1329
--- /dev/null
+++ b/force-app/main/default/lwc/lexQuolifiedApplySPO/lexQuolifiedApplySPO.js
@@ -0,0 +1,71 @@
+import { LightningElement,api, track, wire } from 'lwc';
+import {CurrentPageReference} from 'lightning/navigation';
+import { CloseActionScreenEvent } from 'lightning/actions';
+import { ShowToastEvent } from 'lightning/platformShowToastEvent';
+import { NavigationMixin } from 'lightning/navigation';
+import init from '@salesforce/apex/QuolifiedApplySPOController.init';
+import updata from '@salesforce/apex/QuolifiedApplySPOController.updata';
+
+export default class LexQuolifiedApplySPO extends NavigationMixin(LightningElement) {
+    @api recordId;
+    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(){
+        init({recordId:this.recordId}).then(res => {
+            console.log('result======>',res)
+            if(res != null){
+                if (res.IsActive != '鏈夊姽' && res.IsActive != '鏈夋晥') {
+                    this.showToast("鍖婚櫌鏈夋晥鍚庢墠鍙互璧勮川瀹℃壒銆�",'error');
+                    return;
+                }
+                
+                var job = res.JobCategory;
+                var profileId = res.ProfileId;
+                
+                if (job != '鏀彺' && job != '閿�鍞帹骞�' && job != '閿�鍞湇鍔�' && profileId != '00e10000000Nab7') {
+                    this.showToast("蹇呴』鑱岀鏄敮鎻达紝閿�鍞帹骞�,閿�鍞湇鍔″拰鐗圭害搴楃獥鍙g殑鐢ㄦ埛鎵嶅彲浠ユ彁浜よ祫璐�!",'error');
+                    return;
+                }
+                    
+                updata({recordId:this.recordId}).then(result => {
+                    console.log('result========>',result)
+                    if(result == 'ok'){
+                        this.showToast("鍖婚櫌淇℃伅宸叉彁浜�,璇峰湪SPO绯荤粺涓畬鎴愯祫璐ㄧ敵璇枫��",'success');
+                        // window.location.reload(); 鍒锋柊椤甸潰鍚庝細閲嶅璋冪敤鏈粍浠跺舰鎴愭寰幆
+                        window.open("https://olympus.sharepoint.cn/sites/GSPWF/SitePages/HomePage.aspx");
+                    }
+                }).catch(err => {
+                    console.log(err,'error');
+                    this.showToast(err.body.message,'error');
+                })
+                // if (messages.length > 0) {
+                //     return;
+                // }
+                
+            }
+        })
+        
+    }
+    showToast(msg, type) {
+        const event = new ShowToastEvent({
+          message: msg,
+          variant: type
+        });
+        this.dispatchEvent(event);
+        this.dispatchEvent(new CloseActionScreenEvent());
+    }
+}
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexQuolifiedApplySPO/lexQuolifiedApplySPO.js-meta.xml b/force-app/main/default/lwc/lexQuolifiedApplySPO/lexQuolifiedApplySPO.js-meta.xml
new file mode 100644
index 0000000..23ced59
--- /dev/null
+++ b/force-app/main/default/lwc/lexQuolifiedApplySPO/lexQuolifiedApplySPO.js-meta.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
+    <apiVersion>57.0</apiVersion>
+    <isExposed>true</isExposed>
+    <targets>
+		<target>lightning__RecordPage</target>
+		<target>lightning__AppPage</target>
+		<target>lightning__HomePage</target>
+		<target>lightning__RecordAction</target>
+	</targets>
+</LightningComponentBundle>
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexSampleInventory/lexSampleInventory.css b/force-app/main/default/lwc/lexSampleInventory/lexSampleInventory.css
new file mode 100644
index 0000000..999f97f
--- /dev/null
+++ b/force-app/main/default/lwc/lexSampleInventory/lexSampleInventory.css
@@ -0,0 +1,11 @@
+.SampleInventory{
+	position: relative;
+	display: inline-block;
+	width: 80px;
+	height: 80px;
+	text-align: center;
+}
+
+.container .uiContainerManager{
+	display : none !important;
+}
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexSampleInventory/lexSampleInventory.html b/force-app/main/default/lwc/lexSampleInventory/lexSampleInventory.html
new file mode 100644
index 0000000..2db620c
--- /dev/null
+++ b/force-app/main/default/lwc/lexSampleInventory/lexSampleInventory.html
@@ -0,0 +1,5 @@
+<template>
+    <div class="SampleInventory" if:true={IsLoading}>
+        <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner>
+    </div>
+</template>
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexSampleInventory/lexSampleInventory.js b/force-app/main/default/lwc/lexSampleInventory/lexSampleInventory.js
new file mode 100644
index 0000000..ee951c9
--- /dev/null
+++ b/force-app/main/default/lwc/lexSampleInventory/lexSampleInventory.js
@@ -0,0 +1,30 @@
+import { LightningElement,api, track, wire } from 'lwc';
+import {CurrentPageReference} from 'lightning/navigation';
+import { NavigationMixin } from 'lightning/navigation';
+
+export default class LexSampleInventory extends NavigationMixin(LightningElement) {
+    @api recordId;
+    IsLoading=true;
+    @wire(CurrentPageReference)
+	getStateParameters(currentPageReference){
+		console.log("杩涘叆椤甸潰");
+		console.log(currentPageReference);
+		if(currentPageReference){
+			const urvalue=currentPageReference.state.recordId;
+			if(urvalue){
+				let str=`${urvalue}`;
+				this.recordId=str;
+			}
+		}
+	}
+    connectedCallback(){
+        this[NavigationMixin.Navigate]({
+            type: 'standard__webPage',
+            attributes: {
+               url:'/apex/SampleInventory?accid='+this.recordId
+            }
+        });
+        this.IsLoading = false
+    }
+    
+}
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexSampleInventory/lexSampleInventory.js-meta.xml b/force-app/main/default/lwc/lexSampleInventory/lexSampleInventory.js-meta.xml
new file mode 100644
index 0000000..531b526
--- /dev/null
+++ b/force-app/main/default/lwc/lexSampleInventory/lexSampleInventory.js-meta.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
+    <apiVersion>57.0</apiVersion>
+    <isExposed>true</isExposed>
+     <targets>
+		<target>lightning__RecordPage</target>
+		<target>lightning__AppPage</target>
+		<target>lightning__HomePage</target>
+		<target>lightning__RecordAction</target>
+	</targets>
+</LightningComponentBundle>
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexSoakupTeam/lexSoakupTeam.css b/force-app/main/default/lwc/lexSoakupTeam/lexSoakupTeam.css
new file mode 100644
index 0000000..29439e6
--- /dev/null
+++ b/force-app/main/default/lwc/lexSoakupTeam/lexSoakupTeam.css
@@ -0,0 +1,11 @@
+.SoakupTeam{
+	position: relative;
+	display: inline-block;
+	width: 80px;
+	height: 80px;
+	text-align: center;
+}
+
+.container .uiContainerManager{
+	display : none !important;
+}
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexSoakupTeam/lexSoakupTeam.html b/force-app/main/default/lwc/lexSoakupTeam/lexSoakupTeam.html
new file mode 100644
index 0000000..a2a9220
--- /dev/null
+++ b/force-app/main/default/lwc/lexSoakupTeam/lexSoakupTeam.html
@@ -0,0 +1,5 @@
+<template>
+    <div class="SoakupTeam" if:true={IsLoading}>
+        <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner>
+    </div>
+</template>
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexSoakupTeam/lexSoakupTeam.js b/force-app/main/default/lwc/lexSoakupTeam/lexSoakupTeam.js
new file mode 100644
index 0000000..f4d60e9
--- /dev/null
+++ b/force-app/main/default/lwc/lexSoakupTeam/lexSoakupTeam.js
@@ -0,0 +1,55 @@
+import { LightningElement,api, track, wire } from 'lwc';
+import {CurrentPageReference} from 'lightning/navigation';
+import { ShowToastEvent } from 'lightning/platformShowToastEvent';
+import execute from '@salesforce/apex/SoakupHPDeptTeam.execute';
+import init from '@salesforce/apex/SoakupTeamController.init';
+
+import { CloseActionScreenEvent } from 'lightning/actions';
+export default class LexSoakupTeam extends LightningElement {
+    @api recordId;
+    IsLoading=true;
+    @wire(CurrentPageReference)
+	getStateParameters(currentPageReference){
+		console.log("杩涘叆椤甸潰");
+		console.log(currentPageReference);
+		if(currentPageReference){
+			const urvalue=currentPageReference.state.recordId;
+			if(urvalue){
+				let str=`${urvalue}`;
+				this.recordId=str;
+			} 
+		}
+	}
+    connectedCallback(){
+        init({recordId:this.recordId}).then(res => {
+            if (confirm(res.ConfirmSoakupHPDeptTeam)) {
+                execute({deptClassId: res.id}).then(rep => {
+                    if (rep != 'OK') {
+                        this.showToast(rep,'error');
+                    } else {
+                    
+                        this.showToast('鍙嶆槧瀹屾垚','success');
+                    }
+                }).catch((e) => {
+                    if (e.faultcode == 'sf:INSUFFICIENT_ACCESS') {
+                        this.showToast('娌℃湁鎵ц鏉冮檺','error');
+                    } else {
+                        this.showToast(e,'success');
+                    }
+                });
+            }
+        }).catch(err => {
+            console.log(err,'<==========err')
+        })
+       
+    }
+    showToast(msg,type) {
+        const event = new ShowToastEvent({
+            message: msg,
+            variant: type
+        });
+		this.IsLoading = false;
+		this.dispatchEvent(event);
+        this.dispatchEvent(new CloseActionScreenEvent());
+    }
+}
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexSoakupTeam/lexSoakupTeam.js-meta.xml b/force-app/main/default/lwc/lexSoakupTeam/lexSoakupTeam.js-meta.xml
new file mode 100644
index 0000000..23ced59
--- /dev/null
+++ b/force-app/main/default/lwc/lexSoakupTeam/lexSoakupTeam.js-meta.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
+    <apiVersion>57.0</apiVersion>
+    <isExposed>true</isExposed>
+    <targets>
+		<target>lightning__RecordPage</target>
+		<target>lightning__AppPage</target>
+		<target>lightning__HomePage</target>
+		<target>lightning__RecordAction</target>
+	</targets>
+</LightningComponentBundle>
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexSubmitAndRefresh/lexSubmitAndRefresh.css b/force-app/main/default/lwc/lexSubmitAndRefresh/lexSubmitAndRefresh.css
new file mode 100644
index 0000000..48025ef
--- /dev/null
+++ b/force-app/main/default/lwc/lexSubmitAndRefresh/lexSubmitAndRefresh.css
@@ -0,0 +1,11 @@
+.SubmitAndRefresh{
+	position: relative;
+	display: inline-block;
+	width: 80px;
+	height: 80px;
+	text-align: center;
+}
+
+.container .uiContainerManager{
+	display : none !important;
+}
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexSubmitAndRefresh/lexSubmitAndRefresh.html b/force-app/main/default/lwc/lexSubmitAndRefresh/lexSubmitAndRefresh.html
new file mode 100644
index 0000000..a1d7748
--- /dev/null
+++ b/force-app/main/default/lwc/lexSubmitAndRefresh/lexSubmitAndRefresh.html
@@ -0,0 +1,5 @@
+<template>
+    <div class="SubmitAndRefresh" if:true={IsLoading}>
+        <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner>
+    </div>
+</template>
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexSubmitAndRefresh/lexSubmitAndRefresh.js b/force-app/main/default/lwc/lexSubmitAndRefresh/lexSubmitAndRefresh.js
new file mode 100644
index 0000000..3b5e285
--- /dev/null
+++ b/force-app/main/default/lwc/lexSubmitAndRefresh/lexSubmitAndRefresh.js
@@ -0,0 +1,58 @@
+import { LightningElement,api, track, wire } from 'lwc';
+import {CurrentPageReference} from 'lightning/navigation';
+import { ShowToastEvent } from 'lightning/platformShowToastEvent';
+
+import init  from '@salesforce/apex/SubmitAndRefreshController.init';
+import submitApproval from '@salesforce/apex/AddSubmitApprovalProcessController.submitApproval';
+
+export default class LexSampleInventory extends LightningElement {
+    @api recordId;
+    IsLoading=true;
+    @wire(CurrentPageReference)
+	getStateParameters(currentPageReference){
+		console.log("杩涘叆椤甸潰");
+		console.log(currentPageReference);
+		if(currentPageReference){
+			const urvalue=currentPageReference.state.recordId;
+			if(urvalue){
+				let str=`${urvalue}`;
+				this.recordId=str;
+			}
+		}
+	}
+
+    connectedCallback(){
+		init({Id:this.recordId}).then(result=>{
+			console.log('init result==========',result);
+			if(result!=null){
+                if (result.Isuploadfile == '0') {
+                    this.showToast('璇蜂笂浼犲鎴峰彉鏇寸敵璇蜂俊鎭檮浠�','error');
+                    return;
+                }
+                var accname=result.HospitalName.substr(-2,2);
+                if((accname =='鍏徃' || accname =='闆嗗洟') && result.AttributeType !='浼佷笟闆嗗洟'){
+                    this.showToast('瀹㈡埛涓哄叕鍙告垨闆嗗洟锛屽尰闄㈡�ц川涓嶆槸浼佷笟闆嗗洟锛岃鏍稿疄鍖婚櫌鎬ц川锛岀‘璁ゆ槸鍚︽彁浜わ紵','error');
+                }
+                if (!confirm("涓�鏃︽彁浜ゆ璁板綍浠ュ緟鎵瑰噯锛屾牴鎹偍鐨勮缃偍鍙兘涓嶅啀鑳藉缂栬緫姝よ褰曟垨灏嗕粬浠庢壒鍑嗚繃绋嬩腑璋冨洖銆傛槸鍚︾户缁紵")) {
+                    return;
+                }
+                submitApproval({recordId:this.recordId}).then(res => {
+                    console.log(res,'<======res')
+                }).catch(err => {
+                    console.log(err,'<======err')
+                    this.showToast(err,'error')
+                })
+			}
+		});
+	}
+    showToast(msg,type) {
+        const event = new ShowToastEvent({
+            title: '',
+            message: msg,
+            variant: type
+        });
+		this.IsLoading = false;
+		this.dispatchEvent(event);
+        this.dispatchEvent(new CloseActionScreenEvent());
+    }
+}
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexSubmitAndRefresh/lexSubmitAndRefresh.js-meta.xml b/force-app/main/default/lwc/lexSubmitAndRefresh/lexSubmitAndRefresh.js-meta.xml
new file mode 100644
index 0000000..23ced59
--- /dev/null
+++ b/force-app/main/default/lwc/lexSubmitAndRefresh/lexSubmitAndRefresh.js-meta.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
+    <apiVersion>57.0</apiVersion>
+    <isExposed>true</isExposed>
+    <targets>
+		<target>lightning__RecordPage</target>
+		<target>lightning__AppPage</target>
+		<target>lightning__HomePage</target>
+		<target>lightning__RecordAction</target>
+	</targets>
+</LightningComponentBundle>
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexSubmitAndRefreshAccount/lexSubmitAndRefreshAccount.css b/force-app/main/default/lwc/lexSubmitAndRefreshAccount/lexSubmitAndRefreshAccount.css
new file mode 100644
index 0000000..40bec06
--- /dev/null
+++ b/force-app/main/default/lwc/lexSubmitAndRefreshAccount/lexSubmitAndRefreshAccount.css
@@ -0,0 +1,11 @@
+.SubmitAndRefreshAccount{
+	position: relative;
+	display: inline-block;
+	width: 80px;
+	height: 80px;
+	text-align: center;
+}
+
+.container .uiContainerManager{
+	display : none !important;
+}
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexSubmitAndRefreshAccount/lexSubmitAndRefreshAccount.html b/force-app/main/default/lwc/lexSubmitAndRefreshAccount/lexSubmitAndRefreshAccount.html
new file mode 100644
index 0000000..d07233f
--- /dev/null
+++ b/force-app/main/default/lwc/lexSubmitAndRefreshAccount/lexSubmitAndRefreshAccount.html
@@ -0,0 +1,5 @@
+<template>
+    <div class="SubmitAndRefreshAccount" if:true={IsLoading}>
+        <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner>
+    </div>
+</template>
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexSubmitAndRefreshAccount/lexSubmitAndRefreshAccount.js b/force-app/main/default/lwc/lexSubmitAndRefreshAccount/lexSubmitAndRefreshAccount.js
new file mode 100644
index 0000000..a25c176
--- /dev/null
+++ b/force-app/main/default/lwc/lexSubmitAndRefreshAccount/lexSubmitAndRefreshAccount.js
@@ -0,0 +1,74 @@
+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/HosipitalToDeptController.init';
+import submitApproval from '@salesforce/apex/AddSubmitApprovalProcessController.submitApproval';
+
+export default class LexSubmitAndRefreshAccount extends LightningElement {
+    @api recordId;
+    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(){
+        init({recordId:this.recordId}).then(res => {
+            console.log(res,'<========res')
+            if(res.GiMain == ''){
+                this.showToast('璇峰~鍐橤I涓绘媴褰�','error');
+            }else if(res.BFowner == ''){
+                this.showToast('璇峰~鍐橞F涓绘媴褰�','error');
+            }else if(res.ETowner == ''){
+                this.showToast('璇峰~鍐橢T涓绘媴褰�','error');
+            }else if(res.SPMain == ''){
+                this.showToast('璇峰~鍐橤S涓绘媴褰�','error');
+            }else if(res.UROownerID == ''){
+                this.showToast('璇峰~鍐橴RO涓绘媴褰�','error');
+            }else if(res.GYNowner == ''){
+                this.showToast('璇峰~鍐橤YN涓绘媴褰�','error');
+            }else if(res.ENTownerID == ''){
+                this.showToast('璇峰~鍐橢NT涓绘媴褰�','error');
+            }
+            if('{!Account.Tender_information__c}' !=''){
+
+            }else if (res.Isuploadfile == '0' || res.Isuploadfile == false) {
+                this.showToast('璇蜂笂浼犲尰闄俊鎭檮浠�','error');
+                return;
+            }
+            var accname=res.Name.substr(-2,2);
+            if((accname =='鍏徃' || accname =='闆嗗洟') && res.AttributeType !='浼佷笟闆嗗洟'){
+                this.showToast('瀹㈡埛涓哄叕鍙告垨闆嗗洟锛屽尰闄㈡�ц川涓嶆槸浼佷笟闆嗗洟锛岃鏍稿疄鍖婚櫌鎬ц川锛岀‘璁ゆ槸鍚︽彁浜わ紵','success');
+            }
+            if (!confirm("涓�鏃︽彁浜ゆ璁板綍浠ュ緟鎵瑰噯锛屾牴鎹偍鐨勮缃偍鍙兘涓嶅啀鑳藉缂栬緫姝よ褰曟垨灏嗕粬浠庢壒鍑嗚繃绋嬩腑璋冨洖銆傛槸鍚︾户缁紵")) {
+                return;
+            }
+            submitApproval({recordId:this.recordId}).then(rep => {
+                console.log(rep,'<========result')
+            }).catch(err => {
+                this.showToast(err,'error')
+            })
+            this.dispatchEvent(new CloseActionScreenEvent());
+        })
+    
+    }
+    showToast(msg, type) {
+        const event = new ShowToastEvent({
+          message: msg,
+          variant: type
+        });
+        this.dispatchEvent(event);
+        this.dispatchEvent(new CloseActionScreenEvent());
+    }
+}
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexSubmitAndRefreshAccount/lexSubmitAndRefreshAccount.js-meta.xml b/force-app/main/default/lwc/lexSubmitAndRefreshAccount/lexSubmitAndRefreshAccount.js-meta.xml
new file mode 100644
index 0000000..23ced59
--- /dev/null
+++ b/force-app/main/default/lwc/lexSubmitAndRefreshAccount/lexSubmitAndRefreshAccount.js-meta.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
+    <apiVersion>57.0</apiVersion>
+    <isExposed>true</isExposed>
+    <targets>
+		<target>lightning__RecordPage</target>
+		<target>lightning__AppPage</target>
+		<target>lightning__HomePage</target>
+		<target>lightning__RecordAction</target>
+	</targets>
+</LightningComponentBundle>
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexsurface/lexsurface.css b/force-app/main/default/lwc/lexsurface/lexsurface.css
new file mode 100644
index 0000000..c102f98
--- /dev/null
+++ b/force-app/main/default/lwc/lexsurface/lexsurface.css
@@ -0,0 +1,11 @@
+.surface{
+	position: relative;
+	display: inline-block;
+	width: 80px;
+	height: 80px;
+	text-align: center;
+}
+
+.container .uiContainerManager{
+	display : none !important;
+}
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexsurface/lexsurface.html b/force-app/main/default/lwc/lexsurface/lexsurface.html
new file mode 100644
index 0000000..a55a354
--- /dev/null
+++ b/force-app/main/default/lwc/lexsurface/lexsurface.html
@@ -0,0 +1,5 @@
+<template>
+    <div class="surface" if:true={IsLoading}>
+        <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner>
+    </div>
+</template>
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexsurface/lexsurface.js b/force-app/main/default/lwc/lexsurface/lexsurface.js
new file mode 100644
index 0000000..3b20d50
--- /dev/null
+++ b/force-app/main/default/lwc/lexsurface/lexsurface.js
@@ -0,0 +1,32 @@
+import { LightningElement,api, track, wire } from 'lwc';
+import {CurrentPageReference} from 'lightning/navigation';
+import { NavigationMixin } from 'lightning/navigation';
+
+export default class Lexsurface extends NavigationMixin(LightningElement) {
+    @api recordId;
+    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(){
+        this[NavigationMixin.Navigate]({
+            type: 'standard__webPage',
+            attributes: {
+               url:'/apex/Ordergoods?accid='+this.recordId
+            }
+        });
+        this.IsLoading = false
+    }
+}
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexsurface/lexsurface.js-meta.xml b/force-app/main/default/lwc/lexsurface/lexsurface.js-meta.xml
new file mode 100644
index 0000000..a1a6410
--- /dev/null
+++ b/force-app/main/default/lwc/lexsurface/lexsurface.js-meta.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
+    <apiVersion>57.0</apiVersion>
+    <isExposed>true</isExposed>
+      <targets>
+		<target>lightning__RecordPage</target>
+		<target>lightning__AppPage</target>
+		<target>lightning__HomePage</target>
+		<target>lightning__RecordAction</target>
+	</targets>
+</LightningComponentBundle>
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lextoBatchUser/lextoBatchUser.css b/force-app/main/default/lwc/lextoBatchUser/lextoBatchUser.css
new file mode 100644
index 0000000..3860e6e
--- /dev/null
+++ b/force-app/main/default/lwc/lextoBatchUser/lextoBatchUser.css
@@ -0,0 +1,11 @@
+.toBatchUser{
+	position: relative;
+	display: inline-block;
+	width: 80px;
+	height: 80px;
+	text-align: center;
+}
+
+.container .uiContainerManager{
+	display : none !important;
+}
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lextoBatchUser/lextoBatchUser.html b/force-app/main/default/lwc/lextoBatchUser/lextoBatchUser.html
new file mode 100644
index 0000000..96f51bb
--- /dev/null
+++ b/force-app/main/default/lwc/lextoBatchUser/lextoBatchUser.html
@@ -0,0 +1,5 @@
+<template>
+    <div class="toBatchUser" if:true={IsLoading}>
+        <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner>
+    </div>
+</template>
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lextoBatchUser/lextoBatchUser.js b/force-app/main/default/lwc/lextoBatchUser/lextoBatchUser.js
new file mode 100644
index 0000000..8ff35eb
--- /dev/null
+++ b/force-app/main/default/lwc/lextoBatchUser/lextoBatchUser.js
@@ -0,0 +1,53 @@
+import { LightningElement,api, track, wire } from 'lwc';
+import {CurrentPageReference} from 'lightning/navigation';
+import { CloseActionScreenEvent } from 'lightning/actions';
+import { ShowToastEvent } from 'lightning/platformShowToastEvent';
+import toBatchOwner from '@salesforce/apex/AccountWebService.toBatchOwner';
+import ProfileId from '@salesforce/apex/toBatchOwnerController.ProfileId';
+
+export default class LextoBatchUser extends LightningElement {
+    @api recordId;
+    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(){
+        ProfileId().then(res => {
+            if (res != "00e10000000Y3o5AAC") {
+                this.showToast("浣犳病鏈夋搷浣滄潈闄�",'error');
+                return;
+            }
+            if (!confirm("鏃犳晥瀹㈡埛鐨勬墍鏈変汉灏嗗彉涓築atch User锛岃纭闇�瑕佽浆绉荤殑淇℃伅鏄惁閮借浆绉诲畬姣曘�俓n鏄惁缁х画锛�")) {
+                return;
+            }
+            toBatchOwner({hpid:this.recordId}).then(result => {
+                if (result != 'OK') {
+                    this.showToast(result,'error');
+                    return;
+                }
+            }).catch(err => {
+                console.log('err=>>>>>',err)
+            })
+            this.showToast("鏃犳晥瀹㈡埛鐨勬墍鏈変汉宸插彉涓築atch User",'success');
+        })
+    }
+    showToast(msg, type) {
+        const event = new ShowToastEvent({
+          message: msg,
+          variant: type
+        });
+        this.dispatchEvent(event);
+        this.dispatchEvent(new CloseActionScreenEvent());
+    }
+}
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lextoBatchUser/lextoBatchUser.js-meta.xml b/force-app/main/default/lwc/lextoBatchUser/lextoBatchUser.js-meta.xml
new file mode 100644
index 0000000..cf11bcd
--- /dev/null
+++ b/force-app/main/default/lwc/lextoBatchUser/lextoBatchUser.js-meta.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
+    <apiVersion>57.0</apiVersion>
+     <isExposed>true</isExposed>
+    <targets>
+		<target>lightning__RecordPage</target>
+		<target>lightning__AppPage</target>
+		<target>lightning__HomePage</target>
+		<target>lightning__RecordAction</target>
+	</targets>
+</LightningComponentBundle>
\ No newline at end of file

--
Gitblit v1.9.1