| | |
| | | * @Author: chen jing wu |
| | | * @Date: 2023-04-20 17:16:48 |
| | | * @LastEditors: chen jing wu |
| | | * @LastEditTime: 2023-05-31 11:44:24 |
| | | * @LastEditTime: 2023-06-06 10:33:07 |
| | | --> |
| | | <template> |
| | | |
| | |
| | | <div style="margin-left: 550px;"> |
| | | <lightning-layout-item size="12"> |
| | | <lightning-button label="追加品牌" onclick={addBrandJs}></lightning-button> |
| | | <template if:true={isEdit}> |
| | | <lightning-button name="save" label="保存1" onclick={saveBrandToEditJs}></lightning-button> |
| | | </template> |
| | | <template if:false={isEdit}> |
| | | <lightning-button name="save" label="保存" onclick={saveBrandJs}></lightning-button> |
| | | </template> |
| | | <lightning-button label="返回询价" onclick={cancel}></lightning-button> |
| | | </lightning-layout-item> |
| | | </div> |
| | |
| | | <template for:each={LostReport.LostBrands} for:item="brand" for:index="i"> |
| | | <li key={brand.index}> |
| | | <lightning-accordion-section class="" data-id={i} name="失单品牌" label="失单品牌"> |
| | | <template if:true={isEdit}> |
| | | <lightning-button name="save" label="保存1" onclick={saveBrandToEditJs}></lightning-button> |
| | | </template> |
| | | <template if:false={isEdit}> |
| | | <lightning-button name="save" label="保存" onclick={saveBrandJs}></lightning-button> |
| | | </template> |
| | | <lightning-button name={i} label="删除" onclick={deleteBrandJs} disabled={isBrandCount2}></lightning-button> |
| | | <lightning-layout> |
| | | <lightning-layout-item size="4" padding="around-small"> |
| | |
| | | <template for:each={brand.LostProducts} for:item="product" for:index="j"> |
| | | <tr class="inputRows" key={product}> |
| | | <td> |
| | | <lightning-combobox placeholder={product.LostProductss.LostBrandName__c} class="BrandName" name={j} title={i} options={brandOptions} value={product.LostProductss.LostBrandName__c} onchange={handleLostBrandNameChange} read-only="true"></lightning-combobox> |
| | | <lightning-combobox placeholder={product.LostProductss.LostBrandName__c} data-id={i} class="BrandName" name={j} title={i} options={brandOptions} value={product.LostProductss.LostBrandName__c} onchange={handleLostBrandNameChange} read-only="true"></lightning-combobox> |
| | | </td> |
| | | <td> |
| | | <!-- <lightning-record-edit-form |
| | |
| | | <div class="slds-align_absolute-center"> |
| | | <lightning-layout-item size="12"> |
| | | <lightning-button label="追加品牌" onclick={addBrandJs}></lightning-button> |
| | | <template if:true={isEdit}> |
| | | <lightning-button name="save" label="保存1" onclick={saveBrandToEditJs}></lightning-button> |
| | | </template> |
| | | <template if:false={isEdit}> |
| | | <lightning-button name="save" label="保存" onclick={saveBrandJs}></lightning-button> |
| | | </template> |
| | | <lightning-button label="返回询价" onclick={cancel}></lightning-button> |
| | | </lightning-layout-item> |
| | | </div> |
| | |
| | | <label>失单类型:</label> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item size="1"> |
| | | <lightning-record-view-form object-api-name="Lost_cancel_report__c" record-id={reportId} density="comfy"> |
| | | <lightning-record-view-form object-api-name="Lost_cancel_report__c" record-id={LostReport.lostReport.Id} density="comfy"> |
| | | <lightning-output-field field-name="LostType__c" variant="label-hidden"></lightning-output-field> |
| | | </lightning-record-view-form> |
| | | </lightning-layout-item> |
| | |
| | | <label>失单总金额(元):</label> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item size="1"> |
| | | <lightning-record-view-form object-api-name="Lost_cancel_report__c" record-id={reportId} density="comfy"> |
| | | <lightning-record-view-form object-api-name="Lost_cancel_report__c" record-id={LostReport.lostReport.Id} density="comfy"> |
| | | <lightning-output-field field-name="LostTotalAmount__c" variant="label-hidden"></lightning-output-field> |
| | | </lightning-record-view-form> |
| | | </lightning-layout-item> |
| | |
| | | <label>包含超声:</label> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item size="1"> |
| | | <lightning-record-view-form object-api-name="Lost_cancel_report__c" record-id={reportId} density="comfy"> |
| | | <lightning-record-view-form object-api-name="Lost_cancel_report__c" record-id={LostReport.lostReport.Id} density="comfy"> |
| | | <lightning-output-field field-name="InclusionUltrasound__c" variant="label-hidden"></lightning-output-field> |
| | | </lightning-record-view-form> |
| | | </lightning-layout-item> |
| | |
| | | <label>状态:</label> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item size="1"> |
| | | <lightning-record-view-form object-api-name="Lost_cancel_report__c" record-id={reportId} density="comfy"> |
| | | <lightning-record-view-form object-api-name="Lost_cancel_report__c" record-id={LostReport.lostReport.Id} density="comfy"> |
| | | <lightning-output-field field-name="Report_Status__c" variant="label-hidden"></lightning-output-field> |
| | | </lightning-record-view-form> |
| | | </lightning-layout-item> |
| | |
| | | </lightning-layout-item> |
| | | </div> |
| | | </lightning-layout> |
| | | <template if:true={isSubmit}> |
| | | <div>...test...</div> |
| | | </template> |
| | | </div> |
| | | </div> |
| | | </lightning-card> |