From 874d06c838d77ed9e4e19ca888161c1590d02e2b Mon Sep 17 00:00:00 2001
From: 19626 <1962676589@qq.com>
Date: 星期二, 08 八月 2023 12:16:50 +0800
Subject: [PATCH] 修改页面
---
force-app/main/default/lwc/multiSelectCombobox/multiSelectCombobox.js | 2
force-app/main/default/pages/searchAimsAccount.page | 9 +
force-app/main/default/lwc/lexLookupLwc/lexLookupLwc.html | 8
force-app/main/default/lwc/lexPCLLostReportPage/lexPCLLostReportPage.html | 224 +++++++++++++++++++++++---------------------
force-app/main/default/lwc/lexPCLLostReportPage/lexPCLLostReportPage.css | 19 +++
5 files changed, 145 insertions(+), 117 deletions(-)
diff --git a/force-app/main/default/lwc/lexLookupLwc/lexLookupLwc.html b/force-app/main/default/lwc/lexLookupLwc/lexLookupLwc.html
index d7a835f..084b7cb 100644
--- a/force-app/main/default/lwc/lexLookupLwc/lexLookupLwc.html
+++ b/force-app/main/default/lwc/lexLookupLwc/lexLookupLwc.html
@@ -4,7 +4,7 @@
* @Author: chen jing wu
* @Date: 2023-05-25 13:59:44
* @LastEditors: chen jing wu
- * @LastEditTime: 2023-08-01 16:08:18
+ * @LastEditTime: 2023-08-02 14:28:20
-->
<template>
<div>
@@ -15,14 +15,14 @@
<div class="slds-combobox__form-element slds-input-has-icon slds-input-has-icon_right" role="none">
<template if:false={recordselected}>
<input class="slds-input slds-combobox__input" id="combobox-id-1" aria-autocomplete="list" aria-controls="listbox-id-1"
- role="textbox" type="text" placeholder="Search..." onkeyup={onKeyChange} value={selectedValue}/ disabled={disabled}>
+ role="textbox" type="text" placeholder="Search..." style="width: 190px;" onkeyup={onKeyChange} value={selectedValue}/ disabled={disabled}>
</template>
<template if:true={recordselected}>
<span class="slds-pill slds-pill_link fullWidth slds-input slds-combobox__input">
<a href="javascript:void(0);"
class="slds-pill__action slds-p-left_x-small" title={selectedValue} style="height: 32px;">
<lightning-icon icon-name={iconname} size="x-small"></lightning-icon>
- <span class="slds-pill__label slds-p-left_x-small" style="display: inline-flex;width: 50px">{selectedValue}</span>
+ <span class="slds-pill__label slds-p-left_x-small" style="display: inline-flex;width: 150px">{selectedValue}</span>
</a>
<button onclick={clearSelection}
class="slds-button slds-button_icon slds-button_icon slds-pill__remove"
@@ -36,7 +36,7 @@
</div>
<template if:true={recordsList}>
<div class="slds-combobox_container">
- <div id="listbox-id-1" class="slds-dropdown slds-dropdown_fluid slds-dropdown_autocomplete" role="listbox">
+ <div id="listbox-id-1" class="slds-dropdown slds-dropdown_fluid slds-dropdown_autocomplete" role="listbox" style="min-width: 350px; overflow: auto;">
<ul class="slds-listbox slds-listbox_vertical" role="presentation">
<template for:each={recordsList} for:item="item">
<li key={item.Id} role="presentation" class="slds-listbox__item">
diff --git a/force-app/main/default/lwc/lexPCLLostReportPage/lexPCLLostReportPage.css b/force-app/main/default/lwc/lexPCLLostReportPage/lexPCLLostReportPage.css
index 81008b3..5328481 100644
--- a/force-app/main/default/lwc/lexPCLLostReportPage/lexPCLLostReportPage.css
+++ b/force-app/main/default/lwc/lexPCLLostReportPage/lexPCLLostReportPage.css
@@ -58,11 +58,26 @@
}
.text-container p:first-line {
- background-color: rgb(243, 243, 243);
+ background-color: rgb(165, 63, 63);
}
.slds-accordion__summary-heading{
- background-color: rgb(243, 243, 243);
+ background-color: rgb(192, 70, 70);
}
+
+ .THIS .x-accordion .x-accordion-group .x-accordion-heading a .x-accordion-toggle {
+ color: red!important;
+ }
+
+ host {
+ --sds-c-accordion-summary-color-background: var(--lwc-colorBackground,rgb(160, 60, 60));
+ }
+ .THIS .slds-truncate {
+ max-width: 100%;
+ background: brown !important;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ }
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexPCLLostReportPage/lexPCLLostReportPage.html b/force-app/main/default/lwc/lexPCLLostReportPage/lexPCLLostReportPage.html
index 04af5c0..f36488b 100644
--- a/force-app/main/default/lwc/lexPCLLostReportPage/lexPCLLostReportPage.html
+++ b/force-app/main/default/lwc/lexPCLLostReportPage/lexPCLLostReportPage.html
@@ -4,7 +4,7 @@
* @Author: chen jing wu
* @Date: 2023-04-20 17:16:48
* @LastEditors: chen jing wu
- * @LastEditTime: 2023-08-01 16:25:01
+ * @LastEditTime: 2023-08-02 11:29:37
-->
<template>
<div class="holder" if:true={IsLoading}>
@@ -40,120 +40,132 @@
</div>
</lightning-layout-item>
<lightning-layout-item size="4" padding="around-small">
- <div style="padding: 10px 3px;font: 16px;">澶卞崟鎬婚噾棰濓紙鍏冿級:{LostReport.lostReport.LostTotalAmount__c}</div>
+ <div style="padding: 10px 3px;font: 16px;">澶卞崟鎬婚噾棰濓紙鍏冿級:
+ <span style="margin-left: 5px;">{LostReport.lostReport.LostTotalAmount__c}</span>
+ <!-- {LostReport.lostReport.LostTotalAmount__c} -->
+ </div>
+ </lightning-layout-item>
+ <lightning-layout-item size="3" padding="around-small">
+ <div style="padding: 10px 3px;font: 16px;">鍖呭惈瓒呭0:
+ <span style="margin-left: 5px;">{LostReport.lostReport.InclusionUltrasound__c}</span>
+ <!-- {LostReport.lostReport.InclusionUltrasound__c} -->
+ </div>
</lightning-layout-item>
<lightning-layout-item size="3" padding="around-small">
- <div style="padding: 10px 3px;font: 16px;">鍖呭惈瓒呭0:{LostReport.lostReport.InclusionUltrasound__c}</div>
- </lightning-layout-item>
- <lightning-layout-item size="3" padding="around-small">
- <div style="padding: 10px 3px;font: 16px;">鐘舵��:{LostReport.lostReport.Report_Status__c}</div>
+ <div style="padding: 10px 3px;font: 16px;">鐘舵��:
+ <span style="margin-left: 5px;">{LostReport.lostReport.Report_Status__c}</span>
+ <!-- {LostReport.lostReport.Report_Status__c} -->
+ </div>
</lightning-layout-item>
</template>
</lightning-layout>
<lightning-accordion allow-multiple-sections-open class="myAccordion">
<template for:each={LostReport.LostBrands} for:item="brand" for:index="i">
<li key={brand.lineNo}>
- <lightning-accordion-section class="" data-id={i} name="澶卞崟鍝佺墝" label="澶卞崟鍝佺墝">
- <lightning-button name="save" label="淇濆瓨" onclick={saveBrandJs}></lightning-button>
- <lightning-button name={i} label="鍒犻櫎" onclick={deleteBrandJs} disabled={isBrandCount2}></lightning-button>
- <lightning-layout>
- <lightning-layout-item size="4" padding="around-small">
- <template if:true={isEdit}>
- <c-multi-select-combobox name={i} onselect={setBrandMannualName} data-id="Lost_By_Company" class="mycombobox" options={brandOptions} selected-value={reasonValue} label="澶卞崟鍝佺墝: " placeholder={brand.lostBrand.Lost_By_Company__c} required></c-multi-select-combobox>
- </template>
- <template if:false={isEdit}>
- <c-multi-select-combobox name={i} onselect={setBrandMannualName} data-id="Lost_By_Company" class="mycombobox" options={brandOptions} selected-value={reasonValue} label="澶卞崟鍝佺墝: " required></c-multi-select-combobox>
- </template>
- </lightning-layout-item>
- <lightning-layout-item flexibility="auto" padding="around-small">
- <lightning-combobox name={i} label="澶卞崟鍘熷洜锛堜富锛�:" value={brand.lostBrand.Lost_reason_main__c} options={columns2}
- onchange={handleLostReasonMainChange} class="searchField" required></lightning-combobox>
- </lightning-layout-item>
- <lightning-layout-item flexibility="auto" padding="around-small">
- <lightning-combobox name={i} label="澶卞崟鍘熷洜锛堟锛�:" value={brand.lostBrand.Lost_Reason_Sub__c} options={columns2}
- onchange={handleLostReasonSubChange} class="searchField"></lightning-combobox>
- </lightning-layout-item>
- </lightning-layout>
- <lightning-layout>
- <lightning-layout-item size="4" padding="horizontal-small">
- <lightning-input name={i} data-id="Lost_By_Company_Mannual" value={brand.lostBrand.Lost_By_Company_Mannual__c} type="text" label="澶卞崟鍝佺墝锛堟墜鍔級: " class="searchField" onchange={handleLostByCompanyMannualChange}></lightning-input>
- </lightning-layout-item>
- <lightning-layout-item size="4" padding="horizontal-small">
- <lightning-input data-id="TotalAmount" name={i} value={brand.lostBrand.LostPrice__c} type="number" label="澶卞崟閲戦锛堝厓锛�: " class="searchField" onchange={handleLostPriceOutChange} required></lightning-input>
- </lightning-layout-item>
- <lightning-layout-item size="4" padding="horizontal-small">
- <lightning-record-edit-form
- object-api-name='PCLLostBrand__c'
- record-id=''
- >
- <lightning-input-field value={brand.lostBrand.Agency__c} name={i} field-name='Agency__c' onchange={handleAgencyOutChange} required> </lightning-input-field>
- </lightning-record-edit-form>
- </lightning-layout-item>
- </lightning-layout>
- <lightning-layout>
- <lightning-layout-item size="4" padding="horizontal-small">
- <lightning-input name={i} value={brand.lostBrand.AgencyMannual__c} type="text" label="涓爣缁忛攢鍟嗭紙鎵嬪姩锛�:" class="searchField" onchange={handleAgencyMannualOutChange}></lightning-input>
- </lightning-layout-item>
-
- </lightning-layout>
- <lightning-layout>
- <lightning-layout-item flexibility="auto" padding="around-small">
- <template if:true={isInit}>
- <div class="slds-card__body slds-card__body_inner">
- <table class="slds-table slds-table_bordered slds-table_cell-buffer slds-var-m-bottom_large">
- <thead>
- <tr class="slds-text-title_caps">
- <th><div class="slds-truncate">澶卞崟鍝佺墝</div></th>
- <th><div class="slds-truncate">澶卞崟瀵规墜鍨嬪彿</div></th>
- <th><div class="slds-truncate"><span style="color:red;font-size: 10px;">*</span>澶卞崟鏁伴噺</div></th>
- <th><div class="slds-truncate">澶卞崟瀵规墜鍨嬪彿(鎵嬪姩)</div></th>
- <th><div class="slds-truncate"><span style="color:red;font-size: 10px;">*</span>澶卞崟浜у搧绫诲埆</div></th>
- <th><div class="slds-truncate"><span style="color:red;font-size: 10px;">*</span>澶卞崟浜у搧鍖哄垎</div></th>
- <th></th>
- </tr>
- </thead>
- <tbody>
- <template for:each={brand.LostProducts} for:item="product" for:index="j">
- <tr class="inputRows" key={product.lineNo2}>
- <td>
- <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" style="margin-bottom: 20px; width: 70px"></lightning-combobox>
- </td>
- <td>
- <template if:true={isEdit}>
- <c-lex-lookup-lwc class="Product" data-id={i} title={i} name={j} iconname="standard:product_item" query-brand={product.LostProductss.LostBrandName__c} objectname="Product2" onselected={handleSelected} init-value={product.productName}></c-lex-lookup-lwc>
- </template>
- <template if:false={isEdit}>
- <c-lex-lookup-lwc class="Product" data-id={i} title={i} name={j} iconname="standard:product_item" query-brand={product.LostProductss.LostBrandName__c} objectname="Product2" onselected={handleSelected} style="margin-bottom: 20px;"></c-lex-lookup-lwc>
- </template>
- </td>
- <td>
- <lightning-input class="Quantity" title={i} name={j} value={product.LostProductss.Quantity__c} onchange={handleQuantityChange} style="margin-bottom: 20px;"></lightning-input>
- </td>
- <td>
- <lightning-input class="LostProductMannual" title={i} name={j} value={product.LostProductss.LostProductMannual__c} onchange={handleLostProductMannualChange} style="margin-bottom: 20px;"></lightning-input>
- </td>
- <td>
- <lightning-combobox class="ProductClass" data-id={i} placeholder="--鏃�--" title={i} name={j} options={productClassOptions} value={product.LostProductss.ProductClass__c} onchange={handleProductClassChange} style="margin-bottom: 20px; width: 87px"></lightning-combobox>
- </td>
- <td>
- <lightning-combobox class="ProductCategory" data-id={i} placeholder="--鏃�--" title={i} name={j} options={product.productOptions} value={product.LostProductss.ProductCategory__c} onchange={handleProductCategoryChange} read-only="true" style="margin-bottom: 20px; width: 87px"></lightning-combobox>
- </td>
-
- <td>
- <lightning-button-icon name={i} icon-name="utility:add" value={j} variant="bare" onclick={addRow}></lightning-button-icon>
- </td>
- <td>
- <lightning-button-icon class="deleteButton" data-id={i} name={i} icon-name="utility:delete" value={j} variant="bare" onclick={removeRow}></lightning-button-icon>
- </td>
+ <div class= "x-accordion-heading">
+ <lightning-accordion-section class="" data-id={i} name="澶卞崟鍝佺墝" label="澶卞崟鍝佺墝" active>
+ <lightning-button name="save" label="淇濆瓨" onclick={saveBrandJs}></lightning-button>
+ <lightning-button name={i} label="鍒犻櫎" onclick={deleteBrandJs} disabled={isBrandCount2}></lightning-button>
+ <lightning-layout>
+ <lightning-layout-item size="4" padding="around-small">
+ <template if:true={isEdit}>
+ <c-multi-select-combobox name={i} onselect={setBrandMannualName} data-id="Lost_By_Company" class="mycombobox" options={brandOptions} selected-value={reasonValue} label="澶卞崟鍝佺墝: " placeholder={brand.lostBrand.Lost_By_Company__c} required></c-multi-select-combobox>
+ </template>
+ <template if:false={isEdit}>
+ <c-multi-select-combobox name={i} onselect={setBrandMannualName} data-id="Lost_By_Company" class="mycombobox" options={brandOptions} selected-value={reasonValue} label="澶卞崟鍝佺墝: " required></c-multi-select-combobox>
+ </template>
+ </lightning-layout-item>
+ <lightning-layout-item flexibility="auto" padding="around-small">
+ <lightning-combobox name={i} label="澶卞崟鍘熷洜锛堜富锛�:" value={brand.lostBrand.Lost_reason_main__c} options={columns2}
+ onchange={handleLostReasonMainChange} class="searchField" required></lightning-combobox>
+ </lightning-layout-item>
+ <lightning-layout-item flexibility="auto" padding="around-small">
+ <lightning-combobox name={i} label="澶卞崟鍘熷洜锛堟锛�:" value={brand.lostBrand.Lost_Reason_Sub__c} options={columns2}
+ onchange={handleLostReasonSubChange} class="searchField"></lightning-combobox>
+ </lightning-layout-item>
+ </lightning-layout>
+ <lightning-layout>
+ <lightning-layout-item size="4" padding="horizontal-small">
+ <lightning-input name={i} data-id="Lost_By_Company_Mannual" value={brand.lostBrand.Lost_By_Company_Mannual__c} type="text" label="澶卞崟鍝佺墝锛堟墜鍔級: " class="searchField" onchange={handleLostByCompanyMannualChange}></lightning-input>
+ </lightning-layout-item>
+ <lightning-layout-item size="4" padding="horizontal-small">
+ <lightning-input data-id="TotalAmount" name={i} value={brand.lostBrand.LostPrice__c} type="number" label="澶卞崟閲戦锛堝厓锛�: " class="searchField" onchange={handleLostPriceOutChange} required></lightning-input>
+ </lightning-layout-item>
+ <lightning-layout-item size="4" padding="horizontal-small">
+ <lightning-record-edit-form
+ object-api-name='PCLLostBrand__c'
+ record-id=''
+ >
+ <lightning-input-field value={brand.lostBrand.Agency__c} name={i} field-name='Agency__c' onchange={handleAgencyOutChange} required> </lightning-input-field>
+ </lightning-record-edit-form>
+ </lightning-layout-item>
+ </lightning-layout>
+ <lightning-layout>
+ <lightning-layout-item size="4" padding="horizontal-small">
+ <lightning-input name={i} value={brand.lostBrand.AgencyMannual__c} type="text" label="涓爣缁忛攢鍟嗭紙鎵嬪姩锛�:" class="searchField" onchange={handleAgencyMannualOutChange}></lightning-input>
+ </lightning-layout-item>
+
+ </lightning-layout>
+ <lightning-layout>
+ <lightning-layout-item flexibility="auto" padding="around-small">
+ <template if:true={isInit}>
+ <div class="slds-card__body slds-card__body_inner">
+ <table class="slds-table slds-table_bordered slds-table_cell-buffer slds-var-m-bottom_large">
+ <thead>
+ <tr class="slds-text-title_caps">
+ <th><div class="slds-truncate">澶卞崟鍝佺墝</div></th>
+ <th><div class="slds-truncate">澶卞崟瀵规墜鍨嬪彿</div></th>
+ <th><div class="slds-truncate"><span style="color:red;font-size: 10px;">*</span>澶卞崟鏁伴噺</div></th>
+ <th><div class="slds-truncate">澶卞崟瀵规墜鍨嬪彿(鎵嬪姩)</div></th>
+ <th><div class="slds-truncate"><span style="color:red;font-size: 10px;">*</span>澶卞崟浜у搧绫诲埆</div></th>
+ <th><div class="slds-truncate"><span style="color:red;font-size: 10px;">*</span>澶卞崟浜у搧鍖哄垎</div></th>
+ <th></th>
</tr>
- </template>
- </tbody>
- </table>
- </div>
- </template>
- </lightning-layout-item>
- </lightning-layout>
- </lightning-accordion-section>
+ </thead>
+ <tbody>
+ <template for:each={brand.LostProducts} for:item="product" for:index="j">
+ <tr class="inputRows" key={product.lineNo2}>
+ <td>
+ <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" style="margin-bottom: 20px; width: 70px"></lightning-combobox>
+ </td>
+ <td>
+ <template if:true={isEdit}>
+ <c-lex-lookup-lwc class="Product" data-id={i} title={i} name={j} iconname="standard:product_item" query-brand={product.LostProductss.LostBrandName__c} objectname="Product2" onselected={handleSelected} init-value={product.productName}></c-lex-lookup-lwc>
+ </template>
+ <template if:false={isEdit}>
+ <c-lex-lookup-lwc class="Product" data-id={i} title={i} name={j} iconname="standard:product_item" query-brand={product.LostProductss.LostBrandName__c} objectname="Product2" onselected={handleSelected} style="margin-bottom: 20px;"></c-lex-lookup-lwc>
+ </template>
+ </td>
+ <td>
+ <lightning-input class="Quantity" title={i} name={j} value={product.LostProductss.Quantity__c} onchange={handleQuantityChange} style="margin-bottom: 20px;"></lightning-input>
+ </td>
+ <td>
+ <lightning-input class="LostProductMannual" title={i} name={j} value={product.LostProductss.LostProductMannual__c} onchange={handleLostProductMannualChange} style="margin-bottom: 20px;"></lightning-input>
+ </td>
+ <td>
+ <lightning-combobox class="ProductClass" data-id={i} placeholder="--鏃�--" title={i} name={j} options={productClassOptions} value={product.LostProductss.ProductClass__c} onchange={handleProductClassChange} style="margin-bottom: 20px; width: 87px"></lightning-combobox>
+ </td>
+ <td>
+ <lightning-combobox class="ProductCategory" data-id={i} placeholder="--鏃�--" title={i} name={j} options={product.productOptions} value={product.LostProductss.ProductCategory__c} onchange={handleProductCategoryChange} read-only="true" style="margin-bottom: 20px; width: 87px"></lightning-combobox>
+ </td>
+
+ <td>
+ <lightning-button-icon name={i} icon-name="utility:add" value={j} variant="bare" onclick={addRow}></lightning-button-icon>
+ </td>
+ <td>
+ <lightning-button-icon class="deleteButton" data-id={i} name={i} icon-name="utility:delete" value={j} variant="bare" onclick={removeRow}></lightning-button-icon>
+ </td>
+ </tr>
+ </template>
+ </tbody>
+ </table>
+ </div>
+ </template>
+ </lightning-layout-item>
+ </lightning-layout>
+ </lightning-accordion-section>
+ </div>
+
</li>
</template>
</lightning-accordion>
diff --git a/force-app/main/default/lwc/multiSelectCombobox/multiSelectCombobox.js b/force-app/main/default/lwc/multiSelectCombobox/multiSelectCombobox.js
index e795b39..b96314d 100644
--- a/force-app/main/default/lwc/multiSelectCombobox/multiSelectCombobox.js
+++ b/force-app/main/default/lwc/multiSelectCombobox/multiSelectCombobox.js
@@ -7,7 +7,7 @@
@api selectedValue;
@api selectedValues = [];
@api label;
- @api minChar = 2;
+ @api minChar = 1;
@api disabled = false;
@api multiSelect = false;
@api myValue;
diff --git a/force-app/main/default/pages/searchAimsAccount.page b/force-app/main/default/pages/searchAimsAccount.page
index 4071590..00a4939 100644
--- a/force-app/main/default/pages/searchAimsAccount.page
+++ b/force-app/main/default/pages/searchAimsAccount.page
@@ -21,7 +21,7 @@
</apex:outputPanel>
<apex:form id="mainForm">
<apex:pageBlock id="idSearchSetProduct" title="鐗逛环鍖婚櫌閫夋嫨">
- <table width="750" border="0" style="background-color:#DCDCDC">
+ <table width="750" border="0">
<colgroup>
<col width="12" />
<col width="20" />
@@ -43,14 +43,15 @@
<td> </td>
<td> </td>
<td><apex:inputText id="searchName" value="{!SearchName}" style="width:200px" required="false"/></td>
+ <td> </td>
<td><apex:commandButton value="{!$Label.Search}" action="{!serContact}" style="width:100px" /></td>
<td></td>
</tr>
<tr>
- <td style="border-bottom: 1px solid #888;" colspan="15"> </td>
+ <td colspan="15"> </td>
</tr>
</table>
- <table width="750" border="0" style="background-color:#DCDCDC">
+ <table width="750" border="0">
<tr>
<td width="12"> </td>
<th valign="top">{!$Label.Search_Result}</th>
@@ -60,7 +61,7 @@
<tr>
<td>
<div id="iframelike" style="width:750">
- <apex:pageBlockTable id="idRezultVisitor" value="{!at}" var="c" border="1" columns="3" columnsWidth="200px,100px,350px">
+ <apex:pageBlockTable id="idRezultVisitor" value="{!at}" var="c" border="0" columns="3" columnsWidth="200px,100px,350px">
<apex:column >
<apex:facet name="header">鍖婚櫌鍚嶇О</apex:facet>
<apex:outputLink id="contactName" value="{!c.Name}" onclick="setProductOne('{!c.Name}','{!c.Id}');return false;">{!c.Name}</apex:outputLink>
--
Gitblit v1.9.1