| | |
| | | |
| | | |
| | | var status = "{!RepairSubOrder__c.Status__c}"; |
| | | if( status != '待处理'){ |
| | | alert('报修子单的状态不是 待处理 无法申请修理'); |
| | | return; |
| | | //LLIU-CG53S9 LY 20220711 start |
| | | var processResult = "{!RepairSubOrder__c.ProcessResult__c}"; |
| | | if( status != "待处理"){ |
| | | if( status != "已完成" && status !="已转QIS"){ |
| | | alert("报修子单的状态不是 待处理 无法申请QIS"); |
| | | return; |
| | | } |
| | | |
| | | if(processResult !="需做质量判定"){ |
| | | alert("报修子单的状态不是 待处理 无法申请QIS"); |
| | | return; |
| | | } |
| | | } |
| | | //LLIU-CG53S9 LY 20220711 end |
| | | var url = '/apex/ChoiceAsset?Id={!RepairSubOrder__c.Id}&Type=QIS'; |
| | | window.open(url,'申请QIS','height=700, width=1000, top=200, left=200, toolbar=no, menubar=no, scrollbars=no, location=no, status=no'); |
| | | } |