From 43fdbff49764d55c7b3a19a1d6e7d8aeb62072ef Mon Sep 17 00:00:00 2001
From: buli <137736985@qq.com>
Date: 星期五, 21 四月 2023 11:17:35 +0800
Subject: [PATCH] backup0421

---
 force-app/main/default/lwc/lexInventoryCount/lexInventoryCount.html |   72 ++++++++----------------------------
 1 files changed, 16 insertions(+), 56 deletions(-)

diff --git a/force-app/main/default/lwc/lexInventoryCount/lexInventoryCount.html b/force-app/main/default/lwc/lexInventoryCount/lexInventoryCount.html
index 3f9fe41..822bd2c 100644
--- a/force-app/main/default/lwc/lexInventoryCount/lexInventoryCount.html
+++ b/force-app/main/default/lwc/lexInventoryCount/lexInventoryCount.html
@@ -1,5 +1,7 @@
 <template>
-
+    <template if:true={showSpinner}>
+        <lightning-spinner size="medium" variant="brand"></lightning-spinner>
+    </template>
     <template if:true={showcount}>
         <div style="border: 1px solid #D4D4D4;border-radius:5px;">
             <div style="border-top: 3px solid #51606E;;border-bottom: 1px solid #D4D4D4;padding:3px;">
@@ -64,11 +66,11 @@
                             </template>
                             <!-- 鍔犺浇妗� -->
 
-                            <div if:true={casesSpinner} class="slds-spinner_inline spinner-padding"
+                            <!-- <div if:true={casesSpinner} class="slds-spinner_inline spinner-padding"
                                 style="margin-top:10px;">
                                 <lightning-spinner variant="brand" alternative-text="Loading Cases" size="medium">
                                 </lightning-spinner>
-                            </div>
+                            </div> -->
 
                         </div>
 
@@ -91,17 +93,15 @@
                         </tr>
                     </table>
                 </div>
-
+                <template if:true={showTable}>
                 <div style="padding:10px;">
-                    <template if:true={showTable}>
+               
                         <c-lwc-datatable-utility records={codPageRecords} total-records={codPageRecords.length}
-                            columns={column} key-field="Id" show-search-box="true"
+                            columns={column} key-field="Id" show-search-box="true" hidecheckboxcolumn={hidecheckbox}
                             max-row-selection={codPageRecords.length} onpaginatorchange={handlePaginatorChange}>
                         </c-lwc-datatable-utility>
-                    </template>
-
-
                 </div>
+            </template>
             </div>
         </div>
     </template>
@@ -137,58 +137,18 @@
             <lightning-accordion allow-multiple-sections-open class="slds-m-around_medium"
                 active-section-name={activeSections}>
                 <lightning-accordion-section name="dataExpand" label="鐩樼偣鏄庣粏">
-                    <table class="list" border="0" cellpadding="0" cellspacing="0" id="example">
-                        <thead>
-                            <tr class="headerRow">
-                                <th>娑堣�楀搧鍚嶇О</th>
-                                <th>搴撳瓨</th>
-                                <th>鐩樼偣</th>
-                                <th>涓㈠け</th>
-                                <th>瀵诲洖</th>
-                                <th>宸紓鍘熷洜</th>
-                            </tr>
-                        </thead>
-                        <tbody>
-                            <template for:each={detailData} for:item="m">
-                                <tr key={m.Prod.Name__c}>
-                                    <td>{m.Prod.Name__c}</td>
-                                    <td>{m.orderdetails1.Count_Sum__c}</td>
-                                    <td>{m.orderdetails1.inventory_sum__c}</td>
-                                    <td>{m.orderdetails1.Diff__c}</td>
-                                    <td>{m.orderdetails1.Product_Refind__c}</td>
-                                    <td>{m.orderdetails1.Lose_reason__c}</td>
-                                </tr>
-                            </template>
-                        </tbody>
-                    </table>
+                    <lightning-datatable key-field="id" data={detailData}
+                        columns={dcolumns} hide-checkbox-column>
+                    </lightning-datatable>
+
                 </lightning-accordion-section>
             </lightning-accordion>
             <lightning-accordion allow-multiple-sections-open class="slds-m-around_medium"
                 active-section-name={activeSections}>
                 <lightning-accordion-section name="dataExpand" label="鍦ㄥ簱璋冩暣鏄庣粏">
-                    <table class="list" border="0" cellpadding="0" cellspacing="0" id="examples">
-                        <thead>
-                            <tr class="headerRow">
-                                <th>娑堣�楀搧鍚嶇О</th>
-                                <th>浜у搧鍨嬪彿</th>
-                                <th>宸紓鍘熷洜</th>
-                                <th>鏄惁涓㈠け</th>
-                            </tr>
-                        </thead>
-                        <tbody>
-                            <template for:each={adjustdata} for:item="m">
-                                <tr key={m.Prod.Name__c}>
-                                    <td>{m.Prod.Name__c}</td>
-                                    <td>{m.Prod.Asset_Model_No__c}</td>
-                                    <td>{m.orderdetails2.Lose_reason__c}</td>
-                                    <td>{m.orderdetails1.Diff__c}</td>
-                                    <td>{m.orderdetails1.Product_Refind__c}</td>
-                                    <td>{m.orderdetails2.Lose_Flag__c}</td>
-                                </tr>
-                            </template>
-                        </tbody>
-                    </table>
-
+                    <lightning-datatable key-field="id" data={adjustdata}
+                    columns={stockadjustcolumns} hide-checkbox-column>
+                </lightning-datatable>
                 </lightning-accordion-section>
             </lightning-accordion>
         </div>

--
Gitblit v1.9.1