GWY
2022-05-16 a9baff8a4508c1850e650f68831d857b953eace4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<apex:page standardController="Contact" showHeader="false" sidebar="false">
    <script type="text/javascript">
        var is_new = '{!Contact.IsNew__c}' == 'true';
        var approval_status = '{!Contact.StatusD__c}';
        var now_status = '{!Contact.Address1_IsChanged__c}' == 'true' || 
            '{!Contact.Address2_IsChanged__c}' == 'true' || 
            '{!Contact.Address3_IsChanged__c}' == 'true' || 
            '{!Contact.CancelReason_IsChanged__c}' == 'true' || 
            '{!Contact.Contact_Status_IsChanged__c}' == 'true' || 
            '{!Contact.Email_IsChanged__c}' == 'true' || 
            '{!Contact.Fax_IsChanged__c}' == 'true' || 
            '{!Contact.MobilePhone_IsChanged__c}' == 'true' || 
            '{!Contact.OtherPhone_IsChanged__c}' == 'true' || 
            '{!Contact.Phone_IsChanged__c}' == 'true' || 
            '{!Contact.Postcode_IsChanged__c}' == 'true' || 
            '{!Contact.Title_IsChanged__c}' == 'true';
        if ((is_new || now_status) && approval_status != 'Submit') {
            alert("新建或修改联系人信息后,请及时提交审批。");
        }
    </script>
</apex:page>