黄千龙
2023-05-26 7986d6aaf7e235f2f5a7dac7345f97a76ac00b97
force-app/main/default/lwc/lexCreateRepair/lexCreateRepair.js
@@ -1,11 +1,8 @@
import { LightningElement,wire,track,api} from 'lwc';
import { CurrentPageReference } from "lightning/navigation";
import { CloseActionScreenEvent } from 'lightning/actions';
import { NavigationMixin } from 'lightning/navigation';
import { ShowToastEvent } from 'lightning/platformShowToastEvent';
import init  from '@salesforce/apex/QISReportController.initForlexCreateRepairButton';
import UserInfo_Owner from '@salesforce/apex/TaskFeedbackController.UserInfo_Owner';
import { updateRecord } from 'lightning/uiRecordApi';
export default class lexCreateRepair extends LightningElement {
   @api recordId;
@@ -140,17 +137,18 @@
               }
            }
            if ((this.oCMjudgement == '质量问题' && this.nextaction == '无偿维修') ||
               (this.oCMjudgement == '质量问题' && this.nextaction == '有偿维修' && this.specialfollow == '0') ||
               (this.oCMjudgement == '非质量问题' && this.nextaction == '无偿维修' && this.specialfollow == '1') ||
               (this.oCMjudgement == '非质量问题' && this.nextaction == '有偿维修' && this.specialfollow == '0') ||
               (this.oCMjudgement == '质量问题+非质量问题' && this.nextaction == '无偿维修' && this.specialfollow == '1') ||
               (this.oCMjudgement == '质量问题+非质量问题' && this.nextaction == '有偿维修+无偿维修' && this.specialfollow == '0') ||
               (this.oCMjudgement == '现象未发现' && this.nextaction == '无偿维修' && this.specialfollow == '1') ||
               (this.oCMjudgement == '现象未发现' && this.nextaction == '有偿维修' && this.specialfollow == '0')) {
               (this.oCMjudgement == '质量问题' && this.nextaction == '有偿维修' && this.specialfollow == false) ||
               (this.oCMjudgement == '非质量问题' && this.nextaction == '无偿维修' && this.specialfollow == true) ||
               (this.oCMjudgement == '非质量问题' && this.nextaction == '有偿维修' && this.specialfollow == false) ||
               (this.oCMjudgement == '质量问题+非质量问题' && this.nextaction == '无偿维修' && this.specialfollow == true) ||
               (this.oCMjudgement == '质量问题+非质量问题' && this.nextaction == '有偿维修+无偿维修' && this.specialfollow == false) ||
               (this.oCMjudgement == '现象未发现' && this.nextaction == '无偿维修' && this.specialfollow == true) ||
               (this.oCMjudgement == '现象未发现' && this.nextaction == '有偿维修' && this.specialfollow == false)) {
               this.newflag = true;
            }
            console.log('this.newflag = '+this.newflag);
            console.log('this.typeflag = '+this.typeflag);
            if ( this.newflag && this.typeflag) {
               if (this.isUsedForTheOpera == 'YES') {
                  this.UseFailProductFinish = '是';