From 1727a4f4d02e429475608e60f142a63bc24127bc Mon Sep 17 00:00:00 2001
From: 19626 <1962676589@qq.com>
Date: 星期一, 23 十月 2023 10:07:34 +0800
Subject: [PATCH] 近期修改
---
force-app/main/default/lwc/lexCancelReport/lexCancelReport.js | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/force-app/main/default/lwc/lexCancelReport/lexCancelReport.js b/force-app/main/default/lwc/lexCancelReport/lexCancelReport.js
index 736a8f8..edeb877 100644
--- a/force-app/main/default/lwc/lexCancelReport/lexCancelReport.js
+++ b/force-app/main/default/lwc/lexCancelReport/lexCancelReport.js
@@ -10,6 +10,7 @@
import ConSent from '@salesforce/apex/BidAnnouncementController.ConSent';
import lwcCSS from '@salesforce/resourceUrl/lwcCSS';
import {loadStyle} from 'lightning/platformResourceLoader';
+import queryCancelReport from '@salesforce/apex/OpportunityLightingButtonController.queryCancelReport';
export default class LexCancelReport extends NavigationMixin(LightningElement) {
@api recordId;
stageName;
@@ -26,6 +27,7 @@
salesOwnerBuchang;
salesOwnerBuchangID;
recordTypeId;
+ haveLostReport;
IsLoading = true;
@wire(CurrentPageReference)
getStateParameters(currentPageReference) {
@@ -65,7 +67,13 @@
this.salesOwnerBuchang = result.salesOwnerBuchang == undefined ? '' : result.salesOwnerBuchang;
this.salesOwnerBuchangID = result.salesOwnerBuchangID == undefined ? '' : result.salesOwnerBuchangID;
this.recordTypeId = result.recordTypeId;
- this.cancelReport();
+ queryCancelReport({
+ recordId: this.recordId
+ }).then(result=>{
+ this.haveLostReport = result;
+ this.cancelReport();
+ });
+
}).catch(error=>{
console.log("error");
console.log(error);
@@ -110,7 +118,7 @@
else if (this.sapSendOK == '1') {
this.showToast("宸茬粡涓婁紶SAP銆佷笉鑳藉仛 鍙栨秷 浜嗭紒","error");
}
- else if (this.cntLostCancelReport - this.cntLostCancelDraft > 0) {
+ else if (this.haveLostReport) {
this.showToast("璇环宸茬粡鏈� 鍙栨秷锛忓け鍗曟姤鍛� 浜嗭紒","error");
}
else if (this.jobCategory == '鏀彺') {
--
Gitblit v1.9.1