liuyan
2022-11-25 4b809d4aecd3043963b14e29803245c70d9bb003
【委托】新建修理提示信息(停产及非修理对象品)
2个文件已修改
9 ■■■■■ 已修改文件
force-app/main/default/classes/ChoiceAssetController.cls 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/pages/ChoiceAsset.page 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/classes/ChoiceAssetController.cls
@@ -85,7 +85,7 @@
                                            ,Account.Parent.Parent.FSE_SP_Main_Leader__r.Work_Location__c
                                            ,Account.Parent.FSE_SP_Main_Leader__r.Work_Location__c
                                            //XLIU-CJM7Z9 【委托】新建修理提示信息(停产及非修理对象品)LY 20221012 start
                                            ,PartSupplyFinishDate__c
                                            ,NoPartRiskDate_F__c
                                            //XLIU-CJM7Z9 【委托】新建修理提示信息(停产及非修理对象品)LY 20221012 end
                                        FROM Asset where Id != null AND Repairing_Count__c >= 0 AND SerialNumber like :serialNumber LIMIT 100
@@ -407,7 +407,7 @@
        soql += 'Hospital__r.Owner.Name,Hospital__r.Owner.Phone,Installation_Site__c,CurrentContract__c,Product2.Asset_Model_No__c,Hospital__r.Name,Department_Class__r.Name ,Department_Class__r.Id,';
        soql += 'Account.Parent.Parent.FSE_SP_Main_Leader__r.Work_Location__c,Account.RecordTypeId';
        soql += ',Posting_Date__c,Extend_Gurantee_DateTo__c,CurrentContract_End_Date__c  ';// 20220927 ljh XLIU-CJN62G
        soql += ',PartSupplyFinishDate__c ';//XLIU-CJM7Z9 【委托】新建修理提示信息(停产及非修理对象品)LY 20221012
        soql += ',NoPartRiskDate_F__c ';//XLIU-CJM7Z9 【委托】新建修理提示信息(停产及非修理对象品)LY 20221012
        soql += ' from Asset where Id != null AND Repairing_Count__c = 0 ';
        if (String.isNotBlank(FuselageNumber) || String.isNotBlank(AssetModel) || String.isNotBlank(HospitalName)) {
            soql += ' AND (';
force-app/main/default/pages/ChoiceAsset.page
@@ -16,6 +16,7 @@
        //XLIU-CJM7Z9 【委托】新建修理提示信息(停产及非修理对象品)LY 20221012 start
        function checkPartSupplyFinishDateJs(){
            var today = new Date();
            var targetDate = (today.getFullYear()+1) + '/' + (today.getMonth()+1) + '/' + today.getDate();
            var todayNew = today.toLocaleDateString();
            var check;
            var num = 100000;
@@ -29,7 +30,7 @@
                var partSupplyFinishDate = new Date(j$(escapeVfId('allPage:allForm:allBlock:ConsumableorderdetailsSection:ConsumableorderdetailsTable:' + num + ':partSupplyFinishDate')).value());
                if (partSupplyFinishDate != 'Invalid Date'){
                    var partSupplyFinishDateNew = partSupplyFinishDate.toLocaleDateString();
                    if (partSupplyFinishDateNew > todayNew){
                    if (partSupplyFinishDateNew > todayNew && partSupplyFinishDateNew <= targetDate){
                        alert('预计'+ partSupplyFinishDateNew +'零件即将停产,请送修前与工厂及RC联络');
                    }
                    if (partSupplyFinishDateNew <= todayNew){
@@ -187,7 +188,7 @@
                                    </td>
                                    <!--XLIU-CJM7Z9 【委托】新建修理提示信息(停产及非修理对象品)LY 20221012 start -->
                                    <td>
                                        <apex:inputField value="{!records.ast.PartSupplyFinishDate__c}" id="partSupplyFinishDate" style="display: none" showDatePicker="false"/>
                                        <apex:inputField value="{!records.ast.NoPartRiskDate_F__c}" id="partSupplyFinishDate" style="display: none" showDatePicker="false"/>
                                    </td>
                                    <!--XLIU-CJM7Z9 【委托】新建修理提示信息(停产及非修理对象品)LY 20221012 end  -->