| | |
| | | btns[i].disabled = true; |
| | | btns[i].className = 'btnDisabled'; |
| | | } |
| | | alert('该修理之前已经发送过了'); |
| | | this.ShowToastEvent('该修理之前已经发送过了','error'); |
| | | } else { |
| | | this.SendRepairsToEtQ(); |
| | | } |
| | |
| | | // 发送ETQ |
| | | SendRepairsToEtQ() { |
| | | if (this.profileName != "2F7_OSH担当" && this.profileName != "2F7_OSH质量法规" && this.profileName != '系统管理员') { |
| | | alert("您没有发送修理到EtQ的权限。"); |
| | | this.ShowToastEvent("您没有发送修理到EtQ的权限。",'error'); |
| | | return; |
| | | } |
| | | var statu = ''; |
| | | if (this.PAEDetermineC == undefined) { |
| | | alert("OCSM QARA的PAE判定是空的时候,不可以发送到EtQ。"); |
| | | this.ShowToastEvent("OCSM QARA的PAE判定是空的时候,不可以发送到EtQ。",'error'); |
| | | return; |
| | | } |
| | | if (this.ETQUPLOADSTATUSC == "3") { |
| | |
| | | } |
| | | } |
| | | if (this.PAEDetermineC == "nonPAE" && this.AEDetermineResultC == "nonAE" && this.PAEDetermineACC == "nonPAE" && this.userName != "雷 新建") { |
| | | alert("Close Complait的时候,不可以发送到EtQ"); |
| | | this.ShowToastEvent("Close Complait的时候,不可以发送到EtQ",'error'); |
| | | return; |
| | | } |
| | | if (this.PAEDetermineC != undefined && this.AEDetermineResultC != undefined && this.PAEDetermineACC == undefined) { |
| | |
| | | !(this.PAEDetermineC == "nonPAE" && this.AEDetermineResultC == "nonAE" && this.PAEDetermineACC == "nonPAE")) { |
| | | statu = "R2"; |
| | | if (this.RepairInspectionDateC == undefined) { |
| | | alert("5.修理检测日是空的时候,不可以发送到EtQ。"); |
| | | this.ShowToastEvent("5.修理检测日是空的时候,不可以发送到EtQ。",'error'); |
| | | return; |
| | | } |
| | | if (this.ContainUseRSAC == 1) { |
| | | alert("Final universal code为空,或者包含UseRSA,请确认。"); |
| | | this.ShowToastEvent("Final universal code为空,或者包含UseRSA,请确认。",'error'); |
| | | return; |
| | | } |
| | | } |
| | |
| | | repairIds: repairids, |
| | | statu: statuArr[0] |
| | | }).then(result => { |
| | | alert(result); |
| | | this.ShowToastEvent(result,'error'); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | location.reload(); |
| | | }) |
| | | |
| | |
| | | btns[i].className = 'btnDisabled'; |
| | | } |
| | | } catch (error) { |
| | | alert("发送修理到EtQ失败" + error.faultstring + ' code:' + error.faultcode); |
| | | this.ShowToastEvent("发送修理到EtQ失败" + error.faultstring + ' code:' + error.faultcode,'error'); |
| | | } |
| | | } |
| | | |