黄千龙
2023-08-09 626f3c3bb25e204568019e8d568e2d7547d1037a
force-app/main/default/lwc/lexYanshoudanRequest/lexYanshoudanRequest.js
@@ -33,7 +33,6 @@
    }
    connectedCallback() {
        console.log(this.recordId);
        init({
            recordId: this.recordId
        }).then(result => {
@@ -47,9 +46,7 @@
            }
        }).catch(error => {
            console.log(error);
        }).finally(() => {
        });
        })
    }
    // 验收单回收申请
@@ -58,12 +55,13 @@
            recordId: this.Id
        }).then(result => {
            console.log(result);
            if (result.length > 0) {
                var indexs = result.indexOf(": ")
                var resolves = result.substring(indexs + 1, result.length);
                alert(resolves);
            if (result != null) {
                if (result.length > 0) {
                    var split = result.split(", ");
                    alert(split[1]);
                }
            }
            location.reload();
            alert("已经申请过了,不允许重新申请");
        })
    }