unknown
2023-08-23 8749760be3e1ba64edd4ada506bdf628e5bee852
force-app/main/default/lwc/lexCustomNewMaintenance/lexCustomNewMaintenance.js
@@ -18,6 +18,7 @@
    Id;
    StatusC;
    RecordTypeDeveloperNameC;
    msg;
    @wire(CurrentPageReference)
    getStateParameters(currentPageReference) {
@@ -37,7 +38,6 @@
        }).then(result => {
            console.log(result);
            if (result != null) {
                this.IsLoading = false;
                this.Id = result.Id;
                this.StatusC = result.StatusC;
                this.RecordTypeDeveloperNameC = result.RecordTypeDeveloperNameC;
@@ -53,7 +53,8 @@
    // 新建维修合同报价
    CustomNew() {
        if (this.StatusC != "引合中") {
            alert("维修合同不是询价中的状态,不能新建报价");
            this.msg = "维修合同不是询价中的状态,不能新建报价";
            this.IsLoading = false;
        } else {
            if (this.RecordTypeDeveloperNameC == "NewMaintenance_Contract") {
                window.open("/apex/SelectAssetEstimateVM?mcid=" + this.Id, "_top");
@@ -62,4 +63,8 @@
            }
        }
    }
    closeAction() {
        window.history.go(-1);
    }
}