From 07390e2fcb4adf27c928335bf27ae7939c5a80ad Mon Sep 17 00:00:00 2001
From: buli <137736985@qq.com>
Date: 星期二, 23 五月 2023 11:28:12 +0800
Subject: [PATCH] bakcup20230523
---
force-app/main/default/lwc/lexCancelReport/lexCancelReport.js | 34 ++++++++++++++++++----------------
1 files changed, 18 insertions(+), 16 deletions(-)
diff --git a/force-app/main/default/lwc/lexCancelReport/lexCancelReport.js b/force-app/main/default/lwc/lexCancelReport/lexCancelReport.js
index 0032022..d75559e 100644
--- a/force-app/main/default/lwc/lexCancelReport/lexCancelReport.js
+++ b/force-app/main/default/lwc/lexCancelReport/lexCancelReport.js
@@ -5,6 +5,7 @@
import queryForCancelReportButton from '@salesforce/apex/OpportunityLightingButtonController.queryForCancelReportButton';
import { updateRecord } from 'lightning/uiRecordApi';
import { ShowToastEvent } from 'lightning/platformShowToastEvent';
+import ConSent from '@salesforce/apex/BidAnnouncementController.ConSent';
export default class LexCancelReport extends LightningElement {
@api recordId;
stageName;
@@ -40,19 +41,20 @@
init({
recordId: this.recordId
}).then(result=>{
- this.stageName = result.stageName;
- this.sapSendOK = result.sapSendOK;
- this.cntLostCancelDraft = result.cntLostCancelDraft;
- this.cntLostCancelReport = result.cntLostCancelReport;
- this.jobCategory = result.jobCategory;
- this.biddingProjectNameBid = result.biddingProjectNameBid;
- this.name = result.name;
- this.salesAssistantID = result.salesAssistantID;
- this.salesAssistantName = result.salesAssistantName;
- this.managerName = result.managerName;
- this.salesManagerDepartmentID = result.salesManagerDepartmentID;
- this.salesOwnerBuchang = result.salesOwnerBuchang;
- this.salesOwnerBuchangID = result.salesOwnerBuchangID;
+ console.log(result);
+ this.stageName = result.stageName == undefined ? '' : result.stageName;
+ this.sapSendOK = result.sapSendOK == undefined ? '' : result.sapSendOK;
+ this.cntLostCancelDraft = result.cntLostCancelDraft == undefined ? '' : result.cntLostCancelDraft;
+ this.cntLostCancelReport = result.cntLostCancelReport == undefined ? '' : result.cntLostCancelReport;
+ this.jobCategory = result.jobCategory == undefined ? '' : result.jobCategory;
+ this.biddingProjectNameBid = result.biddingProjectNameBid == undefined ? '' : result.biddingProjectNameBid;
+ this.name = result.name == undefined ? '' : result.name;
+ this.salesAssistantID = result.salesAssistantID == undefined ? '' : result.salesAssistantID;
+ this.salesAssistantName = result.salesAssistantName == undefined ? '' : result.salesAssistantName;
+ this.managerName = result.managerName == undefined ? '' : result.managerName;
+ this.salesManagerDepartmentID = result.salesManagerDepartmentID == undefined ? '' : result.salesManagerDepartmentID;
+ this.salesOwnerBuchang = result.salesOwnerBuchang == undefined ? '' : result.salesOwnerBuchang;
+ this.salesOwnerBuchangID = result.salesOwnerBuchangID == undefined ? '' : result.salesOwnerBuchangID;
this.cancelReport();
})
}
@@ -83,17 +85,17 @@
}
else if (this.sapSendOK == '1') {
- this.showToast("宸茬粡涓婁紶SAP銆佷笉鑳藉仛 鍙栨秷 浜嗭紒","");
+ this.showToast("宸茬粡涓婁紶SAP銆佷笉鑳藉仛 鍙栨秷 浜嗭紒","error");
}
else if (this.cntLostCancelReport - this.cntLostCancelDraft > 0) {
this.showToast("璇环宸茬粡鏈� 鍙栨秷锛忓け鍗曟姤鍛� 浜嗭紒","error");
}
else if (this.jobCategory == '鏀彺') {
- this.showToast("璇环鎵�鏈変汉鏄姪鐞嗙殑锛屽厛璇蜂慨鏀瑰埌閿�鍞媴褰擄紒","");
+ this.showToast("璇环鎵�鏈変汉鏄姪鐞嗙殑锛屽厛璇蜂慨鏀瑰埌閿�鍞媴褰擄紒","error");
}
//XLIU-CG98L5 銆愬鎵樸�戙�愯瘎浼般�戞柊闇�姹�-鎷涙爣椤圭洰/璇环瀵瑰簲娴佹爣銆佸簾鏍囨敼鍠� start
//else if({!NOT(ISBLANK(Opportunity.Bidding_Project_Name_Bid__c))}&& '{!Opportunity.subInfoType__c}' != '3-1锛氬簾鏍囧叕鍛�' &&'{!Opportunity.subInfoType__c}' != '3-2锛氭祦鏍囧叕鍛�'){
- else if(this.biddingProjectNameBid != undefined && sqlResult.size == 0){
+ else if(this.biddingProjectNameBid != '' && sqlResult.length == 0){
this.showToast("鏈夋嫑鎶曟爣椤圭洰鏃跺彧鑳藉仛澶卞崟鎴栭儴鍒嗗け鍗曟姤鍛婏紒","error");
}
//XLIU-CG98L5 銆愬鎵樸�戙�愯瘎浼般�戞柊闇�姹�-鎷涙爣椤圭洰/璇环瀵瑰簲娴佹爣銆佸簾鏍囨敼鍠� end
--
Gitblit v1.9.1