| | |
| | | |
| | | //中止 |
| | | Terminal() { |
| | | // sforce.connection.sessionId = this.sessionId; |
| | | if (this.ProcessStatusC == "草案中" || |
| | | this.ProcessStatusC == "不批准" || |
| | | this.ProcessStatusC == "批准" |
| | |
| | | updateMaintenanceContract({ |
| | | recordId: this.Id |
| | | }).then(result => { |
| | | this.ShowToastEvent("该维修合同报价中止了!", "success"); |
| | | // alert("该维修合同报价中止了!") |
| | | window.location.reload(); |
| | | |
| | | this.ShowToastEvent("该维修合同报价中止了!", "success"); |
| | | }).catch(error => { |
| | | console.log(error); |
| | | }) |
| | | } else { |
| | | this.ShowToastEvent("该维修合同报价还在审批中 或 已经中止,不能中止!", "error"); |
| | | // alert("该维修合同报价还在审批中 或 已经中止,不能中止!") |
| | | } |
| | | } |
| | | |