buli
2023-05-23 07390e2fcb4adf27c928335bf27ae7939c5a80ad
force-app/main/default/lwc/lexStockCancel/lexStockCancel.js
@@ -49,7 +49,6 @@
 
    async cancelSubmit(){
       console.log("222");
      let reason = this.data.Stock_cancel_reason__c;
      if (reason == null || reason == '') {
         const event = new ShowToastEvent({
@@ -71,27 +70,22 @@
         return;
      }
      // CHAN-BCS8T5 LHJ 20190604 End
      console.log("333");
      const resul = await LightningConfirm.open({
            message: "一旦提交此记录以待批准,根据您的设置您可能不再能够编辑此记录或将他从批准过程中调回。是否继续?",
            variant: 'headerless',
            label: '提示信息',
            // setting theme would have no effect
        });
        console.log("444");
        if (resul==false) {
         return;
      }
      let flag=true;
      console.log("555");
      await updateOppotunity({recordId:this.recordId,stStatus:"撤销填写完毕"}).then(res=>{
         console.log(res);
         if(res!=null&&res.success==false){
            console.log("hhh26");
            let messages ="";
            flag=false;
            messages=res.errors[0];
            console.log("hhh26");
            const event = new ShowToastEvent({
                  title: '提示信息',
                  message:"操作失败,提示信息:"+messages
@@ -101,7 +95,6 @@
         }
      })
      if(flag==false)return;
      console.log("666");
      // let rac = new sforce.SObject("Opportunity");
      // rac.Id = "{!Opportunity.Id}";