buli
2023-05-23 07390e2fcb4adf27c928335bf27ae7939c5a80ad
force-app/main/default/lwc/lexSummonsCreat/lexSummonsCreat.html
@@ -28,16 +28,20 @@
                    <lightning-layout>
                        <lightning-layout-item flexibility="auto" padding="around-small">
                            <lightning-input type="text" label="医院名称" onchange={dataChange}
                                data-field="searchHospitalName" value={searchHospitalName}
                                variant="label-inline"></lightning-input>
                                data-field="searchHospitalName" value={searchHospitalName} variant="label-inline"
                                class="inputFont"></lightning-input>
                        </lightning-layout-item>
                        <lightning-layout-item flexibility="auto" padding="around-small">
                            <lightning-button label="检索" onclick={searchHospital}></lightning-button>
                        <lightning-layout-item flexibility="auto" padding="around-small" style="padding-top: 16px;">
                            <!-- <lightning-button label="检索" onclick={searchHospital}></lightning-button> -->
                            <button class="slds-button slds-button_neutral" onclick={searchHospital}
                                title="searchHospital" style="font-size: 16px;">
                                检索
                            </button>
                        </lightning-layout-item>
                    </lightning-layout>
                    <div class="tableColumn">
                        <lightning-layout class="datatable">
                        <lightning-layout class="datatable" style="height: 250px;">
                            <lightning-datatable class="datatabel slds-border_top wrapped-header-datatable"
                                key-field="id" data={hospitalList} columns={hospitalColumns} hide-checkbox-column="true"
                                onrowaction={searchHandleRowAction}>
@@ -47,7 +51,8 @@
                </div>
                <!-- Modal/Popup Box LWC footer starts here -->
                <footer class="slds-modal__footer">
                    <button class="slds-button slds-button_neutral" onclick={closeModal} title="Cancel">
                    <button class="slds-button slds-button_neutral" onclick={closeModal} title="Cancel"
                        style="font-size: 16px;">
                        关闭
                    </button>
                </footer>
@@ -178,7 +183,7 @@
                                        <template if:false={EditAble}>
                                            <button
                                                class="slds-button slds-button_neutral slds-button_stretch lexBorder"
                                                onclick={uploadOrder} >上传附件</button>
                                                onclick={uploadOrder}>上传附件</button>
                                        </template>
                                    </td>
                                </tr>
@@ -228,8 +233,8 @@
                        <div class="headerDorderCss">
                            <lightning-layout>
                                <lightning-layout-item padding="around-small">
                                    <p style="font-size: 16px">
                                        <strong>出库单信息1</strong>
                                    <p style="font-size: 18px">
                                        <strong>出库单信息</strong>
                                    </p>
                                </lightning-layout-item>
                            </lightning-layout>
@@ -265,15 +270,15 @@
                                            <lightning-layout-item size="1"></lightning-layout-item>
                                            <lightning-layout-item class="hehe-layoutItem" size="4">
                                                <lightning-output-field
                                                    field-name="SummonsForDirction__c"  class="searchName"></lightning-output-field>
                                                <lightning-output-field field-name="SummonsForDirction__c"
                                                    class="searchName"></lightning-output-field>
                                            </lightning-layout-item>
                                            <lightning-layout-item size="1"></lightning-layout-item>
                                            <lightning-layout-item class="hehe-layoutItem" size="4">
                                                <lightning-output-field
                                                    field-name="Billed_Status__c"  class="searchName"></lightning-output-field>
                                                <lightning-output-field field-name="Billed_Status__c"
                                                    class="searchName"></lightning-output-field>
                                            </lightning-layout-item>
                                        </lightning-layout>
@@ -302,8 +307,8 @@
                                            <lightning-layout-item class="hehe-layoutItem" size="4">
                                                <lightning-input-field data-field={ConInvoice_Code__c}
                                                    onchange={invoiceChange}
                                                    field-name="ConInvoice_Code__c"></lightning-input-field>
                                                    onchange={invoiceChange} field-name="ConInvoice_Code__c"
                                                    class="inputFont"></lightning-input-field>
                                            </lightning-layout-item>
                                        </lightning-layout>
