KKbes
2023-06-26 64c61e02e5083871944d8128c375e7e13ee0a8f5
客户现状分析按钮及页面更新
3个文件已修改
3个文件已添加
59 ■■■■■ 已修改文件
force-app/main/default/lwc/lexPreviewPDF/lexPreviewPDF.html 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexPreviewPDF/lexPreviewPDF.js 35 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexPreviewPDF/lexPreviewPDF.js-meta.xml 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/pages/Ordergoods.page 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/pages/SampleInventory.page 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/pages/SubmitForApprovalPage.page 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexPreviewPDF/lexPreviewPDF.html
New file
@@ -0,0 +1,3 @@
<template>
</template>
force-app/main/default/lwc/lexPreviewPDF/lexPreviewPDF.js
New file
@@ -0,0 +1,35 @@
import { LightningElement, track, wire,api  } from 'lwc';
import { CurrentPageReference } from "lightning/navigation";
import { CloseActionScreenEvent } from 'lightning/actions';
export default class lexPreviewPDF extends LightningElement {
    @api recordId;
    @wire(CurrentPageReference)
    getStateParameters(currentPageReference){
        if(currentPageReference){
            console.log(currentPageReference);
            const IdValue=currentPageReference.state.recordId;
            if(IdValue){
                let str=`${IdValue}`;
                this.recordId=str;
                console.log("recordId="+str);
            }
        }
    }
    connectedCallback(){
        this.PreviewPDF().then(res=>{
            this.dispatchEvent(new CloseActionScreenEvent());
        });
    }
    async PreviewPDF(){
        window.open("/apex/ContentPreview?id="+this.recordId, "_blank");
    }
}
force-app/main/default/lwc/lexPreviewPDF/lexPreviewPDF.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="lexPreviewPDF">
    <apiVersion>51.0</apiVersion>
    <isExposed>true</isExposed>
    <targets>
        <target>lightning__RecordPage</target>
        <target>lightning__AppPage</target>
        <target>lightning__HomePage</target>
        <target>lightning__RecordAction</target>
    </targets>
</LightningComponentBundle>
force-app/main/default/pages/Ordergoods.page
@@ -324,7 +324,7 @@
                <apex:outputPanel rendered="{!IF(sampleOrder.Status__c='订单已发送',false,true)}" >
                    <table id="theTable_Body" class="pure-table pure-table-horizontal" border="1" style="border-collapse: collapse; table-layout:fixed;">
                        <tr style="background-color:#f2f3f3; width:900px; color: black;">
                            <th style="text-align:left; width:50px">查询:</th>
                            <th style="text-align:left; width:60px">查询:</th>
                            <td style="text-align:left; width:180px">
                                <apex:inputText style="text-align:left;" id="selectlike" value="{!QueryTemp}" />
                            </td>
force-app/main/default/pages/SampleInventory.page
@@ -1,4 +1,4 @@
<apex:page controller="SampleInventoryController" showHeader="false" sidebar="false" id="Page" action="{!init}" title="样本盘点">
<apex:page lightningStylesheets="true" controller="SampleInventoryController" showHeader="false" sidebar="false" id="Page" action="{!init}" title="样本盘点">
    <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
    <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
    <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
@@ -76,9 +76,9 @@
        .ts-btn{
            width: 150px;
            padding: 8px;
            height: 20px;
            height: 35px;
            line-height: 20px;
            background: #909b8a;
            background: #1684e3;
            color: #fff;
            border-radius: 5px;
            float: right;
force-app/main/default/pages/SubmitForApprovalPage.page
@@ -1,5 +1,5 @@
<!-- <apex:page action="{!init}" controller="SubmitForApprovalController" id="allPage" showheader="false" sidebar="true" title="提交申请"> standardcontroller="Maintenance_Contract__c"  -->
    <apex:page standardcontroller="Lost_Report__c"  extensions="SubmitForApprovalController" id="allPage" action="{!init}" showHeader="false" sidebar="false" title="提交申请">
    <apex:page lightningStylesheets="true" standardcontroller="Lost_Report__c"  extensions="SubmitForApprovalController" id="allPage" action="{!init}" showHeader="false" sidebar="false" title="提交申请">
    <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}">
    </apex:stylesheet>
    <apex:includescript value="{!URLFOR($Resource.jquery183minjs)}">