From 08c2813b924c89c33271a3ccb0b9ab7fc1fe9ebd Mon Sep 17 00:00:00 2001
From: zz <1842059105@qq.com>
Date: 星期四, 11 五月 2023 14:54:59 +0800
Subject: [PATCH] 招标项目 代码修改 新建意向,反逻辑删除,逻辑删除,反应询价状态,不应标申请

---
 force-app/main/default/lwc/lexQISAgree/lexQISAgree.js |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/force-app/main/default/lwc/lexQISAgree/lexQISAgree.js b/force-app/main/default/lwc/lexQISAgree/lexQISAgree.js
index 5725e34..1c16be7 100644
--- a/force-app/main/default/lwc/lexQISAgree/lexQISAgree.js
+++ b/force-app/main/default/lwc/lexQISAgree/lexQISAgree.js
@@ -6,6 +6,7 @@
 import init  from '@salesforce/apex/QISReportController.initForQisAgreeButton';
 import updateQis  from '@salesforce/apex/QISReportController.updateQisForQisAgree';
 import UserInfo_Owner from '@salesforce/apex/TaskFeedbackController.UserInfo_Owner';
+import USER_ID from '@salesforce/user/Id';
 import { updateRecord } from 'lightning/uiRecordApi';
 
 export default class lexQISAgree extends LightningElement {
@@ -13,6 +14,7 @@
 	IsLoading = true;
 	qisReportId;
 	OwnerId;
+    userId = USER_ID;
     err;
 
     @wire(CurrentPageReference)
@@ -38,7 +40,7 @@
             this.IsLoading = false;
             this.qisReportId = result.Id;
             this.OwnerId = result.ownerId;
-            if (this.OwnerId != UserInfo_Owner.Id) {
+            if (this.OwnerId != this.userId) {
             	const evt = new ShowToastEvent({
                             title : '鍙湁鎵�鏈夎�呭彲浠ユ寜QIS缁撴灉璺熻繘瀹屾瘯鐨勬寜閽�',
                             message: '',
@@ -46,6 +48,7 @@
                         });
                         this.dispatchEvent(evt);
                         this.dispatchEvent(new CloseActionScreenEvent());
+                        return;
             }else{
             	this.updateQisSubmit();
             }

--
Gitblit v1.9.1