黄千龙
2023-05-26 7986d6aaf7e235f2f5a7dac7345f97a76ac00b97
force-app/main/default/lwc/lexOCMSubmit/lexOCMSubmit.js
@@ -1,13 +1,10 @@
import { LightningElement,wire,track,api} from 'lwc';
import { CurrentPageReference } from "lightning/navigation";
import { CloseActionScreenEvent } from 'lightning/actions';
import { NavigationMixin } from 'lightning/navigation';
import LightningConfirm from 'lightning/confirm';
import { ShowToastEvent } from 'lightning/platformShowToastEvent';
import init  from '@salesforce/apex/QISReportController.initForOCMSubmitButton';
import updateQis  from '@salesforce/apex/QISReportController.updateQisWithOCM';
import UserInfo_Owner from '@salesforce/apex/TaskFeedbackController.UserInfo_Owner';
import { updateRecord } from 'lightning/uiRecordApi';
export default class lexOCMSubmit extends LightningElement {
   @api recordId;
@@ -96,11 +93,9 @@
                        this.updateQisSubmit();
                        if (this.isaohuiproduct) {
                            this.dispatchEvent(new CloseActionScreenEvent());
                            this.updateRecordView(this.recordId);
                        }
                    }else{
                        this.dispatchEvent(new CloseActionScreenEvent());
                        this.updateRecordView(this.recordId);
                        return;
                    }                 
                });
@@ -110,11 +105,6 @@
            
        }); 
    }
    updateRecordView(recordId) {
        updateRecord({fields: { Id: recordId }});
    }
    updateQisSubmit(){
           updateQis({
               recordId: this.recordId