unknown
2023-07-06 c29523b6fa64339eee3e9299a0f496557c7242d2
遗失报告画面

遗失报告画面 遗失报告 按钮
4个文件已添加
58 ■■■■■ 已修改文件
force-app/main/default/lwc/lexLostReportInventoryPage/lexLostReportInventoryPage.css 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexLostReportInventoryPage/lexLostReportInventoryPage.html 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexLostReportInventoryPage/lexLostReportInventoryPage.js 32 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexLostReportInventoryPage/lexLostReportInventoryPage.js-meta.xml 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexLostReportInventoryPage/lexLostReportInventoryPage.css
New file
@@ -0,0 +1,11 @@
.rentalApplyCanleButtonHolder{
 position: relative;
 display: inline-block;
 width: 80px;
 height: 80px;
 text-align: center;
}
.container .uiContainerManager{
 display : none !important;
}
force-app/main/default/lwc/lexLostReportInventoryPage/lexLostReportInventoryPage.html
New file
@@ -0,0 +1,4 @@
<template>
<div class="rentalApplyCanleButtonHolder" if:true={IsLoding}>
<lightning-spinner alternative-text="Loading" size="medium">  </lightning-spinner> </div>
</template>
force-app/main/default/lwc/lexLostReportInventoryPage/lexLostReportInventoryPage.js
New file
@@ -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());
            }
        })
    }
}
force-app/main/default/lwc/lexLostReportInventoryPage/lexLostReportInventoryPage.js-meta.xml
New file
@@ -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>