| | |
| | | /* |
| | | * @Description: |
| | | * @version: |
| | | * @Author: chen jing wu |
| | | * @Date: 2023-04-07 09:02:03 |
| | | * @LastEditors: chen jing wu |
| | | * @LastEditTime: 2023-04-11 09:00:54 |
| | | */ |
| | | import { api, wire,LightningElement } from 'lwc'; |
| | | import { CurrentPageReference } from "lightning/navigation"; |
| | | import { CloseActionScreenEvent } from 'lightning/actions'; |
| | |
| | | this.status = result.status; |
| | | console.log(this.status); |
| | | this.cancel(); |
| | | this.IsLoading = false; |
| | | |
| | | } |
| | | }).catch(error => { |
| | |
| | | }).then(result =>{ |
| | | this.showToast("取消成功!","success"); |
| | | this.updateRecordView(this.recordId); |
| | | this.IsLoading = false; |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | }); |
| | | } |
| | |
| | | /* |
| | | * @Description: |
| | | * @version: |
| | | * @Author: chen jing wu |
| | | * @Date: 2023-04-07 09:02:03 |
| | | * @LastEditors: chen jing wu |
| | | * @LastEditTime: 2023-04-11 09:05:05 |
| | | */ |
| | | import { LightningElement,wire,track,api} from 'lwc'; |
| | | import { CurrentPageReference } from "lightning/navigation"; |
| | | import { CloseActionScreenEvent } from 'lightning/actions'; |
| | |
| | | }).then(result => { |
| | | console.log(result); |
| | | if (result != null) { |
| | | this.IsLoading = false; |
| | | this.ownerId = result.ownerId; |
| | | this.monthlyReportId = result.Id; |
| | | this.cancelSubmit(); |
| | | console.log("end"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | this.showToast(); |
| | | this.updateRecordView(this.recordId); |
| | | |
| | | //window.location.replace("https://ocsm--partial.sandbox.lightning.force.com/lightning/r/Monthly_Report__c/" + this.monthlyReportId + "/view"); |
| | | } |
| | | }).catch(error => { |
| | |
| | | }); |
| | | } |
| | | |
| | | showToast() { |
| | | showToast(msg,type) { |
| | | const event = new ShowToastEvent({ |
| | | title: '', |
| | | message: '取消提交成功!', |
| | | variant: 'success' |
| | | message: msg, |
| | | variant: type |
| | | }); |
| | | this.dispatchEvent(event); |
| | | } |
| | |
| | | if(this.ownerId == UserInfo_Owner.Id) { |
| | | cancel({ |
| | | recordId: this.recordId |
| | | }).then(result=>{ |
| | | this.showToast("成功","success"); |
| | | this.updateRecordView(this.recordId); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | }); |
| | | console.log("321"); |
| | | } else { |
| | | this.showToast("只有周报的所有人可以取消","error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | } |
| | | } |
| | |
| | | /* |
| | | * @Description: |
| | | * @version: |
| | | * @Author: chen jing wu |
| | | * @Date: 2023-04-07 09:02:03 |
| | | * @LastEditors: chen jing wu |
| | | * @LastEditTime: 2023-04-11 09:06:00 |
| | | */ |
| | | import { LightningElement,wire,track,api} from 'lwc'; |
| | | import { CurrentPageReference } from "lightning/navigation"; |
| | | import { CloseActionScreenEvent } from 'lightning/actions'; |
| | |
| | | }).then(result =>{ |
| | | this.showToast("取消提交成功!","success"); |
| | | this.updateRecordView(this.recordId); |
| | | this.IsLoading = false; |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | }).catch(error=>{ |
| | | this.showToast(error,"error"); |
| | |
| | | /* |
| | | * @Description: |
| | | * @version: |
| | | * @Author: chen jing wu |
| | | * @Date: 2023-04-07 09:02:03 |
| | | * @LastEditors: chen jing wu |
| | | * @LastEditTime: 2023-04-11 09:06:48 |
| | | */ |
| | | import { LightningElement,wire,track,api} from 'lwc'; |
| | | import { CurrentPageReference } from "lightning/navigation"; |
| | | import { CloseActionScreenEvent } from 'lightning/actions'; |
| | |
| | | }).then(result => { |
| | | console.log(result); |
| | | if (result != null) { |
| | | this.IsLoading = false; |
| | | this.status = result.status; |
| | | this.profileId = result.profileId; |
| | | this.complete(); |
| | |
| | | updateForCompleteButton({ |
| | | recordId: this.recordId |
| | | }).then(result =>{ |
| | | this.IsLoading = false; |
| | | this.updateRecordView(this.recordId); |
| | | this.showToast("完毕成功!","success"); |
| | | }); |
| | |
| | | /* |
| | | * @Description: |
| | | * @version: |
| | | * @Author: chen jing wu |
| | | * @Date: 2023-03-27 13:53:40 |
| | | * @LastEditors: chen jing wu |
| | | * @LastEditTime: 2023-04-10 14:22:27 |
| | | */ |
| | | import { api, wire,LightningElement } from 'lwc'; |
| | | import { CurrentPageReference } from "lightning/navigation"; |
| | | import { CloseActionScreenEvent } from 'lightning/actions'; |
| | |
| | | +"%0D%0A" + "连接:" |
| | | + this.drSumUrl |
| | | +"%0D%0A").substring(0,320).split("<br>").join("%0D%0A"); |
| | | |
| | | } |
| | | } |
| | |
| | | /* |
| | | * @Description: |
| | | * @version: |
| | | * @Author: chen jing wu |
| | | * @Date: 2023-04-07 09:02:03 |
| | | * @LastEditors: chen jing wu |
| | | * @LastEditTime: 2023-04-11 09:07:34 |
| | | */ |
| | | import { api, wire,LightningElement } from 'lwc'; |
| | | import { CurrentPageReference } from "lightning/navigation"; |
| | | import { CloseActionScreenEvent } from 'lightning/actions'; |
| | |
| | | |
| | | connectedCallback(){ |
| | | console.log(this.recordId); |
| | | this.IsLoading = false; |
| | | this.DispatchOCSMQARA(); |
| | | |
| | | } |
| | |
| | | }).then(result =>{ |
| | | this.showToast("成功","success"); |
| | | this.updateRecordView(this.recordId); |
| | | this.IsLoading = false; |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | }); |
| | | } |
| | |
| | | /* |
| | | * @Description: |
| | | * @version: |
| | | * @Author: chen jing wu |
| | | * @Date: 2023-03-28 15:59:44 |
| | | * @LastEditors: chen jing wu |
| | | * @LastEditTime: 2023-04-11 09:08:30 |
| | | */ |
| | | import { api, wire,LightningElement } from 'lwc'; |
| | | import { CurrentPageReference } from "lightning/navigation"; |
| | | import { CloseActionScreenEvent } from 'lightning/actions'; |
| | |
| | | |
| | | |
| | | connectedCallback(){ |
| | | console.log("123"); |
| | | init({ |
| | | recordId: this.recordId |
| | | }).then(result=>{ |
| | | console.log(result); |
| | | this.OCSMAdministrativeReportDate = result.OCSMAdministrativeReportDate; |
| | | this.OCSMAdministrativeReportNumber = result.OCSMAdministrativeReportNumber; |
| | | this.AwareDate = result.awareDate; |
| | | this.noToReport(); |
| | | }).catch(error=>{ |
| | | console.log(error); |
| | | }); |
| | | } |
| | | |
| | |
| | | }).then(result=>{ |
| | | this.showToast("OCSM不要报告成功","success"); |
| | | this.updateRecordView(this.recordId); |
| | | this.IsLoading = false; |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | }); |
| | | }else{ |
| | |
| | | /* |
| | | * @Description: |
| | | * @version: |
| | | * @Author: chen jing wu |
| | | * @Date: 2023-04-07 09:02:03 |
| | | * @LastEditors: chen jing wu |
| | | * @LastEditTime: 2023-04-11 09:09:14 |
| | | */ |
| | | import { api, wire,LightningElement } from 'lwc'; |
| | | import { CurrentPageReference } from "lightning/navigation"; |
| | | import { CloseActionScreenEvent } from 'lightning/actions'; |
| | |
| | | }).then(result => { |
| | | console.log(result); |
| | | if (result != null) { |
| | | this.IsLoading = false; |
| | | this.OCSMAdministrativeReportStatus = result.OCSMAdministrativeReportStatus; |
| | | this.awareDate = result.awareDate; |
| | | this.toReport(); |
| | |
| | | }).then(result =>{ |
| | | this.showToast("成功","success"); |
| | | this.updateRecordView(this.recordId); |
| | | this.IsLoading = false; |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | }); |
| | | }else{ |
| | |
| | | /* |
| | | * @Description: |
| | | * @version: |
| | | * @Author: chen jing wu |
| | | * @Date: 2023-04-07 09:02:03 |
| | | * @LastEditors: chen jing wu |
| | | * @LastEditTime: 2023-04-11 09:10:06 |
| | | */ |
| | | import { api, wire,LightningElement } from 'lwc'; |
| | | import { CurrentPageReference } from "lightning/navigation"; |
| | | import { CloseActionScreenEvent } from 'lightning/actions'; |
| | |
| | | }).then(result =>{ |
| | | this.updateRecordView(this.recordId); |
| | | this.showToast("成功!","success"); |
| | | this.IsLoading = false; |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | }); |
| | | } else { |
| | | this.showToast("只草案中状态及OPD/SIS报告书的所有人可以提交","error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | this.IsLoading = false; |
| | | |
| | | } |
| | | } |
| | |
| | | /* |
| | | * @Description: |
| | | * @version: |
| | | * @Author: chen jing wu |
| | | * @Date: 2023-04-07 09:02:03 |
| | | * @LastEditors: chen jing wu |
| | | * @LastEditTime: 2023-04-11 09:10:42 |
| | | */ |
| | | import { api, wire,LightningElement } from 'lwc'; |
| | | import { CurrentPageReference } from "lightning/navigation"; |
| | | import { CloseActionScreenEvent } from 'lightning/actions'; |
| | |
| | | }else{ |
| | | this.showToast("成功","success"); |
| | | this.updateRecordView(this.recordId); |
| | | } |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | this.IsLoading = false; |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | }); |
| | | } |
| | | |
| | |
| | | /* |
| | | * @Description: |
| | | * @version: |
| | | * @Author: chen jing wu |
| | | * @Date: 2023-04-07 09:02:03 |
| | | * @LastEditors: chen jing wu |
| | | * @LastEditTime: 2023-04-11 09:11:11 |
| | | */ |
| | | import { LightningElement,wire,track,api} from 'lwc'; |
| | | import { CurrentPageReference } from "lightning/navigation"; |
| | | import { CloseActionScreenEvent } from 'lightning/actions'; |
| | |
| | | recordId: this.recordId |
| | | }).then(result=>{ |
| | | this.submit(); |
| | | this.IsLoading = false; |
| | | }); |
| | | |
| | | } |
| | |
| | | }).then(result=>{ |
| | | this.showToast("提交对手竞争报告成功","success") |
| | | this.updateRecordView(this.recordId); |
| | | this.IsLoading = false; |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | }); |
| | | } |
| | |
| | | /* |
| | | * @Description: |
| | | * @version: |
| | | * @Author: chen jing wu |
| | | * @Date: 2023-03-27 14:05:59 |
| | | * @LastEditors: chen jing wu |
| | | * @LastEditTime: 2023-04-10 17:56:04 |
| | | */ |
| | | import { LightningElement, wire, track, api } from "lwc"; |
| | | import { CurrentPageReference } from "lightning/navigation"; |
| | | import { CloseActionScreenEvent } from "lightning/actions"; |
| | |
| | | .then((result) => { |
| | | console.log(result); |
| | | if (result != null) { |
| | | this.Isloading = false; |
| | | this.status = result.status; |
| | | this.update(); |
| | | } |
| | |
| | | this.showToast(result,"error"); |
| | | } |
| | | this.updateRecordView(this.recordId); |
| | | this.Isloading = false; |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | }).catch(error=>{ |
| | | console.log(error); |
| | |
| | | }).then(result => { |
| | | console.log(result); |
| | | if (result != null) { |
| | | this.Isloading = false; |
| | | |
| | | this.status = result.status; |
| | | this.isVOC = result.isVOC; |
| | | this.personId = result.personId; |
| | |
| | | return; |
| | | } |
| | | if (this.status != "跟进中") { |
| | | alert("不是跟进中不能点击"); |
| | | this.showToast("不是跟进中不能点击","error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } |
| | | if (this.isVOC == undefined) { |
| | | alert("必须选择是否VOC"); |
| | | this.showToast("必须选择是否VOC","error"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | |
| | | }else { |
| | | this.showToast(result,"error"); |
| | | } |
| | | this.Isloading = false; |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | }); |
| | | |
| | |
| | | /* |
| | | * @Description: |
| | | * @version: |
| | | * @Author: chen jing wu |
| | | * @Date: 2023-03-27 14:08:56 |
| | | * @LastEditors: chen jing wu |
| | | * @LastEditTime: 2023-04-10 17:49:00 |
| | | */ |
| | | import { LightningElement,wire,track,api} from 'lwc'; |
| | | import { CurrentPageReference } from "lightning/navigation"; |
| | | import { CloseActionScreenEvent } from 'lightning/actions'; |
| | |
| | | }).then(result => { |
| | | console.log(result); |
| | | if (result != null) { |
| | | this.Isloading = false; |
| | | this.status = result.status; |
| | | this.VOCSatisfy = result.Satisfy; |
| | | this.VOCSatisfy1 = result.Satisfy1; |
| | |
| | | }).then(result=>{ |
| | | this.updateRecordView(this.recordId); |
| | | this.showToast("成功","success"); |
| | | this.Isloading = false; |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | }); |
| | | |
| | |
| | | /* |
| | | * @Description: |
| | | * @version: |
| | | * @Author: chen jing wu |
| | | * @Date: 2023-03-27 14:11:17 |
| | | * @LastEditors: chen jing wu |
| | | * @LastEditTime: 2023-04-10 17:52:00 |
| | | */ |
| | | import { api, wire,LightningElement } from 'lwc'; |
| | | import { CurrentPageReference } from "lightning/navigation"; |
| | | import { CloseActionScreenEvent } from 'lightning/actions'; |
| | |
| | | }).then(result => { |
| | | console.log(result); |
| | | if (result != null) { |
| | | this.IsLoading = false; |
| | | this.status = result.status; |
| | | this.profileId = result.profileId; |
| | | this.VOCFinish(); |
| | |
| | | }).then(result =>{ |
| | | this.showToast("成功","success"); |
| | | this.updateRecordView(this.recordId); |
| | | this.IsLoading = false; |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | }); |
| | | } |
| | |
| | | /* |
| | | * @Description: |
| | | * @version: |
| | | * @Author: chen jing wu |
| | | * @Date: 2023-03-27 13:39:23 |
| | | * @LastEditors: chen jing wu |
| | | * @LastEditTime: 2023-04-10 17:57:16 |
| | | */ |
| | | import { LightningElement,wire,track,api} from 'lwc'; |
| | | import { CurrentPageReference } from "lightning/navigation"; |
| | | import { CloseActionScreenEvent } from 'lightning/actions'; |
| | |
| | | this.status = result.status; |
| | | this.createdById = result.createdById; |
| | | this.Submit(); |
| | | this.IsLoading = false; |
| | | //window.location.replace("https://ocsm--partial.sandbox.lightning.force.com/lightning/r/Report__c/" + this.recordId + "/view"); |
| | | } |
| | | }).catch(error => { |
| | |
| | | }).then(result =>{ |
| | | this.showToast("成功","success"); |
| | | this.updateRecordView(this.recordId); |
| | | this.IsLoading = false; |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | }); |
| | | } |