| | |
| | | |
| | | <div class="outerBorderCss"> |
| | | <div style="padding: 5px"> |
| | | <!-- 按钮 --> |
| | | <div class="borderCss"> |
| | | <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="200px" /> |
| | | <col width="200px" /> |
| | | <col width="200px" /> |
| | | <col width="200px" /> |
| | | <col width="200px" /> |
| | | <col width="90px" /> |
| | | <col width="100px" /> |
| | | <col width="10px" /> |
| | | <col width="85px" /> |
| | | <col width="100px" /> |
| | | <col width="10px" /> |
| | | <col width="70px" /> |
| | | <col width="100px" /> |
| | | </colgroup> |
| | | <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"> |
| | | <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> |
| | | </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> |
| | | </template> |
| | | </td> |
| | | </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> |
| | | </template> |
| | | </td> |
| | | <td></td> |
| | | </tr> |
| | | </table> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <!-- 出库单信息 EditAble = true --> |
| | | <template if:true={EditAble}> |
| | | <template if:false={isShippingSales}> |
| | | <!-- 按钮 --> |
| | | <div class="borderCss"> |
| | | <div class="headerDorderCss"> |
| | | <p style="font-size: 16px"> |
| | | <strong>出库单信息</strong> |
| | | </p> |
| | | </div> |
| | | <div style="padding: 10px"> |
| | | <div lwc:dom="manual" class="resultDiv"></div> |
| | | <div draggable="false"> |
| | | <!-- SummonsStatus_c__c == '价格未定' --> |
| | | <template if:true={summonsStatusPriceNotDetermined}> |
| | | <!-- <lightning-button label="保存" onclick={neworderhead} |
| | | style="margin-left: 100px;"></lightning-button> --> |
| | | <table> |
| | | <colgroup> |
| | | <col width="150px" /> |
| | | <col width="200px" /> |
| | | <col width="200px" /> |
| | | <col width="200px" /> |
| | | <col width="200px" /> |
| | | <col width="200px" /> |
| | | <col width="90px" /> |
| | | <col width="100px" /> |
| | | <col width="10px" /> |
| | | <col width="85px" /> |
| | | <col width="100px" /> |
| | | <col width="10px" /> |
| | | <col width="70px" /> |
| | | <col width="100px" /> |
| | | </colgroup> |
| | | <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"> |
| | | <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> |
| | | </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> |
| | | </template> |
| | | </td> |
| | | </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> |
| | | </tr> |
| | | </table> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <!-- 出库单信息 EditAble = true --> |
| | | <template if:true={EditAble}> |
| | | <div class="borderCss"> |
| | | <div class="headerDorderCss"> |
| | | <p style="font-size: 16px"> |
| | | <strong>出库单信息</strong> |
| | | </p> |
| | | </div> |
| | | <div style="padding: 10px"> |
| | | <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}> |
| | | <!-- 出库单号 出库单状态 --> |
| | | <lightning-layout multiple-rows="true"> |
| | | <template if:true={isSummonsFlag}> |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <lightning-output-field field-name="Name"></lightning-output-field> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <lightning-output-field |
| | | field-name="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 class="hehe-layoutItem" size="4"> |
| | | <lightning-output-field |
| | | field-name="SummonsForDirction__c"></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> |
| | | </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> |
| | | </lightning-layout> |
| | | </template> |
| | | |
| | | <!-- 客户名 发票--> |
| | | <lightning-layout multiple-rows="true"> |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <lightning-output-field |
| | | field-name="ShipmentAccount__c"></lightning-output-field> |
| | | </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 class="hehe-layoutItem" size="4"> |
| | | <lightning-output-field |
| | | field-name="Order_ForCustomerText__c"></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> |
| | | </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> |
| | | </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}> |
| | | <!-- 出库单号 出库单状态 --> |
| | | <lightning-layout multiple-rows="true"> |
| | | <template if:true={isSummonsFlag}> |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <lightning-output-field field-name="Name"></lightning-output-field> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <lightning-output-field |
| | | field-name="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 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 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> |
| | | </lightning-layout-item> |
| | | <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"> |
| | | <div |
| | | 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" |
| | | disabled={isDisabledHospitalName} |
| | | onchange={clearAgencyI}></lightning-input> |
| | | </div> |
| | | </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="搜索经销商" |
| | | 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} |
| | | data-field="Order_ForDealerText__c" |
| | | disabled={isDisabledForDealerText} variant="label-inline"> |
| | | </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 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 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 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> |
| | | </template> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <!-- 出库单信息 EditAble = false --> |
| | | <template if:false={EditAble}> |
| | | <div class="borderCss"> |
| | | <div class="headerDorderCss"> |
| | | <p style="font-size: 16px"> |
| | | <strong>出库单信息</strong> |
| | | </p> |
| | | </div> |
| | | <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-layout multiple-rows="true"> |
| | |
| | | <lightning-output-field |
| | | field-name="ShipmentAccount__c"></lightning-output-field> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | 发票 还需进行开发1 |
| | | </lightning-layout-item> |
| | | <template if:true={isConInvoiceShow}> |
| | | <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> |
| | | </template> |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | </lightning-layout-item> |
| | | </lightning-layout> |
| | |
| | | </lightning-layout-item> |
| | | </lightning-layout> |
| | | </lightning-record-edit-form> |
| | | </template> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <!-- SummonsStatus_c__c != '价格未定' --> |
| | | <template if:false={summonsStatusPriceNotDetermined}> |
| | | <lightning-record-edit-form object-api-name="Consumable_order__c" record-id={cocId} |
| | | onsubmit={handleSubmit}> |
| | | <!-- 出库单号 出库单状态 --> |
| | | <lightning-layout multiple-rows="true"> |
| | | <template if:true={isSummonsFlag}> |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <lightning-output-field field-name="Name"></lightning-output-field> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <lightning-output-field |
| | | field-name="SummonsStatus_c__c"></lightning-output-field> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | </lightning-layout-item> |
| | | </template> |
| | | </lightning-layout> |
| | | <!-- 检索 --> |
| | | <template if:true={isSearchShow}> |
| | | <div class="borderCss"> |
| | | <div style="padding: 10px"> |
| | | <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> |
| | | </div> |
| | | |
| | | <!-- 目的 二级经销商 --> |
| | | <lightning-layout multiple-rows="true"> |
| | | <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 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> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | </lightning-layout-item> |
| | | </lightning-layout> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item size="2" padding="around-small"> |
| | | <div class="slds-grid slds-grid_vertical-align-center"> |
| | | <div class="slds-form-element__label">第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> |
| | | </div> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item size="2" padding="around-small"> |
| | | <div class="slds-grid slds-grid_vertical-align-center"> |
| | | <div class="slds-form-element__label">第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> |
| | | </div> |
| | | |
| | | <!-- 客户名 经销商录入 --> |
| | | <lightning-layout multiple-rows="true"> |
| | | <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="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" |
| | | disabled={isDisabledHospitalName} |
| | | onchange={clearAgencyI}></lightning-input> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item size="2" padding="around-small"> |
| | | <div class="slds-grid slds-grid_vertical-align-center"> |
| | | <div class="slds-form-element__label">第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> |
| | | </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> |
| | | </div> |
| | | </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> |
| | | </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 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 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 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> |
| | | </template> |
| | | <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={neworderhead}></lightning-button> |
| | | </div> |
| | | </lightning-layout-item> |
| | | </lightning-layout> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | </template> |
| | | |
| | | <!-- 出库单信息 EditAble = false --> |
| | | <template if:false={EditAble}> |
| | | <!-- 出库单明细 --> |
| | | <div class="borderCss"> |
| | | <div class="headerDorderCss"> |
| | | <p style="font-size: 16px"> |
| | | <strong>出库单信息</strong> |
| | | <strong>出库单明细</strong> |
| | | </p> |
| | | </div> |
| | | <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> |
| | | </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} |
| | | 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> |
| | | </div> |
| | | </div> |
| | | |
| | | <!-- 出库产品明细 --> |
| | | <template if:true={isShowOutboundProductDetails}> |
| | | <div class="borderCss"> |
| | | <div class="headerDorderCss"> |
| | | <p style="font-size: 16px"> |
| | | <strong>出库产品明细</strong> |
| | | </p> |
| | | </div> |
| | | <div style="padding: 10px"> |
| | | <lightning-datatable key-field="id" data={consumableorderdetails2Records} |
| | | columns={consumableorderdetails2RecordsColumns} hide-checkbox-column> |
| | | </lightning-datatable> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <!-- 上传附件 --> |
| | | <template if:false={EditAble}> |
| | | <div class="borderCss"> |
| | | <div class="headerDorderCss"> |
| | | <p style="font-size: 16px"> |
| | | <strong>附件</strong> |
| | | </p> |
| | | </div> |
| | | <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-input label="" name="file uploader" onchange={handleFilesChange} |
| | | type="file" accept={acceptedType}></lightning-input><br /> |
| | | <div class="slds-text-body_small"> |
| | | {fileName} |
| | | </div> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item> |
| | | <lightning-button label={UploadFile} |
| | | onclick={handleSave}></lightning-button> |
| | | </lightning-layout-item> |
| | | </lightning-layout> |
| | | <template if:true={showLoadingSpinner}> |
| | | <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> |
| | | </footer> |
| | | </lightning-card> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | </template> |
| | | |
| | | <!-- 出货/销售 --> |
| | | <template if:true={isShippingSales}> |
| | | <div class="borderCss"> |
| | | <div class="headerDorderCss"> |
| | | <p style="font-size: 16px"> |
| | | <strong>出货管理</strong> |
| | | </p> |
| | | </div> |
| | | <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-layout multiple-rows="true"> |
| | | <template if:true={isSummonsFlag}> |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <lightning-output-field field-name="Name"></lightning-output-field> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <lightning-output-field |
| | | field-name="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 class="hehe-layoutItem" size="4"> |
| | | <lightning-output-field |
| | | field-name="SummonsForDirction__c"></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> |
| | | </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> |
| | | </lightning-layout> |
| | | </template> |
| | | |
| | | <!-- 客户名 发票--> |
| | | <lightning-layout multiple-rows="true"> |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <lightning-output-field |
| | | field-name="ShipmentAccount__c"></lightning-output-field> |
| | | </lightning-layout-item> |
| | | <template if:true={isConInvoiceShow}> |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <lightning-input-field |
| | | field-name="ConInvoice_Code__c"></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> |
| | | <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 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> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <!-- 检索 --> |
| | | <template if:true={isSearchShow}> |
| | | <div class="borderCss"> |
| | | <div style="padding: 10px"> |
| | | <div lwc:dom="manual" class="resultDiv"></div> |
| | | <div draggable="false"> |
| | | <lightning-layout> |
| | | <lightning-layout-item flexibility="auto" padding="around-small"> |
| | | <lightning-input type="text" name="consumableName" label="消耗品名称" |
| | | value={consumableName} variant="label-inline" onchange={dataChange} |
| | | data-field="consumableName"></lightning-input> |
| | | <lightning-layout multiple-rows="true"> |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item flexibility="auto" padding="around-small"> |
| | | <lightning-combobox name="progress" label="第3分类" value={Category3} |
| | | variant="label-inline" options={category3Options} onchange={dataChange} |
| | | data-field="Category3"></lightning-combobox> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item flexibility="auto" padding="around-small"> |
| | | <lightning-combobox name="progress" label="第4分类" value={Category4} |
| | | variant="label-inline" options={category4Options} onchange={dataChange} |
| | | data-field="Category4"></lightning-combobox> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item flexibility="auto" padding="around-small"> |
| | | <lightning-combobox name="progress" label="第5分类" value={Category5} |
| | | variant="label-inline" onchange={dataChange} data-field="Category5" |
| | | options={category5Options}></lightning-combobox> |
| | | </lightning-layout-item> |
| | | <template if:true={hasHosPro}> |
| | | <lightning-layout-item flexibility="auto" padding="around-small"> |
| | | <lightning-combobox name="progress" label="医院特价" value={outOutPattern} |
| | | variant="label-inline" options={outOutPatternOptionList} |
| | | onchange={handleChange}></lightning-combobox> |
| | | <template if:true={isSales}> |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <lightning-button label="销售" onclick={SaveP}></lightning-button> |
| | | </lightning-layout-item> |
| | | </template> |
| | | |
| | | <lightning-layout-item flexibility="auto, no-grow" padding="around-small"> |
| | | <lightning-button label="检索" onclick={searchProductJs}></lightning-button> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item flexibility="auto, no-grow" padding="around-small"> |
| | | <lightning-button label="清空" onclick={neworderhead}></lightning-button> |
| | | <template if:false={isSales}> |
| | | <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> |
| | | </lightning-layout> |
| | | |
| | | <template if:true={isShowInformation}> |
| | | <div class="borderCss"> |
| | | <div class="headerDorderCss"> |
| | | <p style="font-size: 16px"> |
| | | <strong>出库单信息</strong> |
| | | </p> |
| | | </div> |
| | | <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-layout multiple-rows="true"> |
| | | <lightning-layout-item class="hehe-layoutItem" flexibility="auto"> |
| | | <lightning-output-field |
| | | field-name="Name"></lightning-output-field> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item class="hehe-layoutItem" flexibility="auto"> |
| | | <lightning-output-field |
| | | field-name="ShipmentAccount__c"></lightning-output-field> |
| | | </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> |
| | | <lightning-layout-item class="hehe-layoutItem" flexibility="auto"> |
| | | <lightning-output-field |
| | | field-name="SummonsForDirction__c"></lightning-output-field> |
| | | </lightning-layout-item> |
| | | </lightning-layout> |
| | | </lightning-record-edit-form> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <template if:true={isBarcode}> |
| | | <div class="borderCss"> |
| | | <div class="headerDorderCss"> |
| | | <p style="font-size: 16px"> |
| | | <strong>BarCode录入</strong> |
| | | </p> |
| | | </div> |
| | | <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-layout multiple-rows="true"> |
| | | <lightning-layout-item class="hehe-layoutItem" size="6"> |
| | | <lightning-textarea name="Barcode" label="BarCode号" |
| | | onchange={dataChange} variant="label-inline" |
| | | data-field="Barcode" |
| | | value={Barcode}></lightning-textarea> |
| | | </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> |
| | | </lightning-layout> |
| | | </lightning-record-edit-form> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <div class="borderCss"> |
| | | <div class="headerDorderCss"> |
| | | <p style="font-size: 16px"> |
| | | <strong>出货明细</strong> |
| | | </p> |
| | | </div> |
| | | <div style="padding: 10px"> |
| | | <div lwc:dom="manual" class="resultDiv"></div> |
| | | <div draggable="false"> |
| | | <lightning-datatable key-field="id" data={salesData} columns={salesColumns} |
| | | hide-checkbox-column> |
| | | </lightning-datatable> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="borderCss"> |
| | | <div class="headerDorderCss"> |
| | | <p style="font-size: 16px"> |
| | | <strong>出货错误明细</strong> |
| | | </p> |
| | | </div> |
| | | <div style="padding: 10px"> |
| | | <div lwc:dom="manual" class="resultDiv"></div> |
| | | <div draggable="false"> |
| | | <lightning-datatable key-field="id" data={salesErrorData} |
| | | columns={salesErrorColumns} hide-checkbox-column> |
| | | </lightning-datatable> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <lightning-layout multiple-rows="true"> |
| | | <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> |
| | | </template> |
| | | <template if:false={isSales}> |
| | | <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> |
| | | </lightning-layout> |
| | | </template> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <!-- 出库单明细 --> |
| | | <div class="borderCss"> |
| | | <div class="headerDorderCss"> |
| | | <p style="font-size: 16px"> |
| | | <strong>出库单明细</strong> |
| | | </p> |
| | | </div> |
| | | <div style="padding: 10px"> |
| | | <template if:true={EditAble}> |
| | | <template if:true={showTable}> |
| | | <!-- <c-poc-lightning-datatable key-field="Id" data={data} columns={columns} |
| | | onunitchange={handleUnitChange} onshipmentnumber={handleShipmentNumber} |
| | | onshipmentunitprice={handleShipmentUnitPrice} onrowselection={getSelectedRows} |
| | | selected-rows={selectedRows}> |
| | | </c-poc-lightning-datatable> --> |
| | | <c-lex-custom-lightning-datatable key-field="Id" data={data} columns={columns} |
| | | onunitchange={handleUnitChange} onshipmentnumber={handleShipmentNumber} |
| | | onshipmentunitprice={handleShipmentUnitPrice} onrowselection={getSelectedRows} |
| | | selected-rows={selectedRows}> |
| | | </c-lex-custom-lightning-datatable> |
| | | </template> |
| | | </template> |
| | | |
| | | <template if:false={EditAble}> |
| | | <template if:true={showTable}> |
| | | <!-- <c-poc-lightning-datatable hide-checkbox-column key-field="Id" data={data} |
| | | columns={editColumns} onunitchange={handleUnitChange} |
| | | onshipmentnumber={handleShipmentNumber} onshipmentunitprice={handleShipmentUnitPrice} |
| | | onrowselection={getSelectedRows} selected-rows={selectedRows}> |
| | | </c-poc-lightning-datatable> --> |
| | | <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}> |
| | | </c-lex-custom-lightning-datatable> |
| | | </template> |
| | | </template> |
| | | </div> |
| | | </div> |
| | | |
| | | <!-- 上传附件 --> |
| | | <template if:true={EditAble}> |
| | | <div class="borderCss"> |
| | | <div class="headerDorderCss"> |
| | | <p style="font-size: 16px"> |
| | | <strong>出库单信息</strong> |
| | | </p> |
| | | </div> |
| | | <div style="padding: 10px"> |
| | | <div lwc:dom="manual" class="resultDiv"></div> |
| | | <div draggable="false"></div> |
| | | </div> |
| | | </div> |
| | | </template> |