From 3962c2bb0435484b60a3e408e4738d792e249a53 Mon Sep 17 00:00:00 2001
From: buli <137736985@qq.com>
Date: 星期一, 05 六月 2023 11:09:55 +0800
Subject: [PATCH] LEX CommunityNewCmp

---
 force-app/main/default/lwc/lexInventory/lexInventory.html |  186 ++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 186 insertions(+), 0 deletions(-)

diff --git a/force-app/main/default/lwc/lexInventory/lexInventory.html b/force-app/main/default/lwc/lexInventory/lexInventory.html
new file mode 100644
index 0000000..8e8f0d4
--- /dev/null
+++ b/force-app/main/default/lwc/lexInventory/lexInventory.html
@@ -0,0 +1,186 @@
+<template>
+    <template if:true={showSpinner}>
+        <lightning-spinner size="medium" variant="brand"></lightning-spinner>
+    </template>
+    <c-common-toast></c-common-toast>
+    <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;">
+                <div style="margin:12px;">
+                    <p style="font-size: 18px;float:left"><strong>搴撳瓨鐩樼偣</strong></p>
+                </div>
+                <div style="margin-left:400px;margin-bottom:12px;">
+                    <!-- <lightning-button class = 'lexstyle' label="鐩樼偣纭" title="鐩樼偣纭" onclick={saveConfirm}></lightning-button> -->
+                    <button class="slds-button slds-button_neutral slds-button_stretch lexBorder" label="鐩樼偣纭" onclick={saveConfirm}>鐩樼偣纭</button>
+                </div>
+            </div>
+
+            <div style="padding:10px;">
+                <div style="border: 1px solid #D4D4D4;border-radius:5px;margin-bottom:7px;">
+                    <div style="border-top: 3px solid #51606E;border-bottom: 1px solid #D4D4D4;padding:3px;">
+                        <table>
+                            <colgroup>
+                                <col width="160px" />
+                                <col width="100px" />
+                                <col width="10px" />
+                                <col width="70px" />
+                                <col width="100px" />
+                                <col width="10px" />
+                                <col width="90px" />
+                                <col width="100px" />
+                                <col width="10px" />
+                                <col width="85px" />
+                                <col width="100px" />
+                                <col width="10px" />
+                                <col width="70px" />
+                                <col width="100px" />
+                            </colgroup>
+                            <tbody>
+                                <tr>
+                                    <td></td>
+                                    <td align="right" class="searchName">BarCode</td>
+                                    <td style="width:600px"><lightning-textarea  class="inputFont"  name="BarCode" label=""
+                                            onchange={handleChange}></lightning-textarea></td>
+                                    <td align="right"></td>
+                                    <td></td>
+                                    <td style="width:200px">
+                                        <button style="margin-top:14px;" class="slds-button slds-button_neutral slds-button_stretch lexBorder" label="鑾峰彇鏄庣粏" onclick={barcodeEntrys}>鑾峰彇鏄庣粏</button>
+                                        <!-- <lightning-button class = 'lexstyle' label="BarCode褰曞叆" title="BarCode褰曞叆"
+                                            onclick={barcodeEntrys} style="width: 300px;"></lightning-button> -->
+                                    </td>
+                                </tr>
+                            </tbody>
+                        </table>
+                    </div>
+                </div>
+
+                <div style="border: 1px solid #D4D4D4;border-radius:5px;margin-bottom:7px;">
+                    <div style="border-top: 3px solid #51606E;border-bottom: 1px solid #D4D4D4;padding:3px;">
+                        <!-- <p style="font-size: 16px;"><strong>鍦ㄥ簱鍟嗗搧搴撳瓨涓�瑙�</strong></p> -->
+                        <lightning-layout>
+                            <lightning-layout-item padding="around-small">
+                                <p style="font-size: 18px">
+                                    <strong>鍦ㄥ簱鍟嗗搧搴撳瓨涓�瑙�</strong>
+                                </p>
+                            </lightning-layout-item>
+                        </lightning-layout>
+                    </div>
+                    <div style="padding:10px;">
+
+                        <div style="height: 300px;">
+                            <template if:true={showTable}>
+                                <c-lex-custom-lightning-datatable key-field="key" data={data} columns={columns}
+                                    ondiffreasons={diffreasons} onrowselection={getSelectedRows}
+                                    selected-rows={selectedRows} class="wrapped-header-datatable">
+                                </c-lex-custom-lightning-datatable>
+                            </template>
+
+
+                        </div>
+
+                    </div>
+                </div>
+                <div style="border: 1px solid #D4D4D4;border-radius:5px;margin-bottom:7px;">
+                    <div style="border-top: 3px solid #51606E;border-bottom: 1px solid #D4D4D4;padding:3px;">
+                        <table>
+                            <tr>
+                                <td>
+                                    <!-- <p style="font-size: 16px;"><strong>璋冩暣鏄庣粏</strong></p> -->
+                                    <lightning-layout>
+                                        <lightning-layout-item padding="around-small">
+                                            <p style="font-size: 18px">
+                                                <strong>璋冩暣鏄庣粏</strong>
+                                            </p>
+                                        </lightning-layout-item>
+                                    </lightning-layout>
+
+                                </td>
+                                <template if:true={showbutton}>
+                                    <td align="center"> 
+                                        <!-- <lightning-button variant="brand"  class='count' label="涓嬭浇鏈鐩樼偣搴撳瓨鍙樺寲鏄庣粏" title="涓嬭浇鏈鐩樼偣搴撳瓨鍙樺寲鏄庣粏"
+                                            onclick={exportData} style="width: 150px;"></lightning-button> -->
+                                            <button class="slds-button slds-button_neutral slds-button_stretch changeDetail" label="涓嬭浇鏈鐩樼偣搴撳瓨鍙樺寲鏄庣粏" onclick={exportData}>涓嬭浇鏈鐩樼偣搴撳瓨鍙樺寲鏄庣粏</button>
+                                        </td>
+                                </template>
+                            </tr>
+                        </table>
+                    </div>
+                    <!-- <template if:true={showTable}> -->
+                    <div style="padding:10px;">
+                        <lightning-datatable key-field="id" data={pageCodeRecords} columns={column}
+                            hide-checkbox-column={hidecheckbox} class="wrapped-header-datatable">
+                        </lightning-datatable>
+                        <c-paginator onprevious={handlePrevious} onnext={handleNext} onpageschange={handlePageschange}
+                            onfirst={handleFirst} onlast={handleLast} page-size-options={pageSizeOptions}
+                            previous-button-disabled={previousButtonDisabled} next-button-disabled={nextButtonDisabled}
+                            record-start={recordStart} record-end={recordEnd}
+                            total-records={totalRecords}></c-paginator>
+                    </div>
+                    <!-- </template> -->
+                </div>
+            </div>
+
+
+        </div>
+    </template>
+
+
+    <template if:true={EditAble}>
+        <div style="border: 1px solid #D4D4D4;border-radius:5px;">
+            <div style="border-top: 3px solid #51606E;;border-bottom: 1px solid #D4D4D4;padding:3px;">
+                <div style="border: 1px solid #D4D4D4;border-radius:5px;">
+                    <div style="border-top: 3px solid #51606E;;border-bottom: 1px solid #D4D4D4;padding:6px;">
+                        <p style="font-size: 19px;"><strong>鐩樼偣鎯呭喌涓�瑙�</strong></p>
+                    </div>
+                    <div class="acc-container">
+                        <lightning-record-edit-form object-api-name="Consumable_order__c" record-id={conId}
+                            onload={handleLoad2} class="hideHelpText">
+                            <div class="slds-modal__content slds-p-around_medium" id="modal-content-id-1">
+                                <div class="slds-grid">
+                                    <div class="slds-col slds-size_1-of-2">
+                                        <lightning-output-field field-name="Name"
+                                            class="hehe-layoutItem" style="padding-left:20px;"></lightning-output-field>
+                                    </div>
+                                    <div class="slds-col slds-size_1-of-2">
+                                        <lightning-output-field field-name="Inventory_date__c"
+                                            class="hehe-layoutItem"></lightning-output-field>
+                                    </div>
+                                </div>
+                            </div>
+                        </lightning-record-edit-form>
+                    </div>
+                </div>
+                <div style="border: 1px solid #D4D4D4;border-radius:5px;margin-top:10px">
+                    <div style="border-top: 3px solid #51606E;;border-bottom: 1px solid #D4D4D4;padding:6px;">
+                        <lightning-accordion allow-multiple-sections-open class="slds-m-around_medium"
+                            active-section-name={activeSections}>
+                            <lightning-accordion-section name="dataExpand" label="鐩樼偣鏄庣粏" class="accordionClass">
+                                <lightning-datatable key-field="id" data={detailData} columns={dcolumns}
+                                    hide-checkbox-column={hidecheckbox}
+                                    class="wrapped-header-datatable accordionClass2">
+                                </lightning-datatable>
+                            </lightning-accordion-section>
+                        </lightning-accordion>
+
+
+                    </div>
+                </div>
+                <div style="border: 1px solid #D4D4D4;border-radius:5px;margin-top:10px">
+                    <div style="border-top: 3px solid #51606E;;border-bottom: 1px solid #D4D4D4;padding:6px;">
+                        <lightning-accordion allow-multiple-sections-open class="slds-m-around_medium"
+                            active-section-name={activeSections}>
+                            <lightning-accordion-section name="dataExpand" label="鍦ㄥ簱璋冩暣鏄庣粏" class="accordionClass">
+                                <lightning-datatable key-field="id" data={adjustdata} columns={stockadjustcolumns}
+                                    hide-checkbox-column={hidecheckbox}
+                                    class="wrapped-header-datatable accordionClass2">
+                                </lightning-datatable>
+                            </lightning-accordion-section>
+                        </lightning-accordion>
+
+                    </div>
+                </div>
+            </div>
+        </div>
+
+    </template>
+</template>
\ No newline at end of file

--
Gitblit v1.9.1