| | |
| | | <!-- sldsValidatorIgnore --> |
| | | <template> |
| | | <template if:true={isShowSpinner}> |
| | | <lightning-spinner |
| | | alternative-text="Loading" |
| | | size="large" |
| | | ></lightning-spinner> |
| | | <lightning-spinner alternative-text="Loading" size="large"></lightning-spinner> |
| | | </template> |
| | | <!-- 搜索客户名 --> |
| | | <template if:true={isModalOpen}> |
| | | <!-- Modal/Popup Box LWC starts here --> |
| | | <section |
| | | role="dialog" |
| | | tabindex="-1" |
| | | aria-labelledby="modal-heading-01" |
| | | aria-modal="true" |
| | | aria-describedby="modal-content-id-1" |
| | | class="slds-modal slds-fade-in-open" |
| | | > |
| | | <section role="dialog" tabindex="-1" aria-labelledby="modal-heading-01" aria-modal="true" |
| | | aria-describedby="modal-content-id-1" class="slds-modal slds-fade-in-open"> |
| | | <div class="slds-modal__container"> |
| | | <!-- Modal/Popup Box LWC header here --> |
| | | <header class="slds-modal__header"> |
| | | <button |
| | | class="slds-button slds-button_icon slds-modal__close slds-button_icon-inverse" |
| | | title="Close" |
| | | onclick={closeModal} |
| | | > |
| | | <lightning-icon |
| | | icon-name="utility:close" |
| | | alternative-text="close" |
| | | variant="inverse" |
| | | size="small" |
| | | ></lightning-icon> |
| | | <button class="slds-button slds-button_icon slds-modal__close slds-button_icon-inverse" |
| | | title="Close" onclick={closeModal}> |
| | | <lightning-icon icon-name="utility:close" alternative-text="close" variant="inverse" |
| | | size="small"></lightning-icon> |
| | | <span class="slds-assistive-text">Close</span> |
| | | </button> |
| | | <h2 |
| | | id="modal-heading-01" |
| | | class="slds-text-heading_medium slds-hyphenate" |
| | | > |
| | | <h2 id="modal-heading-01" class="slds-text-heading_medium slds-hyphenate"> |
| | | 经销商医院检索 |
| | | </h2> |
| | | </header> |
| | | <!-- Modal/Popup Box LWC body starts here --> |
| | | <div |
| | | class="slds-modal__content slds-p-around_medium" |
| | | id="modal-content-id-1" |
| | | > |
| | | <div class="slds-modal__content slds-p-around_medium" id="modal-content-id-1"> |
| | | <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> |
| | | <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> |
| | | </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"> |
| | | <lightning-button label="检索" onclick={searchHospital}></lightning-button> |
| | | </lightning-layout-item> |
| | | </lightning-layout> |
| | | |
| | | <div class="tableColumn"> |
| | | <lightning-layout class="datatable"> |
| | | <lightning-datatable |
| | | class="datatabel slds-border_top" |
| | | key-field="id" |
| | | data={hospitalList} |
| | | columns={hospitalColumns} |
| | | hide-checkbox-column="true" |
| | | onrowaction={searchHandleRowAction} |
| | | > |
| | | <lightning-datatable class="datatabel slds-border_top" key-field="id" data={hospitalList} |
| | | columns={hospitalColumns} hide-checkbox-column="true" |
| | | onrowaction={searchHandleRowAction}> |
| | | </lightning-datatable> |
| | | </lightning-layout> |
| | | </div> |
| | | </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"> |
| | | 关闭 |
| | | </button> |
| | | </footer> |
| | |
| | | |
| | | <!-- 上传附件弹窗 --> |
| | | <template if:true={showAttPop}> |
| | | <section |
| | | role="dialog" |
| | | tabindex="-1" |
| | | aria-labelledby="modal-heading-01" |
| | | aria-modal="true" |
| | | aria-describedby="modal-content-id-1" |
| | | class="slds-modal slds-fade-in-open slds-modal_small" |
| | | style="border: 1px solid #d4d4d4" |
| | | > |
| | | <section role="dialog" tabindex="-1" aria-labelledby="modal-heading-01" aria-modal="true" aria-describedby="modal-content-id-1" class="slds-modal slds-fade-in-open slds-modal_small" style="border: 1px solid #D4D4D4;"> |
| | | <template if:true={showPopSpinner}> |
| | | <lightning-spinner |
| | | size="medium" |
| | | variant="brand" |
| | | ></lightning-spinner> |
| | | <lightning-spinner size="medium" variant="brand"></lightning-spinner> |
| | | </template> |
| | | <div class="slds-modal__container"> |
| | | <header |
| | | class="slds-modal__header" |
| | | style="background-color: #f3f3f3" |
| | | > |
| | | <button |
| | | style="" |
| | | class="slds-button slds-button_icon slds-modal__close slds-button_icon-inverse" |
| | | title="Close" |
| | | onclick={closePop} |
| | | > |
| | | <lightning-icon |
| | | icon-name="utility:close" |
| | | <header class="slds-modal__header" style="background-color: #F3F3F3;"> |
| | | <button style="" class="slds-button slds-button_icon slds-modal__close slds-button_icon-inverse" title="Close" onclick={closePop}> |
| | | <lightning-icon icon-name="utility:close" |
| | | alternative-text="close" |
| | | variant="inverse" |
| | | size="small" |
| | | ></lightning-icon> |
| | | size="small" ></lightning-icon> |
| | | <span class="slds-assistive-text">Close</span> |
| | | </button> |
| | | <h2 |
| | | id="modal-heading-02" |
| | | class="slds-text-heading_medium slds-hyphenate" |
| | | > |
| | | 上传附件 |
| | | </h2> |
| | | <h2 id="modal-heading-02" class="slds-text-heading_medium slds-hyphenate">上传附件</h2> |
| | | </header> |
| | | <div |
| | | class="slds-modal__content slds-p-around_medium" |
| | | id="modal-content-id-2" |
| | | style="border: 1px solid #f3f3f3" |
| | | > |
| | | <div class="slds-modal__content slds-p-around_medium" id="modal-content-id-2" style="border: 1px solid #F3F3F3;"> |
| | | <div class="slds-m-top_medium slds-m-bottom_x-large"> |
| | | <div class="slds-p-around_medium lgc-bg"> |
| | | <lightning-input |
| | | type="file" |
| | | label="附件上传" |
| | | accept=".xlsx, .xls, .csv, .png, .doc, .docx, .pdf" |
| | | onchange={attChange} |
| | | ></lightning-input> |
| | | <lightning-input type="file" label="附件上传" accept=".xlsx, .xls, .csv, .png, .doc, .docx, .pdf" onchange={attChange}></lightning-input> |
| | | </div> |
| | | <p> |
| | | 已选择文件:{fileName} |
| | | |
| | | <p>已选择文件:{fileName} |
| | | <template if:true={attDelBtn}> |
| | | <a onclick={removeAtt}>移除</a> |
| | | </template> |
| | |
| | | </div> |
| | | </div> |
| | | <footer class="slds-modal__footer"> |
| | | <lightning-button |
| | | style="margin-left: 10px" |
| | | variant="neutral" |
| | | label="取消" |
| | | onclick={closePop} |
| | | ></lightning-button> |
| | | <lightning-button |
| | | style="margin-left: 10px" |
| | | variant="neutral" |
| | | label="上传" |
| | | onclick={handleSave} |
| | | ></lightning-button> |
| | | <lightning-button style="margin-left: 10px;" variant="neutral" label="取消" onclick={closePop}></lightning-button> |
| | | <lightning-button style="margin-left: 10px;" variant="neutral" label="上传" onclick={handleSave}></lightning-button> |
| | | </footer> |
| | | </div> |
| | | </section> |
| | |
| | | <tr> |
| | | <td> |
| | | <template if:true={isSaveShow}> |
| | | <lightning-button |
| | | label="保存" |
| | | onclick={saveConfirmJs} |
| | | style="width: 150px" |
| | | ></lightning-button> |
| | | <lightning-button label="保存" onclick={saveConfirmJs} |
| | | style="width: 150px"></lightning-button> |
| | | </template> |
| | | </td> |
| | | <td colspan="4"> |
| | |
| | | <tr> |
| | | <td></td> |
| | | <td> |
| | | |
| | | <template if:true={isEditShow}> |
| | | <lightning-button |
| | | label="编辑出库单" |
| | | onclick={EditConsumable} |
| | | style="width: 150px" |
| | | disabled={isEditDisabled} |
| | | ></lightning-button> |
| | | <lightning-button label="编辑出库单" onclick={EditConsumable} |
| | | style="width: 150px" disabled={isEditDisabled}></lightning-button> |
| | | </template> |
| | | </td> |
| | | |
| | | <td> |
| | | <template if:true={isDeliveryShow}> |
| | | <lightning-button |
| | | label="出货/销售" |
| | | onclick={GoodsDeliveryJs} |
| | | style="width: 150px" |
| | | disabled={isDeliveryDisabled} |
| | | ></lightning-button> |
| | | <lightning-button label="出货/销售" onclick={GoodsDeliveryJs} |
| | | style="width: 150px;" disabled={isDeliveryDisabled}></lightning-button> |
| | | </template> |
| | | </td> |
| | | |
| | | <td> |
| | | |
| | | <template if:true={isOpenToInvoiceShow}> |
| | | <lightning-button |
| | | label="开票" |
| | | onclick={openToInvoiceJs} |
| | | style="width: 150px" |
| | | disabled={isOpenToInvoiceDisabled} |
| | | ></lightning-button> |
| | | <lightning-button label="开票" onclick={openToInvoiceJs} style="width: 150px" |
| | | disabled={isOpenToInvoiceDisabled}></lightning-button> |
| | | </template> |
| | | </td> |
| | | </tr> |
| | |
| | | <td></td> |
| | | |
| | | <td> |
| | | |
| | | <template if:true={isPraseToPDFShow}> |
| | | <lightning-button |
| | | label="打印指示单" |
| | | onclick={PraseToPDFJs} |
| | | style="width: 150px" |
| | | disabled={isPraseToPDFDisabled} |
| | | ></lightning-button> |
| | | <lightning-button label="打印指示单" onclick={PraseToPDFJs} style="width: 150px" |
| | | disabled={isPraseToPDFDisabled}></lightning-button> |
| | | </template> |
| | | </td> |
| | | |
| | | <td> |
| | | |
| | | <template if:true={isOpenReportShow}> |
| | | <lightning-button |
| | | label="显示明细" |
| | | onclick={openReportJs} |
| | | style="width: 150px" |
| | | disabled={isOpenReportDisabled} |
| | | ></lightning-button> |
| | | <lightning-button label="显示明细" onclick={openReportJs} style="width: 150px" |
| | | disabled={isOpenReportDisabled}></lightning-button> |
| | | </template> |
| | | </td> |
| | | <td> |
| | | |
| | | <template if:true={isDeleteShow}> |
| | | <lightning-button |
| | | label="删除" |
| | | onclick={DeleteConsumable} |
| | | style="width: 150px" |
| | | disabled={isDeleteDisabled} |
| | | ></lightning-button> |
| | | <lightning-button label="删除" onclick={DeleteConsumable} style="width: 150px" |
| | | disabled={isDeleteDisabled}></lightning-button> |
| | | |
| | | </template> |
| | | </td> |
| | | <td></td> |
| | |
| | | <div lwc:dom="manual" class="resultDiv"></div> |
| | | <div draggable="false"> |
| | | <!-- SummonsStatus_c__c == '价格未定' --> |
| | | <template |
| | | if:true={summonsStatusPriceNotDetermined} |
| | | > |
| | | <lightning-record-edit-form |
| | | object-api-name="Consumable_order__c" |
| | | record-id={cocId} |
| | | onload={handleLoad} |
| | | > |
| | | <template if:true={summonsStatusPriceNotDetermined}> |
| | | <lightning-record-edit-form object-api-name="Consumable_order__c" record-id={cocId} |
| | | onload={handleLoad}> |
| | | <!-- 出库单号 出库单状态 --> |
| | | <lightning-layout multiple-rows="true"> |
| | | <template if:true={isSummonsFlag}> |
| | | <lightning-layout-item |
| | | size="1" |
| | | ></lightning-layout-item> |
| | | <lightning-layout-item size="1"></lightning-layout-item> |
| | | |
| | | <lightning-layout-item size="4"> |
| | | <lightning-output-field |
| | | field-name="Name" |
| | | class="hehe-layoutItem" |
| | | ></lightning-output-field> |
| | | <lightning-output-field field-name="Name" |
| | | class="hehe-layoutItem"></lightning-output-field> |
| | | </lightning-layout-item> |
| | | |
| | | <lightning-layout-item |
| | | size="1" |
| | | ></lightning-layout-item> |
| | | <lightning-layout-item size="1"></lightning-layout-item> |
| | | |
| | | <lightning-layout-item |
| | | class="hehe-layoutItem" |
| | | size="4" |
| | | > |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <lightning-output-field |
| | | field-name="SummonsStatus_c__c" |
| | | ></lightning-output-field> |
| | | field-name="SummonsStatus_c__c"></lightning-output-field> |
| | | </lightning-layout-item> |
| | | </template> |
| | | </lightning-layout> |
| | | |
| | | <!-- 目的 开票状态 --> |
| | | <lightning-layout multiple-rows="true"> |
| | | <lightning-layout-item |
| | | size="1" |
| | | ></lightning-layout-item> |
| | | <lightning-layout-item size="1"></lightning-layout-item> |
| | | |
| | | <lightning-layout-item |
| | | class="hehe-layoutItem" |
| | | size="4" |
| | | > |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <lightning-output-field |
| | | field-name="SummonsForDirction__c" |
| | | ></lightning-output-field> |
| | | field-name="SummonsForDirction__c"></lightning-output-field> |
| | | </lightning-layout-item> |
| | | |
| | | <lightning-layout-item |
| | | size="1" |
| | | ></lightning-layout-item> |
| | | <lightning-layout-item size="1"></lightning-layout-item> |
| | | |
| | | <lightning-layout-item |
| | | class="hehe-layoutItem" |
| | | size="4" |
| | | > |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <lightning-output-field |
| | | field-name="Billed_Status__c" |
| | | ></lightning-output-field> |
| | | field-name="Billed_Status__c"></lightning-output-field> |
| | | </lightning-layout-item> |
| | | </lightning-layout> |
| | | |
| | | <!-- 二级经销商 --> |
| | | <template |
| | | if:true={isSummonsForDirctionTwoShow} |
| | | > |
| | | <lightning-layout |
| | | multiple-rows="true" |
| | | > |
| | | <lightning-layout-item |
| | | size="1" |
| | | ></lightning-layout-item> |
| | | <template if:true={isSummonsForDirctionTwoShow}> |
| | | <lightning-layout multiple-rows="true"> |
| | | <lightning-layout-item size="1"></lightning-layout-item> |
| | | |
| | | <lightning-layout-item |
| | | class="hehe-layoutItem" |
| | | size="4" |
| | | > |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <lightning-output-field |
| | | field-name="Order_Dealer_Info__c" |
| | | ></lightning-output-field> |
| | | field-name="Order_Dealer_Info__c"></lightning-output-field> |
| | | </lightning-layout-item> |
| | | </lightning-layout> |
| | | </template> |
| | | |
| | | <!-- 客户名 发票--> |
| | | <lightning-layout multiple-rows="true"> |
| | | <lightning-layout-item |
| | | size="1" |
| | | ></lightning-layout-item> |
| | | |
| | | <lightning-layout-item |
| | | class="hehe-layoutItem" |
| | | size="4" |
| | | > |
| | | <lightning-output-field |
| | | class="hideHelpText" |
| | | field-name="ShipmentAccount__c" |
| | | ></lightning-output-field> |
| | | <lightning-layout-item size="1"></lightning-layout-item> |
| | | |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <lightning-output-field class="hideHelpText" |
| | | field-name="ShipmentAccount__c"></lightning-output-field> |
| | | </lightning-layout-item> |
| | | |
| | | <lightning-layout-item size="1"></lightning-layout-item> |
| | | |
| | | <lightning-layout-item |
| | | size="1" |
| | | ></lightning-layout-item> |
| | | |
| | | <lightning-layout-item |
| | | class="hehe-layoutItem" |
| | | size="4" |
| | | > |
| | | <lightning-input-field |
| | | data-field={ConInvoice_Code__c} |
| | | <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> |
| | | field-name="ConInvoice_Code__c"></lightning-input-field> |
| | | </lightning-layout-item> |
| | | </lightning-layout> |
| | | |
| | | <!-- 科室 出库金额 --> |
| | | <lightning-layout multiple-rows="true"> |
| | | <lightning-layout-item |
| | | size="1" |
| | | ></lightning-layout-item> |
| | | <lightning-layout-item size="1"></lightning-layout-item> |
| | | |
| | | <lightning-layout-item |
| | | class="hehe-layoutItem" |
| | | size="4" |
| | | > |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <lightning-output-field |
| | | field-name="Order_ForCustomerText__c" |
| | | ></lightning-output-field> |
| | | field-name="Order_ForCustomerText__c"></lightning-output-field> |
| | | </lightning-layout-item> |
| | | |
| | | <lightning-layout-item |
| | | size="1" |
| | | ></lightning-layout-item> |
| | | <lightning-layout-item size="1"></lightning-layout-item> |
| | | |
| | | <lightning-layout-item |
| | | class="hehe-layoutItem" |
| | | size="4" |
| | | > |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <lightning-output-field |
| | | field-name="Shipment_total_amount__c" |
| | | ></lightning-output-field> |
| | | field-name="Shipment_total_amount__c"></lightning-output-field> |
| | | </lightning-layout-item> |
| | | </lightning-layout> |
| | | |
| | | <!-- 没有确定价格 --> |
| | | <lightning-layout multiple-rows="true"> |
| | | <lightning-layout-item |
| | | size="1" |
| | | ></lightning-layout-item> |
| | | <lightning-layout-item size="1"></lightning-layout-item> |
| | | |
| | | <lightning-layout-item |
| | | class="hehe-layoutItem" |
| | | size="4" |
| | | > |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <lightning-output-field |
| | | field-name="NoConfirmedPrice__c" |
| | | ></lightning-output-field> |
| | | field-name="NoConfirmedPrice__c"></lightning-output-field> |
| | | </lightning-layout-item> |
| | | </lightning-layout> |
| | | </lightning-record-edit-form> |
| | | </template> |
| | | |
| | | <!-- SummonsStatus_c__c != '价格未定' --> |
| | | <template |
| | | if:false={summonsStatusPriceNotDetermined} |
| | | > |
| | | <lightning-record-edit-form |
| | | object-api-name="Consumable_order__c" |
| | | record-id={cocId} |
| | | onsubmit={handleSubmit} |
| | | onload={handleLoad} |
| | | > |
| | | <template if:false={summonsStatusPriceNotDetermined}> |
| | | <lightning-record-edit-form object-api-name="Consumable_order__c" record-id={cocId} |
| | | onsubmit={handleSubmit} onload={handleLoad}> |
| | | <!-- 出库单号 出库单状态 --> |
| | | <lightning-layout multiple-rows="true"> |
| | | <template if:true={isSummonsFlag}> |
| | | <lightning-layout-item |
| | | size="1" |
| | | ></lightning-layout-item> |
| | | <lightning-layout-item size="1"></lightning-layout-item> |
| | | |
| | | <lightning-layout-item |
| | | class="hehe-layoutItem" |
| | | size="4" |
| | | > |
| | | <lightning-output-field |
| | | field-name="Name" |
| | | ></lightning-output-field> |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <lightning-output-field field-name="Name"></lightning-output-field> |
| | | </lightning-layout-item> |
| | | |
| | | <lightning-layout-item |
| | | size="1" |
| | | ></lightning-layout-item> |
| | | <lightning-layout-item size="1"></lightning-layout-item> |
| | | |
| | | <lightning-layout-item |
| | | class="hehe-layoutItem" |
| | | size="4" |
| | | > |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <lightning-output-field |
| | | field-name="SummonsStatus_c__c" |
| | | ></lightning-output-field> |
| | | field-name="SummonsStatus_c__c"></lightning-output-field> |
| | | </lightning-layout-item> |
| | | </template> |
| | | </lightning-layout> |
| | | |
| | | <!-- 目的 二级经销商 --> |
| | | <lightning-layout multiple-rows="true"> |
| | | <lightning-layout-item |
| | | size="1" |
| | | ></lightning-layout-item> |
| | | <lightning-layout-item size="1"></lightning-layout-item> |
| | | |
| | | <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> |
| | | <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> |
| | | </lightning-layout-item> |
| | | |
| | | <lightning-layout-item |
| | | size="1" |
| | | ></lightning-layout-item> |
| | | <lightning-layout-item size="1"></lightning-layout-item> |
| | | |
| | | <lightning-layout-item |
| | | class="hehe-layoutItem" |
| | | size="4" |
| | | > |
| | | <lightning-combobox |
| | | data-field="secondaryDistributor" |
| | | name="secondaryDistributor" |
| | | label="二级经销商" |
| | | value={secondaryDistributor} |
| | | placeholder="请选择..." |
| | | options={secondaryDistributorOptions} |
| | | variant="label-inline" |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <lightning-combobox data-field="secondaryDistributor" |
| | | name="secondaryDistributor" label="二级经销商" |
| | | value={secondaryDistributor} placeholder="请选择..." |
| | | options={secondaryDistributorOptions} variant="label-inline" |
| | | onchange={dataChange} |
| | | disabled={isDisabledSecondaryDistributor} |
| | | ></lightning-combobox> |
| | | disabled={isDisabledSecondaryDistributor}></lightning-combobox> |
| | | </lightning-layout-item> |
| | | </lightning-layout> |
| | | |
| | | <!-- 客户名 经销商录入 --> |
| | | <lightning-layout multiple-rows="true"> |
| | | <lightning-layout-item |
| | | size="1" |
| | | ></lightning-layout-item> |
| | | <lightning-layout-item size="1"></lightning-layout-item> |
| | | |
| | | <lightning-layout-item |
| | | class="hehe-layoutItem" |
| | | size="4" |
| | | > |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <div |
| | | class="slds-form-element__control slds-input-has-icon slds-input-has-icon_right" |
| | | > |
| | | <lightning-icon |
| | | size="x-small" |
| | | class="slds-form-element__control slds-input-has-icon slds-input-has-icon_right"> |
| | | <lightning-icon size="x-small" |
| | | class="iconMargin slds-icon slds-input__icon slds-input__icon_right slds-icon-text-default" |
| | | icon-name="utility:search" |
| | | ></lightning-icon> |
| | | <lightning-input |
| | | type="text" |
| | | name="HospitalName" |
| | | label="客户名" |
| | | value={HospitalName} |
| | | variant="label-inline" |
| | | onclick={searchHospitalNameModal} |
| | | data-field="HospitalName" |
| | | icon-name="utility:search"></lightning-icon> |
| | | <lightning-input type="text" name="HospitalName" label="客户名" |
| | | value={HospitalName} variant="label-inline" |
| | | onclick={searchHospitalNameModal} data-field="HospitalName" |
| | | disabled={isDisabledHospitalName} |
| | | onchange={clearAgencyI} |
| | | ></lightning-input> |
| | | onchange={clearAgencyI}></lightning-input> |
| | | </div> |
| | | </lightning-layout-item> |
| | | |
| | | <lightning-layout-item |
| | | size="1" |
| | | ></lightning-layout-item> |
| | | <lightning-layout-item size="1"></lightning-layout-item> |
| | | |
| | | <lightning-layout-item |
| | | class="hehe-layoutItem" |
| | | size="4" |
| | | > |
| | | <template |
| | | if:true={isMutualTransferGoods} |
| | | > |
| | | <c-lex-lookup |
| | | onsearch={handleSearch} |
| | | onselectionchange={handleSelectionChange} |
| | | label="经销商(录入)" |
| | | variant="label-inline" |
| | | placeholder="搜索经销商" |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <template if:true={isMutualTransferGoods}> |
| | | <c-lex-lookup onsearch={handleSearch} |
| | | onselectionchange={handleSelectionChange} label="经销商(录入)" |
| | | variant="label-inline" placeholder="搜索经销商" |
| | | onisdisabledfordealertext={isDisabledForDealerText} |
| | | onblur={vpClear2Delay} |
| | | disabled={isDisabledForDealerText} |
| | | > |
| | | onblur={vpClear2Delay} disabled={isDisabledForDealerText}> |
| | | </c-lex-lookup> |
| | | </template> |
| | | <template |
| | | if:false={isMutualTransferGoods} |
| | | > |
| | | <lightning-input |
| | | type="text" |
| | | name="Order_ForDealerText__c" |
| | | label="经销商(录入)" |
| | | value={ForDealerText} |
| | | onchange={dataChange} |
| | | <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"> |
| | | </lightning-input> |
| | | </template> |
| | | </lightning-layout-item> |
| | |
| | | |
| | | <!-- 科室 总金额 --> |
| | | <lightning-layout multiple-rows="true"> |
| | | <lightning-layout-item |
| | | size="1" |
| | | ></lightning-layout-item> |
| | | <lightning-layout-item size="1"></lightning-layout-item> |
| | | |
| | | <lightning-layout-item |
| | | class="hehe-layoutItem" |
| | | size="4" |
| | | > |
| | | <lightning-input-field |
| | | onchange={dataChange} |
| | | data-field="ForCustomerText" |
| | | value={ForCustomerText} |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <lightning-input-field onchange={dataChange} |
| | | data-field="ForCustomerText" value={ForCustomerText} |
| | | field-name="Order_ForCustomerText__c" |
| | | disabled={isDisabledForCustomerText} |
| | | ></lightning-input-field> |
| | | disabled={isDisabledForCustomerText}></lightning-input-field> |
| | | </lightning-layout-item> |
| | | |
| | | <lightning-layout-item |
| | | size="1" |
| | | ></lightning-layout-item> |
| | | <lightning-layout-item size="1"></lightning-layout-item> |
| | | |
| | | <lightning-layout-item |
| | | class="hehe-layoutItem" |
| | | size="4" |
| | | > |
| | | <lightning-input |
| | | type="text" |
| | | name="sumPrice" |
| | | label="总金额" |
| | | value={sumPrice} |
| | | variant="label-inline" |
| | | onchange={dataChange} |
| | | data-field="sumPrice" |
| | | readonly |
| | | ></lightning-input> |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <lightning-input type="text" name="sumPrice" label="总金额" |
| | | value={sumPrice} variant="label-inline" onchange={dataChange} |
| | | data-field="sumPrice" readonly></lightning-input> |
| | | </lightning-layout-item> |
| | | </lightning-layout> |
| | | |
| | | <!-- 没有确定价格 --> |
| | | <lightning-layout multiple-rows="true"> |
| | | <lightning-layout-item |
| | | size="1" |
| | | ></lightning-layout-item> |
| | | <lightning-layout-item size="1"></lightning-layout-item> |
| | | |
| | | <lightning-layout-item |
| | | class="hehe-layoutItem" |
| | | size="4" |
| | | > |
| | | <lightning-input-field |
| | | value={NoConfirmedPrice} |
| | | field-name="NoConfirmedPrice__c" |
| | | data-field="NoConfirmedPrice" |
| | | onchange={dataChange} |
| | | ></lightning-input-field> |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <lightning-input-field value={NoConfirmedPrice} |
| | | field-name="NoConfirmedPrice__c" data-field="NoConfirmedPrice" |
| | | onchange={dataChange}></lightning-input-field> |
| | | </lightning-layout-item> |
| | | </lightning-layout> |
| | | </lightning-record-edit-form> |
| | |
| | | <div style="padding: 10px"> |
| | | <div lwc:dom="manual" class="resultDiv"></div> |
| | | <div draggable="false"> |
| | | <lightning-record-edit-form |
| | | object-api-name="Consumable_order__c" |
| | | record-id={cocId} |
| | | onload={handleLoad2} |
| | | > |
| | | <lightning-record-edit-form object-api-name="Consumable_order__c" record-id={cocId} |
| | | onload={handleLoad2}> |
| | | <!-- 出库单号 出库单状态 --> |
| | | <lightning-layout multiple-rows="true"> |
| | | <template if:true={isSummonsFlag}> |
| | | <lightning-layout-item |
| | | size="1" |
| | | ></lightning-layout-item> |
| | | <lightning-layout-item size="1"></lightning-layout-item> |
| | | |
| | | <lightning-layout-item size="4"> |
| | | <lightning-output-field |
| | | field-name="Name" |
| | | class="hehe-layoutItem" |
| | | ></lightning-output-field> |
| | | <lightning-output-field field-name="Name" |
| | | class="hehe-layoutItem"></lightning-output-field> |
| | | </lightning-layout-item> |
| | | |
| | | <lightning-layout-item |
| | | size="1" |
| | | ></lightning-layout-item> |
| | | <lightning-layout-item size="1"></lightning-layout-item> |
| | | |
| | | <lightning-layout-item size="4"> |
| | | <lightning-output-field |
| | | field-name="SummonsStatus_c__c" |
| | | class="hehe-layoutItem" |
| | | ></lightning-output-field> |
| | | <lightning-output-field field-name="SummonsStatus_c__c" |
| | | class="hehe-layoutItem"></lightning-output-field> |
| | | </lightning-layout-item> |
| | | </template> |
| | | </lightning-layout> |
| | | |
| | | <!-- 目的 开票状态 --> |
| | | <lightning-layout multiple-rows="true"> |
| | | <lightning-layout-item |
| | | size="1" |
| | | ></lightning-layout-item> |
| | | <lightning-layout-item size="1"></lightning-layout-item> |
| | | |
| | | <lightning-layout-item size="4"> |
| | | <lightning-output-field |
| | | field-name="SummonsForDirction__c" |
| | | class="hehe-layoutItem" |
| | | ></lightning-output-field> |
| | | <lightning-output-field field-name="SummonsForDirction__c" |
| | | class="hehe-layoutItem"></lightning-output-field> |
| | | </lightning-layout-item> |
| | | |
| | | <lightning-layout-item |
| | | size="1" |
| | | ></lightning-layout-item> |
| | | <lightning-layout-item size="1"></lightning-layout-item> |
| | | |
| | | <lightning-layout-item size="4"> |
| | | <lightning-output-field |
| | | field-name="Billed_Status__c" |
| | | class="hehe-layoutItem" |
| | | ></lightning-output-field> |
| | | <lightning-output-field field-name="Billed_Status__c" |
| | | class="hehe-layoutItem"></lightning-output-field> |
| | | </lightning-layout-item> |
| | | </lightning-layout> |
| | | |
| | | <!-- 二级经销商 --> |
| | | <template |
| | | if:true={isSummonsForDirctionTwoShow} |
| | | > |
| | | <template if:true={isSummonsForDirctionTwoShow}> |
| | | <lightning-layout multiple-rows="true"> |
| | | <lightning-layout-item |
| | | size="1" |
| | | ></lightning-layout-item> |
| | | <lightning-layout-item size="1"></lightning-layout-item> |
| | | |
| | | <lightning-layout-item size="4"> |
| | | <lightning-output-field |
| | | field-name="Order_Dealer_Info__c" |
| | | class="hehe-layoutItem" |
| | | ></lightning-output-field> |
| | | <lightning-output-field field-name="Order_Dealer_Info__c" |
| | | class="hehe-layoutItem"></lightning-output-field> |
| | | </lightning-layout-item> |
| | | </lightning-layout> |
| | | </template> |
| | | |
| | | <!-- 客户名 发票--> |
| | | <lightning-layout multiple-rows="true"> |
| | | <lightning-layout-item |
| | | size="1" |
| | | ></lightning-layout-item> |
| | | <lightning-layout-item size="1"></lightning-layout-item> |
| | | |
| | | <lightning-layout-item size="4"> |
| | | <lightning-output-field |
| | | class="hideHelpText" |
| | | field-name="ShipmentAccount__c" |
| | | ></lightning-output-field> |
| | | <lightning-output-field class="hideHelpText" |
| | | field-name="ShipmentAccount__c"></lightning-output-field> |
| | | </lightning-layout-item> |
| | | |
| | | <lightning-layout-item |
| | | size="1" |
| | | ></lightning-layout-item> |
| | | <lightning-layout-item size="1"></lightning-layout-item> |
| | | |
| | | <template if:true={isConInvoiceShow}> |
| | | <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> |
| | | <lightning-input-field data-field={ConInvoice_Code__c} |
| | | onchange={invoiceChange} field-name="ConInvoice_Code__c" |
| | | class="hehe-layoutItem"></lightning-input-field> |
| | | </lightning-layout-item> |
| | | </template> |
| | | </lightning-layout> |
| | | |
| | | <!-- 科室 出库金额 --> |
| | | <lightning-layout multiple-rows="true"> |
| | | <lightning-layout-item |
| | | size="1" |
| | | ></lightning-layout-item> |
| | | <lightning-layout-item size="1"></lightning-layout-item> |
| | | |
| | | <lightning-layout-item size="4"> |
| | | <lightning-output-field |
| | | field-name="Order_ForCustomerText__c" |
| | | class="hehe-layoutItem" |
| | | ></lightning-output-field> |
| | | <lightning-output-field field-name="Order_ForCustomerText__c" |
| | | class="hehe-layoutItem"></lightning-output-field> |
| | | </lightning-layout-item> |
| | | |
| | | <lightning-layout-item |
| | | size="1" |
| | | ></lightning-layout-item> |
| | | <lightning-layout-item size="1"></lightning-layout-item> |
| | | |
| | | <lightning-layout-item size="4"> |
| | | <lightning-output-field |
| | | field-name="Shipment_total_amount__c" |
| | | class="hehe-layoutItem" |
| | | ></lightning-output-field> |
| | | <lightning-output-field field-name="Shipment_total_amount__c" |
| | | class="hehe-layoutItem"></lightning-output-field> |
| | | </lightning-layout-item> |
| | | </lightning-layout> |
| | | |
| | | <!-- 没有确定价格 --> |
| | | <lightning-layout multiple-rows="true"> |
| | | <lightning-layout-item |
| | | size="1" |
| | | ></lightning-layout-item> |
| | | <lightning-layout-item size="1"></lightning-layout-item> |
| | | |
| | | <lightning-layout-item size="4"> |
| | | <lightning-output-field |
| | | field-name="NoConfirmedPrice__c" |
| | | class="hehe-layoutItem" |
| | | ></lightning-output-field> |
| | | <lightning-output-field field-name="NoConfirmedPrice__c" |
| | | class="hehe-layoutItem"></lightning-output-field> |
| | | </lightning-layout-item> |
| | | </lightning-layout> |
| | | </lightning-record-edit-form> |
| | |
| | | <div lwc:dom="manual" class="resultDiv"></div> |
| | | <div draggable="false"> |
| | | <lightning-layout multiple-rows> |
| | | <lightning-layout-item |
| | | padding="around-small" |
| | | > |
| | | <div |
| | | class="slds-grid slds-grid_vertical-align-center" |
| | | > |
| | | <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> |
| | | <lightning-layout-item padding="around-small"> |
| | | <div class="slds-grid slds-grid_vertical-align-center"> |
| | | <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> |
| | | </div> |
| | | |
| | | </lightning-layout-item> |
| | | <lightning-layout-item padding="around-small"> |
| | | <div class="slds-grid slds-grid_vertical-align-center"> |
| | | <div class="slds-form-element__label" style="width:70px">第3分类</div> |
| | | <lightning-combobox name="progress" label="第3分类" value={Category3} |
| | | variant="label-hidden" options={category3Options} onchange={dataChange} |
| | | data-field="Category3" style="min-width: 185px;"></lightning-combobox> |
| | | </div> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item |
| | | padding="around-small" |
| | | > |
| | | <div |
| | | class="slds-grid slds-grid_vertical-align-center" |
| | | > |
| | | <div |
| | | class="slds-form-element__label" |
| | | style="width: 70px" |
| | | > |
| | | 第3分类 |
| | | </div> |
| | | <lightning-combobox |
| | | name="progress" |
| | | label="第3分类" |
| | | value={Category3} |
| | | variant="label-hidden" |
| | | options={category3Options} |
| | | onchange={dataChange} |
| | | data-field="Category3" |
| | | style="min-width: 185px" |
| | | ></lightning-combobox> |
| | | <lightning-layout-item padding="around-small"> |
| | | <div class="slds-grid slds-grid_vertical-align-center"> |
| | | <div class="slds-form-element__label" style="width:70px">第4分类</div> |
| | | <lightning-combobox name="progress" label="第4分类" value={Category4} |
| | | variant="label-hidden" options={category4Options} onchange={dataChange} |
| | | data-field="Category4" style="min-width: 185px;"></lightning-combobox> |
| | | </div> |
| | | |
| | | </lightning-layout-item> |
| | | <lightning-layout-item |
| | | padding="around-small" |
| | | > |
| | | <div |
| | | class="slds-grid slds-grid_vertical-align-center" |
| | | > |
| | | <div |
| | | class="slds-form-element__label" |
| | | style="width: 70px" |
| | | > |
| | | 第4分类 |
| | | </div> |
| | | <lightning-combobox |
| | | name="progress" |
| | | label="第4分类" |
| | | value={Category4} |
| | | variant="label-hidden" |
| | | options={category4Options} |
| | | onchange={dataChange} |
| | | data-field="Category4" |
| | | style="min-width: 185px" |
| | | ></lightning-combobox> |
| | | </div> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item |
| | | padding="around-small" |
| | | > |
| | | <div |
| | | class="slds-grid slds-grid_vertical-align-center" |
| | | > |
| | | <div |
| | | class="slds-form-element__label" |
| | | style="width: 70px" |
| | | > |
| | | 第5分类 |
| | | </div> |
| | | <lightning-combobox |
| | | name="progress" |
| | | label="第5分类" |
| | | value={Category5} |
| | | variant="label-hidden" |
| | | onchange={dataChange} |
| | | data-field="Category5" |
| | | <lightning-layout-item padding="around-small"> |
| | | <div class="slds-grid slds-grid_vertical-align-center"> |
| | | <div class="slds-form-element__label" style="width:70px">第5分类</div> |
| | | <lightning-combobox name="progress" label="第5分类" value={Category5} |
| | | variant="label-hidden" onchange={dataChange} data-field="Category5" |
| | | options={category5Options} |
| | | style="min-width: 185px" |
| | | ></lightning-combobox> |
| | | style="min-width: 185px;"></lightning-combobox> |
| | | </div> |
| | | |
| | | </lightning-layout-item> |
| | | <template if:true={hasHosPro}> |
| | | <lightning-layout-item |
| | | padding="around-small" |
| | | > |
| | | <div |
| | | class="slds-grid slds-grid_vertical-align-center" |
| | | > |
| | | <div |
| | | class="slds-form-element__label" |
| | | > |
| | | 医院特价 |
| | | </div> |
| | | <lightning-combobox |
| | | name="progress" |
| | | label="医院特价" |
| | | value={outOutPattern} |
| | | variant="label-hidden" |
| | | options={outOutPatternOptionList} |
| | | onchange={handleChange} |
| | | ></lightning-combobox> |
| | | <lightning-layout-item padding="around-small"> |
| | | <div class="slds-grid slds-grid_vertical-align-center"> |
| | | <div class="slds-form-element__label">医院特价</div> |
| | | <lightning-combobox name="progress" label="医院特价" value={outOutPattern} |
| | | variant="label-hidden" options={outOutPatternOptionList} |
| | | onchange={handleChange}></lightning-combobox> |
| | | </div> |
| | | </lightning-layout-item> |
| | | </template> |
| | | |
| | | <lightning-layout-item |
| | | padding="around-small" |
| | | > |
| | | <div |
| | | class="slds-grid slds-grid_vertical-align-center" |
| | | > |
| | | <lightning-button |
| | | label="检索" |
| | | onclick={searchProductJs} |
| | | ></lightning-button> |
| | | <lightning-layout-item padding="around-small"> |
| | | <div class="slds-grid slds-grid_vertical-align-center"> |
| | | <lightning-button label="检索" onclick={searchProductJs}></lightning-button> |
| | | </div> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item |
| | | padding="around-small" |
| | | > |
| | | <div |
| | | class="slds-grid slds-grid_vertical-align-center" |
| | | > |
| | | <lightning-button |
| | | label="清空" |
| | | onclick={ClearJs} |
| | | ></lightning-button> |
| | | <lightning-layout-item padding="around-small"> |
| | | <div class="slds-grid slds-grid_vertical-align-center"> |
| | | <lightning-button label="清空" onclick={ClearJs}></lightning-button> |
| | | </div> |
| | | </lightning-layout-item> |
| | | </lightning-layout> |
| | |
| | | <div style="padding: 10px"> |
| | | <template if:true={EditAble}> |
| | | <template if:true={showTable}> |
| | | <c-lex-custom-lightning-datatable |
| | | key-field="Id" |
| | | data={data} |
| | | columns={columns} |
| | | onunitchange={handleUnitChange} |
| | | onshipmentnumber={handleShipmentNumber} |
| | | onshipmentunitprice={handleShipmentUnitPrice} |
| | | onrowselection={getSelectedRows} |
| | | selected-rows={selectedRows} |
| | | style=" |
| | | word-wrap: break-word; |
| | | word-break: break-all; |
| | | " |
| | | > |
| | | <c-lex-custom-lightning-datatable key-field="Id" data={data} columns={columns} |
| | | onunitchange={handleUnitChange} onshipmentnumber={handleShipmentNumber} |
| | | onshipmentunitprice={handleShipmentUnitPrice} onrowselection={getSelectedRows} |
| | | selected-rows={selectedRows} style="word-wrap:break-word; word-break:break-all; "> |
| | | </c-lex-custom-lightning-datatable> |
| | | </template> |
| | | </template> |
| | | |
| | | <template if:false={EditAble}> |
| | | <template if:true={showTable}> |
| | | <c-lex-custom-lightning-datatable |
| | | hide-checkbox-column |
| | | key-field="Id" |
| | | data={data} |
| | | columns={editColumns} |
| | | onunitchange={handleUnitChange} |
| | | <c-lex-custom-lightning-datatable hide-checkbox-column key-field="Id" data={data} |
| | | columns={editColumns} onunitchange={handleUnitChange} |
| | | onshipmentnumber={handleShipmentNumber} |
| | | onshipmentunitprice={handleShipmentUnitPrice} |
| | | onrowselection={getSelectedRows} |
| | | selected-rows={selectedRows} |
| | | style=" |
| | | word-wrap: break-word; |
| | | word-break: break-all; |
| | | " |
| | | > |
| | | onshipmentunitprice={handleShipmentUnitPrice} onrowselection={getSelectedRows} |
| | | selected-rows={selectedRows} style="word-wrap:break-word; word-break:break-all; "> |
| | | </c-lex-custom-lightning-datatable> |
| | | </template> |
| | | </template> |
| | |
| | | </p> |
| | | </div> |
| | | <div style="padding: 10px"> |
| | | <lightning-datatable |
| | | key-field="id" |
| | | data={consumableorderdetails2Records} |
| | | columns={consumableorderdetails2RecordsColumns} |
| | | hide-checkbox-column |
| | | > |
| | | <lightning-datatable key-field="id" data={consumableorderdetails2Records} |
| | | columns={consumableorderdetails2RecordsColumns} hide-checkbox-column> |
| | | </lightning-datatable> |
| | | </div> |
| | | </div> |
| | |
| | | <div lwc:dom="manual" class="resultDiv"></div> |
| | | <div draggable="false"> |
| | | <lightning-card title=""> |
| | | <lightning-layout |
| | | multiple-rows="true" |
| | | style="margin-top: -20px" |
| | | > |
| | | <lightning-layout multiple-rows="true" style="margin-top: -20px"> |
| | | <!-- <lightning-layout-item size="12"> |
| | | <lightning-input label="" name="file uploader" onchange={handleFilesChange} |
| | | type="file" accept={acceptedType}></lightning-input><br /> |
| | |
| | | </lightning-layout-item> --> |
| | | <lightning-layout-item size="5"> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item |
| | | padding="around-small" |
| | | > |
| | | <lightning-button |
| | | label="上传附件" |
| | | onclick={uploadOrder} |
| | | ></lightning-button> |
| | | <lightning-layout-item padding="around-small"> |
| | | <lightning-button label='上传附件' onclick={uploadOrder}></lightning-button> |
| | | </lightning-layout-item> |
| | | </lightning-layout> |
| | | <template if:true={showLoadingSpinner}> |
| | | <lightning-spinner |
| | | alternative-text="Uploading now" |
| | | ></lightning-spinner> |
| | | <lightning-spinner alternative-text="Uploading now"></lightning-spinner> |
| | | </template> |
| | | <footer style="margin-top: 20px"> |
| | | <lightning-datatable |
| | | key-field="id" |
| | | data={fileData} |
| | | columns={fileColumns} |
| | | hide-checkbox-column |
| | | > |
| | | <lightning-datatable key-field="id" data={fileData} columns={fileColumns} |
| | | hide-checkbox-column> |
| | | </lightning-datatable> |
| | | </footer> |
| | | </lightning-card> |
| | |
| | | <div lwc:dom="manual" class="resultDiv"></div> |
| | | <div draggable="false"> |
| | | <lightning-layout multiple-rows="true"> |
| | | <lightning-layout-item |
| | | class="hehe-layoutItem" |
| | | size="4" |
| | | > |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | </lightning-layout-item> |
| | | <template if:true={isSales}> |
| | | <lightning-layout-item |
| | | class="hehe-layoutItem" |
| | | size="4" |
| | | > |
| | | <lightning-button |
| | | label="销售" |
| | | onclick={SaveP} |
| | | style="margin-top: -10px" |
| | | ></lightning-button> |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <lightning-button label="销售" onclick={SaveP} |
| | | style="margin-top:-10px"></lightning-button> |
| | | </lightning-layout-item> |
| | | </template> |
| | | <template if:false={isSales}> |
| | | <lightning-layout-item |
| | | class="hehe-layoutItem" |
| | | size="4" |
| | | > |
| | | <lightning-button |
| | | label="出货" |
| | | onclick={SaveE} |
| | | ></lightning-button> |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <lightning-button label="出货" onclick={SaveE}></lightning-button> |
| | | </lightning-layout-item> |
| | | </template> |
| | | <lightning-layout-item |
| | | class="hehe-layoutItem" |
| | | size="4" |
| | | > |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | </lightning-layout-item> |
| | | </lightning-layout> |
| | | |
| | | <template if:true={isShowInformation}> |
| | | <div class="borderCss" style="margin-top: 5px"> |
| | | <div class="borderCss" style="margin-top: 5px;"> |
| | | <div class="headerDorderCss"> |
| | | <p style="font-size: 16px"> |
| | | <strong>出库单信息</strong> |
| | | </p> |
| | | </div> |
| | | <div style="padding: 10px"> |
| | | <div |
| | | lwc:dom="manual" |
| | | class="resultDiv" |
| | | ></div> |
| | | <div lwc:dom="manual" class="resultDiv"></div> |
| | | <div draggable="false"> |
| | | <lightning-record-edit-form |
| | | object-api-name="Consumable_order__c" |
| | | record-id={cocId} |
| | | onload={handleLoad2} |
| | | > |
| | | <lightning-layout |
| | | multiple-rows="true" |
| | | > |
| | | <lightning-layout-item |
| | | size="3" |
| | | padding="around-small" |
| | | > |
| | | <lightning-record-edit-form object-api-name="Consumable_order__c" |
| | | record-id={cocId} onload={handleLoad2}> |
| | | <lightning-layout multiple-rows="true"> |
| | | <lightning-layout-item size="3" padding="around-small"> |
| | | <!-- <lightning-output-field field-name="Name"></lightning-output-field> --> |
| | | <div |
| | | class="slds-grid slds-grid_vertical-align-center" |
| | | > |
| | | <div |
| | | class="slds-form-element__label" |
| | | style=" |
| | | padding: 0px; |
| | | " |
| | | > |
| | | 出库单号: |
| | | </div> |
| | | <lightning-output-field |
| | | field-name="Name" |
| | | variant="label-hidden" |
| | | ></lightning-output-field> |
| | | <div class="slds-grid slds-grid_vertical-align-center"> |
| | | <div class="slds-form-element__label" style="padding: 0px;">出库单号:</div> |
| | | <lightning-output-field field-name="Name" variant="label-hidden"></lightning-output-field> |
| | | </div> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item |
| | | size="4" |
| | | padding="around-small" |
| | | > |
| | | <lightning-layout-item size="4" padding="around-small"> |
| | | <!-- <lightning-output-field |
| | | field-name="ShipmentAccount__c" class="hideHelpText"></lightning-output-field> --> |
| | | <div |
| | | class="slds-grid slds-grid_vertical-align-center" |
| | | > |
| | | <div |
| | | class="slds-form-element__label" |
| | | style=" |
| | | padding: 0px; |
| | | " |
| | | > |
| | | 客户名: |
| | | <div class="slds-grid slds-grid_vertical-align-center"> |
| | | <div class="slds-form-element__label" style="padding: 0px;">客户名:</div> |
| | | <lightning-output-field field-name="ShipmentAccount__c" variant="label-hidden"></lightning-output-field> |
| | | </div> |
| | | <lightning-output-field |
| | | field-name="ShipmentAccount__c" |
| | | variant="label-hidden" |
| | | ></lightning-output-field> |
| | | </div> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item |
| | | size="2" |
| | | padding="around-small" |
| | | > |
| | | <lightning-layout-item size="2" padding="around-small"> |
| | | <!-- <lightning-output-field |
| | | field-name="Order_ForCustomerText__c"></lightning-output-field> --> |
| | | <div |
| | | class="slds-grid slds-grid_vertical-align-center" |
| | | > |
| | | <div |
| | | class="slds-form-element__label" |
| | | style=" |
| | | padding: 0px; |
| | | " |
| | | > |
| | | 科室: |
| | | <div class="slds-grid slds-grid_vertical-align-center"> |
| | | <div class="slds-form-element__label" style="padding: 0px;">科室:</div> |
| | | <lightning-output-field field-name="Order_ForCustomerText__c" variant="label-hidden"></lightning-output-field> |
| | | </div> |
| | | <lightning-output-field |
| | | field-name="Order_ForCustomerText__c" |
| | | variant="label-hidden" |
| | | ></lightning-output-field> |
| | | </div> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item |
| | | size="2" |
| | | padding="around-small" |
| | | > |
| | | <lightning-layout-item size="2" padding="around-small"> |
| | | <!-- <lightning-output-field |
| | | field-name="SummonsForDirction__c"></lightning-output-field> --> |
| | | <div |
| | | class="slds-grid slds-grid_vertical-align-center" |
| | | > |
| | | <div |
| | | class="slds-form-element__label" |
| | | style=" |
| | | padding: 0px; |
| | | " |
| | | > |
| | | 目的: |
| | | <div class="slds-grid slds-grid_vertical-align-center"> |
| | | <div class="slds-form-element__label" style="padding: 0px;">目的:</div> |
| | | <lightning-output-field field-name="SummonsForDirction__c" variant="label-hidden"></lightning-output-field> |
| | | </div> |
| | | <lightning-output-field |
| | | field-name="SummonsForDirction__c" |
| | | variant="label-hidden" |
| | | ></lightning-output-field> |
| | | </div> |
| | | </lightning-layout-item> |
| | | </lightning-layout> |
| | | </lightning-record-edit-form> |
| | |
| | | </p> |
| | | </div> |
| | | <div style="padding: 10px"> |
| | | <div |
| | | lwc:dom="manual" |
| | | class="resultDiv" |
| | | ></div> |
| | | <div lwc:dom="manual" class="resultDiv"></div> |
| | | <div draggable="false"> |
| | | <lightning-record-edit-form |
| | | object-api-name="Consumable_order__c" |
| | | record-id={cocId} |
| | | > |
| | | <lightning-layout |
| | | multiple-rows="true" |
| | | > |
| | | <lightning-layout-item |
| | | size="1" |
| | | ></lightning-layout-item> |
| | | <lightning-layout-item |
| | | padding="around-small" |
| | | > |
| | | <lightning-record-edit-form object-api-name="Consumable_order__c" |
| | | record-id={cocId}> |
| | | <lightning-layout multiple-rows="true"> |
| | | <lightning-layout-item size="1"></lightning-layout-item> |
| | | <lightning-layout-item padding="around-small"> |
| | | <!-- <lightning-textarea name="Barcode" label="BarCode号" |
| | | onchange={dataChange} variant="label-inline" |
| | | data-field="Barcode" |
| | | value={Barcode}></lightning-textarea> --> |
| | | |
| | | <div |
| | | class="slds-grid" |
| | | > |
| | | <div |
| | | class="slds-form-element__label" |
| | | > |
| | | BarCode号 |
| | | </div> |
| | | <lightning-textarea |
| | | name="Barcode" |
| | | label="BarCode号" |
| | | onchange={dataChange} |
| | | variant="label-hidden" |
| | | data-field="Barcode" |
| | | value={Barcode} |
| | | style=" |
| | | min-width: 400px; |
| | | " |
| | | ></lightning-textarea> |
| | | <div class="slds-grid"> |
| | | <div class="slds-form-element__label">BarCode号</div> |
| | | <lightning-textarea name="Barcode" label="BarCode号" |
| | | onchange={dataChange} variant="label-hidden" |
| | | data-field="Barcode" value={Barcode} |
| | | style="min-width: 400px;"></lightning-textarea> |
| | | </div> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item |
| | | padding="around-small" |
| | | > |
| | | <div |
| | | class="slds-grid slds-grid_vertical-align-center" |
| | | > |
| | | <div |
| | | class="slds-form-element__label" |
| | | > |
| | | <lightning-button |
| | | label="确认" |
| | | onclick={SalesearchProductJs} |
| | | ></lightning-button> |
| | | <lightning-layout-item padding="around-small"> |
| | | <div class="slds-grid slds-grid_vertical-align-center"> |
| | | <div class="slds-form-element__label"> |
| | | <lightning-button label="确认" |
| | | onclick={SalesearchProductJs}></lightning-button> |
| | | </div> |
| | | </div> |
| | | </lightning-layout-item> |
| | |
| | | </p> |
| | | </div> |
| | | <div style="padding: 10px"> |
| | | <div |
| | | lwc:dom="manual" |
| | | class="resultDiv" |
| | | ></div> |
| | | <div lwc:dom="manual" class="resultDiv"></div> |
| | | <div draggable="false"> |
| | | <lightning-datatable |
| | | key-field="id" |
| | | data={salesData} |
| | | columns={salesColumns} |
| | | <lightning-datatable key-field="id" data={salesData} columns={salesColumns} |
| | | hide-checkbox-column |
| | | style=" |
| | | word-wrap: break-word; |
| | | word-break: break-all; |
| | | " |
| | | > |
| | | style="word-wrap:break-word; word-break:break-all; "> |
| | | </lightning-datatable> |
| | | </div> |
| | | </div> |
| | |
| | | </p> |
| | | </div> |
| | | <div style="padding: 10px"> |
| | | <div |
| | | lwc:dom="manual" |
| | | class="resultDiv" |
| | | ></div> |
| | | <div lwc:dom="manual" class="resultDiv"></div> |
| | | <div draggable="false"> |
| | | <lightning-datatable |
| | | key-field="id" |
| | | data={salesErrorData} |
| | | columns={salesErrorColumns} |
| | | hide-checkbox-column |
| | | style=" |
| | | word-wrap: break-word; |
| | | word-break: break-all; |
| | | " |
| | | > |
| | | <lightning-datatable key-field="id" data={salesErrorData} |
| | | columns={salesErrorColumns} hide-checkbox-column |
| | | style="word-wrap:break-word; word-break:break-all; "> |
| | | </lightning-datatable> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <lightning-layout multiple-rows="true"> |
| | | <lightning-layout-item |
| | | class="hehe-layoutItem" |
| | | size="4" |
| | | > |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | </lightning-layout-item> |
| | | <template if:true={isSales}> |
| | | <lightning-layout-item |
| | | class="hehe-layoutItem" |
| | | size="4" |
| | | > |
| | | <lightning-button |
| | | label="销售" |
| | | onclick={SaveP} |
| | | ></lightning-button> |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <lightning-button label="销售" onclick={SaveP}></lightning-button> |
| | | </lightning-layout-item> |
| | | </template> |
| | | <template if:false={isSales}> |
| | | <lightning-layout-item |
| | | class="hehe-layoutItem" |
| | | size="4" |
| | | > |
| | | <lightning-button |
| | | label="出货" |
| | | onclick={SaveE} |
| | | ></lightning-button> |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <lightning-button label="出货" onclick={SaveE}></lightning-button> |
| | | </lightning-layout-item> |
| | | </template> |
| | | <lightning-layout-item |
| | | class="hehe-layoutItem" |
| | | size="4" |
| | | > |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | </lightning-layout-item> |
| | | </lightning-layout> |
| | | </template> |
| | |
| | | </template> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | </template> |