From c29523b6fa64339eee3e9299a0f496557c7242d2 Mon Sep 17 00:00:00 2001
From: unknown <sunxia@prec-tech.com>
Date: 星期四, 06 七月 2023 11:40:39 +0800
Subject: [PATCH] 遗失报告画面

---
 force-app/main/default/lwc/lexLostReportInventoryPage/lexLostReportInventoryPage.js          |   32 ++++++++++++++++++++++++++++++++
 force-app/main/default/lwc/lexLostReportInventoryPage/lexLostReportInventoryPage.html        |    4 ++++
 force-app/main/default/lwc/lexLostReportInventoryPage/lexLostReportInventoryPage.js-meta.xml |   11 +++++++++++
 force-app/main/default/lwc/lexLostReportInventoryPage/lexLostReportInventoryPage.css         |   11 +++++++++++
 4 files changed, 58 insertions(+), 0 deletions(-)

diff --git a/force-app/main/default/lwc/lexLostReportInventoryPage/lexLostReportInventoryPage.css b/force-app/main/default/lwc/lexLostReportInventoryPage/lexLostReportInventoryPage.css
new file mode 100644
index 0000000..fbb1bbe
--- /dev/null
+++ b/force-app/main/default/lwc/lexLostReportInventoryPage/lexLostReportInventoryPage.css
@@ -0,0 +1,11 @@
+.rentalApplyCanleButtonHolder{
+ position: relative;
+ display: inline-block;
+ width: 80px;
+ height: 80px;
+ text-align: center;
+}
+
+.container .uiContainerManager{
+ display : none !important;
+}
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexLostReportInventoryPage/lexLostReportInventoryPage.html b/force-app/main/default/lwc/lexLostReportInventoryPage/lexLostReportInventoryPage.html
new file mode 100644
index 0000000..e9bebad
--- /dev/null
+++ b/force-app/main/default/lwc/lexLostReportInventoryPage/lexLostReportInventoryPage.html
@@ -0,0 +1,4 @@
+<template>
+<div class="rentalApplyCanleButtonHolder" if:true={IsLoding}>
+<lightning-spinner alternative-text="Loading" size="medium">  </lightning-spinner> </div>
+</template>
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexLostReportInventoryPage/lexLostReportInventoryPage.js b/force-app/main/default/lwc/lexLostReportInventoryPage/lexLostReportInventoryPage.js
new file mode 100644
index 0000000..0e58d9a
--- /dev/null
+++ b/force-app/main/default/lwc/lexLostReportInventoryPage/lexLostReportInventoryPage.js
@@ -0,0 +1,32 @@
+import { LightningElement, track, wire, api } from 'lwc';
+import { CurrentPageReference,NavigationMixin } from 'lightning/navigation';
+import { CloseActionScreenEvent } from 'lightning/actions';
+import { updateRecord } from 'lightning/uiRecordApi';
+
+import init from '@salesforce/apex/LexInventoryHeaderController.init';
+export default class lexLostReportInventoryPage extends LightningElement {
+	@api recordId;
+    IsLoading = true;
+
+    @wire(CurrentPageReference)
+     getStateParameters(currentPageReference) {
+         if (currentPageReference) {
+           const urlValue = currentPageReference.state.recordId;
+           if (urlValue) {
+             let str = `${urlValue}`;
+             this.recordId = str;
+           } 
+         }
+    }
+
+    connectedCallback(){
+    	init({
+    		recordId:this.recordId
+    	}).then(res=>{
+    		if(res.Asset__c==null || res.Asset__c==''){
+    			window.open("/apex/LostReportEditAsset?id=" + this.recordId,'height=600, width=600');
+          this.dispatchEvent(new CloseActionScreenEvent());
+    		}
+    	})
+    }
+}
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexLostReportInventoryPage/lexLostReportInventoryPage.js-meta.xml b/force-app/main/default/lwc/lexLostReportInventoryPage/lexLostReportInventoryPage.js-meta.xml
new file mode 100644
index 0000000..e164406
--- /dev/null
+++ b/force-app/main/default/lwc/lexLostReportInventoryPage/lexLostReportInventoryPage.js-meta.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata" fqn="lexRentalApplyCanleButton">
+    <apiVersion>54.0</apiVersion>
+    <isExposed>true</isExposed>
+    <targets>
+        <target>lightning__AppPage</target>
+        <target>lightning__RecordPage</target>
+        <target>lightning__HomePage</target>
+        <target>lightning__RecordAction</target>
+    </targets>
+</LightningComponentBundle>
\ No newline at end of file

--
Gitblit v1.9.1