Junfeng
2023-04-07 b55828d21b8853146fb547afc389ad06ea2635d5
force-app/main/default/aura/eSignHomePage/eSignHomePage.cmp
@@ -57,9 +57,6 @@
    <aura:attribute name="buttonGroup" type="Boolean" default="false" />
    <aura:attribute name="eSignForm" type="object" />
    <aura:attribute name="DNName" type="string" default="" />
    <!-- 进口单证 fy start  -->
    <aura:attribute name="DNId" type="string" default="" />
    <!-- 进口单证 fy end  -->
    <aura:attribute name="errorMessage" type="String" description="失败消息" />
    <!-- 判断直销还是分销 -->
    <aura:attribute name="isDirectSales" type="Boolean" default="" description="判断直销还是分销" />
@@ -98,7 +95,6 @@
    <aura:attribute name="QRWidth" type="String" description="用来从父对象接收传递过来的屏幕宽度" default="" />
    <aura:attribute name="QRHeight" type="String" description="用来从父对象接收传递过来的屏幕宽度" default="" />
    <aura:attribute name="ShowDNNameQR" type="String" description="判断返回是否可以打印" default="" />
    <aura:attribute name="AttachmentDisplayflag" type="boolean" default="false" />
    <!-- 返回首页 start -->
    <aura:attribute name="agencyDNSignUpStatus" type="String" default="" description="DN签收状态(经销商)" />
@@ -174,7 +170,7 @@
                <div class="slds-float_center" style="text-align:left">
                    <tr>
                        <!--  style="{!'padding-left:'+v.floatWidth*0.2+'px;'}" 请选择您需要签收的-->
                        <td align="left">共计{!v.lineItemSize}单。DN号/合同号检索(模糊检索)
                        <td align="left">共计{!v.lineItemSize}单。DN号(模糊检索)
                            <input id="searchInput" lightning-input_input="" type="text" class="slds-input" value="{!v.searchCase}" name="" onchange="{!c.searchByDNName}" style="{!'width:'+v.floatWidth*0.3+'px;'}" />
                        </td>
@@ -190,8 +186,7 @@
                </div>
            </div>
            <div id="allDiv" style="{!'width:'+v.floatWidth+'px;overflow-x:scroll;'}">
                <!-- 增加列的时候记得调试这个宽度 -->
                <div id="in" style=" width:1121px;margin-right: 4px; ">
                <div id="in" style=" width:1012px;margin-right: 4px; ">
                    <!-- 显示在明细页的当前明细的表格 -->
                    <div id="inTable">
                        <!-- <lightning:card> -->
@@ -284,13 +279,12 @@
            </th>
            <!-- 第七列  进口单证明细 fy-->
            <!-- 进口单证 fy start  -->
            <th class="slds-is-resizable" tabindex="-1" data-label="进口单证明细" scope="row" style="width: 110px;height: 35px;">
            <!-- 第七列  附件名 fy-->
            <th class="slds-is-resizable" tabindex="-1" data-label="附件名1" scope="row" style="width: 110px;height: 35px;">
                <span class="slds-grid slds-grid_align-spread" style="text-align: center;display:block;">
                                        <div class="slds-truncate">
                                                <span title="进口单证明细" class="slds-truncate" style="padding-bottom: 3px;">进口单证明细</span>
                                                <span title="附件名1" class="slds-truncate" style="padding-bottom: 3px;">附件名1</span>
                </div>
@@ -299,7 +293,6 @@
            </th>
            <!-- 进口单证 fy end  -->
            <!-- 第七列 二维码 -->
            <th class="slds-is-resizable" tabindex="-1" data-label="医院签收二维码" scope="row" style="width: 140px;height: 35px;text-align: center;">
@@ -433,29 +426,25 @@
                            </th>
                            <!-- 行项目 第四列  进口单证明细   fy-->
                            <!-- 进口单证 fy start  -->
                            <th class="slds-is-resizable" tabindex="-1" data-label="进口单证明细" scope="row">
                            <!-- 行项目 第四列  附件名   fy-->
                            <th class="slds-is-resizable" tabindex="-1" data-label="附件名1" scope="row">
                                <span class="slds-grid slds-grid_align-spread" style="text-align: center;display:block;">
                                            <div class="slds-truncate">
                                                    <!-- <lightning:formattedText value="{!curr.AttachmentName}" /> -->
                                                    <!-- <a href="https://sfpi-mebg-test.olympuschina.com:8081/stg/api/file/preview?key=20220419/8cf583ab71c94eee96da7bbfcc1b376b.html">附件名1</a> -->
                                                    <button tabindex="-1" class="slds-button ReturnButton" style="width: 40px;" name="{!curr.Id}" onclick="{!c.showAttachmentDisplay}">查看</button>
                                                    <!-- <a onclick="{!c.showAttachmentDisplay}">查看</a> -->
                                                    <a href="https://sfpi-mebg-test.olympuschina.com:8081/stg/api/file/preview?key=20220419/8cf583ab71c94eee96da7bbfcc1b376b.html">附件名1</a>
                                                    <!-- <a href="https://ocsm stagefull.sandbox.file.force.com/servlet/servlet.FileDownload?file=00P1000001QkhvQ">{!curr.AttachmentName}</a> -->
                                            </div>
                                        </span>
                            </th>
                            <!-- 进口单证 fy end  -->
                            <!-- 行项目 第七列  医院签收二维码-->
                            <th class="slds-is-resizable" tabindex="-1" data-label="" scope="row" style="text-align: center;">
                                <button id="{!curr.skip_Hospital_Sign__c}" tabindex="-1" class="slds-button ReturnButton" name="{!curr.DNNameNo0__c}" style="width: 40px;" value="{!IF(curr.skip_Distribution_Sign__c, 'true', curr.agencySignUpDate__c)}" onclick="{!c.showESignQR}">查看
                                </button>
                                <button id="{!curr.skip_Hospital_Sign__c}" tabindex="-1" class="slds-button ReturnButton" name="{!curr.DNNameNo0__c}" style="width: 40px;" value="{!IF(curr.skip_Distribution_Sign__c, 'true', curr.agencySignUpDate__c)}" onclick="{!c.showESignQR}">查看</button>
                            </th>
@@ -677,14 +666,4 @@
    </aura:if>
    <!-- </div> -->
    <!-- 进口单证 fy start  -->
    <aura:if isTrue="{!v.AttachmentDisplayflag}">
        <!--  医院确认 -->
        <label style="float: left;font-size:20px">进口单证明细</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <lightning:button variant="neutral" label="返回" title="Cancel" onclick="{! c.rebackDNListPage }" />
        <!-- <lightning:button variant="neutral"  onclick="{!c.rebackDNListPage}">返回</button> -->
        <c:AttachmentDisplay  DNId="{!v.DNId}" />
    </aura:if>
    <!-- 进口单证 fy end  -->
</aura:component>