zhangqian
2023-07-04 f3a8b609580d160f2d15b0c2fab28784a38cba71
force-app/main/default/lwc/lexSCSubmit/lexSCSubmit.js
@@ -48,16 +48,13 @@
            }
        }).catch(error => {
            console.log(error);
        }).finally(() => {
        });
        })
    }
    // 提交待审批
    SCSubmit() {
        if (this.StatusC != '草案中') {
            this.ShowToastEvent("已经提交审批", "error")
            // alert('已经提交审批');
            return;
        }
@@ -66,15 +63,16 @@
        }
        updateQISSCReport({
            Id: this.Id
            QId: this.Id
        }).then(result => {
            console.log(result);
            if (result.length > 0) {
                var split = result.split(", ");
                alert(split[1]);
            } else {
                this.ShowToastEvent("已提交", "success")
                window.location.reload();
            }
            this.ShowToastEvent("已提交", "success")
            // alert('已提交!')
            window.location.reload();
        })
    }