From fbac2ed0a87dad3180b3d22a9ed189437e4b7f19 Mon Sep 17 00:00:00 2001
From: 高章伟 <gaozhangwei@prec-tech.com>
Date: 星期二, 07 三月 2023 18:30:19 +0800
Subject: [PATCH] no message
---
force-app/main/default/lwc/tBidding/tBidding.js | 86 ++++++++++++++++++++++++++++++++++++++++--
1 files changed, 81 insertions(+), 5 deletions(-)
diff --git a/force-app/main/default/lwc/tBidding/tBidding.js b/force-app/main/default/lwc/tBidding/tBidding.js
index fcd478c..fc8119c 100644
--- a/force-app/main/default/lwc/tBidding/tBidding.js
+++ b/force-app/main/default/lwc/tBidding/tBidding.js
@@ -3,6 +3,7 @@
import SaveDataYB from '@salesforce/apex/InspectCheckController.SaveDataYB';
import ChangeDataYB from '@salesforce/apex/InspectCheckController.ChangeDataYB';
import GetIrresponsibleReason from '@salesforce/apex/InspectCheckController.GetIrresponsibleReason';
+import GetproInvolvedManual from '@salesforce/apex/InspectCheckController.GetproInvolvedManual';
import CheckOwnerRequest from '@salesforce/apex/InspectCheckController.CheckOwner';
@@ -67,6 +68,8 @@
this.GetInspectByIdFn(paramId);
// this.CheckOwner(paramId);
this.GetIrresponsibleReasonFn();
+ //20220913 you SWAG-CJ3DS5 start
+ this.GetproInvolvedManualFn();
}
CheckResult = false;
@@ -85,6 +88,10 @@
this.InspectData.IsBid__c = '鏄�';
this.InspectData.irresponsibleReason__c = '';
this.InspectData.irresponsibleReasonOther__c = '';
+ //20220914 you SWAG-CJ3DS5 start
+ this.InspectData.proInvolvedManual__c = '';
+ this.InspectData.proInvolved__c = '';
+ //20220914 you SWAG-CJ3DS5 end
this.irresponsibleReasonShow = false;
this.otherShow = false;
this.IsBC= false;
@@ -108,6 +115,19 @@
})
}
+ //20220913 you SWAG-CJ3DS5 start
+ GetproInvolvedManuals = []; //閫夐」鍒楄〃灞曠ず鐨勫垪
+ GetproInvolvedManualFn()
+ {
+ GetproInvolvedManual().then(result=>{
+ var response=JSON.parse(result);
+ this.GetproInvolvedManuals = response;
+ })
+
+ }
+ //20220913 you SWAG-CJ3DS5 end
+
+
@track InspectData = {}; //鏁版嵁
IsSQZ = false; //鐢宠涓殑鏍囪瘑
IsSQZButton = false;
@@ -133,13 +153,24 @@
}else{
tempData.proInvolved__c = '';
}
+ //20220913 you SWAG-CJ3DS5 start
+ // if (tempData.irresponsibleReason__c == "鎷涙爣浜у搧涓庢垜鍙镐笉鍖归厤") {
+ // this.SJCPIsShow = true;
+ // }else{
+ // this.SJCPIsShow = false;
+ // }GetproInvolvedManualShow
if (tempData.irresponsibleReason__c == "鎷涙爣浜у搧涓庢垜鍙镐笉鍖归厤") {
+ this.GetproInvolvedManualShow = true;
+ }else{
+ this.GetproInvolvedManualShow = false;
+ }
+ if (tempData.proInvolvedManual__c == "鍏朵粬") {
this.SJCPIsShow = true;
}else{
this.SJCPIsShow = false;
}
-
+ //20220913 you SWAG-CJ3DS5 end
tempData.InvolveBudgetAmount__c = this.YSJEIsContent ;
if(this.YSJEIsContent == 0 || this.YSJEIsContent == '')
@@ -172,6 +203,14 @@
if (tempData.irresponsibleReasonOther__c == undefined) {
tempData.irresponsibleReasonOther__c = '';
}
+ //20220914 you SWAG-CJ3DS5 start
+ if (tempData.proInvolvedManual__c == undefined) {
+ tempData.proInvolvedManual__c = '';
+ }
+ if (tempData.proInvolved__c == undefined) {
+ tempData.proInvolved__c = '';
+ }
+ //20220914 you SWAG-CJ3DS5 end
debugger;
if (tempData.NotBidApprovalStatus__c == '鐢宠涓�') {
setTimeout(()=>{
@@ -227,10 +266,11 @@
//杈撳叆妗� 鏈緭鍏ュ睍绀虹殑鍊�
bxgLy ="slds-form-element"; //error = slds-form-element slds-has-error
bxgLyFlag = false;
-
+
otherShow = false; //鏄惁鏄叾浠栬緭鍏�
handleIrresponsibleReasonsFn(event)
{
+ this.SJCPIsShow =false;//20220914 you SWAG-CJ3DS5
var value = event.target.value;
this.InspectData.irresponsibleReason__c = value;
if (value == "鍏朵粬锛堝彲鎵嬪姩濉啓锛�") {
@@ -240,17 +280,44 @@
this.otherShow = false;
debugger;
}
+ //20220913 you SWAG-CJ3DS5 start
+ // if (value == "鎷涙爣浜у搧涓庢垜鍙镐笉鍖归厤") {
+ // this.SJCPIsShow = true;
+ // }else{
+ // this.SJCPIsShow = false;
+ // }
+ //20220913 you SWAG-CJ3DS5 start
if (value == "鎷涙爣浜у搧涓庢垜鍙镐笉鍖归厤") {
+ this.GetproInvolvedManualShow = true;
+ }else{
+ this.InspectData.proInvolvedManual__c = '';
+ this.InspectData.proInvolved__c = '';
+ this.GetproInvolvedManualShow = false;
+ }
+ //20220913 you SWAG-CJ3DS5 end
+ }
+ //20220913 you SWAG-CJ3DS5 start
+ bxgLy1 ="slds-form-element"; //error = slds-form-element slds-has-error
+ handleIrresponsibleReasonsFn1(event)
+ {
+ var value = event.target.value;
+ this.InspectData.proInvolvedManual__c = value;
+ if (value == "鍏朵粬") {
this.SJCPIsShow = true;
}else{
+ this.InspectData.proInvolved__c = '';
this.SJCPIsShow = false;
+ debugger;
}
}
-
-
+ //20220913 you SWAG-CJ3DS5 end
//杈撳叆妗� 鏈緭鍏ュ睍绀虹殑鍊�
qtLy="slds-form-element";
qtLyFlag = false;
+ //20220914 you SWAG-CJ3DS5 start
+ qtLy1="slds-form-element";
+ qtLyFlag1 = false;
+ //20220914 you SWAG-CJ3DS5 end
handleOtherIrrelevantFn(event)
{
var value = event.target.value;
@@ -316,7 +383,16 @@
this.qtLy = "slds-form-element"
this.qtLyFlag = false;
}
-
+ //20220913 you SWAG-CJ3DS5 start
+ if (this.InspectData.proInvolvedManual__c == "鍏朵粬" && (this.InspectData.proInvolved__c == undefined || this.InspectData.proInvolved__c == "" )) {
+ this.qtLy1 = "slds-form-element slds-has-error"
+ this.qtLyFlag1 = true;
+ flag = false;
+ }else{
+ this.qtL1y = "slds-form-element"
+ this.qtLyFlag1 = false;
+ }
+ //20220913 you SWAG-CJ3DS5 end
if (flag) {
if (temp == 1) {
ChangeDataYB({JsonData:JSON.stringify(this.InspectData)}).then((response)=>{
--
Gitblit v1.9.1