From 928399eceec50e3d37ea08669a12789a9410a9d2 Mon Sep 17 00:00:00 2001
From: 沙世明 <shashiming@prec-tech.com>
Date: 星期二, 22 十一月 2022 16:51:16 +0800
Subject: [PATCH] 111
---
force-app/main/default/objects/Repair_Quotation__c/webLinks/RentalApplyDiscountApproval.webLink-meta.xml | 21 ++++++++++++++-------
1 files changed, 14 insertions(+), 7 deletions(-)
diff --git a/force-app/main/default/objects/Repair_Quotation__c/webLinks/RentalApplyDiscountApproval.webLink-meta.xml b/force-app/main/default/objects/Repair_Quotation__c/webLinks/RentalApplyDiscountApproval.webLink-meta.xml
index c519aed..ef0e2b7 100644
--- a/force-app/main/default/objects/Repair_Quotation__c/webLinks/RentalApplyDiscountApproval.webLink-meta.xml
+++ b/force-app/main/default/objects/Repair_Quotation__c/webLinks/RentalApplyDiscountApproval.webLink-meta.xml
@@ -11,7 +11,13 @@
{!RequireScript("/resource/CommonUtilJs")}
var foo = function() {
- var power = '{!$Profile.Id}';
+
+ var power = '{!$Profile.Id}';
+ // 2B2_澶囧搧涓績妫�娴�&浠撳簱绠$悊 00e10000000xnoY
+ if(power!='00e10000000xnoY'){
+ //alert('瀵逛笉璧凤紝鎮ㄦ病鏈夋潈闄愭彁浜ゆ鐢宠锛�');
+ //return;
+ }
var status = '{!Repair_Quotation__c.Rental_Apply_Discount_Status__c}';
if (status=='瀹℃壒涓�') {
@@ -23,11 +29,11 @@
return;
}
if (status=='鑽夋涓�' || status=='' || status == '椹冲洖') {
- if ('{!Repair_Quotation__c.Loaner_repair__c}' > 0) {
- var qUpd = new sforce.SObject("Repair_Quotation__c");
- qUpd.Id = "{!Repair_Quotation__c.Id}";
- qUpd.Rental_Apply_Discount_Status__c = "宸叉彁浜�";
- var result = sforce.connection.update([qUpd]);
+ if ({!Repair_Quotation__c.Loaner_repair_sys__c}) {
+ var q = new sforce.SObject("Repair_Quotation__c");
+ q.Id = "{!Repair_Quotation__c.Id}";
+ q.Rental_Apply_Discount_Status__c = "宸叉彁浜�";
+ var result = sforce.connection.update([q]);
var messages = getConnectDMLErrorMessages(result);
if (messages.length > 0) {
alert("鎻愪氦澶辫触" + messages.join("\n"));
@@ -37,8 +43,9 @@
alert("璇峰厛濉啓澶囧搧鍑忎环閲戦锛�");
return;
}
-
}
+
+
location.reload();
}
foo();</url>
--
Gitblit v1.9.1