高章伟
2023-03-03 d8dc84a3d56df839895f1c417a4d9cbee763d262
force-app/main/default/objects/QIS_Report__c/webLinks/OCSMNoToReport.webLink-meta.xml
@@ -10,7 +10,7 @@
    <url>{!REQUIRESCRIPT(&quot;/soap/ajax/51.0/connection.js&quot;)}; 
{!REQUIRESCRIPT(&quot;/soap/ajax/51.0/apex.js&quot;)}; 
{!RequireScript(&quot;/resource/CommonUtilJs&quot;)} 
//2021-10-21 gwy 版本更改为51.0
var foo = function() {
  if (!confirm(&quot;不要报告后无法撤回,是否继续?&quot;)) {
    return;
@@ -24,7 +24,12 @@
    var updateRe = new sforce.SObject(&quot;QIS_Report__c&quot;); 
    updateRe.id = &quot;{!QIS_Report__c.Id}&quot;;
    updateRe.OCSMAdministrativeReportStatus__c  = &apos;无需报告&apos;;
    sforce.connection.update([updateRe]);
    var result = sforce.connection.update([updateRe]);
    var messages = getConnectDMLErrorMessages(result);
    if (messages.length &gt; 0) {
      alert(messages.join(&quot;\n&quot;));
      return;
    }
    window.location.reload();
  }else{
    alert(&quot;没有AwareDate或已经OCSM行政报告,请确认。&quot;);