@@ -365,7 +370,8 @@
                                            <lightning-layout-item class="hehe-layoutItem" size="4">
                                                <lightning-input-field data-field="summonsForDirction"
                                                    value={summonsForDirction} field-name="SummonsForDirction__c"
                                                    required="true" onchange={ChangeDirction}></lightning-input-field>
                                                    required="true" onchange={ChangeDirction}
                                                    class="inputFont"></lightning-input-field>
                                            </lightning-layout-item>
                                            <lightning-layout-item size="1"></lightning-layout-item>
@@ -375,8 +381,8 @@
                                                    name="secondaryDistributor" label="二级经销商"
                                                    value={secondaryDistributor} placeholder="请选择..."
                                                    options={secondaryDistributorOptions} variant="label-inline"
                                                    onchange={dataChange}
                                                    disabled={isDisabledSecondaryDistributor}></lightning-combobox>
                                                    onchange={dataChange} disabled={isDisabledSecondaryDistributor}
                                                    class="inputFont"></lightning-combobox>
                                            </lightning-layout-item>
                                        </lightning-layout>
@@ -393,8 +399,8 @@
                                                    <lightning-input type="text" name="HospitalName" label="客户名"
                                                        value={HospitalName} variant="label-inline"
                                                        onclick={searchHospitalNameModal} data-field="HospitalName"
                                                        disabled={isDisabledHospitalName}
                                                        onchange={clearAgencyI}></lightning-input>
                                                        disabled={isDisabledHospitalName} onchange={clearAgencyI}
                                                        class="inputFont"></lightning-input>
                                                </div>
                                            </lightning-layout-item>
@@ -407,14 +413,15 @@
                                                        variant="label-inline" placeholder="搜索经销商"
                                                        onisdisabledfordealertext={isDisabledForDealerText}
                                                        account-value={accountValue} onblur={vpClear2Delay}
                                                        disabled={isDisabledForDealerText}>
                                                        disabled={isDisabledForDealerText} class="inputFont">
                                                    </c-lex-lookup>
                                                </template>
                                                <template if:false={isMutualTransferGoods}>
                                                    <lightning-input type="text" name="Order_ForDealerText__c"
                                                        label="经销商(录入)" value={ForDealerText} onchange={dataChange}
                                                        data-field="Order_ForDealerText__c"
                                                        disabled={isDisabledForDealerText} variant="label-inline">
                                                        disabled={isDisabledForDealerText} variant="label-inline"
                                                        class="inputFont">
                                                    </lightning-input>
                                                </template>
                                            </lightning-layout-item>
@@ -428,7 +435,8 @@
                                                <lightning-input-field onchange={dataChange}
                                                    data-field="ForCustomerText" value={ForCustomerText}
                                                    field-name="Order_ForCustomerText__c"
                                                    disabled={isDisabledForCustomerText}></lightning-input-field>
                                                    disabled={isDisabledForCustomerText}
                                                    class="inputFont"></lightning-input-field>
                                            </lightning-layout-item>
                                            <lightning-layout-item size="1"></lightning-layout-item>
@@ -463,7 +471,7 @@
                        <div class="headerDorderCss">
                            <lightning-layout>
                                <lightning-layout-item padding="around-small">
                                    <p style="font-size: 16px">
                                    <p style="font-size: 18px">
                                        <strong>出库单信息</strong>
                                    </p>
                                </lightning-layout-item>
@@ -537,7 +545,7 @@
                                            <lightning-layout-item size="4">
                                                <lightning-input-field data-field={ConInvoice_Code__c}
                                                    onchange={invoiceChange} field-name="ConInvoice_Code__c"
                                                    class="hehe-layoutItem"></lightning-input-field>
                                                    class="hehe-layoutItem inputFont"></lightning-input-field>
                                            </lightning-layout-item>
                                        </template>
                                    </lightning-layout>
@@ -577,7 +585,7 @@
                                            <lightning-layout-item size="11">
                                                <lightning-card class="attListTitle" variant="Narrow" title="附件列表"
                                                    icon-name="utility:attach">
                                                    <lightning-layout slot="footer" multiple-rows="true">
                                                        <template for:each={fileData} for:item="item" for:index="index">
                                                            <lightning-layout-item padding="around-none" size="2"
