sunxia
2022-03-29 1a7367c38242644640b0abcb4f9773ed32d4b450
force-app/main/default/pages/TransferShippmentReceived2.page
@@ -273,12 +273,37 @@
                            </apex:outputPanel>
                        </li>
                        <li style="{!IF(esdInfo.quickCheck, 'background:#BBFF66;', '')}">
                            <span>{!$ObjectType.TransferApplyDetail__c.fields.Pre_Inspection_Comment__c.label}: </span>
                            <span>{!$ObjectType.TransferApplyDetail__c.fields.Pre_NG_abord_reason__c.label}: </span>
                            <apex:outputPanel layout="none" rendered="{!(esdInfo.editable)}">
                            <apex:inputField value="{!esdInfo.rec.Pre_Inspection_Comment__c}" style="margin:3px;width:75px;"/>
                            <span>
                                <apex:inputField id="inspectionResultNg2" value="{!esdInfo.rec.Pre_NG_abord_reason__c}" style="margin:3px;width:75px;"/>
                                <script>
                                    disabledShowNG();
                                    function disabledShowNG() {
                                        var inspection_result_NG = '{!esdInfo.rec.Inspection_result_ng__c}';
                                        console.log("====",inspection_result_NG)
                                        if(inspection_result_NG  != '废弃'){
                                            j$(escapeVfId('allPage:allForm:esdList:' + ('{!indexloop}' - 1) + ':inspectionResultNG2')).prop("disabled", true);
                                        }
                                    }
                                </script>
                            </span>
                            </apex:outputPanel>
                            <apex:outputPanel layout="none" rendered="{!NOT(esdInfo.editable)}">
                            <span><apex:outputField value="{!esdInfo.rec.Pre_Inspection_Comment__c}" style="margin:3px;width:75px;"/></span>
                            <span><apex:outputField id="inspectionResultNg3" value="{!esdInfo.rec.Pre_NG_abord_reason__c}" style="margin:3px;width:75px;"/></span>
                            </apex:outputPanel>
                        </li>
                        <li style="{!IF(esdInfo.quickCheck, 'background:#BBFF66;', '')}">
                            <span>{!$ObjectType.TransferApplyDetail__c.fields.Pre_Inspection_Comment__c.label}: </span>
                            <apex:outputPanel layout="none" rendered="{!(esdInfo.editable)}">
                                <span>
                                    <apex:inputField value="{!esdInfo.rec.Pre_Inspection_Comment__c}" style="margin:3px;width:90%;float:left;"/>
                                </span>
                            </apex:outputPanel>
                            <apex:outputPanel layout="none" rendered="{!NOT(esdInfo.editable)}">
                                <span>
                                    <apex:outputField value="{!esdInfo.rec.Pre_Inspection_Comment__c}" style="margin:3px;width:90%;float:left;"/>
                                </span>
                            </apex:outputPanel>
                        </li>
                        <li style="{!IF(esdInfo.quickCheck, 'background:#BBFF66;', '')}">