| | |
| | | <div class="slds-backdrop slds-backdrop_open"></div> |
| | | </template> |
| | | |
| | | <!-- 上传附件弹窗 --> |
| | | <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;"> |
| | | <template if:true={showPopSpinner}> |
| | | <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" |
| | | alternative-text="close" |
| | | variant="inverse" |
| | | 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> |
| | | </header> |
| | | <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> |
| | | </div> |
| | | <p>已选择文件:{fileName} |
| | | <template if:true={attDelBtn}> |
| | | <a onclick={removeAtt}>移除</a> |
| | | </template> |
| | | </p> |
| | | </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> |
| | | </footer> |
| | | </div> |
| | | </section> |
| | | <div class="slds-backdrop slds-backdrop_open"></div> |
| | | </template> |
| | | |
| | | <div class="outerBorderCss"> |
| | | <div style="padding: 5px"> |
| | | <template if:false={isShippingSales}> |
| | |
| | | <div style="padding: 10px"> |
| | | <div lwc:dom="manual" class="resultDiv"></div> |
| | | <div draggable="false"> |
| | | <!-- <lightning-button label="保存" onclick={neworderhead} |
| | | style="margin-left: 100px;"></lightning-button> --> |
| | | <table> |
| | | <colgroup> |
| | | <col width="150px" /> |
| | |
| | | <col width="100px" /> |
| | | </colgroup> |
| | | <tr> |
| | | <td></td> |
| | | <!-- <td colspan="4"><apex:commandButton onclick="saveConfirmJs('{!coc.SummonsStatus_c__c}');" value="保存" style="width:150px" rerender="dummy" rendered="{!(EditDelCommitBtnDisabled||EditAble)}"/></td> --> |
| | | <td colspan="4"> |
| | | <td> |
| | | <template if:true={isSaveShow}> |
| | | <lightning-button label="保存" onclick={saveConfirmJs} |
| | | style="width: 150px"></lightning-button> |
| | | </template> |
| | | </td> |
| | | <td colspan="4"> |
| | | <!-- <template if:true={isSaveShow}> |
| | | <lightning-button label="保存" onclick={saveConfirmJs} |
| | | style="width: 150px"></lightning-button> |
| | | </template> --> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td></td> |
| | | <td> |
| | | <!-- <apex:commandButton onclick="EditConsumable();" value="编辑出库单" style="width:150px" rerender="dummy" rendered="{!!(EditDelCommitBtnDisabled||EditAble)}" disabled="{!IF(coc.SummonsStatus_c__c='已完成',true,false)}"/> --> |
| | | |
| | | <template if:true={isEditShow}> |
| | | <lightning-button label="编辑出库单" onclick={EditConsumable} |
| | | style="width: 150px" disabled={isEditDisabled}></lightning-button> |
| | | </template> |
| | | </td> |
| | | <!--CHAN-B65CAZ 20181105 UpdateStart--> |
| | | <!-- <td ><apex:commandButton onclick="CommitConsumable();" value="提交出库单" style="width:150px" rerender="dummy" rendered="{!!(EditDelCommitBtnDisabled||EditAble)}" disabled="{!IF(coc.SummonsStatus_c__c='批准'||coc.SummonsStatus_c__c='已销售待上传纳品书'||coc.SummonsStatus_c__c='出库单已打印'||coc.SummonsStatus_c__c='已完成',true,false)}"/></td> --> |
| | | |
| | | <td> |
| | | <!-- <apex:commandButton onclick="GoodsDeliveryJs();" value="出货/销售" style="width:150px" rerender="dummy" rendered="{!!(EditDelCommitBtnDisabled||EditAble)}" disabled="{!IF(coc.SummonsStatus_c__c='已销售待上传纳品书'||coc.SummonsStatus_c__c='已完成'||coc.SummonsStatus_c__c='价格未定',true,false)}"/> --> |
| | | <template if:true={isDeliveryShow}> |
| | | <lightning-button label="出货/销售" onclick={GoodsDeliveryJs} |
| | | style="width: 150px" disabled={isDeliveryDisabled}></lightning-button> |
| | | style="width: 150px;" disabled={isDeliveryDisabled}></lightning-button> |
| | | </template> |
| | | </td> |
| | | <!-- CHAN-B65CAZ 20181105 UpdateEnd--> |
| | | |
| | | <td> |
| | | <!-- <apex:commandButton onclick="openToInvoiceJs();return false;" value="开票" style="width:150px" rerender="dummy" rendered="{!!(EditDelCommitBtnDisabled||EditAble)}" disabled="{!IF(((coc.Billed_Status__c !='全部开票' &&coc.SummonsStatus_c__c='已完成') || coc.Onchange_order__c = true) && coc.SummonsForDirction__c!='互相调货',false,true)}"/> --> |
| | | |
| | | <template if:true={isOpenToInvoiceShow}> |
| | | <lightning-button label="开票" onclick={openToInvoiceJs} style="width: 150px" |
| | | disabled={isOpenToInvoiceDisabled}></lightning-button> |
| | |
| | | </tr> |
| | | <tr> |
| | | <td></td> |
| | | <!--CHAN-B65CAZ 20181105 UpdateStart--> |
| | | |
| | | <td> |
| | | <!-- <apex:commandButton onclick="PraseToPDFJs();" value="打印指示单" style="width:150px" rerender="dummy" rendered="{!!(EditDelCommitBtnDisabled||EditAble)}" disabled="{!IF(coc.SummonsStatus_c__c='已销售待上传纳品书'||coc.SummonsStatus_c__c='批准'||coc.SummonsStatus_c__c='出库单已打印'||coc.SummonsStatus_c__c='草案中',false,true)}"/> --> |
| | | |
| | | <template if:true={isPraseToPDFShow}> |
| | | <lightning-button label="打印指示单" onclick={PraseToPDFJs} style="width: 150px" |
| | | disabled={isPraseToPDFDisabled}></lightning-button> |
| | | </template> |
| | | </td> |
| | | <!-- CHAN-B65CAZ 20181105 UpdateEnd--> |
| | | |
| | | <td> |
| | | <!-- <apex:commandButton onclick="openReportJs(); return false;" value="显示明细" style="width:150px" rerender="dummy" rendered="{!!(EditDelCommitBtnDisabled||EditAble)}" disabled="{!IF(coc.Billed_Status__c !='还没开票' || coc.SummonsStatus_c__c='已完成',false,true)}"/> --> |
| | | |
| | | <template if:true={isOpenReportShow}> |
| | | <lightning-button label="显示明细" onclick={openReportJs} style="width: 150px" |
| | | disabled={isOpenReportDisabled}></lightning-button> |
| | | </template> |
| | | </td> |
| | | <td> |
| | | <!-- <apex:commandButton onclick="DeleteConsumable();" value="删除" style="width:150px" rerender="dummy" rendered="{!!(EditDelCommitBtnDisabled||EditAble)}" disabled="{!IF(coc.SummonsStatus_c__c='已销售待上传纳品书'||coc.SummonsStatus_c__c='价格未定'||coc.SummonsStatus_c__c='批准'||coc.SummonsStatus_c__c='出库单已打印'||coc.SummonsStatus_c__c='已完成',true,false)}"/> --> |
| | | |
| | | <template if:true={isDeleteShow}> |
| | | <lightning-button label="删除" onclick={DeleteConsumable} style="width: 150px" |
| | | disabled={isDeleteDisabled}></lightning-button> |
| | | <!-- <lightning-button label="删除" onclick={DeleteConsumable} style="width: 150px"></lightning-button> --> |
| | | |
| | | </template> |
| | | </td> |
| | | <td></td> |
| | |
| | | <div draggable="false"> |
| | | <!-- SummonsStatus_c__c == '价格未定' --> |
| | | <template if:true={summonsStatusPriceNotDetermined}> |
| | | <lightning-record-edit-form object-api-name="Consumable_order__c" record-id={cocId}> |
| | | <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 class="hehe-layoutItem" size="4"> |
| | | <lightning-output-field field-name="Name"></lightning-output-field> |
| | | <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-layout-item> |
| | | |
| | | <lightning-layout-item size="1"></lightning-layout-item> |
| | | |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <lightning-output-field |
| | | field-name="SummonsStatus_c__c"></lightning-output-field> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | </lightning-layout-item> |
| | | </template> |
| | | </lightning-layout> |
| | | |
| | | <!-- 目的 开票状态 --> |
| | | <lightning-layout multiple-rows="true"> |
| | | <lightning-layout-item size="1"></lightning-layout-item> |
| | | |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <lightning-output-field |
| | | field-name="SummonsForDirction__c"></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"></lightning-output-field> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | </lightning-layout-item> |
| | | </lightning-layout> |
| | | |
| | | <!-- 二级经销商 --> |
| | | <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-output-field |
| | | field-name="Order_Dealer_Info__c"></lightning-output-field> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | </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 |
| | | <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 class="hehe-layoutItem" size="4"> |
| | | <lightning-input-field data-field={ConInvoice_Code__c} |
| | | onchange={invoiceChange} |
| | | field-name="ConInvoice_Code__c"></lightning-input-field> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | </lightning-layout-item> |
| | | </lightning-layout> |
| | | |
| | | <!-- 科室 出库金额 --> |
| | | <lightning-layout multiple-rows="true"> |
| | | <lightning-layout-item size="1"></lightning-layout-item> |
| | | |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <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 class="hehe-layoutItem" size="4"> |
| | | <lightning-output-field |
| | | field-name="Shipment_total_amount__c"></lightning-output-field> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | </lightning-layout-item> |
| | | </lightning-layout> |
| | | |
| | | <!-- 没有确定价格 --> |
| | | <lightning-layout multiple-rows="true"> |
| | | <lightning-layout-item size="1"></lightning-layout-item> |
| | | |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <lightning-output-field |
| | | field-name="NoConfirmedPrice__c"></lightning-output-field> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | </lightning-layout-item> |
| | | </lightning-layout> |
| | | </lightning-record-edit-form> |
| | |
| | | <!-- SummonsStatus_c__c != '价格未定' --> |
| | | <template if:false={summonsStatusPriceNotDetermined}> |
| | | <lightning-record-edit-form object-api-name="Consumable_order__c" record-id={cocId} |
| | | onsubmit={handleSubmit}> |
| | | onsubmit={handleSubmit} onload={handleLoad}> |
| | | <!-- 出库单号 出库单状态 --> |
| | | <lightning-layout multiple-rows="true"> |
| | | <template if:true={isSummonsFlag}> |
| | | <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> |
| | | |
| | | <lightning-layout-item size="1"></lightning-layout-item> |
| | | |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <lightning-output-field |
| | | field-name="SummonsStatus_c__c"></lightning-output-field> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | </lightning-layout-item> |
| | | </template> |
| | | </lightning-layout> |
| | | |
| | | <!-- 目的 二级经销商 --> |
| | | <lightning-layout multiple-rows="true"> |
| | | <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> |
| | | |
| | | <lightning-layout-item size="1"></lightning-layout-item> |
| | | |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <lightning-combobox data-field="secondaryDistributor" |
| | | name="secondaryDistributor" label="二级经销商" |
| | |
| | | onchange={dataChange} |
| | | disabled={isDisabledSecondaryDistributor}></lightning-combobox> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | </lightning-layout-item> |
| | | </lightning-layout> |
| | | |
| | | <!-- 客户名 经销商录入 --> |
| | | <lightning-layout multiple-rows="true"> |
| | | <lightning-layout-item size="1"></lightning-layout-item> |
| | | |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <div |
| | | class="slds-form-element__control slds-input-has-icon slds-input-has-icon_right"> |
| | |
| | | onchange={clearAgencyI}></lightning-input> |
| | | </div> |
| | | </lightning-layout-item> |
| | | |
| | | <lightning-layout-item size="1"></lightning-layout-item> |
| | | |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <!-- <lightning-input-field onfocus={setVisitorPlace} onblur={vpClear2Delay} data-field="ForDealerText" |
| | | value={ForDealerText} field-name="Order_ForDealerText__c" |
| | | disabled={isDisabledForDealerText}></lightning-input-field> --> |
| | | <!-- <lightning-input type="text" |
| | | name="Order_ForDealerText__c" |
| | | label="经销商(录入)" |
| | | value={ForDealerText} |
| | | onfocus={setVisitorPlace} |
| | | onblur={vpClear2Delay} |
| | | data-field="Order_ForDealerText__c" |
| | | disabled={isDisabledForDealerText} |
| | | variant="label-inline"> |
| | | </lightning-input> --> |
| | | <!-- <c-lookup onsearch={handleSearch} onselectionchange={handleSelectionChange} |
| | | label="经销商(录入)" variant="label-inline" placeholder="搜索经销商"> |
| | | </c-lookup> --> |
| | | <template if:true={isMutualTransferGoods}> |
| | | <c-lex-lookup onsearch={handleSearch} |
| | | onselectionchange={handleSelectionChange} label="经销商(录入)" |
| | | variant="label-inline" placeholder="搜索经销商" |
| | | onisdisabledfordealertext={isDisabledForDealerText} |
| | | onblur={vpClear2Delay} disabled={isDisabledForDealerText}> |
| | | </c-lex-lookup> |
| | | </template> |
| | |
| | | </lightning-input> |
| | | </template> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | </lightning-layout-item> |
| | | </lightning-layout> |
| | | |
| | | <!-- 科室 总金额 --> |
| | | <lightning-layout multiple-rows="true"> |
| | | <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} |
| | | field-name="Order_ForCustomerText__c" |
| | | disabled={isDisabledForCustomerText}></lightning-input-field> |
| | | </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> |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | </lightning-layout-item> |
| | | </lightning-layout> |
| | | |
| | | <!-- 没有确定价格 --> |
| | | <lightning-layout multiple-rows="true"> |
| | | <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> |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | </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}> |
| | | <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 class="hehe-layoutItem" size="4"> |
| | | <lightning-output-field field-name="Name"></lightning-output-field> |
| | | <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-layout-item> |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <lightning-output-field |
| | | field-name="SummonsStatus_c__c"></lightning-output-field> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | |
| | | <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-layout-item> |
| | | </template> |
| | | </lightning-layout> |
| | | |
| | | <!-- 目的 开票状态 --> |
| | | <lightning-layout multiple-rows="true"> |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <lightning-output-field |
| | | field-name="SummonsForDirction__c"></lightning-output-field> |
| | | <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-layout-item> |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <lightning-output-field |
| | | field-name="Billed_Status__c"></lightning-output-field> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | |
| | | <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-layout-item> |
| | | </lightning-layout> |
| | | |
| | | <!-- 二级经销商 --> |
| | | <template if:true={isSummonsForDirctionTwoShow}> |
| | | <lightning-layout multiple-rows="true"> |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <lightning-output-field |
| | | field-name="Order_Dealer_Info__c"></lightning-output-field> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <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-layout-item> |
| | | </lightning-layout> |
| | | </template> |
| | | |
| | | <!-- 客户名 发票--> |
| | | <lightning-layout multiple-rows="true"> |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <lightning-output-field |
| | | <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-layout-item> |
| | | |
| | | <lightning-layout-item size="1"></lightning-layout-item> |
| | | |
| | | <template if:true={isConInvoiceShow}> |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <lightning-layout-item 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="hehe-layoutItem"></lightning-input-field> |
| | | </lightning-layout-item> |
| | | </template> |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | </lightning-layout-item> |
| | | </lightning-layout> |
| | | |
| | | <!-- 科室 出库金额 --> |
| | | <lightning-layout multiple-rows="true"> |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <lightning-output-field |
| | | field-name="Order_ForCustomerText__c"></lightning-output-field> |
| | | <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-layout-item> |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <lightning-output-field |
| | | field-name="Shipment_total_amount__c"></lightning-output-field> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | |
| | | <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-layout-item> |
| | | </lightning-layout> |
| | | |
| | | <!-- 没有确定价格 --> |
| | | <lightning-layout multiple-rows="true"> |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <lightning-output-field |
| | | field-name="NoConfirmedPrice__c"></lightning-output-field> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <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-layout-item> |
| | | </lightning-layout> |
| | | </lightning-record-edit-form> |
| | |
| | | </div> |
| | | |
| | | </lightning-layout-item> |
| | | <lightning-layout-item size="2" padding="around-small"> |
| | | <lightning-layout-item padding="around-small"> |
| | | <div class="slds-grid slds-grid_vertical-align-center"> |
| | | <div class="slds-form-element__label">第3分类</div> |
| | | <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: 100px;"></lightning-combobox> |
| | | data-field="Category3" style="min-width: 185px;"></lightning-combobox> |
| | | </div> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item size="2" padding="around-small"> |
| | | <lightning-layout-item padding="around-small"> |
| | | <div class="slds-grid slds-grid_vertical-align-center"> |
| | | <div class="slds-form-element__label">第4分类</div> |
| | | <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: 100px;"></lightning-combobox> |
| | | data-field="Category4" style="min-width: 185px;"></lightning-combobox> |
| | | </div> |
| | | |
| | | </lightning-layout-item> |
| | | <lightning-layout-item size="2" padding="around-small"> |
| | | <lightning-layout-item padding="around-small"> |
| | | <div class="slds-grid slds-grid_vertical-align-center"> |
| | | <div class="slds-form-element__label">第5分类</div> |
| | | <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: 100px;"></lightning-combobox> |
| | | options={category5Options} |
| | | style="min-width: 185px;"></lightning-combobox> |
| | | </div> |
| | | |
| | | </lightning-layout-item> |
| | |
| | | </lightning-layout-item> |
| | | <lightning-layout-item padding="around-small"> |
| | | <div class="slds-grid slds-grid_vertical-align-center"> |
| | | <lightning-button label="清空" onclick={neworderhead}></lightning-button> |
| | | <lightning-button label="清空" onclick={ClearJs}></lightning-button> |
| | | </div> |
| | | </lightning-layout-item> |
| | | </lightning-layout> |
| | |
| | | <div style="padding: 10px"> |
| | | <div lwc:dom="manual" class="resultDiv"></div> |
| | | <div draggable="false"> |
| | | <!-- <lightning-file-upload |
| | | label="上传附件" |
| | | name="fileUploader" |
| | | onuploadfinished={handleUploadFinishedEvent} |
| | | record-id={ESetid} |
| | | multiple> |
| | | </lightning-file-upload> --> |
| | | <!-- <c-poc-custom-comp |
| | | record-id={ESetid} |
| | | acceptedformats={acceptedFormats}> |
| | | </c-poc-custom-comp> --> |
| | | <lightning-card title=""> |
| | | <lightning-layout multiple-rows="true" style="margin-top: -20px"> |
| | | <lightning-layout-item size="12"> |
| | | <!-- <lightning-layout-item size="12"> |
| | | <lightning-input label="" name="file uploader" onchange={handleFilesChange} |
| | | type="file" accept={acceptedType}></lightning-input><br /> |
| | | <div class="slds-text-body_small"> |
| | |
| | | <lightning-layout-item> |
| | | <lightning-button label={UploadFile} |
| | | onclick={handleSave}></lightning-button> |
| | | </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> |
| | | </lightning-layout> |
| | | <template if:true={showLoadingSpinner}> |
| | |
| | | </lightning-layout-item> |
| | | <template if:true={isSales}> |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <lightning-button label="销售" onclick={SaveP}></lightning-button> |
| | | <lightning-button label="销售" onclick={SaveP} |
| | | style="margin-top:-10px"></lightning-button> |
| | | </lightning-layout-item> |
| | | </template> |
| | | <template if:false={isSales}> |
| | |
| | | </lightning-layout> |
| | | |
| | | <template if:true={isShowInformation}> |
| | | <div class="borderCss"> |
| | | <div class="borderCss" style="margin-top: 5px;"> |
| | | <div class="headerDorderCss"> |
| | | <p style="font-size: 16px"> |
| | | <strong>出库单信息</strong> |
| | |
| | | <div lwc:dom="manual" class="resultDiv"></div> |
| | | <div draggable="false"> |
| | | <lightning-record-edit-form object-api-name="Consumable_order__c" |
| | | record-id={cocId}> |
| | | record-id={cocId} onload={handleLoad2}> |
| | | <lightning-layout multiple-rows="true"> |
| | | <lightning-layout-item class="hehe-layoutItem" flexibility="auto"> |
| | | <lightning-output-field |
| | | field-name="Name"></lightning-output-field> |
| | | <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> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item class="hehe-layoutItem" flexibility="auto"> |
| | | <lightning-output-field |
| | | field-name="ShipmentAccount__c"></lightning-output-field> |
| | | <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> |
| | | <lightning-output-field field-name="ShipmentAccount__c" variant="label-hidden"></lightning-output-field> |
| | | </div> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item class="hehe-layoutItem" flexibility="auto"> |
| | | <lightning-output-field |
| | | field-name="Order_ForCustomerText__c"></lightning-output-field> |
| | | <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> |
| | | <lightning-output-field field-name="Order_ForCustomerText__c" variant="label-hidden"></lightning-output-field> |
| | | </div> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item class="hehe-layoutItem" flexibility="auto"> |
| | | <lightning-output-field |
| | | field-name="SummonsForDirction__c"></lightning-output-field> |
| | | <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> |
| | | <lightning-output-field field-name="SummonsForDirction__c" variant="label-hidden"></lightning-output-field> |
| | | </div> |
| | | </lightning-layout-item> |
| | | </lightning-layout> |
| | | </lightning-record-edit-form> |
| | |
| | | <lightning-record-edit-form object-api-name="Consumable_order__c" |
| | | record-id={cocId}> |
| | | <lightning-layout multiple-rows="true"> |
| | | <lightning-layout-item class="hehe-layoutItem" size="6"> |
| | | <lightning-textarea name="Barcode" label="BarCode号" |
| | | <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> |
| | | 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> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item class="hehe-layoutItem" |
| | | size="1"></lightning-layout-item> |
| | | <lightning-layout-item class="hehe-layoutItem" size="2"> |
| | | <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> |
| | | </lightning-layout> |
| | | </lightning-record-edit-form> |
| | |
| | | <div lwc:dom="manual" class="resultDiv"></div> |
| | | <div draggable="false"> |
| | | <lightning-datatable key-field="id" data={salesData} columns={salesColumns} |
| | | hide-checkbox-column> |
| | | hide-checkbox-column |
| | | style="word-wrap:break-word; word-break:break-all; "> |
| | | </lightning-datatable> |
| | | </div> |
| | | </div> |
| | |
| | | <div lwc:dom="manual" class="resultDiv"></div> |
| | | <div draggable="false"> |
| | | <lightning-datatable key-field="id" data={salesErrorData} |
| | | columns={salesErrorColumns} hide-checkbox-column> |
| | | columns={salesErrorColumns} hide-checkbox-column |
| | | style="word-wrap:break-word; word-break:break-all; "> |
| | | </lightning-datatable> |
| | | </div> |
| | | </div> |