@@ -610,7 +618,7 @@
                                            </lightning-layout-item>
                                        </lightning-layout>
                                    </template>
                                </lightning-record-edit-form>
                            </div>
                        </div>
@@ -629,7 +637,7 @@
                                            <div class="slds-form-element__label">消耗品名称</div>
                                            <lightning-input type="text" name="consumableName" label="消耗品名称"
                                                value={consumableName} variant="label-hidden" onchange={dataChange}
                                                data-field="consumableName"></lightning-input>
                                                data-field="consumableName" class="inputFont"></lightning-input>
                                        </div>
                                    </lightning-layout-item>
@@ -638,7 +646,8 @@
                                            <div class="slds-form-element__label" style="width:80px">第3分类</div>
                                            <lightning-combobox name="progress" label="第3分类" value={Category3}
                                                variant="label-hidden" options={category3Options} onchange={dataChange}
                                                data-field="Category3" style="min-width: 160px;"></lightning-combobox>
                                                data-field="Category3" style="min-width: 160px;"
                                                class="inputFont"></lightning-combobox>
                                        </div>
                                    </lightning-layout-item>
                                    <lightning-layout-item padding="around-small" flexibility="auto">
@@ -646,7 +655,8 @@
                                            <div class="slds-form-element__label" style="width:80px">第4分类</div>
                                            <lightning-combobox name="progress" label="第4分类" value={Category4}
                                                variant="label-hidden" options={category4Options} onchange={dataChange}
                                                data-field="Category4" style="min-width: 160px;"></lightning-combobox>
                                                data-field="Category4" style="min-width: 160px;"
                                                class="inputFont"></lightning-combobox>
                                        </div>
                                    </lightning-layout-item>
@@ -655,8 +665,8 @@
                                            <div class="slds-form-element__label" style="width:80px">第5分类</div>
                                            <lightning-combobox name="progress" label="第5分类" value={Category5}
                                                variant="label-hidden" onchange={dataChange} data-field="Category5"
                                                options={category5Options}
                                                style="min-width: 160px;"></lightning-combobox>
                                                options={category5Options} style="min-width: 160px;"
                                                class="inputFont"></lightning-combobox>
                                        </div>
                                    </lightning-layout-item>
@@ -666,25 +676,24 @@
                                                <div class="slds-form-element__label">医院特价</div>
                                                <lightning-combobox name="progress" label="医院特价" value={outOutPattern}
                                                    variant="label-hidden" options={outOutPatternOptionList}
                                                    onchange={dataChange}
                                                    data-field="outOutPattern" style="min-width: 140px;"></lightning-combobox>
                                                    onchange={dataChange} data-field="outOutPattern"
                                                    style="min-width: 140px;" class="inputFont"></lightning-combobox>
                                            </div>
                                        </lightning-layout-item>
                                    </template>
                                </lightning-layout>
                            <div style="float:right;margin-right:50px;">
                                <!-- <lightning-button label="检索" onclick={searchProductJs}></lightning-button> -->
                                <button
                                    class="slds-button slds-button_neutral slds-button_stretch lexBorder"
                                    onclick={searchProductJs}>检索</button>
                                <!-- <lightning-button label="清空" onclick={ClearJs}></lightning-button> -->
                                <button style="margin-left:10px;"
                                    class="slds-button slds-button_neutral slds-button_stretch lexBorder"
                                    onclick={ClearJs}>清空</button>
                                <div style="float:right;margin-right:50px;">
                                    <!-- <lightning-button label="检索" onclick={searchProductJs}></lightning-button> -->
                                    <button class="slds-button slds-button_neutral slds-button_stretch lexBorder lexsearchStyle"
                                        onclick={searchProductJs}>检索</button>
                                    <!-- <lightning-button label="清空" onclick={ClearJs}></lightning-button> -->
                                    <button style="margin-left:10px;"
                                        class="slds-button slds-button_neutral slds-button_stretch lexBorder lexclearStyle"
                                        onclick={ClearJs}>清空</button>
                                </div>
                            </div>
                        </div>
                    </div>
