| | |
| | | <template if:true={showSpinner}> |
| | | <lightning-spinner size="medium" variant="brand"></lightning-spinner> |
| | | </template> |
| | | <c-common-toast></c-common-toast> |
| | | <template if:true={showPage}> |
| | | <div style="border: 1px solid #D4D4D4;border-top: 3px solid #51606E;border-radius:5px;"> |
| | | <div style="padding:10px;"> |
| | |
| | | <lightning-button style="margin: 5px;" label="再申请" onclick={reapplyOrder}></lightning-button> |
| | | </template> |
| | | <p style="height: 10px;"></p> |
| | | <!-- <div style="border: 1px solid #D4D4D4;border-radius:5px;margin-bottom:7px;"> |
| | | <div style="border-top: 3px solid #51606E;border-bottom: 1px solid #D4D4D4;padding:3px;"> |
| | | </div> |
| | | <div style="padding:10px;"> |
| | | </div> |
| | | </div> --> |
| | | <!-- 订单信息 --> |
| | | <template if:false={editAble}> |
| | | <div style="border: 1px solid #D4D4D4;border-top: 3px solid #51606E;border-radius:5px;margin-bottom:7px;"> |
| | | <div style="border-bottom: 1px solid #D4D4D4;padding:3px;"> |
| | | <p style="font-size: 16px;"><strong>订单信息</strong></p> |
| | | <lightning-layout> |
| | | <lightning-layout-item padding="around-small"> |
| | | <p style="font-size: 16px"> |
| | | <strong>订单信息</strong> |
| | | </p> |
| | | </lightning-layout-item> |
| | | </lightning-layout> |
| | | <!-- <p style="font-size: 16px;"><strong>订单信息</strong></p> --> |
| | | </div> |
| | | <div style="padding:10px;"> |
| | | <lightning-record-view-form record-id={cocId} object-api-name="Consumable_order__c"> |
| | |
| | | </template> |
| | | </td> |
| | | <td> |
| | | <div class="slds-grid slds-grid_vertical-align-center"> |
| | | <!-- <div class="slds-grid slds-grid_vertical-align-center"> |
| | | <div class="slds-form-element__label"><lightning-formatted-text value={contractLabel}></lightning-formatted-text> </div> |
| | | <lightning-formatted-text value={contractName}></lightning-formatted-text> |
| | | </div> |
| | | <!-- <lightning-output-field field-name="Order_effective_contact__c"></lightning-output-field> --> |
| | | </div> --> |
| | | <!-- style="pointer-events: none;" --> |
| | | <lightning-output-field class="showContract" field-name="Order_effective_contact__c" ></lightning-output-field> |
| | | </td> |
| | | <!-- <td>合同:<lightning-formatted-text value={coc.Order_effective_contact__r.Name}></lightning-formatted-text></td> --> |
| | | <td></td> |
| | |
| | | <template if:false={edoffersPrice}> |
| | | <lightning-output-field id="sumPrice_buttom1" field-name="Offers_Price__c"></lightning-output-field> |
| | | </template> |
| | | </td> |
| | | <td></td> |
| | | <td></td> |
| | | </tr> |
| | | <tr> |
| | | <td></td> |
| | | <td> |
| | | <template if:true={edoffersPrice}> |
| | | <lightning-input label="特价总金额" variant="label-inline" id="sumPrice_buttom2" value={coc.Offers_Price__c} onchange={offerPriceChange}></lightning-input> |
| | | </template> |
| | | </td> |
| | | <td></td> |
| | | <td> |
| | | <template if:true={showAttUploadDate}> |
| | | <lightning-output-field field-name="Consumable_pdf_insert_day__c"></lightning-output-field> |
| | | </template> |
| | | </td> |
| | | <td></td> |
| | | </tr> |
| | | <tr> |
| | | <!-- <tr> |
| | | <td></td> |
| | | <td> |
| | | <template if:true={showAttUploadDate}> |
| | |
| | | </td> |
| | | <td></td> |
| | | <td></td> |
| | | </tr> |
| | | </tr> --> |
| | | <tr> |
| | | <td></td> |
| | | <td> |
| | |
| | | </template> |
| | | </td> |
| | | <td></td> |
| | | <td></td> |
| | | </tr> |
| | | <tr> |
| | | <td></td> |
| | | <td colspan="2"> |
| | | <lightning-card class="attListTitle" variant="Narrow" title="附件列表" icon-name="utility:attach"> |
| | | <lightning-layout slot="footer" multiple-rows="true"> |
| | | <template for:each={attachmentRecoeds} for:item="item" for:index="index"> |
| | | <lightning-layout-item padding="around-none" size="3" key={item.recordId} style="text-align: left;padding:5px"> |
| | | <a title={item.fileFullName} href={item.attUrl} target="_blank"> |
| | | {item.fileName} |
| | | </a> |
| | | <p> |
| | | <!-- <a data-fileid ={item.documentId} onclick={previweAtt}> --> |
| | | <a href={item.attUrl} target="_blank"> |
| | | 预览 |
| | | </a> · |
| | | <a href={item.downloadUrl}> |
| | | 下载 |
| | | </a> · |
| | | <a data-fileid ={item.recordId} onclick={deleteAtt}> |
| | | 删除 |
| | | </a> |
| | | </p> |
| | | <!-- <p>{item.updateDate} · {item.ownerName}</p> --> |
| | | </lightning-layout-item> |
| | | </template> |
| | | </lightning-layout> |
| | | </lightning-card> |
| | | </td> |
| | | <td></td> |
| | | </tr> |
| | | </tbody> |
| | |
| | | <!-- 消耗品明细 --> |
| | | <div style="border: 1px solid #D4D4D4;border-top: 3px solid #51606E;border-radius:5px;margin-bottom:7px;"> |
| | | <div style="border-bottom: 1px solid #D4D4D4;padding:3px;"> |
| | | <p style="font-size: 16px;"><strong>消耗品明细</strong></p> |
| | | <lightning-layout> |
| | | <lightning-layout-item padding="around-small"> |
| | | <p style="font-size: 16px"> |
| | | <strong>消耗品明细</strong> |
| | | </p> |
| | | </lightning-layout-item> |
| | | </lightning-layout> |
| | | <!-- <p style="font-size: 16px;"><strong>消耗品明细</strong></p> --> |
| | | </div> |
| | | <div style="padding:10px;"> |
| | | <!-- <table style="width: 100%;" class="conTable"> |
| | | <thead> |
| | | <tr style="border-bottom: 1px solid #D4D4D4;"> |
| | | <template if:true={editAble}> |
| | | <th><lightning-input type="checkbox" onchange={checkAll} name="checkAll"></lightning-input></th> |
| | | </template> |
| | | <th style="width: 20%;">消耗品名称</th> |
| | | <th>规格</th> |
| | | <th>CFDA状态</th> |
| | | <th>注册证编码号</th> |
| | | <th>注册证效期</th> |
| | | <th>第3分类</th> |
| | | <th>第4分类</th> |
| | | <th>第5分类</th> |
| | | <template if:true={cansee}> |
| | | <th>标准单价(元)</th> |
| | | </template> |
| | | <th style="width: 5%;">采购数量</th> |
| | | <th>在库数下限</th> |
| | | <th>在库数上限</th> |
| | | <th>有效期库存(盒)</th> |
| | | <th>有效期库存(个)</th> |
| | | </tr> |
| | | </thead> |
| | | <tbody> |
| | | <template for:each={consumableorderdetailsRecordsview} for:item="record" for:index="index"> |
| | | <tr key={record.Prod.Name}> |
| | | <template if:true={editAble}> |
| | | <td> |
| | | <lightning-input data-index={index} type="checkbox" checked={record.check} onchange={check} name="check"></lightning-input> |
| | | <lightning-input data-index={index} type="checkbox" checked={record.oldCheck} onchange={check} name="check" style="display:none;"></lightning-input> |
| | | </td> |
| | | </template> |
| | | <td> |
| | | {record.Prod.Name__c} |
| | | </td> |
| | | <td> |
| | | <div class="slds-truncate" title="Value Proposition">{record.packing_list}</div> |
| | | </td> |
| | | <td> |
| | | <div class="slds-truncate" title="Value Proposition">{record.Prod.SFDA_Status__c}</div> |
| | | </td> |
| | | <td> |
| | | <div class="slds-truncate" title="Value Proposition">{record.approbation_No}</div> |
| | | </td> |
| | | <td> |
| | | <div class="slds-truncate" title="Value Proposition">{record.expiration_Date}</div> |
| | | </td> |
| | | <td> |
| | | <div class="slds-truncate" title="Value Proposition">{record.Prod.Category3__c}</div> |
| | | </td> |
| | | <td> |
| | | <div class="slds-truncate" title="Value Proposition">{record.Prod.Category4__c}</div> |
| | | </td> |
| | | <td> |
| | | <div class="slds-truncate" title="Value Proposition">{record.Prod.Category5__c}</div> |
| | | </td> |
| | | <template if:true={cansee}> |
| | | <td> |
| | | <div class="slds-truncate" title="Value Proposition">{record.Prod.Intra_Trade_List_RMB__c}</div> |
| | | </td> |
| | | </template> |
| | | <td> |
| | | <template if:true={editAble}> |
| | | <lightning-input style="margin-bottom: 10px;" data-index={index} value={record.esd.Consumable_count__c} onchange={consumableCountChange}></lightning-input> |
| | | <c-lex-custom-lightning-datatable class="wrapped-header-datatable" key-field="recordId" data={currentRecord} columns={cols} |
| | | selected-rows={selectRows} onrowselection={checkRows} onchangevalue={conCountChange} onvalueblur={conCountBlur} |
| | | default-sort-direction="asc" sorted-direction={sortDirection} sorted-by={sortedBy} onsort={onHandleSort}></c-lex-custom-lightning-datatable> |
| | | <c-paginator onprevious={prePageClick} onnext={nextPageClick} |
| | | onpageschange={pageSizeChange} onfirst={goFirstPage} onlast={goLastPage} |
| | | page-size-options={pageSizeOptions} previous-button-disabled={previousButtonDisabled} |
| | | next-button-disabled={nextButtonDisabled} record-start={recordStart} |
| | | record-end={recordEnd} total-records={totalRecords}></c-paginator> |
| | | </template> |
| | | <template if:false={editAble}> |
| | | <div class="slds-truncate" title="Value Proposition">{record.esd.Consumable_count__c}</div> |
| | | </template> |
| | | </td> |
| | | <td> |
| | | <div class="slds-truncate" title="Value Proposition">{record.lowerlimit}</div> |
| | | </td> |
| | | <td> |
| | | <div class="slds-truncate" title="Value Proposition">{record.upperlimit}</div> |
| | | </td> |
| | | <td> |
| | | <div class="slds-truncate" title="Value Proposition">{record.allnumber}</div> |
| | | </td> |
| | | <td> |
| | | <div class="slds-truncate" title="Value Proposition">{record.allnumber_piece}</div> |
| | | </td> |
| | | </tr> |
| | | </template> |
| | | </tbody> |
| | | </table> --> |
| | | <template if:true={editAble}> |
| | | <c-lex-custom-lightning-datatable key-field="recordId" data={consumableorderdetailsRecordsview} columns={cols} selected-rows={selectRows} onrowselection={checkRows} onchangevalue={conCountChange}></c-lex-custom-lightning-datatable> |
| | | </template> |
| | | <template if:false={editAble}> |
| | | <c-lex-custom-lightning-datatable hide-checkbox-column key-field="recordId" data={consumableorderdetailsRecordsview} columns={cols}></c-lex-custom-lightning-datatable> |
| | | <c-lex-custom-lightning-datatable class="wrapped-header-datatable" hide-checkbox-column key-field="recordId" data={consumableorderdetailsRecordsview} columns={cols}></c-lex-custom-lightning-datatable> |
| | | <c-paginator onprevious={prePageClick} onnext={nextPageClick} |
| | | onpageschange={pageSizeChange} onfirst={goFirstPage} onlast={goLastPage} |
| | | page-size-options={pageSizeOptions} previous-button-disabled={previousButtonDisabled} |
| | | next-button-disabled={nextButtonDisabled} record-start={recordStart} |
| | | record-end={recordEnd} total-records={totalRecords}></c-paginator> |
| | | </template> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <!-- 附件 --> |
| | | <template if:false={editAble}> |
| | | <!-- <template if:false={editAble}> |
| | | <div style="border: 1px solid #D4D4D4;border-top: 3px solid #51606E;border-radius:5px;margin-top:10px;"> |
| | | <div style="border-bottom: 1px solid #D4D4D4;padding:3px;"> |
| | | <p style="font-size: 16px;"><strong>附件</strong></p> |
| | | <lightning-layout> |
| | | <lightning-layout-item padding="around-small"> |
| | | <p style="font-size: 16px"> |
| | | <strong>附件</strong> |
| | | </p> |
| | | </lightning-layout-item> |
| | | </lightning-layout> |
| | | </div> |
| | | <div style="padding:10px;"> |
| | | <lightning-datatable hide-checkbox-column key-field="recordId" columns={attCols} data={attachmentRecoeds}></lightning-datatable> |
| | | <c-lex-custom-lightning-datatable class="wrapped-header-datatable" hide-checkbox-column key-field="recordId" columns={attCols} data={attachmentRecoeds} onclickicon={deleteAtt}></c-lex-custom-lightning-datatable> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | </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;"> |
| | |
| | | <!-- <p>已选择医院:{chooseHospital}</p> --> |
| | | <div style="border: 1px solid #D4D4D4;border-top: 3px solid #51606E;border-radius:5px;margin-bottom:7px;"> |
| | | <div style="border-bottom: 1px solid #D4D4D4;padding:3px;"> |
| | | <p style="font-size: 16px;"><strong>搜索结果</strong></p> |
| | | <lightning-layout> |
| | | <lightning-layout-item padding="around-small"> |
| | | <p style="font-size: 16px"> |
| | | <strong>搜索结果</strong> |
| | | </p> |
| | | </lightning-layout-item> |
| | | </lightning-layout> |
| | | <!-- <p style="font-size: 16px;"><strong>搜索结果</strong></p> --> |
| | | </div> |
| | | <div class="myTable" style="padding:10px;"> |
| | | <!-- <table> |
| | | <thead> |
| | | <th style="width: 50%;">医院名称</th> |
| | | <th style="width: 10%;">省份</th> |
| | | <th style="width: 40%;">地址</th> |
| | | </thead> |
| | | <tbody> |
| | | <template for:each={hospitalList} for:item="hos" for:index="index"> |
| | | <tr key={hos.Id}> |
| | | <td><a data-hosid={hos.Id} data-name={hos.Name} onclick={chooseHos}>{hos.Name}</a></td> |
| | | <td>{hos.StateMaster}</td> |
| | | <td>{hos.Address__c}</td> |
| | | </tr> |
| | | </template> |
| | | <tr></tr> |
| | | </tbody> |
| | | </table> --> |
| | | <lightning-datatable key-field="id" hide-checkbox-column="true" data={hospitalList} columns={hosCols} onrowaction={chooseHos}></lightning-datatable> |
| | | <lightning-datatable class="wrapped-header-datatable" key-field="id" hide-checkbox-column="true" data={hospitalList} columns={hosCols} onrowaction={chooseHos}></lightning-datatable> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <!-- <p>已选择合同:{chooseContract}</p> --> |
| | | <div style="border: 1px solid #D4D4D4;border-top: 3px solid #51606E;border-radius:5px;margin-bottom:7px;"> |
| | | <div style="border-bottom: 1px solid #D4D4D4;padding:3px;"> |
| | | <p style="font-size: 16px;"><strong>搜索结果</strong></p> |
| | | <lightning-layout> |
| | | <lightning-layout-item padding="around-small"> |
| | | <p style="font-size: 16px"> |
| | | <strong>搜索结果</strong> |
| | | </p> |
| | | </lightning-layout-item> |
| | | </lightning-layout> |
| | | </div> |
| | | <div style="padding:20px;"> |
| | | <!-- <table> |
| | | <thead> |
| | | <th style="width: 30%;">合同名称</th> |
| | | <th style="width: 10%;">省份</th> |
| | | <th style="width: 20%;">申请销售课</th> |
| | | <th style="width: 20%;">允许报价期间(开始日)</th> |
| | | <th style="width: 20%;">允许报价期间(结束日)</th> |
| | | </thead> |
| | | <tbody> |
| | | <template for:each={contractList} for:item="con" for:index="index"> |
| | | <tr key={con.Id}> |
| | | <td><a data-hosid={con.Id} data-name={con.Name} onclick={chooseCon}>{con.Name}</a></td> |
| | | <td>{con.StateMaster}</td> |
| | | <td>{con.Sales_Section__c}</td> |
| | | <td>{con.Contract_Decide_Start_Date__c}</td> |
| | | <td>{con.Contract_Decide_End_Date__c}</td> |
| | | </tr> |
| | | </template> |
| | | <tr></tr> |
| | | </tbody> |
| | | </table> --> |
| | | <lightning-datatable key-field="id" hide-checkbox-column="true" data={contractList} columns={conCols} onrowaction={chooseCon}></lightning-datatable> |
| | | <lightning-datatable class="wrapped-header-datatable" key-field="id" hide-checkbox-column="true" data={contractList} columns={conCols} onrowaction={chooseCon}></lightning-datatable> |
| | | </div> |
| | | </div> |
| | | </div> |