<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;">
|
<div>
|
<p style="font-size: 19px;float:left"><strong>库存盘点</strong></p>
|
</div>
|
<div style="margin-left:400px;">
|
<lightning-button label="盘点确认" title="盘点确认" onclick={saveConfirm}></lightning-button></td>
|
</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">Barcode</td>
|
<td style="width:600px"><lightning-textarea name="Barcode" label=""
|
onchange={handleChange}></lightning-textarea></td>
|
<td align="right"></td>
|
<td></td>
|
<td><lightning-button label="Barcode" title="Barcode录入" onclick={barcodeEntrys}
|
style="width: 150px;"></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>
|
</div>
|
<div style="padding:10px;">
|
|
<div style="height: 300px;">
|
<template if:true={showTable}>
|
|
<c-lex-custom-lightning-datatable key-field="ProdId" data={data} columns={columns}
|
ondiffreasons={diffreasons} onrowselection={getSelectedRows}
|
selected-rows={selectedRows}>
|
</c-lex-custom-lightning-datatable>
|
</template>
|
<!-- 加载框 -->
|
|
<!-- <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>
|
</div>
|
</div>
|
|
|
<div style="border: 1px solid #D4D4D4;border-radius:5px;margin-bottom:7px;margin-top:50px">
|
<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>
|
</td>
|
<template if:true={showbutton}>
|
<td align="center"> <lightning-button label="下载本次盘点库存变化明细" title="下载本次盘点库存变化明细"
|
onclick={exportData} style="width: 150px;"></lightning-button></td>
|
</template>
|
</tr>
|
</table>
|
</div>
|
<template if:true={showTable}>
|
<div style="padding:10px;">
|
|
<c-lwc-datatable-utility records={codPageRecords} total-records={codPageRecords.length}
|
columns={column} key-field="Id" show-search-box="true" hidecheckboxcolumn={hidecheckbox}
|
max-row-selection={codPageRecords.length} onpaginatorchange={handlePaginatorChange}>
|
</c-lwc-datatable-utility>
|
</div>
|
</template>
|
</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}>
|
<lightning-layout multiple-rows="true">
|
<!-- <template if:true={isSummonsFlag}> -->
|
<lightning-layout-item class="hehe-layoutItem" size="4">
|
<lightning-output-field field-name="Name"></lightning-output-field>
|
</lightning-layout-item>
|
<lightning-layout-item class="hehe-layoutItem" size="4">
|
<lightning-output-field field-name="Inventory_date__c"></lightning-output-field>
|
</lightning-layout-item>
|
<lightning-layout-item class="hehe-layoutItem" size="4">
|
</lightning-layout-item>
|
<!-- </template> -->
|
</lightning-layout>
|
</lightning-record-edit-form>
|
</div>
|
</div>
|
</div>
|
|
<lightning-accordion allow-multiple-sections-open class="slds-m-around_medium"
|
active-section-name={activeSections}>
|
<lightning-accordion-section name="dataExpand" label="盘点明细">
|
<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="在库调整明细">
|
<lightning-datatable key-field="id" data={adjustdata}
|
columns={stockadjustcolumns} hide-checkbox-column>
|
</lightning-datatable>
|
</lightning-accordion-section>
|
</lightning-accordion>
|
</div>
|
</template>
|
</template>
|