@@ -695,7 +704,7 @@
                    <div class="headerDorderCss">
                        <lightning-layout>
                            <lightning-layout-item padding="around-small">
                                <p style="font-size: 16px">
                                <p style="font-size: 18px">
                                    <strong>出库单明细</strong>
                                </p>
                            </lightning-layout-item>
@@ -710,7 +719,7 @@
                                    selected-rows={selectedRows} default-sort-direction={defaultSortDirection}
                                    sorted-direction={sortDirection} sorted-by={sortedBy} onsort={onHandleSort}
                                    style="word-wrap:break-word; word-break:break-all; "
                                    class="wrapped-header-datatable wrapped-header-wrap-datatable">
                                    class="wrapped-header-datatable">
                                </c-lex-custom-lightning-datatable>
                            </template>
                            <c-paginator onprevious={handlePrevious} onnext={handleNext}
@@ -729,7 +738,7 @@
                                    selected-rows={selectedRows} default-sort-direction={defaultSortDirection}
                                    sorted-direction={sortDirection} sorted-by={sortedBy} onsort={onHandleSort}
                                    style="word-wrap:break-word; word-break:break-all; "
                                    class="wrapped-header-datatable wrapped-header-wrap-datatable">
                                    class="wrapped-header-datatable">
                                </c-lex-custom-lightning-datatable>
                                <c-paginator onprevious={editHandlePrevious} onnext={editHandleNext}
                                    onpageschange={editHandlePageschange} onfirst={editHandleFirst}
@@ -752,7 +761,7 @@
                        <div class="headerDorderCss">
                            <lightning-layout>
                                <lightning-layout-item padding="around-small">
                                    <p style="font-size: 16px">
                                    <p style="font-size: 18px">
                                        <strong>出库产品明细</strong>
                                    </p>
                                </lightning-layout-item>
@@ -812,7 +821,7 @@
                    <div class="headerDorderCss">
                        <lightning-layout>
                            <lightning-layout-item padding="around-small">
                                <p style="font-size: 16px">
                                <p style="font-size: 18px">
                                    <strong>出货管理</strong>
                                </p>
                            </lightning-layout-item>
@@ -848,7 +857,7 @@
                                    <div class="headerDorderCss">
                                        <lightning-layout>
                                            <lightning-layout-item padding="around-small">
                                                <p style="font-size: 16px">
                                                <p style="font-size: 18px">
                                                    <strong>出库单信息</strong>
                                                </p>
                                            </lightning-layout-item>
@@ -912,7 +921,7 @@
                                        <div class="headerDorderCss">
                                            <lightning-layout>
                                                <lightning-layout-item padding="around-small">
                                                    <p style="font-size: 16px">
                                                    <p style="font-size: 18px">
                                                        <strong>BarCode录入</strong>
                                                    </p>
                                                </lightning-layout-item>
@@ -946,7 +955,7 @@
                                                                        onclick={SalesearchProductJs}></lightning-button> -->
                                                                    <button
                                                                        class="slds-button slds-button_neutral slds-button_stretch lexBorder"
                                                                        onclick={SalesearchProductJs}>确认</button>
                                                                        onclick={SalesearchProductJs}>获取明细</button>
                                                                </div>
                                                            </div>
                                                        </lightning-layout-item>
@@ -961,7 +970,7 @@
                                    <div class="headerDorderCss">
                                        <lightning-layout>
                                            <lightning-layout-item padding="around-small">
                                                <p style="font-size: 16px">
                                                <p style="font-size: 18px">
                                                    <strong>出货明细</strong>
                                                </p>
                                            </lightning-layout-item>
@@ -989,7 +998,7 @@
                                    <div class="headerDorderCss">
                                        <lightning-layout>
                                            <lightning-layout-item padding="around-small">
                                                <p style="font-size: 16px">
                                                <p style="font-size: 18px">
                                                    <strong>出货错误明细</strong>
                                                </p>
                                            </lightning-layout-item>