| | |
| | | { |
| | | "target-org": "OlympusDev" |
| | | "target-org": "OlympusStageEnv" |
| | | } |
| New file |
| | |
| | | ref: refs/heads/main |
| New file |
| | |
| | | [core] |
| | | repositoryformatversion = 0 |
| | | filemode = false |
| | | bare = false |
| | | logallrefupdates = true |
| | | symlinks = false |
| | | ignorecase = true |
| | |
| | | <!-- |
| | | * @Author: Thhto 997058689@qq.com |
| | | * @Date: 2022-07-08 10:47:25 |
| | | * @LastEditors: Thhto 997058689@qq.com |
| | | * @LastEditTime: 2023-02-03 15:25:46 |
| | | * @FilePath: \ceshihuanj\force-app\main\default\aura\DealerPersonnelInformationImport\DealerPersonnelInformationImport.cmp |
| | | * @Description: è¿æ¯é»è®¤è®¾ç½®,请设置`customMade`, æå¼koroFileHeaderæ¥çé
ç½® è¿è¡è®¾ç½®: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE |
| | | --> |
| | | <aura:component controller="DealerPersonnelController" |
| | | implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,force:lightningQuickAction,forceCommunity:availableForAllPageTypes" |
| | | access="global"> |
| | |
| | | <aura:attribute name="IsEventDefault" type="Boolean" default="true" /> |
| | | <aura:attribute name="login" type="Boolean" default="false" /> |
| | | <aura:attribute name="successMessage" type="String" /> |
| | | <!-- start DTT-zhj å¢å é误信æ¯table 2023-05-16--> |
| | | <aura:attribute name="errorData" type="Object" /> |
| | | <aura:attribute name="errorColumns" type="List" /> |
| | | <!-- show Error information --> |
| | | <aura:attribute name="showErrorInfo" type="Boolean" default="false" /> |
| | | <!-- end DTT-zhj å¢å é误信æ¯table 2023-05-16--> |
| | | |
| | | <!-- æ¹éæ·»å 卿¥ end--> |
| | | <aura:renderIf isTrue="{!v.login}"> |
| | | <div class="slds-spinner_container height100vh"> |
| | |
| | | </aura:renderIf> |
| | | <!-- æ¹éæ·»å 卿¥ start--> |
| | | <div class="slds-modal slds-fade-in-open slds-hide" aura:id="errorDiv" style="z-index: 10001"> |
| | | <!-- <ui:inputText aura:id="articleURL" /> --> |
| | | <ui:inputText aura:id="articleURL" /> |
| | | <div class="demo-only" style="height: 8rem;"> |
| | | <div class="slds-notify_container slds-is-relative"> |
| | | <div class="slds-notify slds-notify_toast slds-theme_error" role="status"> |
| | |
| | | class="slds-notify__content slds-m-left_small slds-align_absolute-center slds-m-left_xx-large"> |
| | | <lightning:icon alternativeText="error" iconName="utility:error" size="small" |
| | | class="buttonColor slds-m-right_small" /> |
| | | <!-- DB202301262139 SFDCç»éå人å导å
¥åè½æ¹è¿ start --> |
| | | <!-- <h2 class="slds-text-heading_small ">{!v.errorMessage}</h2> --> |
| | | <pre class="slds-text-heading_small ">{!v.errorMessage}</pre> |
| | | <!-- DB202301262139 SFDCç»éå人å导å
¥åè½æ¹è¿ end --> |
| | | <h2 class="slds-text-heading_small ">{!v.errorMessage}</h2> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="slds-modal slds-fade-in-open slds-hide" aura:id="successDiv01"> |
| | | <!-- <ui:inputText aura:id="articleURL" /> --> |
| | | <ui:inputText aura:id="articleURL" /> |
| | | <div class="demo-only" style="height: 8rem;"> |
| | | <div class="slds-notify_container slds-is-relative"> |
| | | <div class="slds-notify slds-notify_toast slds-theme_success" role="alert"> |
| | |
| | | <aura:set attribute="else"> |
| | | <ui:outputRichText class="uiOutputRichText slds-m--around-large" value="{!v.TableContent}" /> |
| | | <div class="slds-p-around--large slds-align--absolute-center"> |
| | | <lightning:button aura:id="save_con" label="ä¿å" variant="brand" onclick="{!c.processFileContent}" disabled="false" /> |
| | | <lightning:button label="ä¿å" variant="brand" onclick="{!c.processFileContent}" /> |
| | | <lightning:button label="åæ¶" variant="brand" onclick="{!c.cancel}" /> |
| | | </div> |
| | | |
| | | <aura:if isTrue="{!v.showErrorInfo}"> |
| | | <div class="slds-p-around--large slds-align--absolute-center"> |
| | | <lightning:button label="导åºé误信æ¯" variant="brand" onclick="{!c.exportErrorInfo}" /> |
| | | </div> |
| | | <div class="slds-p-around--large slds-align--absolute-center"> |
| | | <div style="height: 300px;overflow-x:scroll"> |
| | | <lightning:datatable keyField="id" data="{! v.errorData }" columns="{! v.errorColumns }" |
| | | hideCheckboxColumn="true" minColumnWidth="120"/> |
| | | </div> |
| | | </div> |
| | | </aura:if> |
| | | </aura:set> |
| | | </aura:if> |
| | | </div> |
| | |
| | | helper.readFile(component,helper,files[0]); |
| | | }, |
| | | processFileContent : function(component,event,helper){ |
| | | component.set("v.showErrorInfo",false); |
| | | helper.saveRecords(component,event,helper); |
| | | }, |
| | | cancel : function(component,event,helper){ |
| | | component.set("v.showMain",true); |
| | | } |
| | | }, |
| | | exportErrorInfo: function(component,event,helper){ |
| | | console.log('enter exportErrorInfo'); |
| | | helper.exportErrorInfoHelper(component); |
| | | }, |
| | | }) |
| | |
| | | ({ |
| | | readFile: function (component, helper, file) { |
| | | debugger |
| | | if (!file) return; |
| | | if (!file.name.match(/\.(csv||CSV)$/)) { |
| | | return alert('only support csv files'); |
| | |
| | | reader.readAsDataURL(file); |
| | | }, |
| | | saveRecords: function (component, event, helper) { |
| | | debugger |
| | | component.set('v.login', true); |
| | | var action = component.get("c.processData"); |
| | | var fieldsList = ['Name', 'Phone', 'AccountNumber']; //Please write your code dynamic fields |
| | |
| | | if (state === "SUCCESS") { |
| | | var res = response.getReturnValue(); |
| | | var res1 = ''; |
| | | debugger; |
| | | if (res != 'success') { |
| | | var ress = res.split('='); |
| | | console.log(ress); |
| | | let errorDatas = []; |
| | | let errorDataRow = []; |
| | | debugger |
| | | for (var i = 0; i < ress.length; i++) { |
| | | res1 += ress[i].substr(7) + '\n'; |
| | | if (ress[i] != '') { |
| | | let errorData = {} |
| | | let index = errorDataRow.indexOf(ress[i].substr(7).substring(1, 2)); |
| | | if (index == -1) { |
| | | errorData.errorRow = ress[i].substr(7).substring(1, 2); |
| | | errorDataRow.push(errorData.errorRow); |
| | | errorData.errorInfo = ress[i].substr(7).substring(6); |
| | | errorDatas.push(errorData); |
| | | } else { |
| | | errorDatas[index].errorInfo += '; ' + ress[i].substr(7).substring(6); |
| | | } |
| | | } |
| | | } |
| | | var fileContentData = component.get("v.fileContentData").split('\n'); |
| | | let errorColumns = [ |
| | | { label: 'é误è¡', fieldName: 'errorRow', type: 'text', hideDefaultActions: true, initialWidth: 50 }, |
| | | { label: 'é误信æ¯', fieldName: 'errorInfo', type: 'text', hideDefaultActions: true,initialWidth: 300,wrapText: true } |
| | | ]; |
| | | for (var i = 0; i < fileContentData[0].split(',').length - 1; i++) { |
| | | errorColumns.push({ |
| | | label: fileContentData[0].split(',')[i], fieldName: 'field' + i, type: 'text', hideDefaultActions: true,wrapText: true |
| | | }); |
| | | } |
| | | |
| | | for(var i = 0; i < errorDatas.length; i++){ |
| | | let data = fileContentData[errorDatas[i].errorRow]; |
| | | console.log('data = ' + JSON.stringify(data)); |
| | | for(var j = 0; j < data.split(',').length; j++){ |
| | | let label = 'field' + j; |
| | | errorDatas[i][label] = data.split(',')[j]; |
| | | } |
| | | } |
| | | console.log('errorDatas = ' + JSON.stringify(errorDatas)) |
| | | |
| | | component.set('v.errorColumns', errorColumns); |
| | | component.set('v.errorData', errorDatas); |
| | | component.set("v.showErrorInfo", true); |
| | | |
| | | console.log("==" + res1); |
| | | // this.error( "请修æ¹åéæ°ä¸ä¼ "); |
| | | component.set('v.errorMessage', res1 + "请修æ¹åéæ°ä¸ä¼ "); |
| | | this.showErrorToast(component); |
| | | component.set('v.login', false); |
| | | component.find('save_con').set('v.disabled', true); |
| | | } else { |
| | | // this.success('导å
¥æå'); |
| | | component.set('v.successMessage', '导å
¥æå'); |
| | | this.showSuccessToast01(component); |
| | | component.set("v.showMain", true); |
| | | component.set('v.login', false); |
| | | component.find('save_con').set('v.disabled', false); |
| | | } |
| | | } |
| | | else if (state === "INCOMPLETE") { |
| | |
| | | var errors = response.getError(); |
| | | if (errors) { |
| | | if (errors[0] && errors[0].message) { |
| | | console.log("Error message: " + |
| | | errors[0].message); |
| | | console.log("Error message: " + errors[0].message); |
| | | let errorDatas = [{ |
| | | errorRow: '1', |
| | | errorInfo: errors[0].message |
| | | }]; |
| | | let errorColumns = [ |
| | | { label: 'é误è¡', fieldName: 'errorRow', type: 'text', hideDefaultActions: true, initialWidth: 50 }, |
| | | { label: 'é误信æ¯', fieldName: 'errorInfo', type: 'text', hideDefaultActions: true,initialWidth: 300,wrapText: true } |
| | | ]; |
| | | component.set('v.errorData', errorDatas); |
| | | component.set('v.errorColumns', errorColumns); |
| | | component.set("v.showErrorInfo", true); |
| | | component.set('v.login', false); |
| | | } |
| | | } else { |
| | |
| | | window.setTimeout($A.getCallback(function () { |
| | | $A.util.addClass(component.find('errorDiv'), 'slds-hide'); |
| | | }), |
| | | 7000 |
| | | 4000 |
| | | ); |
| | | }, |
| | | success : function(message) { |
| | |
| | | }); |
| | | toastEvent.fire(); |
| | | }, |
| | | //zhj 导åºéè¯¯ä¿¡æ¯ 2023-05-16 start |
| | | exportErrorInfoHelper: function (component) { |
| | | var errorData = component.get('v.errorData'); |
| | | var errorColumns = component.get('v.errorColumns'); |
| | | |
| | | var datas = []; |
| | | let errorColumnsArray = []; |
| | | for(var i in errorColumns){ |
| | | errorColumnsArray.push(errorColumns[i].label); |
| | | } |
| | | datas.push(errorColumnsArray); |
| | | //datas.push(errorColumns); |
| | | |
| | | for (var i in errorData) { |
| | | let data = []; |
| | | data.push(errorData[i].errorRow) |
| | | data.push(errorData[i].errorInfo) |
| | | for(var j = 0 ; j < Object.keys(errorData[i]).length - 2 ; j++){ |
| | | data.push(errorData[i]['field' + j]) |
| | | } |
| | | datas.push(data); |
| | | } |
| | | |
| | | console.log('datas = ' + JSON.stringify(datas)); |
| | | var csv = this.convertToCSV(component, datas); |
| | | console.log('csv = ' + JSON.stringify(csv)) |
| | | this.downloadCSV(component, csv); |
| | | }, |
| | | |
| | | convertToCSV: function (component, data) { |
| | | console.log('enter convertToCSV') |
| | | console.log('data = ' + data); |
| | | var csv = ''; |
| | | for (var i = 0; i < data.length; i++) { |
| | | var row = data[i]; |
| | | console.log('row = ' + JSON.stringify(row)); |
| | | for (var j = 0; j < row.length; j++) { |
| | | var val = ''; |
| | | val = row[j] === null ? '' : row[j].toString(); |
| | | console.log('val = ' + val); |
| | | if (val.indexOf(',') !== -1 || val.indexOf('"') !== -1 || val.indexOf('\n') !== -1) { |
| | | //val = '"' + val.replace(/"/g,'""') + '"'; |
| | | } |
| | | if (j > 0) { |
| | | csv += ','; |
| | | } |
| | | csv += val; |
| | | } |
| | | csv += '\n'; |
| | | } |
| | | return csv; |
| | | }, |
| | | |
| | | downloadCSV: function (component, csv) { |
| | | var link = document.createElement('a'); |
| | | // 设置å符éåæä»¶å¤´ |
| | | let bom = "\uFEFF"; |
| | | link.href = 'data:text/csv;charset=utf-8,' + encodeURIComponent(bom+csv); |
| | | link.download = 'data.csv'; |
| | | document.body.appendChild(link); |
| | | link.click(); |
| | | document.body.removeChild(link); |
| | | }, |
| | | //zhj 导åºéè¯¯ä¿¡æ¯ 2023-05-16 end |
| | | }) |
| New file |
| | |
| | | <aura:documentation> |
| | | <aura:description>Documentation</aura:description> |
| | | <aura:example name="ExampleName" ref="exampleComponentName" label="Label"> |
| | | Example Description |
| | | </aura:example> |
| | | </aura:documentation> |
| New file |
| | |
| | | <aura:component |
| | | implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes,force:lightningQuickActionWithoutHeader,lightning:actionOverride" |
| | | access="global"> |
| | | Â Â <aura:html tag="style"> |
| | | Â Â Â Â .slds-modal__container{ |
| | | Â Â Â Â max-width: 65rem !important; |
| | | Â Â Â Â width:100% !important; |
| | | Â Â Â Â } |
| | | Â Â Â Â .cuf-content { |
| | | Â Â Â Â padding: 0 0rem !important; |
| | | Â Â Â Â } |
| | | Â Â Â Â .slds-p-around--medium { |
| | | Â Â Â Â padding: 0rem !important; |
| | | Â Â Â Â } |
| | | Â Â Â Â .slds-modal__content{ |
| | | Â Â Â Â overflow-y:auto !important; |
| | | Â Â Â Â height:unset !important; |
| | | Â Â Â Â max-height:unset !important; |
| | | Â Â Â Â min-height:8rem; |
| | | Â Â Â Â } |
| | | Â Â Â Â .slds-tile_board{ |
| | | Â Â Â Â padding:20px 40px; |
| | | Â Â Â Â } |
| | | Â Â </aura:html> |
| | | Â Â |
| | | <c:lexNewAndEditContactPIPL onclose="{!c.closeModal}" onrefresh="{!c.refreshView}" recordId="{!v.recordId}" /> |
| | | </aura:component> |
| New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <AuraDefinitionBundle xmlns="http://soap.sforce.com/2006/04/metadata"> |
| | | <apiVersion>57.0</apiVersion> |
| | | <description>A Lightning Component Bundle</description> |
| | | </AuraDefinitionBundle> |
| New file |
| | |
| | | <design:component > |
| | | |
| | | </design:component> |
| New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8" standalone="no" ?> |
| | | <svg width="120px" height="120px" viewBox="0 0 120 120" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> |
| | | <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> |
| | | <path d="M120,108 C120,114.6 114.6,120 108,120 L12,120 C5.4,120 0,114.6 0,108 L0,12 C0,5.4 5.4,0 12,0 L108,0 C114.6,0 120,5.4 120,12 L120,108 L120,108 Z" id="Shape" fill="#2A739E" /> |
| | | <path d="M77.7383308,20 L61.1640113,20 L44.7300055,63.2000173 L56.0543288,63.2000173 L40,99.623291 L72.7458388,54.5871812 L60.907727,54.5871812 L77.7383308,20 Z" id="Path-1" fill="#FFFFFF" /> |
| | | </g> |
| | | </svg> |
| New file |
| | |
| | | ({ |
| | | closeModal : function(cmp,event,helper){ |
| | | $A.get('e.force:closeQuickAction').fire(); |
| | | }, |
| | | |
| | | refreshView : function(cmp,event,helper){ |
| | | $A.get('e.force:refreshView').fire(); |
| | | } |
| | | }) |
| New file |
| | |
| | | ({ |
| | | helperMethod : function() { |
| | | |
| | | } |
| | | }) |
| New file |
| | |
| | | ({ |
| | | |
| | | // Your renderer method overrides go here |
| | | |
| | | }) |
| | |
| | | @last modified on : 07-08-2022 |
| | | @last modified by : ChangeMeIn@UserSettingsUnder.SFDoc |
| | | --> |
| | | <aura:component |
| | | implements="force:lightningQuickActionWithoutHeader,force:hasRecordId,lightning:actionOverride,lightning:isUrlAddressable" |
| | | access="global" |
| | | controller="NewAgencyOpportunityController" |
| | | > |
| | | <aura:component implements="force:lightningQuickActionWithoutHeader,force:hasRecordId,lightning:actionOverride,lightning:isUrlAddressable" access="global" |
| | | controller="NewAgencyOpportunityController"> |
| | | |
| | | <aura:attribute name="recordId" type="Id" default="" /> |
| | | <aura:attribute name="recordTypeId" type="Id" default="" /> |
| | | <aura:attribute name="ac_name" type="string" /> |
| | |
| | | <aura:attribute name="login" type="Boolean" default="false" /> |
| | | <aura:attribute name="show" type="Boolean" default="false" /> |
| | | <aura:attribute name="showNewAgencyContact" type="Boolean" default="false" /> |
| | | <aura:handler |
| | | name="NewAgencyContactEvent" |
| | | event="c:NewAgencyContactEvent" |
| | | action="{!c.closeAgencyContact}" |
| | | /> |
| | | <aura:handler name="NewAgencyContactEvent" event="c:NewAgencyContactEvent" action="{!c.closeAgencyContact}"/> |
| | | |
| | | |
| | | |
| | | <div class="{! v.container_class}"> |
| | | <!-- header --> |
| | |
| | | <aura:if isTrue="{!v.showSpinner}"> |
| | | <lightning:spinner alternativeText="Loading" size="medium" /> |
| | | </aura:if> |
| | | |
| | | <lightning:recordEditForm objectApiName="Agency_Opportunity__c"> |
| | | <lightning:accordion |
| | | activeSectionName="{! v.section_names }" |
| | | allowMultipleSectionsOpen="true" |
| | | class="greyyyy" |
| | | > |
| | | <lightning:accordion activeSectionName="{! v.section_names }" allowMultipleSectionsOpen="true" class="greyyyy" > |
| | | <aura:iteration items="{!v.layout}" var="section"> |
| | | <aura:if isTrue="{! section.editHeading }"> |
| | | <lightning:accordionSection |
| | | name="{! section.label }" |
| | | label="ç»éå询价信æ¯" |
| | | > |
| | | <lightning:accordionSection name="{! section.label }" label="ç»éå询价信æ¯"> |
| | | <aura:iteration items="{! section.layoutColumns}" var="col"> |
| | | <aura:iteration items="{! col.layoutItems}" var="field"> |
| | | <aura:if |
| | | isTrue="{! and(field.behavior != 'Readonly', field.field != 'Agency_Contact__c')}" |
| | | > |
| | | <lightning:inputField |
| | | required="{! field.behavior == 'Required' }" |
| | | aura:id="field" |
| | | fieldName="{! field.field}" |
| | | value="{! field.value}" |
| | | /> |
| | | |
| | | <aura:if isTrue="{!and(field.behavior != 'Readonly', field.field != 'Agency_Contact__c')}"> |
| | | <lightning:inputField required="{! field.behavior == 'Required' }" aura:id="field" fieldName="{! field.field}" value="{! field.value}" /> |
| | | </aura:if> |
| | | <aura:if isTrue="{! field.field == 'Agency_Contact__c' }"> |
| | | <lightning:layout> |
| | | <lightning:layoutItem size="12"> |
| | | <lightning:input |
| | | required="{! field.behavior == 'Required' }" |
| | | label="客æ·äººå" |
| | | value="{! field.value}" |
| | | variant="label-inline" |
| | | style="margin-left: 0cm; display: none" |
| | | onclick="{! c.openModel }" |
| | | /> |
| | | <lightning:input |
| | | required="{! field.behavior == 'Required' }" |
| | | label="客æ·äººå" |
| | | value="{! v.ac_name}" |
| | | variant="label-inline" |
| | | style="margin-left: 0cm" |
| | | onclick="{! c.openModel }" |
| | | /> |
| | | <lightning:input required="{! field.behavior == 'Required' }" label="客æ·äººå" value = "{! field.value}" variant = "label-inline" style="margin-left: 0cm; display: none;" onclick="{! c.openModel }"/> |
| | | <lightning:input required="{! field.behavior == 'Required' }" label="客æ·äººå" value = "{! v.ac_name}" variant = "label-inline" style="margin-left: 0cm; " onclick="{! c.openModel }"/> |
| | | </lightning:layoutItem> |
| | | <!-- <lightning:layoutItem size="1"> |
| | | <lightning:buttonIcon iconName="utility:settings" variant="container" alternativeText="Settings" title="Settings" class = "name" /> |
| | | </lightning:layoutItem> --> |
| | | </lightning:layout> |
| | | </aura:if> |
| | | |
| | | |
| | | </aura:iteration> |
| | | </aura:iteration> |
| | | </lightning:accordionSection> |
| | |
| | | </lightning:accordion> |
| | | </lightning:recordEditForm> |
| | | |
| | | <div style="text-align: center; margin: 5px"> |
| | | <lightning:button |
| | | class="slds-button slds-button_neutral" |
| | | label="åæ¶" |
| | | onclick="{! c.cancelClick }" |
| | | /> |
| | | <lightning:button |
| | | class="slds-button slds-button_brand" |
| | | variant="brand" |
| | | label="ä¿å" |
| | | onclick="{! c.saveClick }" |
| | | /> |
| | | <div style="text-align:center;margin: 5px;"> |
| | | <lightning:button class="slds-button slds-button_neutral" label="åæ¶" onclick="{! c.cancelClick }" /> |
| | | <lightning:button class="slds-button slds-button_brand" variant="brand" label="ä¿å" onclick="{! c.saveClick }" /> |
| | | </div> |
| | | </div> |
| | | <aura:if isTrue="{!v.isModalOpen}"> |
| | | |
| | | <!-- Modal/Popup Box starts here--> |
| | | <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" |
| | | > |
| | | <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" > |
| | | |
| | | |
| | | |
| | | <aura:renderIf isTrue="{!v.login}"> |
| | | <div class="slds-spinner_container height100vh"> |
| | | <div |
| | | class="slds-spinner--brand slds-spinner slds-spinner--medium" |
| | | role="alert" |
| | | > |
| | | <div class="slds-spinner--brand slds-spinner slds-spinner--medium" role="alert"> |
| | | <span id="aa" class="slds-assistive-text">Loading</span> |
| | | <div class="slds-spinner__dot-a"></div> |
| | | <div class="slds-spinner__dot-b"></div> |
| | |
| | | </div> |
| | | </aura:renderIf> |
| | | |
| | | |
| | | |
| | | <div class="slds-modal__container"> |
| | | <!-- Modal/Popup Box Header Starts here--> |
| | | <header class="slds-modal__header"> |
| | | <lightning:buttonIcon |
| | | iconName="utility:close" |
| | | <lightning:buttonIcon iconName="utility:close" |
| | | onclick="{! c.closeModel }" |
| | | alternativeText="close" |
| | | variant="bare-inverse" |
| | | class="slds-modal__close" |
| | | /> |
| | | <h2 |
| | | id="modal-heading-01" |
| | | class="slds-text-heading_medium slds-hyphenate" |
| | | > |
| | | class="slds-modal__close"/> |
| | | <h2 id="modal-heading-01" class="slds-text-heading_medium slds-hyphenate"> |
| | | æç´¢å®¢æ·äººå |
| | | </h2> |
| | | </header> |
| | | |
| | | <!--Modal Body Start here--> |
| | | <div |
| | | class="slds-modal__content slds-p-around_medium modal-body" |
| | | id="modal-content-id-1" |
| | | > |
| | | <div class="slds-modal__content slds-p-around_medium modal-body" id="modal-content-id-1"> |
| | | <lightning:layout> |
| | | <lightning:layoutItem size="7"> |
| | | <ui:inputText |
| | | label="请è¾å
¥å®¢æ·å§å" |
| | | class="field" |
| | | value="{!v.searchKeyWord}" |
| | | /> |
| | | <ui:inputText label="请è¾å
¥å®¢æ·å§å" class="field" value="{!v.searchKeyWord}"/> |
| | | </lightning:layoutItem> |
| | | <lightning:layoutItem size="2" class="searchButton"> |
| | | <ui:button |
| | | aura:id="button" |
| | | buttonTitle="Click to see agency contact" |
| | | class="button" |
| | | label="æç´¢" |
| | | press="{!c.searchAgencyContact}" |
| | | disabled="false" |
| | | /> |
| | | <ui:button aura:id="button" buttonTitle="Click to see agency contact" class="button" label="æç´¢" press="{!c.searchAgencyContact}" disabled="false"/> |
| | | </lightning:layoutItem> |
| | | <lightning:layoutItem size="3" class="searchButton"> |
| | | <ui:button |
| | | aura:id="newAgencyContact" |
| | | buttonTitle="Click to see agency contact" |
| | | class="newAgencyContact" |
| | | label="æ°å»º.客æ·äººå" |
| | | disabled="false" |
| | | press="{!c.showNewAgency}" |
| | | /> |
| | | <ui:button aura:id="newAgencyContact" buttonTitle="Click to see agency contact" class="newAgencyContact" label="æ°å»º.客æ·äººå" disabled="false" press="{!c.showNewAgency}"/> |
| | | </lightning:layoutItem> |
| | | </lightning:layout> |
| | | <div id="QueryResult" style="margin-top: 20px"></div> |
| | | <div id="QueryResult" style = "margin-top:20px;"> |
| | | </div> |
| | | </div> |
| | | |
| | | <aura:if isTrue="{!v.showNewAgencyContact}"> |
| | | <section |
| | | role="dialog" |
| | | tabindex="-1" |
| | | aria-modal="true" |
| | | aria-labelledby="modal-heading-01" |
| | | class="slds-modal slds-fade-in-open" |
| | | aura:id="NewAgencyContact" |
| | | id="NewAgencyContact" |
| | | > |
| | | <section role="dialog" tabindex="-1" aria-modal="true" aria-labelledby="modal-heading-01" class="slds-modal slds-fade-in-open" aura:id="NewAgencyContact" id="NewAgencyContact"> |
| | | <c:NewAgencyContact2 /> |
| | | </section> |
| | | </aura:if> |
| | | |
| | | </div> |
| | | </section> |
| | | <div class="slds-backdrop slds-backdrop_open"></div> |
| | | |
| | | </aura:if> |
| | | </div> |
| | | </aura:component> |
| | |
| | | margin-top: 20px; |
| | | margin-left: 20px; |
| | | } |
| | | |
| | | .THIS .slds-spinner_container{ |
| | | position: revert; |
| | | } |
| | |
| | | ({ |
| | | |
| | | doInit: function (component, event, helper) { |
| | | let rid = component.get("v.recordId"); |
| | | let rid = component.get('v.recordId'); |
| | | let pid = null; |
| | | if (!rid) { |
| | | pid = window.location.href.replace("https://", "").split("/")[4]; |
| | | } |
| | | |
| | | let record_type_id = ""; |
| | | let pageref = component.get("v.pageReference"); |
| | | let record_type_id = ''; |
| | | let pageref = component.get("v.pageReference") |
| | | if (!record_type_id && pageref) { |
| | | record_type_id = pageref.state.recordTypeId |
| | | ? pageref.state.recordTypeId |
| | | : ""; |
| | | record_type_id = pageref.state.recordTypeId ? pageref.state.recordTypeId : ''; |
| | | } |
| | | |
| | | let isClone = component.get("v.isClone"); |
| | | let isClone = component.get('v.isClone'); |
| | | if (!rid || isClone) { |
| | | component.set("v.title", $A.get("$Label.c.New") + "ç»éå询价"); |
| | | component.set('v.title',$A.get("$Label.c.New")+'ç»éå询价'); |
| | | component.set("v.recordTypeId", record_type_id); |
| | | } else { |
| | | component.set("v.title", $A.get("$Label.c.Edit") + "ç»éå询价"); |
| | | component.set('v.title',$A.get("$Label.c.Edit")+'ç»éå询价'); |
| | | } |
| | | console.log("rid: " + rid); |
| | | console.log("pid: " + pid); |
| | | console.log("record_type_id: " + record_type_id); |
| | | console.log('rid: ' + rid); |
| | | console.log('pid: ' + pid); |
| | | console.log('record_type_id: ' + record_type_id); |
| | | component.set("v.showSpinner", true); |
| | | helper.CallBackAction( |
| | | component, |
| | | "Init", |
| | | { |
| | | helper.CallBackAction(component,'Init',{ |
| | | rid: rid, |
| | | pid: pid, |
| | | //rid : component.get('v.recordId'), |
| | | record_type_id: record_type_id |
| | | }, |
| | | function (data) { |
| | | console.log("data: " + data); |
| | | if (data.getState() == "SUCCESS") { |
| | | },function(data){ |
| | | console.log('data: ' + data); |
| | | var rv = data.getReturnValue(); |
| | | console.log(rv); |
| | | console.log('rv:' + rv); |
| | | console.log('rv.Data:' + rv.Data); |
| | | console.log('rv.IsSuccess:' + rv.IsSuccess); |
| | | if(data.getState() == "SUCCESS"){ |
| | | if (rv.IsSuccess) { |
| | | debugger; |
| | | let layout = JSON.parse(rv.Data.layout); |
| | | debugger; |
| | | let fields = rv.Data.fields; |
| | | let staticResource = JSON.parse(rv.Data.staticResource); |
| | | let section_names = []; |
| | | debugger; |
| | | let staticResource = JSON.parse(rv.Data.staticResource) |
| | | debugger; |
| | | let section_names = layout.map(s=>s.label); |
| | | debugger; |
| | | // let awsData = rv.Data.awsDataIds; |
| | | section_names = layout.map((s) => s.label); |
| | | component.set("v.section_names", section_names); |
| | | |
| | | // section_names = layout.map(s=>s.label); |
| | | component.set('v.section_names',section_names); |
| | | component.set('v.layout',layout); |
| | | component.set('v.fields',fields); |
| | | component.set('v.staticResource',staticResource); |
| | | debugger; |
| | | let m = {}; |
| | | for (let f of staticResource.PIDetails) { |
| | | m[f.SF_Field_API_Name__c] = f; |
| | | } |
| | | component.set("v.pi_fields_map", m); |
| | | |
| | | component.set('v.pi_fields_map',m); |
| | | if (rv.Data && rv.Data.data) { |
| | | console.log("rv.Data.data = " + rv.Data.data); |
| | | debugger; |
| | | console.log('rv.Data.data = ' + rv.Data.data); |
| | | for (let s of layout) { |
| | | for (let c of s.layoutColumns) { |
| | | for (let item of c.layoutItems) { |
| | | if (rv.Data.data.hasOwnProperty(item.field)) { |
| | | item.value = rv.Data.data[item.field]; |
| | | } |
| | | |
| | | if (fields.hasOwnProperty(item.field)) { |
| | | item.fi = fields[item.field]; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | component.set("v.layout", layout); |
| | | component.set("v.record_data", rv.Data.data); |
| | | |
| | | // component.set('v.layout',layout); |
| | | component.set('v.record_data',rv.Data.data); |
| | | if (rv.Data.data.Agency_Contact__r) { |
| | | if (rv.Data.data.Agency_Contact__r.AWS_Data_Id__c) { |
| | | helper.AwsGet( |
| | | staticResource.queryUrl, |
| | | { |
| | | helper.AwsGet(staticResource.queryUrl, { |
| | | dataId: rv.Data.data.Agency_Contact__r.AWS_Data_Id__c |
| | | }, |
| | | function (data) { |
| | | console.log("data = " + data); |
| | | }, function(data){ |
| | | console.log('data = ' + data); |
| | | if (data.object) { |
| | | component.set("v.ac_name", data.object.name); |
| | | component.set('v.ac_name',data.object.name); |
| | | } |
| | | }, |
| | | staticResource.token |
| | | ); |
| | | }, staticResource.token); |
| | | } |
| | | } |
| | | |
| | | // }, staticResource.token); |
| | | } else { |
| | | debugger; |
| | | console.log('rv.Data.data = ' + rv.Data.data); |
| | | console.log('layout = ' + layout); |
| | | for (let s of layout) { |
| | | for (let c of s.layoutColumns) { |
| | | for (let item of c.layoutItems) { |
| | | if ( |
| | | rv.Data && |
| | | fields.hasOwnProperty(item.field) && |
| | | fields[item.field].References && |
| | | fields[item.field].References.map((m) => m.value).indexOf( |
| | | rv.Data.pidType |
| | | ) > -1 |
| | | ) { |
| | | if(rv.Data && fields.hasOwnProperty(item.field) && fields[item.field].References && fields[item.field].References.map(m=>m.value).indexOf(rv.Data.pidType) > -1){ |
| | | item.value = pid; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | component.set("v.layout", layout); |
| | | debugger; |
| | | // component.set('v.layout',layout); |
| | | } |
| | | // component.set('v.fields',fields); |
| | | // component.set('v.staticResource',staticResource); |
| | | component.set("v.showSpinner", false); |
| | | }else{ |
| | | component.set("v.showSpinner", false); |
| | | helper.ShowToast({ |
| | | "message" : rv.Message, |
| | | "type" : "error" |
| | | }); |
| | | } |
| | | |
| | | component.set("v.fields", fields); |
| | | component.set("v.staticResource", staticResource); |
| | | component.set("v.showSpinner", false); |
| | | } else { |
| | | component.set("v.showSpinner", false); |
| | | helper.ShowToast({ |
| | | message: rv.Message, |
| | | type: "error" |
| | | "message" : "Init error", |
| | | "type" : "error" |
| | | }); |
| | | |
| | | } |
| | | } else { |
| | | component.set("v.showSpinner", false); |
| | | helper.ShowToast({ |
| | | message: "Init error", |
| | | type: "error" |
| | | }); |
| | | } |
| | | } |
| | | ); |
| | | }, |
| | | saveClick: function (component, event, helper) { |
| | | let staticResource = component.get("v.staticResource"); |
| | | let record_id = component.get("v.recordId"); |
| | | let record_type_id = component.get("v.recordTypeId"); |
| | | |
| | | let isClone = component.get("v.isClone"); |
| | | let staticResource = component.get('v.staticResource'); |
| | | let record_id = component.get('v.recordId'); |
| | | let record_type_id = component.get('v.recordTypeId'); |
| | | |
| | | let isClone = component.get('v.isClone'); |
| | | let url = staticResource.newUrl; |
| | | let payloadPi = {}; |
| | | if (record_id && !isClone) { |
| | | url = staticResource.updateUrl; |
| | | payloadPi["dataId"] = component.get("v.record_data").AWS_Data_Id__c; |
| | | url = staticResource.updateUrl |
| | | payloadPi['dataId'] = component.get('v.record_data').AWS_Data_Id__c; |
| | | } |
| | | let layout = component.get("v.layout"); |
| | | let layout = component.get('v.layout'); |
| | | |
| | | let pi_fields_map = component.get("v.pi_fields_map"); |
| | | let pi_fields_map = component.get('v.pi_fields_map'); |
| | | |
| | | for (let s of layout) { |
| | | for (let c of s.layoutColumns) { |
| | | for (let item of c.layoutItems) { |
| | | if (pi_fields_map.hasOwnProperty(item.field)) { |
| | | |
| | | payloadPi[pi_fields_map[item.field].AWS_Field_API__c] = item.value; |
| | | } |
| | | |
| | |
| | | let fs = component.find("field"); |
| | | for (let fi in fs) { |
| | | let f = fs[fi]; |
| | | if (!f.get("v.value")) { |
| | | if(!f.get('v.value')){ |
| | | f.reset(); |
| | | } |
| | | } |
| | |
| | | } |
| | | |
| | | component.set("v.showSpinner", true); |
| | | debugger; |
| | | debugger |
| | | let data = {}; |
| | | if (record_id && !isClone) { |
| | | data.Id = record_id; |
| | |
| | | } |
| | | } |
| | | let x = 1; |
| | | helper.CallBackAction( |
| | | component, |
| | | "Save", |
| | | { |
| | | helper.CallBackAction(component,'Save',{ |
| | | data: data, |
| | | transId: "1", |
| | | transId :'1', |
| | | recordTypeId: record_type_id |
| | | }, |
| | | function (data) { |
| | | },function(data){ |
| | | component.set("v.showSpinner", false); |
| | | if (data.getState() == "SUCCESS") { |
| | | var rv = data.getReturnValue(); |
| | |
| | | if (rv.IsSuccess) { |
| | | sfId = rv.Data.recordId; |
| | | helper.ShowToast({ |
| | | message: "æå", |
| | | type: "success" |
| | | "message" : "æå", |
| | | "type" : "success" |
| | | }); |
| | | if (record_id) { |
| | | $A.get("e.force:closeQuickAction").fire(); |
| | | $A.get("e.force:refreshView").fire(); |
| | | $A.get('e.force:refreshView').fire(); |
| | | } else { |
| | | var sObjectEvent = $A.get("e.force:navigateToSObject"); |
| | | sObjectEvent.setParams({ |
| | | recordId: sfId |
| | | }); |
| | | "recordId": sfId |
| | | }) |
| | | sObjectEvent.fire(); |
| | | } |
| | | } else { |
| | | helper.ShowToast({ |
| | | message: rv.Message, |
| | | type: "error" |
| | | "message" : rv.Message, |
| | | "type" : "error" |
| | | }); |
| | | } |
| | | } else { |
| | | helper.ShowToast({ |
| | | message: "Init error", |
| | | type: "error" |
| | | "message" : "Init error", |
| | | "type" : "error" |
| | | }); |
| | | } |
| | | } |
| | | ); |
| | | }) |
| | | }, |
| | | cancelClick: function (component, event, helper) { |
| | | $A.get("e.force:closeQuickAction").fire(); |
| | | //component.set("v.showNewAgencyContact", false); |
| | | }, |
| | | searchAgencyContact: function (component, event, helper) { |
| | | component.find("button").set("v.disabled", true); |
| | | component.find('button').set('v.disabled', true); |
| | | helper.resetTable(); |
| | | helper.preparePayloadForSearchAgencyContact(component, event, helper); |
| | | }, |
| | | initContactTable: function (component, event, helper) { |
| | | let cols = ["Name", "AgencyHospital", "DoctorDivision1", "Type"]; |
| | | let cols = ['Name','AgencyHospital', 'DoctorDivision1','Type']; |
| | | let contactInfoList = []; |
| | | let awsDataIds = []; |
| | | let data = component.get("v.result"); |
| | | let data = component.get('v.result'); |
| | | if (data.object) { |
| | | for (var i = 0; i < data.object.length; i++) { |
| | | if (data.object[i].dataId) { |
| | |
| | | contactInfo.Type = data.object[i].type; |
| | | contactInfo.pi = true; |
| | | awsDataIds.push(contactInfo.AWSDataId); |
| | | contactInfo.sfRecordId = ""; |
| | | contactInfo.sfRecordId = ''; |
| | | contactInfoList.push(contactInfo); |
| | | } |
| | | } |
| | |
| | | let AWSIdToSFIdMapValue = {}; |
| | | }, |
| | | openModel: function (component, event, helper) { |
| | | let layout = component.get("v.layout"); |
| | | let layout = component.get('v.layout'); |
| | | for (let s of layout) { |
| | | for (let c of s.layoutColumns) { |
| | | for (let item of c.layoutItems) { |
| | | if (item.field == "Agency_Hospital__c" && !item.value) { |
| | | console.log("item.value = " + item.value); |
| | | if(item.field == 'Agency_Hospital__c' && !item.value){ |
| | | console.log('item.value = ' + item.value) |
| | | helper.ShowToast({ |
| | | message: "请å
éæ©ç»éåå»é¢", |
| | | type: "warning" |
| | | "message" : "请å
éæ©ç»éåå»é¢", |
| | | "type" : "warning" |
| | | }); |
| | | return; |
| | | return |
| | | } |
| | | } |
| | | } |
| | | } |
| | | // Set isModalOpen true |
| | | component.set("v.isModalOpen", true); |
| | | component.find("button").set("v.disabled", true); |
| | | component.find('button').set('v.disabled', true); |
| | | helper.preparePayloadForSearchAgencyContact(component, event, helper); |
| | | }, |
| | | |
| | |
| | | closeAgencyContact: function (component, event, helper) { |
| | | var message = event.getParam("showNewAgencyContact"); |
| | | component.set("v.showNewAgencyContact", message); |
| | | component.find("button").set("v.disabled", true); |
| | | component.find('button').set('v.disabled', true); |
| | | helper.resetTable(); |
| | | helper.preparePayloadForSearchAgencyContact(component, event, helper); |
| | | } |
| | | }); |
| | | }, |
| | | }) |
| | |
| | | ({ |
| | | CallBackAction: function (component, action_name, para, callback) { |
| | | var action = component.get( |
| | | "c." + action_name.trimStart().replace("c.", "") |
| | | ); |
| | | var action = component.get("c." + action_name.trimStart().replace("c.","")); |
| | | if (para) { |
| | | action.setParams(para); |
| | | } |
| | |
| | | toastEvent.fire(); |
| | | }, |
| | | AwsPost: function (postURL, data, callback, token) { |
| | | let payloadForNewPI = ""; |
| | | if (typeof data == "string") { |
| | | let payloadForNewPI = ''; |
| | | if(typeof(data) == 'string'){ |
| | | payloadForNewPI = data; |
| | | } else { |
| | | payloadForNewPI = JSON.stringify(data); |
| | | } |
| | | |
| | | AWSService.post( |
| | | postURL, |
| | | payloadForNewPI, |
| | | function (result) { |
| | | AWSService.post(postURL,payloadForNewPI,function(result) { |
| | | //this.insertCalloutLog(this.insertModule,postURL,JSON.stringify(payloadForNewPI),JSON.stringify(result),this.successStatus); |
| | | if (callback) callback(result); |
| | | }, |
| | | token |
| | | ); |
| | | },token); |
| | | }, |
| | | AwsGet: function (url, data, callback, token) { |
| | | if (typeof data == "string") { |
| | | |
| | | if(typeof(data) == 'string'){ |
| | | url += data; |
| | | } else { |
| | | let i = 0; |
| | | for (let p in data) { |
| | | url += i++ ? "&" : "?"; |
| | | url += p + "=" + data[p]; |
| | | url += (i++) ? '&' : '?'; |
| | | url += p + '=' + data[p]; |
| | | } |
| | | } |
| | | |
| | | AWSService.get( |
| | | url, |
| | | function (result) { |
| | | AWSService.get(url,function(result){ |
| | | //this.insertCalloutLog(this.insertModule,postURL,JSON.stringify(payloadForNewPI),JSON.stringify(result),this.successStatus); |
| | | if (callback) callback(result); |
| | | },token); |
| | | }, |
| | | token |
| | | ); |
| | | }, |
| | | refreshTable: function ( |
| | | component, |
| | | event, |
| | | helper, |
| | | cols, |
| | | contactInfoList, |
| | | contactsInfo |
| | | ) { |
| | | refreshTable : function(component, event, helper,cols,contactInfoList,contactsInfo){ |
| | | let that = this; |
| | | let myTableDiv = document.getElementById("QueryResult"); |
| | | let table = document.createElement("TABLE"); |
| | | table.border = "1"; |
| | | table.id = "table"; |
| | | table.setAttribute( |
| | | "class", |
| | | "slds-table slds-table_cell-buffer slds-table_bordered" |
| | | ); |
| | | let tableBody = document.createElement("TBODY"); |
| | | let table = document.createElement('TABLE'); |
| | | table.border = '1'; |
| | | table.id = 'table'; |
| | | table.setAttribute('class','slds-table slds-table_cell-buffer slds-table_bordered'); |
| | | let tableBody = document.createElement('TBODY'); |
| | | table.appendChild(tableBody); |
| | | let headerTR = document.createElement("TR"); |
| | | headerTR.setAttribute("class", "slds-line-height_reset"); |
| | | let colsHeader = ["å§å", "å»é¢", "å»çåºå(èå¡)", "åç±»"]; |
| | | let headerTR = document.createElement('TR'); |
| | | headerTR.setAttribute('class','slds-line-height_reset'); |
| | | let colsHeader = ['å§å','å»é¢', 'å»çåºå(èå¡)','åç±»']; |
| | | tableBody.appendChild(headerTR); |
| | | for (let i = 0; i < colsHeader.length; i++) { |
| | | let td = document.createElement("TH"); |
| | | td.width = "75"; |
| | | td.setAttribute("class", "slds-truncate"); |
| | | let td = document.createElement('TH'); |
| | | td.width = '75'; |
| | | td.setAttribute('class','slds-truncate slds-border_right'); |
| | | td.appendChild(document.createTextNode(colsHeader[i])); |
| | | headerTR.appendChild(td); |
| | | } |
| | | //3. Init the AWS data |
| | | for (let i = 0; i < contactInfoList.length; i++) { |
| | | let tr = document.createElement("TR"); |
| | | let tr = document.createElement('TR'); |
| | | tableBody.appendChild(tr); |
| | | let contactInfoTemp = contactInfoList[i]; |
| | | let contactInfoTemp = contactInfoList[i] |
| | | for (let j = 0; j < cols.length; j++) { |
| | | let td = document.createElement("TD"); |
| | | td.width = "75"; |
| | | let td = document.createElement('TD'); |
| | | td.width = '75'; |
| | | if (contactInfoTemp.pi) { |
| | | if (!contactsInfo.hasOwnProperty(contactInfoTemp.AWSDataId)) { |
| | | continue; |
| | |
| | | } else { |
| | | td.id = contactInfoTemp.sfRecordId; |
| | | } |
| | | td.appendChild( |
| | | document.createTextNode( |
| | | contactInfoTemp[cols[j]] != null ? contactInfoTemp[cols[j]] : "" |
| | | ) |
| | | ); |
| | | if (cols[j] == "Name") { |
| | | td.appendChild(document.createTextNode(contactInfoTemp[cols[j]]!=null?contactInfoTemp[cols[j]]:'')); |
| | | if (cols[j] == 'Name') { |
| | | td.addEventListener("click", function (obj) { |
| | | that.redirectToParentPage(component, event, helper, obj); |
| | | }); |
| | |
| | | } |
| | | } |
| | | myTableDiv.appendChild(table); |
| | | component.find("button").set("v.disabled", false); |
| | | component.find('button').set('v.disabled', false); |
| | | }, |
| | | redirectToParentPage: function (component, event, helper, obj) { |
| | | let agencyContactName = obj.currentTarget.innerText; |
| | | let id = obj.currentTarget.id; |
| | | component.set("v.ac_name", agencyContactName); |
| | | let layout = component.get("v.layout"); |
| | | component.set('v.ac_name',agencyContactName); |
| | | let layout = component.get('v.layout'); |
| | | for (let s of layout) { |
| | | for (let c of s.layoutColumns) { |
| | | for (let item of c.layoutItems) { |
| | | if (item.field == "Agency_Contact__c") { |
| | | if(item.field == 'Agency_Contact__c'){ |
| | | item.value = id; |
| | | } |
| | | } |
| | |
| | | component.set("v.isModalOpen", false); |
| | | }, |
| | | resetTable: function () { |
| | | let queryResult = document.getElementById("QueryResult"); |
| | | let table = document.getElementsByTagName("table"); |
| | | let queryResult = document.getElementById('QueryResult'); |
| | | let table = document.getElementsByTagName('table'); |
| | | debugger; |
| | | console.log('table:' + table); |
| | | debugger; |
| | | if (table.length > 1) { |
| | | for (var i = 1; i < table.length; i++) { |
| | | queryResult.removeChild(table[i]); |
| | | queryResult.removeChild(table[i]) |
| | | } |
| | | } |
| | | }, |
| | | preparePayloadForSearchAgencyContact: function (component, event, helper) { |
| | | let that = this; |
| | | let agencyHospitalId = ""; |
| | | let accountId = ""; |
| | | let layout = component.get("v.layout"); |
| | | let agencyHospitalId = ''; |
| | | let accountId = ''; |
| | | let layout = component.get('v.layout'); |
| | | for (let s of layout) { |
| | | for (let c of s.layoutColumns) { |
| | | for (let item of c.layoutItems) { |
| | | if (item.field == "Agency_Hospital__c") { |
| | | if(item.field == 'Agency_Hospital__c'){ |
| | | agencyHospitalId = item.value; |
| | | } |
| | | if (item.field == "Account_Opp__c") { |
| | | if(item.field == 'Account_Opp__c'){ |
| | | accountId = item.value; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | var action = component.get("c.getAWSDataIds"); |
| | | var action = component.get('c.getAWSDataIds'); |
| | | action.setParams({ |
| | | agencyHospitalId: agencyHospitalId, |
| | | accountId: accountId |
| | | "agencyHospitalId" : agencyHospitalId, |
| | | "accountId" : accountId |
| | | }); |
| | | action.setCallback(this, function (response) { |
| | | var state = response.getState(); |
| | | if (state == "SUCCESS") { |
| | | if(state == 'SUCCESS'){ |
| | | var rv = response.getReturnValue(); |
| | | if (rv.Data.length == 0) { |
| | | component.find("button").set("v.disabled", false); |
| | | component.find('button').set('v.disabled', false); |
| | | helper.ShowToast({ |
| | | message: "该ç»éåå»é¢ä¸é¢æ²¡æå®¢æ·äººå", |
| | | type: "warning" |
| | | "message" : "该ç»éåå»é¢ä¸é¢æ²¡æå®¢æ·äººå", |
| | | "type" : "warning" |
| | | }); |
| | | return; |
| | | return |
| | | } |
| | | let searchPayload = new Object(); |
| | | let searchAgencyContactName = component.get("v.searchKeyWord"); |
| | | let searchAgencyContactName = component.get('v.searchKeyWord'); |
| | | searchPayload.dataIds = rv.Data; |
| | | searchPayload.name = searchAgencyContactName; |
| | | component.set("v.contactAWSIds", rv.Data); |
| | | let staticResource = component.get("v.staticResource"); |
| | | component.set('v.contactAWSIds',rv.Data); |
| | | let staticResource = component.get('v.staticResource'); |
| | | let url = staticResource.searchUrl; |
| | | let token = staticResource.token; |
| | | this.AwsPost( |
| | | url, |
| | | searchPayload, |
| | | function (data) { |
| | | this.AwsPost(url,searchPayload,function(data){ |
| | | if (data.success) { |
| | | let cols = ["Name", "AgencyHospital", "DoctorDivision1", "Type"]; |
| | | let cols = ['Name','AgencyHospital', 'DoctorDivision1','Type']; |
| | | let contactInfoList = []; |
| | | let awsDataIds = []; |
| | | if (data.object.length == 0) { |
| | | component.find("button").set("v.disabled", false); |
| | | component.find('button').set('v.disabled', false); |
| | | that.ShowToast({ |
| | | message: "æ²¡ææ¥è¯¢å°è¯¥å®¢æ·äººå", |
| | | type: "warning" |
| | | "message" : 'æ²¡ææ¥è¯¢å°è¯¥å®¢æ·äººå', |
| | | "type" : "warning" |
| | | }); |
| | | return; |
| | | return |
| | | } |
| | | for (var i = 0; i < data.object.length; i++) { |
| | | if (data.object[i].dataId) { |
| | | let contactInfo = new Object(); |
| | | //éè¦ä¿®æ¹ |
| | | contactInfo.Name = data.object[i].name; |
| | | contactInfo.AgencyHospital = ""; |
| | | contactInfo.AgencyHospital = ''; |
| | | contactInfo.DoctorDivision1 = data.object[i].doctorDivision1; |
| | | contactInfo.AWSDataId = data.object[i].dataId; |
| | | contactInfo.Type = data.object[i].type; |
| | | contactInfo.pi = true; |
| | | awsDataIds.push(contactInfo.AWSDataId); |
| | | contactInfo.sfRecordId = ""; |
| | | contactInfo.sfRecordId = ''; |
| | | contactInfoList.push(contactInfo); |
| | | } |
| | | } |
| | | //let AWSIdToSFIdMapValue = {}; |
| | | var searchAgencyContacts = component.get( |
| | | "c.searchAgencyContacts" |
| | | ); |
| | | var searchAgencyContacts = component.get('c.searchAgencyContacts'); |
| | | searchAgencyContacts.setParams({ |
| | | awsAgencyContactIds: JSON.stringify(awsDataIds), |
| | | agencyHospitalId: agencyHospitalId, |
| | | accountId: accountId |
| | | "awsAgencyContactIds" : JSON.stringify(awsDataIds), |
| | | "agencyHospitalId" : agencyHospitalId, |
| | | "accountId" : accountId |
| | | }); |
| | | searchAgencyContacts.setCallback(this, function (response) { |
| | | var state = response.getState(); |
| | | if (state == "SUCCESS") { |
| | | if(state == 'SUCCESS'){ |
| | | var rv = response.getReturnValue(); |
| | | if (rv.IsSuccess) { |
| | | let contactsInfo = ""; |
| | | let contactsInfo = ''; |
| | | if (rv.Data) { |
| | | contactsInfo = JSON.parse( |
| | | rv.Data.replace(/("\;)/g, '"') |
| | | ); |
| | | contactsInfo = JSON.parse(rv.Data.replace(/("\;)/g,"\"")); |
| | | if (Object.keys(contactsInfo).length > 0) { |
| | | for (let i = 0; i < contactInfoList.length; i++) { |
| | | let contactFromSF = |
| | | contactsInfo[contactInfoList[i]["AWSDataId"]]; |
| | | let contactFromSF = contactsInfo[contactInfoList[i]['AWSDataId']]; |
| | | if (contactFromSF) { |
| | | contactInfoList[i].sfRecordId = contactFromSF["Id"]; |
| | | if (contactFromSF["Agency_Hospital__r"]) { |
| | | contactInfoList[i].AgencyHospital = |
| | | contactFromSF["Agency_Hospital__r"]["Name"]; |
| | | contactInfoList[i].sfRecordId = contactFromSF['Id']; |
| | | if(contactFromSF['Agency_Hospital__r']){ |
| | | contactInfoList[i].AgencyHospital = contactFromSF['Agency_Hospital__r']['Name']; |
| | | } |
| | | if (contactFromSF["Department_Class__r"]) { |
| | | contactInfoList[i].AgencyHospital = |
| | | contactFromSF["Department_Class__r"]["Parent"][ |
| | | "Name" |
| | | ]; |
| | | if(contactFromSF['Department_Class__r']){ |
| | | contactInfoList[i].AgencyHospital = contactFromSF['Department_Class__r']['Parent']['Name']; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | that.refreshTable( |
| | | component, |
| | | event, |
| | | helper, |
| | | cols, |
| | | contactInfoList, |
| | | contactsInfo |
| | | ); |
| | | that.refreshTable(component, event, helper,cols,contactInfoList,contactsInfo); |
| | | } |
| | | } |
| | | }); |
| | | $A.enqueueAction(searchAgencyContacts); |
| | | } |
| | | }, |
| | | token |
| | | ); |
| | | },token); |
| | | } |
| | | }); |
| | | $A.enqueueAction(action); |
| | | } |
| | | }); |
| | | }) |
| | |
| | | ({ |
| | | |
| | | // Your renderer method overrides go here |
| | | }); |
| | | |
| | | }) |
| | |
| | | <aura:component |
| | | controller="WeeklyReportCmp" |
| | | implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,force:lightningQuickAction,forceCommunity:availableForAllPageTypes" |
| | | access="global" |
| | | > |
| | | <aura:component controller="WeeklyReportCmp" implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,force:lightningQuickAction,forceCommunity:availableForAllPageTypes" access="global" > |
| | | <ltng:require styles="{!$Resource.multilineToastCSS}" />Â |
| | | <aura:handler name="init" value="{!this}" action="{!c.doInit}" /> |
| | | <aura:handler |
| | | event="c:strike_evt" |
| | | action="{!c.createAopp}" |
| | | name="strike_evt_addNewRecord" |
| | | /> |
| | | <aura:attribute |
| | | name="data" |
| | | type="Agency_Report__c" |
| | | default="{sobjectType:'Agency_Report__c'}" |
| | | /> |
| | | <aura:attribute |
| | | name="oppdata" |
| | | type="Agency_Opportunity__c" |
| | | default="{sobjectType:'Agency_Opportunity__c'}" |
| | | /> |
| | | <aura:attribute |
| | | name="acondata" |
| | | type="Agency_Contact__c" |
| | | default="{sobjectType:'Agency_Contact__c'}" |
| | | /> |
| | | <aura:handler event="c:strike_evt" action="{!c.createAopp}" name="strike_evt_addNewRecord"/> |
| | | <aura:attribute name="data" type="Agency_Report__c" default="{sobjectType:'Agency_Report__c'}"/> |
| | | <aura:attribute name="oppdata" type="Agency_Opportunity__c" default="{sobjectType:'Agency_Opportunity__c'}"/> |
| | | <aura:attribute name="acondata" type="Agency_Contact__c" default="{sobjectType:'Agency_Contact__c'}"/> |
| | | <!-- <aura:attribute name="oppdata_old" type="Agency_Opportunity__c" default="{sobjectType:'Agency_Opportunity__c'}"/> --> |
| | | <aura:attribute name="Close_Forecasted_Date__c_o" type="Date" /> |
| | | <aura:attribute name="Amount__c_o" type="String" /> |
| | |
| | | <aura:attribute name="doctor_list" type="Map" /> |
| | | <aura:attribute name="doctor_title" type="String" /> |
| | | <aura:attribute name="opportunity_list" type="Map" /> |
| | | <aura:handler |
| | | name="change" |
| | | value="{!v.data.Opportunity__c}" |
| | | action="{!c.opportunityChange}" |
| | | /> |
| | | <aura:handler name="change" value="{!v.data.Opportunity__c}" action="{!c.opportunityChange}"/> |
| | | <aura:attribute name="edit_copy_select_report_id" type="String" /> |
| | | <aura:attribute name="create_agency_report_id" type="String" /> |
| | | <aura:attribute name="reports" type="List" /> |
| | |
| | | <aura:handler name="change" value="{!v.data.Product_Category2__c}" action="{!c.productcategoryChange2}"/> |
| | | <aura:handler name="change" value="{!v.data.Product_Category3__c}" action="{!c.productcategoryChange3}"/> --> |
| | | <!-- <aura:handler name="change" value="{!v.oppdata.StageName__c}" action="{!c.stageNameChange}"/> --> |
| | | <aura:attribute |
| | | name="update_select_report_data_id" |
| | | type="String" |
| | | default="" |
| | | /> |
| | | <aura:attribute name="update_select_report_data_id" type="String" default=""/> |
| | | |
| | | <!-- æ¹éæ·»å 卿¥ start--> |
| | | <aura:attribute name="reports_date" type="List" /> |
| | | <!-- <aura:attribute name="reports_date1" type="Date" /> |
| | | <aura:attribute name="reports_date2" type="Date" /> --> |
| | | <aura:attribute |
| | | name="TableContent" |
| | | type="String" |
| | | description=" Show the Result class" |
| | | /> |
| | | <aura:attribute |
| | | name="TableContent2" |
| | | type="String" |
| | | description=" Show the Result class" |
| | | /> |
| | | <aura:attribute |
| | | name="TargetFileName" |
| | | type="String" |
| | | description="Name of the file" |
| | | /> |
| | | <aura:attribute name="TableContent" type="String" description=" Show the Result class"/> |
| | | <aura:attribute name="TableContent2" type="String" description=" Show the Result class"/> |
| | | <aura:attribute name="TargetFileName" type="String" description="Name of the file"/> |
| | | <aura:attribute name="tableheaders" type="Object[]" /> |
| | | <aura:attribute name="fileContentData" type="String" /> |
| | | <aura:attribute name="filename" type="String" /> |
| | |
| | | <aura:attribute name="contactawsurl" type="Map" /> |
| | | <aura:attribute name="allselectlistAgencyPerson" type="Map" /> |
| | | <!-- PIPL update Yin Mingjie 21/02/2022 end --> |
| | | |
| | | <!-- start DTT-zhj å¢å é误信æ¯table 2023-05-16--> |
| | | <aura:attribute name="errorData" type="Object" /> |
| | | <aura:attribute name="errorColumns" type="List" /> |
| | | <!-- show Error information --> |
| | | <aura:attribute name="showErrorInfo" type="Boolean" default="false" /> |
| | | <!-- end DTT-zhj å¢å é误信æ¯table 2023-05-16--> |
| | | |
| | | <!-- æ¹éæ·»å 卿¥ end--> |
| | | <ltng:require scripts="{! $Resource.AWSService+'/AWSService.js' }" /> |
| | | <ltng:require scripts="{! $Resource.jquery183minjs }" /> |
| | | |
| | | <!--ãã¼ãä¸...--> |
| | | <aura:renderIf isTrue="{!v.login}"> |
| | | <div class="slds-spinner_container height100vh"> |
| | | <div |
| | | class="slds-spinner--brand slds-spinner slds-spinner--medium" |
| | | role="alert" |
| | | > |
| | | <div class="weeklyReportSpinner"> |
| | | <div class="slds-spinner_container"> |
| | | <div class="slds-spinner--brand slds-spinner slds-spinner--medium" role="alert"> |
| | | <span id="aa" class="slds-assistive-text">Loading</span> |
| | | <div class="slds-spinner__dot-a"></div> |
| | | <div class="slds-spinner__dot-b"></div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </aura:renderIf> |
| | | |
| | | <div aura:id="report" id="report" class="contents_wrapper"> |
| | | <div aura:id="report" id="report"> |
| | | <div class="slds-grid slds-wrap slds-grid--pull-padded"> |
| | | <div |
| | | class="tr mt5 slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--1-of-12 slds-large-size--1-of-12" |
| | | > |
| | | <div class="tr mt5 slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--1-of-12 slds-large-size--1-of-12"> |
| | | å¨ |
| | | </div> |
| | | <div |
| | | class="slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--3-of-12 slds-large-size--3-of-12" |
| | | > |
| | | <ui:inputSelect |
| | | aura:id="select_date" |
| | | class="slds-select" |
| | | change="{!c.select_date_change}" |
| | | /> |
| | | <div class="slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--3-of-12 slds-large-size--3-of-12"> |
| | | <ui:inputSelect aura:id="select_date" class="slds-select" change="{!c.select_date_change}"/> |
| | | </div> |
| | | |
| | | <!-- 代çåºæ
å½è
--> |
| | | <div |
| | | class="tr mt5 slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--1-of-12 slds-large-size--1-of-12" |
| | | > |
| | | <div class="tr mt5 slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--1-of-12 slds-large-size--1-of-12"> |
| | | {!v.fieldsmap.Person_In_Charge2__c} |
| | | </div> |
| | | <div |
| | | class="slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--3-of-12 slds-large-size--3-of-12" |
| | | > |
| | | <ui:inputSelect |
| | | aura:id="select_agency_person" |
| | | class="slds-select agency_person_select" |
| | | change="{!c.select_agency_change}" |
| | | /> |
| | | <div class="slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--3-of-12 slds-large-size--3-of-12"> |
| | | <ui:inputSelect aura:id="select_agency_person" class="slds-select agency_person_select" change="{!c.select_agency_change}"/> |
| | | </div> |
| | | <div |
| | | class="tr slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--2-of-12 slds-large-size--2-of-12" |
| | | > |
| | | <ui:button |
| | | aura:id="new_button" |
| | | label="æ°å»º" |
| | | press="{!c.new_report}" |
| | | disabled="true" |
| | | /> |
| | | <div class="tr slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--1-of-12 slds-large-size--1-of-12"> |
| | | <ui:button aura:id="new_button" label="æ°å»º" press="{!c.new_report}" disabled="true"/> |
| | | </div> |
| | | <div |
| | | class="slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--2-of-12 slds-large-size--2-of-12" |
| | | > |
| | | <ui:button |
| | | aura:id="copy_button" |
| | | label="å¤å¶" |
| | | press="{!c.copy_button}" |
| | | disabled="true" |
| | | /> |
| | | <div class="slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--3-of-12 slds-large-size--3-of-12"> |
| | | <ui:button aura:id="copy_button" label="å¤å¶" press="{!c.copy_button}" disabled="true"/> |
| | | <!-- <ui:button aura:id="import" label="导å
¥" press="{!c.import}" /> --> |
| | | <ui:button aura:id="import" label="导å
¥" press="{!c.import}" /> |
| | | |
| | | <!-- <input type="file" class="file" aura:id="file" onchange="{!c.CreateRecord}" style="position:absolute;filter:alpha(opacity=0);" size="1" hidden="true" /> --> |
| | | <!-- <ui:button aura:id="import" label="导åº" press="{!c.export}"/> --> |
| | | <ui:button |
| | | aura:id="export" |
| | | label="导åº" |
| | | press="{!c.export_condition}" |
| | | /> |
| | | <ui:button aura:id="export" label="导åº" press="{!c.export_condition}"/> |
| | | </div> |
| | | |
| | | </div> |
| | | </div> |
| | | |
| | | <div aura:id="report_list" class="report_list_area"> |
| | | <div class="slds-table--edit_container slds-is-relative"> |
| | | <table |
| | | class="slds-table slds-table--edit slds-table--bordered slds-table--fixed-layout slds-no-cell-focus" |
| | | role="grid" |
| | | style="width: 66.75rem" |
| | | > |
| | | <table class="slds-table slds-table--edit slds-table--bordered slds-table--fixed-layout slds-no-cell-focus" role="grid" style="width:66.75rem;"> |
| | | <thead> |
| | | <tr class="slds-line-height--reset"> |
| | | <th class="table_header slds-text-title--caps"></th> |
| | | <th class="table_header slds-text-title--caps"> |
| | | <span class="slds-truncate" title="Name" |
| | | >{!v.fieldsmap.Person_In_Charge2__c}</span |
| | | > |
| | | <th class="table_header slds-text-title--caps" style="width: 250px;"> |
| | | |
| | | </th> |
| | | <th class="table_header slds-text-title--caps"> |
| | | <th class="table_header slds-text-title--caps" style="width: 100px;"> |
| | | <span class="slds-truncate" title="Name">{!v.fieldsmap.Person_In_Charge2__c}</span> |
| | | </th> |
| | | <th class="table_header slds-text-title--caps" style="width: 250px;"> |
| | | <span class="slds-truncate" title="Name">å»é¢</span> |
| | | </th> |
| | | <th class="table_header slds-text-title--caps"> |
| | | <span class="slds-truncate" title="Name" |
| | | >{!v.fieldsmap.Department_Cateogy__c}</span |
| | | > |
| | | <th class="table_header slds-text-title--caps" style="width: 100px;"> |
| | | <span class="slds-truncate" title="Name">{!v.fieldsmap.Department_Cateogy__c}</span> |
| | | </th> |
| | | <th class="table_header slds-text-title--caps"> |
| | | <th class="table_header slds-text-title--caps" style="width: 100px;"> |
| | | <!-- PIPL update Yin Mingjie 21/02/2022 start |
| | | <span class="slds-truncate" title="Name">{!v.fieldsmap.doctor2__r}</span> |
| | | PIPL update Yin Mingjie 21/02/2022 end--> |
| | | <span class="slds-truncate" title="Name" |
| | | >{!v.fieldsmap.Agency_Contact__c}</span |
| | | > |
| | | <span class="slds-truncate" title="Name" style="width: 100px;">{!v.fieldsmap.Agency_Contact__c}</span> |
| | | |
| | | </th> |
| | | <th class="table_header slds-text-title--caps" style="width: 100px;"> |
| | | <span class="slds-truncate" title="Name">{!v.fieldsmap.visitor_title__c}</span> |
| | | </th> |
| | | <th class="table_header slds-text-title--caps"> |
| | | <span class="slds-truncate" title="Name" |
| | | >{!v.fieldsmap.visitor_title__c}</span |
| | | > |
| | | </th> |
| | | <th class="table_header slds-text-title--caps"> |
| | | <span class="slds-truncate" title="Name" |
| | | >{!v.fieldsmap.Purpose_Type__c}</span |
| | | > |
| | | <span class="slds-truncate" title="Name">{!v.fieldsmap.Purpose_Type__c}</span> |
| | | </th> |
| | | </tr> |
| | | </thead> |
| | |
| | | <aura:iteration items="{!v.reports}" var="item" indexVar="index"> |
| | | <tr class="slds-hint-parent"> |
| | | <td role="gridcell" class="slds-cell-edit"> |
| | | <ui:inputRadio |
| | | class="report_radio" |
| | | name="report_radio" |
| | | label="{!item.Name}" |
| | | change="{!c.change_report_radio}" |
| | | /> |
| | | <lightning:buttonIcon |
| | | class="edit_button" |
| | | iconName="utility:edit" |
| | | size="small" |
| | | alternativeText="edit" |
| | | value="{!index}" |
| | | onclick="{!c.edit_button}" |
| | | /> |
| | | <ui:inputRadio class="report_radio" name="report_radio" label="{!item.Name}" change="{!c.change_report_radio}"/> |
| | | <lightning:buttonIcon class="edit_button" iconName="utility:edit" size="small" alternativeText="edit" value="{!index}" onclick="{!c.edit_button}"/> |
| | | </td> |
| | | <td role="gridcell" class="slds-cell-edit"> |
| | | <span class="slds-grid slds-grid--align-spread"> |
| | | <span |
| | | class="slds-truncate" |
| | | title="{!item.Person_In_Charge2__r.Name}" |
| | | > |
| | | <span class="slds-truncate" title="{!item.Person_In_Charge2__r.Name}"> |
| | | {!item.Person_In_Charge2__r.Name} |
| | | <!-- <span class="decrypt">{!item.Person_In_Charge2__r.awsdata.lastName}</span> --> |
| | | </span> |
| | | </span> |
| | | </td> |
| | | <th scope="row" tabindex="0" class="slds-cell-edit"> |
| | | <span class="slds-grid slds-grid--align-spread"> |
| | | <span class="slds-grid slds-grid--align-spread" style="word-wrap:break-word;word-break:break-all; "> |
| | | {!item.Agency_Hospital__r.Name} |
| | | </span> |
| | | </th> |
| | | <td role="gridcell" class="slds-cell-edit"> |
| | | <span class="slds-grid slds-grid--align-spread"> |
| | | <span |
| | | class="slds-truncate" |
| | | title="{!item.Department_Cateogy__c}" |
| | | >{!item.Department_Cateogy__c}</span |
| | | > |
| | | <span class="slds-truncate" title="{!item.Department_Cateogy__c}">{!item.Department_Cateogy__c}</span> |
| | | </span> |
| | | </td> |
| | | <td role="gridcell" class="slds-cell-edit"> |
| | |
| | | <span class="slds-grid slds-grid--align-spread"> |
| | | <span class="slds-truncate" title="{!item.visitor_title__c}"> |
| | | <span class="encrypt">{!item.visitor_title__c}</span> |
| | | <span class="decrypt" |
| | | >{!item.doctor2__r.awsdata.doctorDivision1}</span |
| | | > |
| | | <span class="decrypt">{!item.doctor2__r.awsdata.doctorDivision1}</span> |
| | | </span> |
| | | </span> |
| | | </td> |
| | | <td role="gridcell" class="slds-cell-edit"> |
| | | <span class="slds-grid slds-grid--align-spread"> |
| | | <span class="slds-truncate" title="{!item.Purpose_Type__c}" |
| | | >{!item.Purpose_Type__c}</span |
| | | > |
| | | <span class="slds-truncate" title="{!item.Purpose_Type__c}">{!item.Purpose_Type__c}</span> |
| | | </span> |
| | | </td> |
| | | </tr> |
| | |
| | | </div> |
| | | <aura:renderIf isTrue="{!v.report_count > 0}"> |
| | | <aura:set attribute="else"> |
| | | <div class="no_data_area">{!v.list_message}</div> |
| | | <div class="no_data_area"> |
| | | {!v.list_message} |
| | | </div> |
| | | </aura:set> |
| | | </aura:renderIf> |
| | | </div> |
| | | |
| | | <!-- <ui:button aura:id="test_button" label="test" class="fade animation_on" press="{!c.test}"/>--> |
| | | <!-- æ¹éæ·»å 卿¥ start--> |
| | | <div |
| | | aura:id="modal_import" |
| | | role="dialog" |
| | | tabindex="-1" |
| | | class="disp_none slds-modal slds-fade-in-open slds-modal--large" |
| | | aria-labelledby="headerTarget" |
| | | > |
| | | <div aura:id="modal_import" role="dialog" tabindex="-1" class="disp_none slds-modal slds-fade-in-open slds-modal--large" aria-labelledby="headerTarget"> |
| | | <div class="slds-modal__container"> |
| | | <div class="slds-modal__header"> |
| | | <h4 id="headerTarget" class="slds-float--left"></h4> |
| | | <h2 id="headerTarget" class="slds-text-heading--medium"> |
| | | 卿¥æ¹é导å
¥ |
| | | </h2> |
| | | <ui:button |
| | | aura:id="close_button" |
| | | label="å
³é" |
| | | class="close_button slds-button slds-button--neutral slds-order--1" |
| | | press="{!c.close_import}" |
| | | /> |
| | | <h2 id="headerTarget" class="slds-text-heading--medium">卿¥æ¹é导å
¥</h2> |
| | | <ui:button aura:id="close_button" label="å
³é" class="close_button slds-button slds-button--neutral slds-order--1" press="{!c.close_import}"/> |
| | | </div> |
| | | <div |
| | | class="slds-modal__content slds-scrollable slds-grow slds-p-around--medium" |
| | | > |
| | | <div class="slds-modal__content slds-scrollable slds-grow slds-p-around--medium " > |
| | | <aura:if isTrue="{!v.showMain}"> |
| | | <div> |
| | | <!-- <input type="file" class="file" aura:id="file" onchange="{!c.CreateRecord}" value="导å
¥" /> --> |
| | | <lightning:input |
| | | type="file" |
| | | class="file" |
| | | uara:id="file" |
| | | onchange="{!c.CreateRecord}" |
| | | /> |
| | | <lightning:input type="file" class="file" uara:id="file" onchange="{!c.CreateRecord}" /> |
| | | <!-- <ui:button label="Create Accounts" press="{!c.CreateRecord}"/> --> |
| | | </div> |
| | | <aura:set attribute="else"> |
| | | <!-- <ui:outputRichText class="uiOutputRichText slds-m-around-large" value="{!v.TargetFileName}"/> --> |
| | | <ui:outputRichText |
| | | class="uiOutputRichText slds-m--around-large" |
| | | value="{!v.TableContent}" |
| | | /> |
| | | <ui:outputRichText class="uiOutputRichText slds-m--around-large" value="{!v.TableContent}"/> |
| | | <div class="slds-p-around--large slds-align--absolute-center"> |
| | | <lightning:button |
| | | label="ä¿å" |
| | | variant="brand" |
| | | onclick="{!c.processFileContent}" |
| | | <lightning:button label="ä¿å" variant="brand" onclick="{!c.processFileContent}" |
| | | /> |
| | | <lightning:button |
| | | label="åæ¶" |
| | | variant="brand" |
| | | onclick="{!c.cancel}" |
| | | /> |
| | | <lightning:button label="åæ¶" variant="brand" |
| | | onclick="{!c.cancel}" /> |
| | | </div> |
| | | <!-- start DTT-zhj å¢å é误信æ¯table 2023-05-16--> |
| | | <aura:if isTrue="{!v.showErrorInfo}"> |
| | | <div class="slds-p-around--large slds-align--absolute-center"> |
| | | <lightning:button label="导åºé误信æ¯" variant="brand" onclick="{!c.exportErrorInfo}" /> |
| | | </div> |
| | | <div class="slds-p-around--large slds-align--absolute-center"> |
| | | <div style="height: 300px;overflow-x:scroll"> |
| | | <lightning:datatable keyField="id" data="{! v.errorData }" |
| | | columns="{! v.errorColumns }" hideCheckboxColumn="true" /> |
| | | </div> |
| | | </div> |
| | | </aura:if> |
| | | <!-- start DTT-zhj å¢å é误信æ¯table 2023-05-16--> |
| | | </aura:set> |
| | | </aura:if> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div |
| | | aura:id="modal_importbg" |
| | | class="disp_none slds-backdrop slds-backdrop--open" |
| | | ></div> |
| | | <div aura:id="modal_importbg" class="disp_none slds-backdrop slds-backdrop--open"></div> |
| | | <!-- æ¹éæ·»å 卿¥ end--> |
| | | |
| | | <!-- æ¹é导åºå¨æ¥ start--> |
| | | <div |
| | | aura:id="modal_export" |
| | | role="dialog" |
| | | tabindex="-1" |
| | | class="disp_none slds-modal slds-fade-in-open slds-modal--large" |
| | | > |
| | | <div aura:id="modal_export" role="dialog" tabindex="-1" class="disp_none slds-modal slds-fade-in-open slds-modal--large" > |
| | | <div class="slds-modal__container"> |
| | | <div class="slds-modal__header"> |
| | | <h4 id="headerTarget" class="slds-float--left"></h4> |
| | | <h2 id="headerTarget" class="slds-text-heading--medium"> |
| | | 卿¥æ¹éå¯¼åº |
| | | </h2> |
| | | <ui:button |
| | | aura:id="close_button" |
| | | label="å
³é" |
| | | class="close_button slds-button slds-button--neutral slds-order--1" |
| | | press="{!c.close_export}" |
| | | /> |
| | | <h2 id="headerTarget" class="slds-text-heading--medium">卿¥æ¹é导åº</h2> |
| | | <ui:button aura:id="close_button" label="å
³é" class="close_button slds-button slds-button--neutral slds-order--1" press="{!c.close_export}"/> |
| | | </div> |
| | | <div |
| | | class="slds-modal__content slds-scrollable slds-grow slds-p-around--medium" |
| | | > |
| | | <div class="slds-modal__content slds-scrollable slds-grow slds-p-around--medium"> |
| | | <aura:if isTrue="{!v.showMain}"> |
| | | <div class="slds-grid slds-wrap slds-grid--pull-padded"> |
| | | <div |
| | | class="slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--1-of-5 slds-large-size--1-of-4" |
| | | ></div> |
| | | <div |
| | | class="slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--1-of-5 slds-large-size--1-of-4" |
| | | > |
| | | <div class="slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--1-of-5 slds-large-size--1-of-4"> |
| | | </div> |
| | | <div class="slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--1-of-5 slds-large-size--1-of-4"> |
| | | æ´»å¨æ¥å¼å§æ¥æ |
| | | |
| | | <lightning:input |
| | | type="Date" |
| | | class="slds-input slds-input_bare" |
| | | aura:id="input-report-date1" |
| | | /> |
| | | <lightning:input type="Date" class="slds-input slds-input_bare " aura:id="input-report-date1" /> |
| | | </div> |
| | | <div |
| | | class="slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--1-of-5 slds-large-size--1-of-4" |
| | | > |
| | | <div class="slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--1-of-5 slds-large-size--1-of-4"> |
| | | æ´»å¨æ¥ç»ææ¥æ |
| | | <lightning:input |
| | | type="Date" |
| | | class="slds-input slds-input_bare" |
| | | aura:id="input-report-date2" |
| | | /> |
| | | <lightning:input type="Date" class="slds-input slds-input_bare " aura:id="input-report-date2" /> |
| | | </div> |
| | | <div |
| | | class="slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--1-of-5 slds-large-size--1-of-4" |
| | | ></div> |
| | | <div class="slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--1-of-5 slds-large-size--1-of-4"> |
| | | </div> |
| | | |
| | | <div class="slds-p-around--large slds-align--absolute-center"> |
| | | <lightning:button |
| | | label="确认" |
| | | variant="brand" |
| | | onclick="{!c.select_repores_date}" |
| | | <lightning:button label="确认" variant="brand" onclick="{!c.select_repores_date}" |
| | | /> |
| | | <lightning:button |
| | | label="åæ¶" |
| | | variant="brand" |
| | | onclick="{!c.close_export}" |
| | | /> |
| | | <lightning:button label="åæ¶" variant="brand" |
| | | onclick="{!c.close_export}" /> |
| | | </div> |
| | | </div> |
| | | <!-- <div> |
| | |
| | | onclick="{!c.close_export}" /> |
| | | </div> --> |
| | | <aura:set attribute="else"> |
| | | <ui:outputRichText |
| | | class="uiOutputRichText slds-m--around-large" |
| | | value="{!v.TableContent2}" |
| | | /> |
| | | <ui:outputRichText class="uiOutputRichText slds-m--around-large" value="{!v.TableContent2}"/> |
| | | <div class="slds-p-around--large slds-align--absolute-center"> |
| | | <lightning:button |
| | | label="确认" |
| | | variant="brand" |
| | | onclick="{!c.exportDate}" |
| | | <lightning:button label="确认" variant="brand" onclick="{!c.exportDate}" |
| | | /> |
| | | <lightning:button |
| | | label="åæ¶" |
| | | variant="brand" |
| | | onclick="{!c.close_export}" |
| | | /> |
| | | <lightning:button label="åæ¶" variant="brand" |
| | | onclick="{!c.close_export}" /> |
| | | </div> |
| | | |
| | | </aura:set> |
| | | </aura:if> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div |
| | | aura:id="modal_exportbg" |
| | | class="disp_none slds-backdrop slds-backdrop--open" |
| | | ></div> |
| | | <div aura:id="modal_exportbg" class="disp_none slds-backdrop slds-backdrop--open"></div> |
| | | <!-- æ¹é导åºå¨æ¥ end--> |
| | | |
| | | <div |
| | | aura:id="modal_window" |
| | | role="dialog" |
| | | tabindex="-1" |
| | | class="disp_none slds-modal slds-fade-in-open slds-modal--large" |
| | | aria-labelledby="headerTarget" |
| | | > |
| | | <div aura:id="modal_window" role="dialog" tabindex="-1" class="disp_none slds-modal slds-fade-in-open slds-modal--large" aria-labelledby="headerTarget"> |
| | | <div class="slds-modal__container"> |
| | | <div class="slds-modal__header"> |
| | | <h4 id="headerTarget" class="slds-float--left">{!v.dialog_type}</h4> |
| | | <h2 id="headerTarget" class="slds-text-heading--medium"> |
| | | 卿¥({!v.selected_date} {!v.selected_agency_person}) |
| | | </h2> |
| | | <ui:button |
| | | aura:id="close_button" |
| | | label="å
³é" |
| | | class="close_button slds-button slds-button--neutral slds-order--1" |
| | | press="{!c.toggle_report}" |
| | | /> |
| | | <h2 id="headerTarget" class="slds-text-heading--medium">卿¥({!v.selected_date} {!v.selected_agency_person})</h2> |
| | | <ui:button aura:id="close_button" label="å
³é" class="close_button slds-button slds-button--neutral slds-order--1" press="{!c.toggle_report}"/> |
| | | </div> |
| | | <div class="slds-modal__content slds-grow slds-p-around--medium"> |
| | | <div class="slds-box slds-theme--shade"> |
| | | <div class="slds-grid slds-wrap slds-grid--pull-padded"> |
| | | <div |
| | | class="slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--1-of-5 slds-large-size--1-of-6" |
| | | > |
| | | <div class="slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--1-of-5 slds-large-size--1-of-6"> |
| | | æ´»å¨æ¥ |
| | | <!-- <ui:inputSelect aura:id="select_opportunity" class="slds-select"/> --> |
| | | <force:inputField |
| | | value="{!v.data.Report_Date__c}" |
| | | aura:id="input-report-date" |
| | | /> |
| | | <force:inputField value="{!v.data.Report_Date__c}" aura:id="input-report-date"/> |
| | | </div> |
| | | <!-- å»é¢ --> |
| | | <div |
| | | aura:id="hospital_list" |
| | | class="slds-form-element slds-lookup slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--1-of-5 slds-large-size--1-of-5" |
| | | data-select="single" |
| | | > |
| | | <ui:inputText |
| | | aura:id="hospital_input_text" |
| | | label="å»é¢" |
| | | class="field" |
| | | value="{!v.hospital}" |
| | | updateOn="keyup" |
| | | /> |
| | | <div aura:id="hospital_list" class="slds-form-element slds-lookup slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--1-of-5 slds-large-size--1-of-5" data-select="single"> |
| | | <ui:inputText aura:id="hospital_input_text" label="å»é¢" class="field" value="{!v.hospital}" updateOn="keyup"/> |
| | | <div class="slds-lookup__menu" id="lookup-66"> |
| | | <ul class="slds-lookup__list" role="listbox"> |
| | | <aura:iteration var="hospital" items="{!v.hospitalList}"> |
| | | <li |
| | | role="presentation" |
| | | onclick="{!c.selectHos}" |
| | | data-accName="{!hospital.Hospital_Name_readonly__c}" |
| | | data-accId="{!hospital.Hospital__c}" |
| | | > |
| | | <span |
| | | class="slds-lookup__item-action slds-media" |
| | | id="lookup-option-498" |
| | | role="option" |
| | | > |
| | | <li role="presentation" onclick="{!c.selectHos}" data-accName="{!hospital.Hospital_Name_readonly__c}" data-accId="{!hospital.Hospital__c}"> |
| | | <span class="slds-lookup__item-action slds-media" id="lookup-option-498" role="option"> |
| | | <div class="slds-media__body"> |
| | | <div class="slds-lookup__result-text"> |
| | | {!hospital.Hospital_Name_readonly__c} |
| | | </div> |
| | | <div class="slds-lookup__result-text">{!hospital.Hospital_Name_readonly__c}</div> |
| | | </div> |
| | | </span> |
| | | </li> |
| | |
| | | </div> |
| | | |
| | | <!-- ç§å®¤åç±» --> |
| | | <div |
| | | class="slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--1-of-5 slds-large-size--1-of-8" |
| | | > |
| | | <div class="slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--1-of-5 slds-large-size--1-of-8"> |
| | | {!v.fieldsmap.Department_Cateogy__c} |
| | | <ui:inputSelect |
| | | aura:id="select_department" |
| | | class="slds-select" |
| | | change="{!c.select_department}" |
| | | /> |
| | | <ui:inputSelect aura:id="select_department" class="slds-select" change="{!c.select_department}"/> |
| | | </div> |
| | | |
| | | <!-- å
ç --> |
| | | <div |
| | | class="slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--1-of-5 slds-large-size--1-of-8" |
| | | > |
| | | <div class="slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--1-of-5 slds-large-size--1-of-8"> |
| | | {!v.fieldsmap.doctor2__c} |
| | | <ui:inputSelect |
| | | aura:id="select_doctor" |
| | | class="slds-select" |
| | | change="{!c.doctor_change}" |
| | | /> |
| | | <ui:inputSelect aura:id="select_doctor" class="slds-select" change="{!c.doctor_change}"/> |
| | | </div> |
| | | |
| | | <div |
| | | class="slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--1-of-5 slds-large-size--1-of-12" |
| | | > |
| | | <div class="slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--1-of-5 slds-large-size--1-of-12"> |
| | | <br /> |
| | | <ui:button |
| | | label="æ°å»º" |
| | | class="slds-button" |
| | | press="{!c.createCon}" |
| | | disabled="true" |
| | | aura:id="new_con" |
| | | /> |
| | | <ui:button label="æ°å»º" class="slds-button" press="{!c.createCon}" disabled="true" aura:id="new_con"/> |
| | | </div> |
| | | |
| | | <!-- èä½ --> |
| | | <div |
| | | class="slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--1-of-5 slds-large-size--1-of-8" |
| | | > |
| | | <div class="slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--1-of-5 slds-large-size--1-of-8"> |
| | | {!v.fieldsmap.visitor_title__c} |
| | | <div>{!v.doctor_title}</div> |
| | | </div> |
| | | <!-- æ´»å¨åºå --> |
| | | <div |
| | | class="slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--1-of-5 slds-large-size--1-of-6" |
| | | > |
| | | <div class="slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--1-of-5 slds-large-size--1-of-6"> |
| | | {!v.fieldsmap.Purpose_Type__c} |
| | | <ui:inputSelect |
| | | aura:id="select_purpose_type" |
| | | class="slds-select" |
| | | change="{!c.select_purpose_type}" |
| | | /> |
| | | <ui:inputSelect aura:id="select_purpose_type" class="slds-select" change="{!c.select_purpose_type}"/> |
| | | </div> |
| | | <!-- 询价 --> |
| | | <div |
| | | aura:id="input-opportunity-opp" |
| | | class="slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--4-of-12 slds-large-size--4-of-12" |
| | | > |
| | | <div aura:id="input-opportunity-opp" class="slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--4-of-12 slds-large-size--4-of-12"> |
| | | {!v.fieldsmap.Opportunity__c} |
| | | <!-- <ui:inputSelect aura:id="select_opportunity" class="slds-select"/> --> |
| | | <!-- <force:inputField value="{!v.data.Opportunity__c}" aura:id="input-opportunity"/> --> |
| | | <c:strike_lookup |
| | | label="" |
| | | <c:strike_lookup label="" |
| | | object="Agency_Opportunity__c" |
| | | searchField="Name" |
| | | placeholder="æç´¢ç»éå询价..." |
| | |
| | | showRecentRecords="true" |
| | | value="{!v.data.Opportunity__c}" |
| | | filter="{!v.opportunity_cfilter}" |
| | | subTitleFormat="{0}+{1}+{2}" |
| | | /> |
| | | subTitleFormat="{0}+{1}+{2}"/> |
| | | </div> |
| | | <div |
| | | aura:id="input-opportunity-blank" |
| | | class="lds-p-horizontal--small slds-size--1-of-1 slds-medium-size--8-of-12 slds-large-size--8-of-12" |
| | | ></div> |
| | | <div |
| | | aura:id="input-opportunity-stage" |
| | | class="disp_none slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--2-of-12 slds-large-size--2-of-12" |
| | | > |
| | | <div aura:id="input-opportunity-blank" class="lds-p-horizontal--small slds-size--1-of-1 slds-medium-size--8-of-12 slds-large-size--8-of-12"> |
| | | </div> |
| | | <div aura:id="input-opportunity-stage" class="disp_none slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--2-of-12 slds-large-size--2-of-12"> |
| | | {!v.fieldsmap.StageName__c} |
| | | <!-- <ui:inputSelect aura:id="select_opportunity" class="slds-select"/> --> |
| | | <ui:inputSelect aura:id="select_stageName" class="slds-select" /> |
| | | <!-- <force:inputField value="{!v.oppdata.StageName__c}" aura:id="input-oppstage" /> --> |
| | | </div> |
| | | <div |
| | | aura:id="input-opportunity-amount1" |
| | | class="disp_none slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--2-of-12 slds-large-size--2-of-12" |
| | | > |
| | | <div aura:id="input-opportunity-amount1" class="disp_none slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--2-of-12 slds-large-size--2-of-12"> |
| | | {!v.fieldsmap.Amount__c} |
| | | <!-- <ui:inputSelect aura:id="select_opportunity" class="slds-select"/> --> |
| | | <force:inputField value="{!v.oppdata.Amount__c}" class="" /> |
| | | </div> |
| | | <div |
| | | aura:id="input-opportunity-amount2" |
| | | class="disp_none slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--2-of-12 slds-large-size--2-of-12" |
| | | > |
| | | <div aura:id="input-opportunity-amount2" class="disp_none slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--2-of-12 slds-large-size--2-of-12"> |
| | | {!v.fieldsmap.OCMSale_Price__c} |
| | | <!-- <ui:inputSelect aura:id="select_opportunity" class="slds-select"/> --> |
| | | <force:inputField |
| | | value="{!v.oppdata.OCMSale_Price__c}" |
| | | class="" |
| | | /> |
| | | <force:inputField value="{!v.oppdata.OCMSale_Price__c}" class=""/> |
| | | </div> |
| | | <div |
| | | aura:id="input-opportunity-date" |
| | | class="disp_none slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--2-of-12 slds-large-size--2-of-12" |
| | | > |
| | | <div aura:id="input-opportunity-date" class="disp_none slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--2-of-12 slds-large-size--2-of-12"> |
| | | {!v.fieldsmap.Close_Forecasted_Date__c} |
| | | <!-- <ui:inputSelect aura:id="select_opportunity" class="slds-select"/> --> |
| | | <force:inputField |
| | | value="{!v.oppdata.Close_Forecasted_Date__c}" |
| | | class="" |
| | | /> |
| | | <force:inputField value="{!v.oppdata.Close_Forecasted_Date__c}" class=""/> |
| | | </div> |
| | | <!-- 製ååé¡ --> |
| | | <div |
| | | aura:id="product_category_select1" |
| | | class="slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--3-of-12 slds-large-size--3-of-12" |
| | | > |
| | | <div aura:id="product_category_select1" class="slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--3-of-12 slds-large-size--3-of-12"> |
| | | {!v.fieldsmap.Product_Category1__c} |
| | | <!-- <force:inputField value="{!v.data.Product_Category1__c}" aura:id="input-product-category1"/> --> |
| | | <ui:inputSelect |
| | | aura:id="select_Product1" |
| | | class="slds-select" |
| | | change="{!c.productcategoryChange1}" |
| | | /> |
| | | <ui:inputSelect aura:id="select_Product1" class="slds-select" change="{!c.productcategoryChange1}"/> |
| | | </div> |
| | | <div |
| | | aura:id="product_category_select2" |
| | | class="slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--3-of-12 slds-large-size--3-of-12" |
| | | > |
| | | <div aura:id="product_category_select2" class="slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--3-of-12 slds-large-size--3-of-12"> |
| | | {!v.fieldsmap.Product_Category2__c} |
| | | <!-- <force:inputField value="{!v.data.Product_Category2__c}" aura:id="input-product-category2"/> --> |
| | | <ui:inputSelect |
| | | aura:id="select_Product2" |
| | | class="slds-select" |
| | | change="{!c.productcategoryChange2}" |
| | | /> |
| | | <ui:inputSelect aura:id="select_Product2" class="slds-select" change="{!c.productcategoryChange2}"/> |
| | | </div> |
| | | <div |
| | | aura:id="product_category_select3" |
| | | class="slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--3-of-12 slds-large-size--3-of-12" |
| | | > |
| | | <div aura:id="product_category_select3" class="slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--3-of-12 slds-large-size--3-of-12"> |
| | | {!v.fieldsmap.Product_Category3__c} |
| | | <!-- <force:inputField value="{!v.data.Product_Category3__c}" aura:id="input-product-category3"/> --> |
| | | <ui:inputSelect |
| | | aura:id="select_Product3" |
| | | class="slds-select" |
| | | change="{!c.productcategoryChange3}" |
| | | /> |
| | | <ui:inputSelect aura:id="select_Product3" class="slds-select" change="{!c.productcategoryChange3}"/> |
| | | </div> |
| | | <!--SWAG-CBX68C fy ãå§æãDAMSç³»ç»å¨æ¥æ¨¡åå
容鿱å¢å start--> |
| | | <!-- æ¯æ´éæ± change="{!c.SupportNeeds__c}"--> |
| | | <div |
| | | class="slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--1-of-5 slds-large-size--1-of-6" |
| | | > |
| | | <div class="slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--1-of-5 slds-large-size--1-of-6"> |
| | | {!v.fieldsmap.SupportNeeds__c} |
| | | <ui:inputSelect aura:id="SupportNeeds__c" class="slds-select" /> |
| | | </div> |
| | | <!--SWAG-CBX68C fy ãå§æãDAMSç³»ç»å¨æ¥æ¨¡åå
容鿱å¢å end--> |
| | | <div |
| | | aura:id="result" |
| | | class="disp_none slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--3-of-12 slds-large-size--3-of-12" |
| | | > |
| | | <div aura:id="result" class="disp_none slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--3-of-12 slds-large-size--3-of-12"> |
| | | {!v.fieldsmap.Result__c} |
| | | <ui:inputSelect aura:id="select_result" class="slds-select" /> |
| | | <!-- <ui:inputText label="ç»æ" class="bcolor" value="{!v.result}"/> --> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="save_button_area"> |
| | | <ui:button |
| | | aura:id="save_button" |
| | | label="ä¿åå¹¶æ°å»º" |
| | | class="save_button slds-button slds-button--brand slds-order--3" |
| | | press="{!c.save_report}" |
| | | /> |
| | | <ui:button aura:id="save_button" label="ä¿åå¹¶æ°å»º" class="save_button slds-button slds-button--brand slds-order--3" press="{!c.save_report}"/> |
| | | </div> |
| | | |
| | | <aura:renderIf isTrue="{!v.reports_now_count > 0}"> |
| | | <div class="mt40 slds-box slds-theme--shade"> |
| | | <div class="slds-table--edit_container slds-is-relative"> |
| | | <table |
| | | class="slds-table slds-table--edit slds-table--bordered slds-table--fixed-layout slds-no-cell-focus" |
| | | role="grid" |
| | | > |
| | | <table class="slds-table slds-table--edit slds-table--bordered slds-table--fixed-layout slds-no-cell-focus" role="grid"> |
| | | <thead> |
| | | <tr class="slds-line-height--reset"> |
| | | <th class="table_header slds-text-title--caps"> |
| | |
| | | <span class="slds-truncate" title="Name">å»é¢</span> |
| | | </th> |
| | | <th class="table_header slds-text-title--caps"> |
| | | <span class="slds-truncate" title="Name" |
| | | >{!v.fieldsmap.Department_Cateogy__c}</span |
| | | > |
| | | <span class="slds-truncate" title="Name">{!v.fieldsmap.Department_Cateogy__c}</span> |
| | | </th> |
| | | <th class="table_header slds-text-title--caps"> |
| | | <span class="slds-truncate" title="Name" |
| | | >{!v.fieldsmap.doctor2__c}</span |
| | | > |
| | | <span class="slds-truncate" title="Name">{!v.fieldsmap.doctor2__c}</span> |
| | | </th> |
| | | <th class="table_header slds-text-title--caps"> |
| | | <span class="slds-truncate" title="Name" |
| | | >{!v.fieldsmap.visitor_title__c}</span |
| | | > |
| | | <span class="slds-truncate" title="Name">{!v.fieldsmap.visitor_title__c}</span> |
| | | </th> |
| | | <th class="table_header slds-text-title--caps"> |
| | | <span class="slds-truncate" title="Name" |
| | | >{!v.fieldsmap.Purpose_Type__c}</span |
| | | > |
| | | <span class="slds-truncate" title="Name">{!v.fieldsmap.Purpose_Type__c}</span> |
| | | </th> |
| | | </tr> |
| | | </thead> |
| | | <tbody> |
| | | <aura:iteration |
| | | items="{!v.reports_now}" |
| | | var="item" |
| | | indexVar="index" |
| | | > |
| | | <aura:iteration items="{!v.reports_now}" var="item" indexVar="index"> |
| | | <tr aura:id="modal_data_list_tr" class="slds-hint-parent"> |
| | | <td role="gridcell" class="slds-cell-edit"> |
| | | <span class="slds-grid slds-grid--align-spread"> |
| | | <span |
| | | class="slds-truncate" |
| | | title="{!item.Department_Cateogy__c}" |
| | | >{!item.Name}</span |
| | | > |
| | | <span class="slds-truncate" title="{!item.Department_Cateogy__c}">{!item.Name}</span> |
| | | </span> |
| | | </td> |
| | | <td role="gridcell" class="slds-cell-edit"> |
| | | <span class="slds-grid slds-grid--align-spread"> |
| | | <span |
| | | class="slds-truncate" |
| | | title="{!item.Agency_Hospital__r.Name}" |
| | | >{!item.Agency_Hospital__r.Name}</span |
| | | > |
| | | <span class="slds-truncate" title="{!item.Agency_Hospital__r.Name}">{!item.Agency_Hospital__r.Name}</span> |
| | | </span> |
| | | </td> |
| | | <td role="gridcell" class="slds-cell-edit"> |
| | | <span class="slds-grid slds-grid--align-spread"> |
| | | <span |
| | | class="slds-truncate" |
| | | title="{!item.Department_Cateogy__c}" |
| | | >{!item.Department_Cateogy__c}</span |
| | | > |
| | | <span class="slds-truncate" title="{!item.Department_Cateogy__c}">{!item.Department_Cateogy__c}</span> |
| | | </span> |
| | | </td> |
| | | <td role="gridcell" class="slds-cell-edit"> |
| | | <span class="slds-grid slds-grid--align-spread"> |
| | | <span |
| | | class="slds-truncate" |
| | | title="{!item.doctor2__r.Name}" |
| | | > |
| | | <span class="slds-truncate" title="{!item.doctor2__r.Name}"> |
| | | <span class="encrypt">{!item.doctor2__r.Name}</span> |
| | | <span class="decrypt" |
| | | >{!item.doctor2NameOrigin}</span |
| | | > |
| | | <span class="decrypt">{!item.doctor2NameOrigin}</span> |
| | | </span> |
| | | </span> |
| | | </td> |
| | | <td role="gridcell" class="slds-cell-edit"> |
| | | <span class="slds-grid slds-grid--align-spread"> |
| | | <span |
| | | class="slds-truncate" |
| | | title="{!item.visitor_title__c}" |
| | | > |
| | | <span class="encrypt" |
| | | >{!item.visitor_title__c}</span |
| | | > |
| | | <span class="decrypt" |
| | | >{!item.visitorTitleOrigin}</span |
| | | > |
| | | <span class="slds-truncate" title="{!item.visitor_title__c}"> |
| | | <span class="encrypt">{!item.visitor_title__c}</span> |
| | | <span class="decrypt">{!item.visitorTitleOrigin}</span> |
| | | </span> |
| | | </span> |
| | | </td> |
| | | <td role="gridcell" class="slds-cell-edit"> |
| | | <span class="slds-grid slds-grid--align-spread"> |
| | | <span |
| | | class="slds-truncate" |
| | | title="{!item.Purpose_Type__c}" |
| | | >{!item.Purpose_Type__c}</span |
| | | > |
| | | <span class="slds-truncate" title="{!item.Purpose_Type__c}">{!item.Purpose_Type__c}</span> |
| | | </span> |
| | | </td> |
| | | </tr> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div |
| | | aura:id="modal_bg" |
| | | class="disp_none slds-backdrop slds-backdrop--open" |
| | | ></div> |
| | | <div aura:id="modal_bg" class="disp_none slds-backdrop slds-backdrop--open"></div> |
| | | |
| | | <div |
| | | aura:id="modal_confirm" |
| | | role="dialog" |
| | | tabindex="-2" |
| | | aria-labelledby="header43" |
| | | class="disp_none slds-modal slds-fade-in-open" |
| | | > |
| | | <div aura:id="modal_confirm" role="dialog" tabindex="-2" aria-labelledby="header43" class="disp_none slds-modal slds-fade-in-open"> |
| | | <div class="slds-modal__container"> |
| | | <div class="slds-modal__header"> |
| | | <h2 id="header43" class="slds-text-heading--medium"> |
| | | {!v.modal_confirm_title} |
| | | </h2> |
| | | <h2 id="header43" class="slds-text-heading--medium">{!v.modal_confirm_title}</h2> |
| | | </div> |
| | | <div class="slds-modal__content slds-p-around--medium"> |
| | | <p>{!v.modal_confirm_text}</p> |
| | | </div> |
| | | <div class="slds-modal__footer"> |
| | | <ui:button |
| | | label="æ¯" |
| | | class="slds-button slds-button--brand" |
| | | press="{!c.yes_button}" |
| | | /> |
| | | <ui:button |
| | | label="å¦" |
| | | class="slds-button slds-button--neutral" |
| | | press="{!c.no_button}" |
| | | /> |
| | | <ui:button label="æ¯" class="slds-button slds-button--brand" press="{!c.yes_button}"/> |
| | | <ui:button label="å¦" class="slds-button slds-button--neutral" press="{!c.no_button}" /> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div |
| | | aura:id="modal_confirm_bg" |
| | | class="disp_none slds-backdrop slds-backdrop--open" |
| | | ></div> |
| | | <div aura:id="modal_confirm_bg" class="disp_none slds-backdrop slds-backdrop--open"></div> |
| | | |
| | | <div |
| | | aura:id="modal_newAC" |
| | | role="dialog" |
| | | tabindex="-3" |
| | | aria-labelledby="headertest" |
| | | class="disp_none slds-modal slds-fade-in-open" |
| | | > |
| | | <div aura:id="modal_newAC" role="dialog" tabindex="-3" aria-labelledby="headertest" class="disp_none slds-modal slds-fade-in-open"> |
| | | <div class="slds-modal__container"> |
| | | <div class="slds-modal__header"> |
| | | <h2 id="headertest" class="slds-text-heading--medium">æ°å»º.客æ·äººå</h2> |
| | | </div> |
| | | <div class="slds-modal__content slds-p-around--medium"> |
| | | <lightning:recordEditForm |
| | | aura:id="recordEditForm" |
| | | objectApiName="Agency_Contact__c" |
| | | onsuccess="{!c.handleSuccess}" |
| | | onload="{!c.showRequiredFields}" |
| | | onsubmit="{!c.handleSubmit}" |
| | | > |
| | | <lightning:recordEditForm aura:id="recordEditForm" objectApiName="Agency_Contact__c" onsuccess="{!c.handleSuccess}" onload="{!c.showRequiredFields}" onsubmit="{!c.handleSubmit}"> |
| | | <lightning:messages aura:id="OppMessage" /> |
| | | <!-- onload="{!c.showRequiredFields}" --> |
| | | <aura:renderIf isTrue="{!v.truthy}"> |
| | | <lightning:inputField |
| | | fieldName="Name" |
| | | aura:id="newOpportunityField" |
| | | /> |
| | | <lightning:inputField |
| | | fieldName="Type__c" |
| | | aura:id="newOpportunityField" |
| | | /> |
| | | <lightning:inputField |
| | | fieldName="Doctor_Division1__c" |
| | | aura:id="newOpportunityField" |
| | | /> |
| | | <lightning:inputField fieldName="Name" aura:id="newOpportunityField" /> |
| | | <lightning:inputField fieldName="Type__c" aura:id="newOpportunityField" /> |
| | | <lightning:inputField fieldName="Doctor_Division1__c" aura:id="newOpportunityField" /> |
| | | <!-- <lightning:inputField class="customRequired none" aura:id="Input_type__c" fieldName="Type__c"/> |
| | | <lightning:inputField class="customRequired none" aura:id="Input_Doctor_Division1__c" fieldName="Doctor_Division1__c"/> --> |
| | | </aura:renderIf> |
| | |
| | | <br /> |
| | | <br /> |
| | | <div class="save_button_area"> |
| | | <lightning:button |
| | | class="slds-m-top_small" |
| | | type="button" |
| | | label="åæ¶" |
| | | onclick="{!c.createCancel}" |
| | | /> |
| | | <lightning:button |
| | | class="slds-m-top_small" |
| | | type="submit" |
| | | label="ä¿å" |
| | | /> |
| | | <lightning:button class="slds-m-top_small" type="button" label="åæ¶" onclick="{!c.createCancel}"/> |
| | | <lightning:button class="slds-m-top_small" type="submit" label="ä¿å" /> |
| | | </div> |
| | | |
| | | |
| | | </lightning:recordEditForm> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | |
| | | </aura:component> |
| | |
| | | .THIS tr:hover .encrypt{ |
| | | display: none; |
| | | } |
| | | |
| | | .THIS .weeklyReportSpinner{ |
| | | top:100px; |
| | | } |
| | | |
| | | .THIS .slds-spinner_container{ |
| | | position: absolute; |
| | | top:100px; |
| | | } |
| | |
| | | ({ |
| | | doInit: function (component, event, helper) { |
| | | console.log("zhj æ°æ¹æ¡"); |
| | | console.log('zhj æ°æ¹æ¡weeklyReport'); |
| | | if (window.location.href.endsWith("weekly-report")) { |
| | | helper.doinit(component, event, helper); |
| | | } else { |
| | | helper.hideCmp(component, event, helper); |
| | | } |
| | | component.set("v.showErrorInfo", false); |
| | | }, |
| | | |
| | | createAopp: function (component, event, helper) { |
| | | var addRecordEvent = $A.get("e.force:createRecord"); |
| | | var addRecordEvent = $A.get('e.force:createRecord'); |
| | | addRecordEvent.setParams({ |
| | | entityApiName: "Agency_Opportunity__c", |
| | | recordTypeId: "012100000006KW7" |
| | | entityApiName: 'Agency_Opportunity__c', |
| | | recordTypeId: '012100000006KW7' |
| | | }); |
| | | addRecordEvent.fire(); |
| | | component.set("v.showErrorInfo", false); |
| | | }, |
| | | |
| | | new_report: function (component, event, helper) { |
| | | component.find("save_button").set("v.label", "ä¿åå¹¶æ°å»º"); |
| | | component.find('save_button').set('v.label', 'ä¿åå¹¶æ°å»º'); |
| | | helper.new_report(component, event, helper); |
| | | }, |
| | | |
| | | copy_button: function (component, event, helper) { |
| | | component.find("save_button").set("v.label", "ä¿åå¹¶æ°å»º"); |
| | | component.find('save_button').set('v.label', 'ä¿åå¹¶æ°å»º'); |
| | | helper.copy_button(component, event, helper); |
| | | }, |
| | | |
| | |
| | | }, |
| | | |
| | | edit_button: function (component, event, helper) { |
| | | component.find("save_button").set("v.label", "ä¿å"); |
| | | component.find('save_button').set('v.label', 'ä¿å'); |
| | | helper.edit_button(component, event, helper); |
| | | }, |
| | | |
| | |
| | | // helper.handleFormSubmit(component); |
| | | var showValidationError = false; |
| | | var fields = component.find("newOpportunityField"); |
| | | var vaildationFailReason = ""; |
| | | var vaildationFailReason = ''; |
| | | // var vaildationFailReason2 = ''; |
| | | // var currentDate = new Date().toJSON().slice(0,10); |
| | | |
| | |
| | | // PIPL update Yin Mingjie 21/02/2022 end |
| | | |
| | | fields.forEach(function (field) { |
| | | if ( |
| | | field.get("v.fieldName") === "Type__c" && |
| | | $A.util.isEmpty(field.get("v.value")) |
| | | ) { |
| | | if(field.get("v.fieldName") === 'Type__c' && $A.util.isEmpty(field.get("v.value"))){ |
| | | showValidationError = true; |
| | | vaildationFailReason = "åç±»ä¸è½ä¸ºç©ºï¼"; |
| | | } else if ( |
| | | field.get("v.fieldName") === "Doctor_Division1__c" && |
| | | $A.util.isEmpty(field.get("v.value")) |
| | | ) { |
| | | }else if(field.get("v.fieldName") === 'Doctor_Division1__c' && $A.util.isEmpty(field.get("v.value"))){ |
| | | showValidationError = true; |
| | | if (vaildationFailReason != "") { |
| | | if(vaildationFailReason != ''){ |
| | | vaildationFailReason += "å»çåºå(èå¡)ä¸è½ä¸ºç©ºï¼"; |
| | | } else { |
| | | vaildationFailReason = "å»çåºå(èå¡)ä¸è½ä¸ºç©ºï¼"; |
| | | } |
| | | |
| | | } |
| | | // PIPL update Yin Mingjie 21/02/2022 start |
| | | if (field.get("v.fieldName") === "Name") { |
| | | agencyReport["name"] = field.get("v.value"); |
| | | } else if (field.get("v.fieldName") === "Type__c") { |
| | | agencyReport["type"] = field.get("v.value"); |
| | | } else if (field.get("v.fieldName") === "Doctor_Division1__c") { |
| | | agencyReport["doctorDivision1"] = field.get("v.value"); |
| | | if(field.get("v.fieldName") === 'Name'){ |
| | | agencyReport['name'] = field.get("v.value"); |
| | | }else if(field.get("v.fieldName") === 'Type__c'){ |
| | | agencyReport['type'] = field.get("v.value"); |
| | | }else if(field.get("v.fieldName") === 'Doctor_Division1__c'){ |
| | | agencyReport['doctorDivision1'] = field.get("v.value"); |
| | | } |
| | | // PIPL update Yin Mingjie 21/02/2022 end |
| | | }); |
| | |
| | | component.find('recordEditForm').submit(eventFields); |
| | | */ |
| | | |
| | | var agencyHospitalid = component.get("v.hospitalLinkId"); |
| | | var agencyHospitalid = component.get('v.hospitalLinkId'); |
| | | //zhj MEBGæ°æ¹æ¡æ¹é 2022-11-29 start |
| | | debugger; |
| | | let hospitalName = ""; |
| | | debugger |
| | | let hospitalName = ''; |
| | | //è°ç¨å端searchAgencyDataIdæ¹æ³æ¥è¯¢åºå»é¢ä¸é¢ææå®¢æ·äººådataid |
| | | helper.CallBackAction( |
| | | component, |
| | | "searchAgencyDataId", |
| | | { |
| | | helper.CallBackAction(component,'searchAgencyDataId',{ |
| | | hospitalId: agencyHospitalid |
| | | }, |
| | | function (data) { |
| | | },function(data){ |
| | | if (data.getState() == "SUCCESS") { |
| | | var data = data.getReturnValue(); |
| | | if (data.IsSuccess == true) { |
| | | let agencyContactIds = ""; |
| | | if (data.Message == "" && data.Data && data.Data.length > 0) { |
| | | let agencyContactIds = '' |
| | | if(data.Message == '' && data.Data && data.Data.length > 0){ |
| | | hospitalName = data.Data[0].Agency_Hospital__r.Name; |
| | | for (var i = 0; i < data.Data.length; i++) { |
| | | if (data.Data[i].AWS_Data_Id__c) |
| | | agencyContactIds += "," + data.Data[i].AWS_Data_Id__c; |
| | | agencyContactIds += ','+data.Data[i].AWS_Data_Id__c; |
| | | } |
| | | agencyContactIds = agencyContactIds.substring(1); |
| | | agencyReport["agencyContactIds"] = agencyContactIds; |
| | | agencyReport['agencyContactIds'] = agencyContactIds; |
| | | } else { |
| | | agencyReport["agencyContactIds"] = agencyContactIds; |
| | | agencyReport['agencyContactIds'] = agencyContactIds; |
| | | } |
| | | var arr = new Array(); |
| | | arr.push(agencyReport); |
| | | var requestData = JSON.stringify(arr); |
| | | // helper.set_aws_url(component,data,agencyHospitalid); |
| | | |
| | | var token = component.get("v.AWStoken"); |
| | | var newUrl = component.get("v.AWSinsert") + "V2"; |
| | | var token = component.get('v.AWStoken'); |
| | | var newUrl = component.get('v.AWSinsert') + 'V2'; |
| | | |
| | | component.set("v.login", true); |
| | | helper.insert_agencycontact( |
| | | component, |
| | | token, |
| | | newUrl, |
| | | requestData, |
| | | agencyHospitalid, |
| | | helper, |
| | | hospitalName |
| | | ); |
| | | component.set('v.login',true); |
| | | helper.insert_agencycontact(component,token,newUrl,requestData,agencyHospitalid,helper,hospitalName); |
| | | } else { |
| | | helper.ShowToast({ |
| | | message: data.message, |
| | | type: "error" |
| | | "message" : data.message, |
| | | "type" : "error" |
| | | }); |
| | | } |
| | | } else { |
| | | helper.ShowToast({ |
| | | message: "searchAgency失败", |
| | | type: "error" |
| | | "message" : 'searchAgency失败', |
| | | "type" : "error" |
| | | }); |
| | | } |
| | | } |
| | | ); |
| | | }) |
| | | //zhj MEBGæ°æ¹æ¡æ¹é 2022-11-29 end |
| | | // var arr = new Array(); |
| | | // arr.push(agencyReport); |
| | |
| | | |
| | | // PIPL update Yin Mingjie 21/02/2022 end |
| | | } else { |
| | | component.find("OppMessage").setError(vaildationFailReason); |
| | | component.find('OppMessage').setError(vaildationFailReason); |
| | | } |
| | | // var eventFields = event.getParam("fields"); |
| | | // eventFields["Agency_Hospital__c"] = component.get('v.hospitalLinkId'); |
| | |
| | | }, |
| | | |
| | | yes_button: function (component, event, helper) { |
| | | component.set("v.confirm_status", 1); |
| | | helper.close_confirm( |
| | | component, |
| | | component.get("v.modal_confirm_title"), |
| | | component.get("v.modal_confirm_text") |
| | | ); |
| | | component.set('v.confirm_status', 1); |
| | | helper.close_confirm(component, component.get('v.modal_confirm_title'), component.get('v.modal_confirm_text')); |
| | | }, |
| | | |
| | | no_button: function (component, event, helper) { |
| | | component.set("v.confirm_status", 2); |
| | | helper.close_confirm( |
| | | component, |
| | | component.get("v.modal_confirm_title"), |
| | | component.get("v.modal_confirm_text") |
| | | ); |
| | | component.set('v.confirm_status', 2); |
| | | helper.close_confirm(component, component.get('v.modal_confirm_title'), component.get('v.modal_confirm_text')); |
| | | }, |
| | | |
| | | toggle_report: function (component, event, helper) { |
| | |
| | | onDrop: function (component, event, helper) { |
| | | event.stopPropagation(); |
| | | event.preventDefault(); |
| | | event.dataTransfer.dropEffect = "copy"; |
| | | event.dataTransfer.dropEffect='copy'; |
| | | var files = event.dataTransfer.files; |
| | | helper.readFile(component, helper, files[0]); |
| | | }, |
| | |
| | | // var fileInput = component.find("file").getElement(); |
| | | // var file = fileInput.files[0]; |
| | | helper.readFile(component, helper, files[0]); |
| | | component.set("v.showErrorInfo", false); |
| | | }, |
| | | |
| | | processFileContent: function (component, event, helper) { |
| | | helper.saveRecords(component, event, helper); |
| | | component.set("v.showErrorInfo", false); |
| | | }, |
| | | |
| | | cancel: function (component, event, helper) { |
| | |
| | | }, |
| | | exportDate: function (component, event, helper) { |
| | | var stockData = component.get("v.reports_date"); |
| | | console.log("å¯¼åºæ°æ®" + stockData); |
| | | console.log('å¯¼åºæ°æ®'+stockData); |
| | | var csv = helper.convertArrayOfObjectsToCSV(component, stockData); |
| | | if (csv == null) { |
| | | return; |
| | | } |
| | | if (csv == null){return;} |
| | | |
| | | // ####--code for create a temp. <a> html tag [link tag] for download the CSV file--#### |
| | | var universalBOM = "\uFEFF"; |
| | | var hiddenElement = document.createElement("a"); |
| | | hiddenElement.href = |
| | | "data:text/csv;charset=utf-8," + encodeURI(universalBOM + csv); |
| | | hiddenElement.target = "_self"; // |
| | | hiddenElement.download = "ExportData.csv"; // CSV file Name* you can change it.[only name not .csv] |
| | | var hiddenElement = document.createElement('a'); |
| | | hiddenElement.href = 'data:text/csv;charset=utf-8,' + encodeURI(universalBOM+csv); |
| | | hiddenElement.target = '_self'; // |
| | | hiddenElement.download = 'ExportData.csv'; // CSV file Name* you can change it.[only name not .csv] |
| | | document.body.appendChild(hiddenElement); // Required for FireFox browser |
| | | hiddenElement.click(); // using click() js function to download csv file |
| | | // helper.showExport(component); |
| | | |
| | | }, |
| | | |
| | | export_condition: function (component, event, helper) { |
| | |
| | | // this.export(component,event,helper); |
| | | }, |
| | | export: function (component, event, helper) { |
| | | console.log("è¿å
¥export"); |
| | | console.log('è¿å
¥export'); |
| | | var stockData = component.get("v.reports_date"); |
| | | console.log("æ¥åºçæ°æ®" + stockData); |
| | | console.log('æ¥åºçæ°æ®'+stockData); |
| | | // helper.showExportDate(component,stockData); |
| | | // helper.showExport(component); |
| | | }, |
| | |
| | | close_export: function (component, event, helper) { |
| | | component.set("v.showMain", true); |
| | | helper.close_export(component); |
| | | } |
| | | }); |
| | | }, |
| | | exportErrorInfo: function(component,event,helper){ |
| | | helper.exportErrorInfoHelper(component); |
| | | }, |
| | | }) |
| | |
| | | ({ |
| | | doinit: function (component, event, helper) { |
| | | this.report_date_list(component, event, helper, 5); |
| | | component.set("v.login", true); |
| | | var action = component.get("c.getalldata"); |
| | | component.set('v.login',true); |
| | | var action = component.get('c.getalldata'); |
| | | action.setCallback(this, function (response) { |
| | | var state = response.getState(); |
| | | if (state == "SUCCESS") { |
| | | if(state == 'SUCCESS'){ |
| | | var res = response.getReturnValue(); |
| | | component.set("v.alldata", res.reports); |
| | | component.set("v.fieldsmap", res.fieldsMap); |
| | | component.set("v.allselectlist", res.allselectlist); |
| | | component.set("v.doclist", res.doclist); |
| | | component.set('v.alldata',res.reports); |
| | | component.set('v.fieldsmap',res.fieldsMap); |
| | | component.set('v.allselectlist',res.allselectlist); |
| | | component.set('v.doclist',res.doclist); |
| | | // PIPL update Yin Mingjie 21/02/2022 start |
| | | component |
| | | .find("select_agency_person") |
| | | .set( |
| | | "v.options", |
| | | this.conv_selected(res.allselectlist.AgencyPerson__c) |
| | | ); |
| | | component.find('select_agency_person').set('v.options', this.conv_selected(res.allselectlist.AgencyPerson__c)); |
| | | // this.search_contact(component, event, helper,res.allselectlist.AgencyPerson__c); |
| | | // PIPL update Yin Mingjie 21/02/2022 end |
| | | component |
| | | .find("select_department") |
| | | .set( |
| | | "v.options", |
| | | this.conv_selected(res.allselectlist.Department_Cateogy__c) |
| | | ); |
| | | component |
| | | .find("select_purpose_type") |
| | | .set( |
| | | "v.options", |
| | | this.conv_selected(res.allselectlist.Purpose_Type__c) |
| | | ); |
| | | component |
| | | .find("select_result") |
| | | .set("v.options", this.conv_selected(res.allselectlist.Result__c)); |
| | | component |
| | | .find("select_stageName") |
| | | .set("v.options", this.conv_selected(res.allselectlist.StageName__c)); |
| | | component.find('select_department').set('v.options', this.conv_selected(res.allselectlist.Department_Cateogy__c)); |
| | | component.find('select_purpose_type').set('v.options', this.conv_selected(res.allselectlist.Purpose_Type__c)); |
| | | component.find('select_result').set('v.options', this.conv_selected(res.allselectlist.Result__c)); |
| | | component.find('select_stageName').set('v.options', this.conv_selected(res.allselectlist.StageName__c)); |
| | | //SWAG-CBX68C fy ãå§æãDAMSç³»ç»å¨æ¥æ¨¡åå
容鿱å¢å start |
| | | component |
| | | .find("SupportNeeds__c") |
| | | .set( |
| | | "v.options", |
| | | this.conv_selected(res.allselectlist.SupportNeeds__c) |
| | | ); |
| | | component.find('SupportNeeds__c').set('v.options', this.conv_selected(res.allselectlist.SupportNeeds__c)); |
| | | //SWAG-CBX68C fy ãå§æãDAMSç³»ç»å¨æ¥æ¨¡åå
容鿱å¢å end |
| | | component.set( |
| | | "v.selected_agency_person", |
| | | res.allselectlist.AgencyPerson__c[0].label |
| | | ); |
| | | component.set("v.dialog_type", "æ°å»º"); |
| | | component.set("v.awsurl", res.awsurl); // 20220222 PIæ¹é by Bright |
| | | component.set("v.contactawsurl", res.contactawsurl); // 20220222 PIæ¹é by Bright |
| | | component.set('v.selected_agency_person', res.allselectlist.AgencyPerson__c[0].label); |
| | | component.set('v.dialog_type', 'æ°å»º'); |
| | | component.set('v.awsurl', res.awsurl);// 20220222 PIæ¹é by Bright |
| | | component.set('v.contactawsurl', res.contactawsurl);// 20220222 PIæ¹é by Bright |
| | | |
| | | this.get_reports( |
| | | component, |
| | | event, |
| | | helper, |
| | | component.find("select_date").get("v.value"), |
| | | component.find("select_agency_person").get("v.value") |
| | | ); |
| | | this.get_reports(component, event, helper, component.find('select_date').get('v.value'), component.find('select_agency_person').get('v.value')); |
| | | |
| | | component.set("v.login", false); |
| | | } else { |
| | | this.error("doinit failed."); |
| | | component.set("v.login", false); |
| | | component.set('v.login',false); |
| | | } |
| | | else{ |
| | | this.error('doinit failed.'); |
| | | component.set('v.login',false); |
| | | } |
| | | }); |
| | | $A.enqueueAction(action); |
| | |
| | | let contactData = Object.create(null); |
| | | var dataArr = new Array(); |
| | | for (let i = 0; i < resobj.length; i++) { |
| | | if (resobj[i].awsid != null && resobj[i].awsid != "") { |
| | | if (resobj[i].awsid != null && resobj[i].awsid != ''){ |
| | | contactData[resobj[i].awsid] = resobj[i]; |
| | | dataArr.push(resobj[i].awsid); |
| | | } |
| | | } |
| | | let obj = Object.create(null); |
| | | obj["dataIds"] = dataArr; |
| | | obj['dataIds'] = dataArr; |
| | | var payload = JSON.stringify(obj); |
| | | this.search_contact_url(component, "Contact", (result) => { |
| | | this.search_contact_url(component, 'Contact', (result)=>{ |
| | | var token = result.token; |
| | | var searchUrl = result.searchUrl; |
| | | this.search_core( |
| | | token, |
| | | searchUrl, |
| | | payload, |
| | | (result) => { |
| | | if (result.status == "0") { |
| | | this.search_core(token,searchUrl,payload,(result)=>{ |
| | | if(result.status == '0'){ |
| | | if (result.object != null) { |
| | | this.to_contact_list(result, contactData, component); |
| | | } else { |
| | | component.set("v.login", false); |
| | | component.set('v.login',false); |
| | | } |
| | | } else { |
| | | this.error("AWS search status1 : " + result.status); |
| | | component.set("v.login", false); |
| | | this.error('AWS search status1 : ' + result.status); |
| | | component.set('v.login',false); |
| | | } |
| | | }, |
| | | component |
| | | ); |
| | | },component); |
| | | |
| | | }); |
| | | }, |
| | | |
| | |
| | | var resls = result.object; |
| | | var res = []; |
| | | var space = {}; |
| | | space["label"] = ""; |
| | | space["selected"] = true; |
| | | space["value"] = ""; |
| | | space['label'] = ''; |
| | | space['selected'] = true; |
| | | space['value'] = ''; |
| | | res.push(space); |
| | | |
| | | for (var i = 0; i < resls.length; i++) { |
| | | var t = {}; |
| | | t["label"] = resls[i].lastName; |
| | | t["selected"] = false; |
| | | t["Doctor_Division1__c"] = resls[i].doctorDivision1; |
| | | t["value"] = retMap[resls[i].dataId].value; |
| | | t['label'] = resls[i].lastName; |
| | | t['selected'] = false; |
| | | t['Doctor_Division1__c'] = resls[i].doctorDivision1; |
| | | t['value'] = retMap[resls[i].dataId].value; |
| | | res.push(t); |
| | | } |
| | | component.find("select_agency_person").set("v.options", res); |
| | | component.set("v.allselectlistAgencyPerson", res); |
| | | component.set("v.login", false); |
| | | component.find('select_agency_person').set('v.options',res); |
| | | component.set('v.allselectlistAgencyPerson',res); |
| | | component.set('v.login',false); |
| | | }, |
| | | |
| | | search_contact_url: function (component, sobject, callback) { |
| | | var action = component.get("c.getAwsurl"); |
| | | var action = component.get('c.getAwsurl'); |
| | | action.setParams({ |
| | | sobj: sobject |
| | | "sobj" : sobject, |
| | | }); |
| | | action.setCallback(this, function (response) { |
| | | var state = response.getState(); |
| | | if (state == "SUCCESS") { |
| | | if(state == 'SUCCESS'){ |
| | | var result = response.getReturnValue(); |
| | | if (callback) callback(result); |
| | | } else { |
| | | this.error("AWS url/token error."); |
| | | component.set("v.login", false); |
| | | } |
| | | else{ |
| | | this.error('AWS url/token error.'); |
| | | component.set('v.login',false); |
| | | } |
| | | }); |
| | | $A.enqueueAction(action); |
| | |
| | | |
| | | select_department: function (component, event, helper) { |
| | | var dc = component.find("select_department").get("v.value"); |
| | | dc = dc ? "%" + dc + "%" : ""; |
| | | dc = dc ? '%'+dc+'%' : ''; |
| | | var purpose_type = component.find("select_purpose_type").get("v.value"); |
| | | if (purpose_type) { |
| | | if (purpose_type.substr(-3) == "OPD") { |
| | | purpose_type = "OPD"; |
| | | } else if (purpose_type.substr(-3) == "SIS") { |
| | | purpose_type = "SIS"; |
| | | if (purpose_type.substr(-3) == 'OPD') { |
| | | purpose_type = 'OPD'; |
| | | } else if (purpose_type.substr(-3) == 'SIS') { |
| | | purpose_type = 'SIS'; |
| | | } else { |
| | | purpose_type = ""; |
| | | purpose_type = ''; |
| | | } |
| | | } |
| | | if (dc != "" || purpose_type != "") { |
| | | var action = component.get("c.getProductList"); |
| | | if (dc != '' || purpose_type != '') { |
| | | |
| | | var action = component.get('c.getProductList'); |
| | | action.setParams({ |
| | | dc: dc, |
| | | opdsis: purpose_type |
| | | "dc" : dc, |
| | | "opdsis" : purpose_type, |
| | | }); |
| | | action.setCallback(this, function (response) { |
| | | var state = response.getState(); |
| | | if (state == "SUCCESS") { |
| | | if(state == 'SUCCESS'){ |
| | | |
| | | var res = response.getReturnValue(); |
| | | component |
| | | .find("select_Product1") |
| | | .set("v.options", JSON.parse(JSON.stringify(res))); |
| | | component |
| | | .find("select_Product2") |
| | | .set("v.options", JSON.parse(JSON.stringify(res))); |
| | | component |
| | | .find("select_Product3") |
| | | .set("v.options", JSON.parse(JSON.stringify(res))); |
| | | } else { |
| | | this.error("getProductList failed."); |
| | | component.find('select_Product1').set("v.options", JSON.parse(JSON.stringify(res))); |
| | | component.find('select_Product2').set("v.options", JSON.parse(JSON.stringify(res))); |
| | | component.find('select_Product3').set("v.options", JSON.parse(JSON.stringify(res))); |
| | | } |
| | | else{ |
| | | this.error('getProductList failed.'); |
| | | } |
| | | }); |
| | | $A.enqueueAction(action); |
| | | } else { |
| | | component.find("select_Product1").set("v.options", []); |
| | | component.find("select_Product2").set("v.options", []); |
| | | component.find("select_Product3").set("v.options", []); |
| | | component.find('select_Product1').set('v.options', []); |
| | | component.find('select_Product2').set('v.options', []); |
| | | component.find('select_Product3').set('v.options', []); |
| | | } |
| | | }, |
| | | |
| | |
| | | |
| | | date_str = this.get_date_string(date_str); |
| | | |
| | | var action = component.get("c.getReports"); |
| | | var action = component.get('c.getReports'); |
| | | action.setParams({ |
| | | date_str: date_str, |
| | | person_str: person_str |
| | | "date_str" : date_str, |
| | | "person_str" : person_str, |
| | | }); |
| | | |
| | | component.set("v.login", true); |
| | | component.set('v.login',true); |
| | | action.setCallback(this, function (response) { |
| | | var state = response.getState(); |
| | | if (state == "SUCCESS") { |
| | | if(state == 'SUCCESS'){ |
| | | var res = response.getReturnValue(); |
| | | component.set("v.reports", res.reports); |
| | | component.set('v.reports', res.reports); |
| | | |
| | | // 20220222 PIæ¹é by Bright--start |
| | | let dataIds = []; |
| | |
| | | dataIds.push(rep.doctor2__r.AWS_Data_Id__c); |
| | | } |
| | | |
| | | if ( |
| | | rep.Person_In_Charge2__r && |
| | | rep.Person_In_Charge2__r.AWS_Data_Id__c |
| | | ) { |
| | | if (rep.Person_In_Charge2__r && rep.Person_In_Charge2__r.AWS_Data_Id__c) { |
| | | dataIds1.push(rep.Person_In_Charge2__r.AWS_Data_Id__c); |
| | | } |
| | | } |
| | |
| | | Foo = function () { |
| | | if (b && b1) { |
| | | for (const rep of res.reports) { |
| | | if ( |
| | | rep.doctor2__r && |
| | | rep.doctor2__r.AWS_Data_Id__c && |
| | | mm.hasOwnProperty(rep.doctor2__r.AWS_Data_Id__c) |
| | | ) { |
| | | if (rep.doctor2__r && rep.doctor2__r.AWS_Data_Id__c && mm.hasOwnProperty(rep.doctor2__r.AWS_Data_Id__c)) { |
| | | rep.doctor2__r.awsdata = mm[rep.doctor2__r.AWS_Data_Id__c]; |
| | | } |
| | | if ( |
| | | rep.Person_In_Charge2__r && |
| | | rep.Person_In_Charge2__r.AWS_Data_Id__c && |
| | | mm.hasOwnProperty(rep.Person_In_Charge2__r.AWS_Data_Id__c) |
| | | ) { |
| | | rep.Person_In_Charge2__r.awsdata = |
| | | mm[rep.Person_In_Charge2__r.AWS_Data_Id__c]; |
| | | if (rep.Person_In_Charge2__r && rep.Person_In_Charge2__r.AWS_Data_Id__c && mm.hasOwnProperty(rep.Person_In_Charge2__r.AWS_Data_Id__c)) { |
| | | rep.Person_In_Charge2__r.awsdata = mm[rep.Person_In_Charge2__r.AWS_Data_Id__c]; |
| | | } |
| | | } |
| | | |
| | | $A.getCallback(() => component.set("v.reports", res.reports))(); |
| | | $A.getCallback(()=>component.set('v.reports', res.reports))(); |
| | | } else { |
| | | console.log("b=" + b + ",b1=" + b1 + ",continue"); |
| | | console.log('b='+b + ',b1='+b1+',continue'); |
| | | setTimeout(Foo, 100); |
| | | } |
| | | }; |
| | | } |
| | | |
| | | if (dataIds.length > 0) { |
| | | let awsurl = component.get("v.awsurl"); |
| | | helper.search_core( |
| | | awsurl.token, |
| | | awsurl.searchUrl, |
| | | JSON.stringify({ |
| | | dataIds: dataIds |
| | | }), |
| | | (result) => { |
| | | if (result.status == "0") { |
| | | let awsurl = component.get('v.awsurl'); |
| | | helper.search_core(awsurl.token,awsurl.searchUrl,JSON.stringify({ |
| | | "dataIds":dataIds |
| | | }),(result)=>{ |
| | | if(result.status == '0'){ |
| | | |
| | | for (const m of result.object) { |
| | | mm[m.dataId] = m; |
| | | } |
| | |
| | | Foo(); |
| | | } else { |
| | | //this.error('AWS search status2 : ' + result.status); |
| | | this.success("è¯·éæ°å·æ°é¡µé¢è¿è¡è§£å¯"); |
| | | this.success('è¯·éæ°å·æ°é¡µé¢è¿è¡è§£å¯'); |
| | | } |
| | | }, |
| | | component |
| | | ); |
| | | },component); |
| | | } else { |
| | | b = true; |
| | | } |
| | | |
| | | |
| | | |
| | | if (dataIds1.length > 0) { |
| | | let contactawsurl = component.get("v.contactawsurl"); |
| | | helper.search_core( |
| | | contactawsurl.token, |
| | | contactawsurl.searchUrl, |
| | | JSON.stringify({ |
| | | dataIds: dataIds1 |
| | | }), |
| | | (result) => { |
| | | if (result.status == "0") { |
| | | let contactawsurl = component.get('v.contactawsurl'); |
| | | helper.search_core(contactawsurl.token,contactawsurl.searchUrl,JSON.stringify({ |
| | | "dataIds":dataIds1 |
| | | }),(result)=>{ |
| | | if(result.status == '0'){ |
| | | |
| | | for (const m of result.object) { |
| | | mm[m.dataId] = m; |
| | | } |
| | | b1 = true; |
| | | Foo(); |
| | | } else { |
| | | this.error("AWS search status3 : " + result.status); |
| | | this.error('AWS search status3 : ' + result.status); |
| | | } |
| | | }, |
| | | component |
| | | ); |
| | | },component); |
| | | } else { |
| | | b1 = true; |
| | | } |
| | | // 20220222 PIæ¹é by Bright--end |
| | | |
| | | component.set("v.report_count", res.reports.length); |
| | | component.set('v.report_count', res.reports.length); |
| | | |
| | | // æ´æ°ä¿åå¾ã®select_dataç¨ |
| | | var report_id = component.get("v.update_select_report_data_id"); |
| | | var report_id = component.get('v.update_select_report_data_id'); |
| | | |
| | | if (report_id != "") { |
| | | for (i = 0; i < res.reports.length; i++) { |
| | | if (res.reports[i]["Id"] == report_id) { |
| | | component.set("v.select_report_data", res.reports[i]); |
| | | if (res.reports[i]['Id'] == report_id) { |
| | | component.set('v.select_report_data', res.reports[i]); |
| | | break; |
| | | } |
| | | } |
| | | component.set("v.update_select_report_data_id", ""); |
| | | component.set('v.update_select_report_data_id', ''); |
| | | } |
| | | |
| | | if (res.reports.length > 0) { |
| | | component.set("v.list_message", ""); |
| | | component.set('v.list_message', ''); |
| | | } else { |
| | | component.set("v.list_message", "no_data"); |
| | | component.set('v.list_message', 'no_data'); |
| | | } |
| | | component.set("v.login", false); |
| | | } else { |
| | | this.error("get_reports failed."); |
| | | component.set("v.login", false); |
| | | component.set('v.login',false); |
| | | } |
| | | else{ |
| | | this.error('get_reports failed.'); |
| | | component.set('v.login',false); |
| | | } |
| | | }); |
| | | $A.enqueueAction(action); |
| | | }, |
| | | |
| | | select_date_change: function (component, event, helper) { |
| | | this.get_reports( |
| | | component, |
| | | event, |
| | | helper, |
| | | component.find("select_date").get("v.value"), |
| | | component.find("select_agency_person").get("v.value") |
| | | ); |
| | | this.get_reports(component, event, helper, component.find('select_date').get('v.value'), component.find('select_agency_person').get('v.value')); |
| | | this.new_button_disabled(component, event, helper); |
| | | |
| | | component.set("v.select_report_data_radio", ""); |
| | | component.find("copy_button").set("v.disabled", true); |
| | | component.set('v.select_report_data_radio', ''); |
| | | component.find('copy_button').set('v.disabled', true); |
| | | }, |
| | | |
| | | select_agency_change: function (component, event, helper) { |
| | | var select_value = component.find("select_agency_person").get("v.value"); |
| | | var select_value = component.find('select_agency_person').get('v.value'); |
| | | var new_label = this.get_agency_person_name(component, select_value); |
| | | component.set("v.selected_agency_person", new_label); |
| | | component.set('v.selected_agency_person', new_label); |
| | | |
| | | this.get_reports( |
| | | component, |
| | | event, |
| | | helper, |
| | | component.find("select_date").get("v.value"), |
| | | select_value |
| | | ); |
| | | this.get_reports(component, event, helper, component.find('select_date').get('v.value'), select_value); |
| | | this.new_button_disabled(component, event, helper); |
| | | |
| | | component.set("v.select_report_data_radio", ""); |
| | | component.find("copy_button").set("v.disabled", true); |
| | | component.set('v.select_report_data_radio', ''); |
| | | component.find('copy_button').set('v.disabled', true); |
| | | }, |
| | | |
| | | get_agency_person_name: function (component, agency_person_value) { |
| | | // PIPL update Yin Mingjie 21/02/2022 start |
| | | var allselectlist = component.get("v.allselectlist.AgencyPerson__c"); |
| | | var allselectlist = component.get('v.allselectlist.AgencyPerson__c'); |
| | | // var allselectlist = component.get('v.allselectlistAgencyPerson'); |
| | | // PIPL update Yin Mingjie 21/02/2022 end |
| | | var new_label = ""; |
| | | var new_label = ''; |
| | | for (var i = 0; i < allselectlist.length; i++) { |
| | | if (agency_person_value == allselectlist[i].value) { |
| | | new_label = allselectlist[i].label; |
| | |
| | | }, |
| | | |
| | | new_button_disabled: function (component, event, helper) { |
| | | var select_date = component.find("select_date").get("v.value"); |
| | | var select_agency = component.find("select_agency_person").get("v.value"); |
| | | var select_date = component.find('select_date').get('v.value'); |
| | | var select_agency = component.find('select_agency_person').get('v.value'); |
| | | if (select_date && select_agency) { |
| | | component.find("new_button").set("v.disabled", false); |
| | | component.find('new_button').set('v.disabled', false); |
| | | } else { |
| | | component.find("new_button").set("v.disabled", true); |
| | | component.find('new_button').set('v.disabled', true); |
| | | } |
| | | }, |
| | | |
| | | toggle_report: function (component) { |
| | | var modal_window = component.find("modal_window"); |
| | | var modal_bg = component.find("modal_bg"); |
| | | if ($A.util.hasClass(modal_window, "disp_none")) { |
| | | var modal_window = component.find('modal_window'); |
| | | var modal_bg = component.find('modal_bg'); |
| | | if ($A.util.hasClass(modal_window, 'disp_none')) { |
| | | // OPEN |
| | | $A.util.removeClass(modal_window, "disp_none"); |
| | | $A.util.removeClass(modal_bg, "disp_none"); |
| | | $A.util.removeClass(modal_window, 'disp_none'); |
| | | $A.util.removeClass(modal_bg, 'disp_none'); |
| | | |
| | | if ( |
| | | component.get("v.mode") == "edit" || |
| | | component.get("v.mode") == "copy" |
| | | ) { |
| | | var select_data = ""; |
| | | if (component.get("v.mode") == "edit") { |
| | | select_data = component.get("v.select_report_data"); |
| | | } else if (component.get("v.mode") == "copy") { |
| | | select_data = component.get("v.select_report_data_radio"); |
| | | if (component.get('v.mode') == 'edit' || component.get('v.mode') == 'copy') { |
| | | var select_data = ''; |
| | | if (component.get('v.mode') == 'edit') { |
| | | select_data = component.get('v.select_report_data'); |
| | | } else if (component.get('v.mode') == 'copy') { |
| | | select_data = component.get('v.select_report_data_radio'); |
| | | } |
| | | |
| | | var reports = component.get("v.reports"); |
| | | var Agency_Hospital_text = ""; |
| | | var Agency_Hospital_parent_id = ""; |
| | | debugger; |
| | | var reports = component.get('v.reports'); |
| | | var Agency_Hospital_text = ''; |
| | | var Agency_Hospital_parent_id = ''; |
| | | debugger |
| | | // å»é¢å |
| | | if (select_data["Agency_Hospital__c"] != "") { |
| | | if (select_data['Agency_Hospital__c'] != '') { |
| | | for (var i = 0; i < reports.length; i++) { |
| | | if ( |
| | | reports[i]["Agency_Hospital__c"] == |
| | | select_data["Agency_Hospital__c"] |
| | | ) { |
| | | Agency_Hospital_text = reports[i]["Agency_Hospital__r"]["Name"]; |
| | | Agency_Hospital_parent_id = |
| | | reports[i]["Agency_Hospital__r"]["Hospital__c"]; |
| | | if (reports[i]['Agency_Hospital__c'] == select_data['Agency_Hospital__c']) { |
| | | Agency_Hospital_text = reports[i]['Agency_Hospital__r']['Name']; |
| | | Agency_Hospital_parent_id = reports[i]['Agency_Hospital__r']['Hospital__c']; |
| | | } |
| | | } |
| | | component.set("v.hospital", Agency_Hospital_text); |
| | | component.set("v.hospitalId", Agency_Hospital_parent_id); |
| | | component.set("v.hospitalLinkId", select_data["Agency_Hospital__c"]); |
| | | component.find("new_con").set("v.disabled", false); |
| | | component.set('v.hospital', Agency_Hospital_text); |
| | | component.set('v.hospitalId', Agency_Hospital_parent_id); |
| | | component.set('v.hospitalLinkId', select_data['Agency_Hospital__c']); |
| | | component.find('new_con').set('v.disabled', false); |
| | | } |
| | | |
| | | // ç§å®¤ |
| | | if (select_data["Department_Cateogy__c"] != "") { |
| | | this.set_selected( |
| | | component, |
| | | "select_department", |
| | | select_data["Department_Cateogy__c"] |
| | | ); |
| | | if (select_data['Department_Cateogy__c'] != '') { |
| | | this.set_selected(component, 'select_department', select_data['Department_Cateogy__c']); |
| | | } |
| | | // æè®¿äºº |
| | | component.set("v.default_select_doctor_id", select_data["doctor2__c"]); |
| | | component.set('v.default_select_doctor_id', select_data['doctor2__c']); |
| | | this.set_doctor_list(component); |
| | | |
| | | // æ´»å¨åºå |
| | | if (select_data["Purpose_Type__c"] != "") { |
| | | this.set_selected( |
| | | component, |
| | | "select_purpose_type", |
| | | select_data["Purpose_Type__c"] |
| | | ); |
| | | if (select_data['Purpose_Type__c'] != '') { |
| | | this.set_selected(component, 'select_purpose_type', select_data['Purpose_Type__c']); |
| | | this.select_purpose_type(component); |
| | | } |
| | | //SWAG-CBX68C fy ãå§æãDAMSç³»ç»å¨æ¥æ¨¡åå
容鿱å¢å start |
| | | // æ¯æ´éæ± |
| | | if (select_data["SupportNeeds__c"] != "") { |
| | | this.set_selected( |
| | | component, |
| | | "SupportNeeds__c", |
| | | select_data["SupportNeeds__c"] |
| | | ); |
| | | if (select_data['SupportNeeds__c'] != '') { |
| | | this.set_selected(component, 'SupportNeeds__c', select_data['SupportNeeds__c']); |
| | | } |
| | | //SWAG-CBX68C fy ãå§æãDAMSç³»ç»å¨æ¥æ¨¡åå
容鿱å¢å end |
| | | // çµæ |
| | | if ( |
| | | select_data["Result__c"] != "" && |
| | | typeof select_data["Result__c"] !== "undefined" |
| | | ) { |
| | | component |
| | | .find("select_result") |
| | | .set("v.value", select_data["Result__c"]); |
| | | if (select_data['Result__c'] != '' && typeof select_data['Result__c'] !== "undefined") { |
| | | component.find('select_result').set('v.value', select_data['Result__c']); |
| | | } |
| | | |
| | | // 询价 |
| | | var report_id = component.get("v.edit_copy_select_report_id"); |
| | | var report_id = component.get('v.edit_copy_select_report_id'); |
| | | if (report_id != "") { |
| | | var select_opp = ""; |
| | | var select_product_category1 = ""; |
| | | var select_product_category2 = ""; |
| | | var select_product_category3 = ""; |
| | | var select_opp = ''; |
| | | var select_product_category1 = ''; |
| | | var select_product_category2 = ''; |
| | | var select_product_category3 = ''; |
| | | var reportDate; |
| | | var i = 0; |
| | | for (i = 0; i < reports.length; i++) { |
| | |
| | | } |
| | | |
| | | // 询价 |
| | | if (select_opp != null && select_opp != "") { |
| | | var select_opp_name = component.get("v.reports")[i].OppName__c; |
| | | component.set("v.data.Opportunity__c", select_opp); |
| | | if ($A.get("$Browser.formFactor") == "DESKTOP") { |
| | | var values = [ |
| | | { |
| | | type: "Agency_Opportunity__c", |
| | | if (select_opp != null && select_opp != '') { |
| | | var select_opp_name = component.get('v.reports')[i].OppName__c; |
| | | component.set('v.data.Opportunity__c', select_opp); |
| | | if ($A.get("$Browser.formFactor") == 'DESKTOP') { |
| | | var values = [{ |
| | | type: 'Agency_Opportunity__c', |
| | | id: select_opp, |
| | | label: select_opp_name, |
| | | icon: { |
| | | url: "/img/icon/t4v35/custom/custom12_120.png", |
| | | backgroundColor: "dc71d1", |
| | | alt: "Agency_Opportunity__c" |
| | | url:'/img/icon/t4v35/custom/custom12_120.png', |
| | | backgroundColor:'dc71d1', |
| | | alt:'Agency_Opportunity__c' |
| | | } |
| | | } |
| | | ]; |
| | | component.set("v.data.Opportunity__c", select_opp); |
| | | }]; |
| | | component.set('v.data.Opportunity__c', select_opp); |
| | | // component.find('input-opportunity').get("v.body")[0].set('v.values', values); |
| | | } else { |
| | | component |
| | | .find("input-opportunity") |
| | | .get("v.body")[0] |
| | | .set("v.selectedLabel", select_opp_name); |
| | | component.find('input-opportunity').get("v.body")[0].set('v.selectedLabel', select_opp_name); |
| | | } |
| | | } |
| | | |
| | | // 产ååºå |
| | | if ( |
| | | select_product_category1 != null && |
| | | select_product_category1 != "" |
| | | ) { |
| | | component |
| | | .find("select_Product1") |
| | | .set("v.value", select_product_category1); |
| | | if (select_product_category1 != null && select_product_category1 != '') { |
| | | component.find('select_Product1').set('v.value', select_product_category1); |
| | | } |
| | | if ( |
| | | select_product_category2 != null && |
| | | select_product_category2 != "" |
| | | ) { |
| | | component |
| | | .find("select_Product2") |
| | | .set("v.value", select_product_category2); |
| | | if (select_product_category2 != null && select_product_category2 != '') { |
| | | component.find('select_Product2').set('v.value', select_product_category2); |
| | | } |
| | | if ( |
| | | select_product_category3 != null && |
| | | select_product_category3 != "" |
| | | ) { |
| | | component |
| | | .find("select_Product3") |
| | | .set("v.value", select_product_category3); |
| | | if (select_product_category3 != null && select_product_category3 != '') { |
| | | component.find('select_Product3').set('v.value', select_product_category3); |
| | | } |
| | | |
| | | if (reportDate != null) { |
| | | component.set("v.data.Report_Date__c", reportDate); |
| | | component.set('v.data.Report_Date__c', reportDate); |
| | | } |
| | | |
| | | component.set("v.edit_copy_select_report_id", ""); |
| | | component.set('v.edit_copy_select_report_id', ""); |
| | | } |
| | | } |
| | | } else { |
| | | // CLOSE |
| | | |
| | | var select_report_data = component.get("v.select_report_data"); |
| | | var Report_Date__c = component.get("v.data.Report_Date__c"); |
| | | var Agency_Hospital__c = component.get("v.hospitalLinkId"); |
| | | var Department_Cateogy__c = component |
| | | .find("select_department") |
| | | .get("v.value"); |
| | | var doctor2__c = component.find("select_doctor").get("v.value"); |
| | | var Purpose_Type__c = component |
| | | .find("select_purpose_type") |
| | | .get("v.value"); |
| | | var SupportNeeds__c = component.find("SupportNeeds__c").get("v.value"); |
| | | var Opportunity__c = component.get("v.data.Opportunity__c"); |
| | | var Product_Category1__c = component |
| | | .find("select_Product1") |
| | | .get("v.value"); |
| | | var Product_Category2__c = component |
| | | .find("select_Product2") |
| | | .get("v.value"); |
| | | var Product_Category3__c = component |
| | | .find("select_Product3") |
| | | .get("v.value"); |
| | | var Result__c = component.find("select_result").get("v.value"); |
| | | var select_report_data = component.get('v.select_report_data'); |
| | | var Report_Date__c = component.get('v.data.Report_Date__c'); |
| | | var Agency_Hospital__c = component.get('v.hospitalLinkId'); |
| | | var Department_Cateogy__c = component.find('select_department').get('v.value'); |
| | | var doctor2__c = component.find('select_doctor').get('v.value'); |
| | | var Purpose_Type__c = component.find('select_purpose_type').get('v.value'); |
| | | var SupportNeeds__c = component.find('SupportNeeds__c').get('v.value'); |
| | | var Opportunity__c = component.get('v.data.Opportunity__c'); |
| | | var Product_Category1__c = component.find('select_Product1').get('v.value'); |
| | | var Product_Category2__c = component.find('select_Product2').get('v.value'); |
| | | var Product_Category3__c = component.find('select_Product3').get('v.value'); |
| | | var Result__c = component.find('select_result').get('v.value'); |
| | | |
| | | if (select_report_data !== null) { |
| | | if (typeof select_report_data["Opportunity__c"] === "undefined") { |
| | | select_report_data["Opportunity__c"] = ""; |
| | | if (typeof select_report_data['Opportunity__c'] === "undefined") { |
| | | select_report_data['Opportunity__c'] = ""; |
| | | } |
| | | if (typeof select_report_data["Product_Category1__c"] === "undefined") { |
| | | select_report_data["Product_Category1__c"] = ""; |
| | | if (typeof select_report_data['Product_Category1__c'] === "undefined") { |
| | | select_report_data['Product_Category1__c'] = ""; |
| | | } |
| | | if (typeof select_report_data["Product_Category2__c"] === "undefined") { |
| | | select_report_data["Product_Category2__c"] = ""; |
| | | if (typeof select_report_data['Product_Category2__c'] === "undefined") { |
| | | select_report_data['Product_Category2__c'] = ""; |
| | | } |
| | | if (typeof select_report_data["Product_Category3__c"] === "undefined") { |
| | | select_report_data["Product_Category3__c"] = ""; |
| | | if (typeof select_report_data['Product_Category3__c'] === "undefined") { |
| | | select_report_data['Product_Category3__c'] = ""; |
| | | } |
| | | if (typeof select_report_data["Result__c"] === "undefined") { |
| | | select_report_data["Result__c"] = ""; |
| | | if (typeof select_report_data['Result__c'] === "undefined") { |
| | | select_report_data['Result__c'] = ""; |
| | | } |
| | | } |
| | | |
| | | if (component.get("v.mode") == "new") { |
| | | var confirm_title = "è¦å!"; |
| | | var confirm_text = "æ¾å¼æ°å»ºå¨æ¥ï¼"; |
| | | if (component.get('v.mode') == 'new') { |
| | | var confirm_title = 'è¦å!' |
| | | var confirm_text = 'æ¾å¼æ°å»ºå¨æ¥ï¼'; |
| | | |
| | | if ( |
| | | !Report_Date__c && |
| | | if (!Report_Date__c && |
| | | !Agency_Hospital__c && |
| | | !Department_Cateogy__c && |
| | | !doctor2__c && |
| | |
| | | !Product_Category1__c && |
| | | !Product_Category2__c && |
| | | !Product_Category3__c && |
| | | !Result__c |
| | | ) { |
| | | !Result__c) |
| | | { |
| | | this.allclear(component); |
| | | $A.util.addClass(modal_window, "disp_none"); |
| | | $A.util.addClass(modal_bg, "disp_none"); |
| | | $A.util.addClass(modal_window, 'disp_none'); |
| | | $A.util.addClass(modal_bg, 'disp_none'); |
| | | } else { |
| | | this.close_confirm(component, confirm_title, confirm_text); |
| | | } |
| | | } else if (component.get("v.mode") == "copy") { |
| | | var confirm_title = "è¦å!"; |
| | | var confirm_text = "æ¾å¼æ°å»ºå¨æ¥ï¼"; |
| | | } else if (component.get('v.mode') == 'copy') { |
| | | var confirm_title = 'è¦å!' |
| | | var confirm_text = 'æ¾å¼æ°å»ºå¨æ¥ï¼'; |
| | | |
| | | if ( |
| | | select_report_data["Report_Date__c"] == Report_Date__c && |
| | | select_report_data["Agency_Hospital__c"] == Agency_Hospital__c && |
| | | select_report_data["Department_Cateogy__c"] == |
| | | Department_Cateogy__c && |
| | | select_report_data["doctor2__c"] == doctor2__c && |
| | | select_report_data["Purpose_Type__c"] == Purpose_Type__c && |
| | | select_report_data["SupportNeeds__c"] == SupportNeeds__c && //WAG-CBX68C fy ãå§æãDAMSç³»ç»å¨æ¥æ¨¡åå
容鿱å¢å |
| | | select_report_data["Opportunity__c"] == Opportunity__c && |
| | | select_report_data["Product_Category1__c"] == Product_Category1__c && |
| | | select_report_data["Product_Category2__c"] == Product_Category2__c && |
| | | select_report_data["Product_Category3__c"] == Product_Category3__c && |
| | | select_report_data["Result__c"] == Result__c |
| | | ) { |
| | | if (select_report_data['Report_Date__c'] == Report_Date__c && |
| | | select_report_data['Agency_Hospital__c'] == Agency_Hospital__c && |
| | | select_report_data['Department_Cateogy__c'] == Department_Cateogy__c && |
| | | select_report_data['doctor2__c'] == doctor2__c && |
| | | select_report_data['Purpose_Type__c'] == Purpose_Type__c && |
| | | select_report_data['SupportNeeds__c'] == SupportNeeds__c &&//WAG-CBX68C fy ãå§æãDAMSç³»ç»å¨æ¥æ¨¡åå
容鿱å¢å |
| | | select_report_data['Opportunity__c'] == Opportunity__c && |
| | | select_report_data['Product_Category1__c'] == Product_Category1__c && |
| | | select_report_data['Product_Category2__c'] == Product_Category2__c && |
| | | select_report_data['Product_Category3__c'] == Product_Category3__c && |
| | | select_report_data['Result__c'] == Result__c) |
| | | { |
| | | this.allclear(component); |
| | | $A.util.addClass(modal_window, "disp_none"); |
| | | $A.util.addClass(modal_bg, "disp_none"); |
| | | $A.util.addClass(modal_window, 'disp_none'); |
| | | $A.util.addClass(modal_bg, 'disp_none'); |
| | | } else { |
| | | this.close_confirm(component, confirm_title, confirm_text); |
| | | } |
| | | } else if (component.get("v.mode") == "edit") { |
| | | var confirm_title = "è¦å!"; |
| | | var confirm_text = "æ¾å¼ç¼è¾å¨æ¥ï¼"; |
| | | } else if (component.get('v.mode') == 'edit') { |
| | | var confirm_title = 'è¦å!' |
| | | var confirm_text = 'æ¾å¼ç¼è¾å¨æ¥ï¼'; |
| | | |
| | | if ( |
| | | select_report_data["Report_Date__c"] == Report_Date__c && |
| | | select_report_data["Agency_Hospital__c"] == Agency_Hospital__c && |
| | | select_report_data["Department_Cateogy__c"] == |
| | | Department_Cateogy__c && |
| | | select_report_data["doctor2__c"] == doctor2__c && |
| | | select_report_data["Purpose_Type__c"] == Purpose_Type__c && |
| | | select_report_data["SupportNeeds__c"] == SupportNeeds__c && //WAG-CBX68C fy ãå§æãDAMSç³»ç»å¨æ¥æ¨¡åå
容鿱å¢å |
| | | select_report_data["Opportunity__c"] == Opportunity__c && |
| | | select_report_data["Product_Category1__c"] == Product_Category1__c && |
| | | select_report_data["Product_Category2__c"] == Product_Category2__c && |
| | | select_report_data["Product_Category3__c"] == Product_Category3__c && |
| | | select_report_data["Result__c"] == Result__c |
| | | ) { |
| | | if (select_report_data['Report_Date__c'] == Report_Date__c && |
| | | select_report_data['Agency_Hospital__c'] == Agency_Hospital__c && |
| | | select_report_data['Department_Cateogy__c'] == Department_Cateogy__c && |
| | | select_report_data['doctor2__c'] == doctor2__c && |
| | | select_report_data['Purpose_Type__c'] == Purpose_Type__c && |
| | | select_report_data['SupportNeeds__c'] == SupportNeeds__c &&//WAG-CBX68C fy ãå§æãDAMSç³»ç»å¨æ¥æ¨¡åå
容鿱å¢å |
| | | select_report_data['Opportunity__c'] == Opportunity__c && |
| | | select_report_data['Product_Category1__c'] == Product_Category1__c && |
| | | select_report_data['Product_Category2__c'] == Product_Category2__c && |
| | | select_report_data['Product_Category3__c'] == Product_Category3__c && |
| | | select_report_data['Result__c'] == Result__c) |
| | | { |
| | | this.allclear(component); |
| | | $A.util.addClass(modal_window, "disp_none"); |
| | | $A.util.addClass(modal_bg, "disp_none"); |
| | | $A.util.addClass(modal_window, 'disp_none'); |
| | | $A.util.addClass(modal_bg, 'disp_none'); |
| | | } else { |
| | | this.close_confirm(component, confirm_title, confirm_text); |
| | | } |
| | | } |
| | | |
| | | } |
| | | }, |
| | | |
| | | close_confirm: function (component, title, text) { |
| | | var confirm_status = component.get("v.confirm_status"); |
| | | component.set("v.modal_confirm_title", title); |
| | | component.set("v.modal_confirm_text", text); |
| | | var modal_window = component.find("modal_window"); |
| | | var modal_bg = component.find("modal_bg"); |
| | | var modal_confirm = component.find("modal_confirm"); |
| | | var modal_confirm_bg = component.find("modal_confirm_bg"); |
| | | var confirm_status = component.get('v.confirm_status'); |
| | | component.set('v.modal_confirm_title', title); |
| | | component.set('v.modal_confirm_text', text); |
| | | var modal_window = component.find('modal_window'); |
| | | var modal_bg = component.find('modal_bg'); |
| | | var modal_confirm = component.find('modal_confirm'); |
| | | var modal_confirm_bg = component.find('modal_confirm_bg'); |
| | | |
| | | if (confirm_status == 0) { |
| | | $A.util.addClass(modal_window, "disp_none"); |
| | | $A.util.addClass(modal_bg, "disp_none"); |
| | | $A.util.removeClass(modal_confirm, "disp_none"); |
| | | $A.util.removeClass(modal_confirm_bg, "disp_none"); |
| | | $A.util.addClass(modal_window, 'disp_none'); |
| | | $A.util.addClass(modal_bg, 'disp_none'); |
| | | $A.util.removeClass(modal_confirm, 'disp_none'); |
| | | $A.util.removeClass(modal_confirm_bg, 'disp_none'); |
| | | } else if (confirm_status == 1) { |
| | | // æ¯ |
| | | $A.util.addClass(modal_confirm, "disp_none"); |
| | | $A.util.addClass(modal_confirm_bg, "disp_none"); |
| | | component.set("v.mode", ""); |
| | | $A.util.addClass(modal_confirm, 'disp_none'); |
| | | $A.util.addClass(modal_confirm_bg, 'disp_none'); |
| | | component.set('v.mode', ''); |
| | | this.allclear(component); |
| | | component.set("v.reports_now", ""); |
| | | component.set("v.reports_now_count", 0); |
| | | component.set("v.confirm_status", 0); |
| | | component.set('v.reports_now', ""); |
| | | component.set('v.reports_now_count', 0); |
| | | component.set('v.confirm_status', 0); |
| | | } else if (confirm_status == 2) { |
| | | // å¦ |
| | | $A.util.removeClass(modal_window, "disp_none"); |
| | | $A.util.removeClass(modal_bg, "disp_none"); |
| | | $A.util.addClass(modal_confirm, "disp_none"); |
| | | $A.util.addClass(modal_confirm_bg, "disp_none"); |
| | | component.set("v.confirm_status", 0); |
| | | $A.util.removeClass(modal_window, 'disp_none'); |
| | | $A.util.removeClass(modal_bg, 'disp_none'); |
| | | $A.util.addClass(modal_confirm, 'disp_none'); |
| | | $A.util.addClass(modal_confirm_bg, 'disp_none'); |
| | | component.set('v.confirm_status', 0); |
| | | } |
| | | }, |
| | | |
| | | new_report: function (component, event, helper) { |
| | | component.set("v.mode", "new"); |
| | | component.set("v.dialog_type", "æ°å»º"); |
| | | var select_date = component.find("select_date").get("v.value"); |
| | | var select_agency = component.find("select_agency_person").get("v.value"); |
| | | component.set("v.selected_date", select_date); |
| | | var name = component.get("v.selected_agency_person"); |
| | | var ret = this.create_report_header( |
| | | component, |
| | | name, |
| | | select_agency, |
| | | select_date |
| | | ); |
| | | component.set('v.mode', 'new'); |
| | | component.set('v.dialog_type', 'æ°å»º'); |
| | | var select_date = component.find('select_date').get('v.value'); |
| | | var select_agency = component.find('select_agency_person').get('v.value'); |
| | | component.set('v.selected_date', select_date); |
| | | var name = component.get('v.selected_agency_person'); |
| | | var ret = this.create_report_header(component, name, select_agency, select_date); |
| | | // PIPL update Yin Mingjie 21/02/2022 start |
| | | this.set_aws_url(component, "Agency_Contact__c"); |
| | | this.set_aws_url(component,'Agency_Contact__c') |
| | | // PIPL update Yin Mingjie 21/02/2022 end |
| | | }, |
| | | |
| | | copy_button: function (component, event, helper) { |
| | | this.allclear(component); |
| | | component.set("v.mode", "copy"); |
| | | component.set("v.dialog_type", "æ°å»º"); |
| | | var select_report_data = component.get("v.select_report_data_radio"); |
| | | component.set("v.loadOpp", true); |
| | | component.set('v.mode', 'copy'); |
| | | component.set('v.dialog_type', 'æ°å»º'); |
| | | var select_report_data = component.get('v.select_report_data_radio'); |
| | | component.set('v.loadOpp', true); |
| | | // é± |
| | | var now = new Date(); |
| | | var start_day = new Date( |
| | | now.getFullYear(), |
| | | now.getMonth(), |
| | | now.getDate() - now.getDay() + 1 |
| | | ); |
| | | var select_date = |
| | | start_day.getFullYear() + |
| | | "/" + |
| | | (start_day.getMonth() + 1) + |
| | | "/" + |
| | | start_day.getDate(); |
| | | this.set_selected(component, "select_date", select_date); |
| | | component.set("v.selected_date", select_date); |
| | | var start_day = new Date(now.getFullYear(), now.getMonth(), (now.getDate() - now.getDay() + 1)); |
| | | var select_date = start_day.getFullYear() + '/' + (start_day.getMonth() + 1) + '/' + start_day.getDate(); |
| | | this.set_selected(component, 'select_date', select_date); |
| | | component.set('v.selected_date', select_date); |
| | | |
| | | // æ
å½ |
| | | var select_agency = select_report_data["Person_In_Charge2__c"]; |
| | | var select_agency = select_report_data['Person_In_Charge2__c']; |
| | | var new_label = this.get_agency_person_name(component, select_agency); |
| | | component.set("v.selected_agency_person", new_label); |
| | | this.set_selected(component, "select_agency_person", select_agency); |
| | | component.set('v.selected_agency_person', new_label); |
| | | this.set_selected(component, 'select_agency_person', select_agency); |
| | | |
| | | this.new_button_disabled(component, event, helper); |
| | | |
| | | var name = component.get("v.selected_agency_person"); |
| | | var name = component.get('v.selected_agency_person'); |
| | | |
| | | component.set("v.edit_copy_select_report_id", select_report_data["Id"]); |
| | | component.set("v.select_report_data", select_report_data); |
| | | component.set('v.edit_copy_select_report_id', select_report_data['Id']); |
| | | component.set('v.select_report_data', select_report_data); |
| | | |
| | | var ret = this.create_report_header( |
| | | component, |
| | | name, |
| | | select_agency, |
| | | select_date |
| | | ); |
| | | var ret = this.create_report_header(component, name, select_agency, select_date); |
| | | }, |
| | | |
| | | change_report_radio: function (component, event, helper) { |
| | | var reports = component.get("v.reports"); |
| | | var reports = component.get('v.reports'); |
| | | for (var i = 0; i < reports.length; i++) { |
| | | if (reports[i].Name == event.getSource().get("v.label")) { |
| | | component.set("v.select_report_data_radio", reports[i]); |
| | | component.find("copy_button").set("v.disabled", false); |
| | | if (reports[i].Name == event.getSource().get('v.label')) { |
| | | component.set('v.select_report_data_radio', reports[i]); |
| | | component.find('copy_button').set('v.disabled', false); |
| | | break; |
| | | } |
| | | } |
| | |
| | | |
| | | edit_button: function (component, event, helper) { |
| | | this.allclear(component); |
| | | component.set("v.loadOpp", true); |
| | | var index = event.getSource().get("v.value"); |
| | | component.set("v.select_report_data", component.get("v.reports")[index]); |
| | | component.set("v.mode", "edit"); |
| | | component.set("v.dialog_type", "ç¼è¾"); |
| | | component.set('v.loadOpp', true); |
| | | var index = event.getSource().get('v.value'); |
| | | component.set('v.select_report_data', component.get('v.reports')[index]); |
| | | component.set('v.mode', 'edit'); |
| | | component.set('v.dialog_type', 'ç¼è¾'); |
| | | |
| | | var select_date = component.get("v.reports")[index].Submit_date__c; |
| | | var select_agency = component.get("v.reports")[index].Person_In_Charge2__c; |
| | | var text_tmp = select_date.split("-"); |
| | | var select_date_text = |
| | | text_tmp[0] + "/" + Number(text_tmp[1]) + "/" + Number(text_tmp[2]); |
| | | component.set("v.selected_date", select_date_text); |
| | | var name = component.get("v.reports")[index].Person_In_Charge2__r.Name; |
| | | var select_date = component.get('v.reports')[index].Submit_date__c; |
| | | var select_agency = component.get('v.reports')[index].Person_In_Charge2__c; |
| | | var text_tmp = select_date.split('-'); |
| | | var select_date_text = text_tmp[0] + '/' + Number(text_tmp[1]) + '/' + Number(text_tmp[2]); |
| | | component.set('v.selected_date', select_date_text); |
| | | var name = component.get('v.reports')[index].Person_In_Charge2__r.Name; |
| | | |
| | | this.set_selected(component, "select_agency_person", select_agency); |
| | | this.set_selected(component, 'select_agency_person', select_agency); |
| | | this.new_button_disabled(component, event, helper); |
| | | |
| | | var new_label = this.get_agency_person_name(component, select_agency); |
| | | component.set("v.selected_agency_person", new_label); |
| | | component.set('v.selected_agency_person', new_label); |
| | | |
| | | component.set( |
| | | "v.edit_copy_select_report_id", |
| | | component.get("v.reports")[index].Id |
| | | ); |
| | | component.set('v.edit_copy_select_report_id', component.get('v.reports')[index].Id); |
| | | |
| | | var ret = this.create_report_header( |
| | | component, |
| | | name, |
| | | select_agency, |
| | | select_date |
| | | ); |
| | | var ret = this.create_report_header(component, name, select_agency, select_date); |
| | | }, |
| | | |
| | | save_report: function (component, event, helper) { |
| | | |
| | | // 20220222 PIæ¹é by Bright--start |
| | | let doctor2Name = ""; |
| | | let visitortitle = ""; |
| | | for (let op of component.find("select_doctor").get("v.options")) { |
| | | let doctor2Name = ''; |
| | | let visitortitle = ''; |
| | | for(let op of component.find('select_doctor').get('v.options')){ |
| | | if (op.selected) { |
| | | doctor2Name = op.label; |
| | | visitortitle = op.Doctor_Division1__c; |
| | |
| | | } |
| | | // 20220222 PIæ¹é by Bright--end |
| | | |
| | | component.find("save_button").set("v.disabled", true); |
| | | |
| | | var Report_Date__c = component.get("v.data.Report_Date__c"); |
| | | component.find('save_button').set('v.disabled', true); |
| | | |
| | | var Report_Date__c = component.get('v.data.Report_Date__c'); |
| | | // alert('Report_Date__c'+Report_Date__c); |
| | | var Person_In_Charge2__c = ""; |
| | | var Submit_date__c = ""; |
| | | if (component.get("v.mode") == "edit") { |
| | | if (component.get('v.mode') == 'edit') { |
| | | // å¨ Submit_date__c |
| | | Submit_date__c = component.get("v.select_report_data").Submit_date__c; |
| | | Submit_date__c = component.get('v.select_report_data').Submit_date__c; |
| | | // alert('Submit_date__c'+Submit_date__c); |
| | | |
| | | |
| | | // æ
å½ Person_In_Charge2__c |
| | | Person_In_Charge2__c = component.get( |
| | | "v.select_report_data" |
| | | ).Person_In_Charge2__c; |
| | | Person_In_Charge2__c = component.get('v.select_report_data').Person_In_Charge2__c; |
| | | } else { |
| | | // å¨ Submit_date__c |
| | | Submit_date__c = this.get_date_string( |
| | | component.find("select_date").get("v.value") |
| | | ); |
| | | Submit_date__c = this.get_date_string(component.find('select_date').get('v.value')); |
| | | // alert('Submit_date__c'+Submit_date__c); |
| | | |
| | | // æ
å½ Person_In_Charge2__c |
| | | Person_In_Charge2__c = component |
| | | .find("select_agency_person") |
| | | .get("v.value"); |
| | | Person_In_Charge2__c = component.find('select_agency_person').get('v.value'); |
| | | } |
| | | // Agency_Report_Header__c |
| | | var Agency_Report_Header__c = component.get("v.agency_report_header_id"); |
| | | var Agency_Report_Header__c = component.get('v.agency_report_header_id'); |
| | | |
| | | // å»é¢ Agency_Hospital__c (Agency_Hospital_Link__c) |
| | | var Agency_Hospital__c = component.get("v.hospitalLinkId"); |
| | | var Agency_Hospital__c = component.get('v.hospitalLinkId'); |
| | | |
| | | // ç§å®¤ Department_Cateogy__c |
| | | var Department_Cateogy__c = component |
| | | .find("select_department") |
| | | .get("v.value"); |
| | | var Department_Cateogy__c = component.find('select_department').get('v.value'); |
| | | |
| | | // æè®¿äºº doctor2__c |
| | | var doctor2__c = component.find("select_doctor").get("v.value"); |
| | | var doctor2__c = component.find('select_doctor').get('v.value'); |
| | | |
| | | // æ´»å¨åºå Purpose_Type__c |
| | | var Purpose_Type__c = component.find("select_purpose_type").get("v.value"); |
| | | var Purpose_Type__c = component.find('select_purpose_type').get('v.value'); |
| | | //SWAG-CBX68C fy ãå§æãDAMSç³»ç»å¨æ¥æ¨¡åå
容鿱å¢å start |
| | | // æ¯æ´éæ± SupportNeeds__c |
| | | var SupportNeeds__c = component.find("SupportNeeds__c").get("v.value"); |
| | | var SupportNeeds__c = component.find('SupportNeeds__c').get('v.value'); |
| | | //SWAG-CBX68C fy ãå§æãDAMSç³»ç»å¨æ¥æ¨¡åå
容鿱å¢å end |
| | | // 询价 Opportunity__c |
| | | var Opportunity__c = component.get("v.data.Opportunity__c"); |
| | | var Opportunity__c = component.get('v.data.Opportunity__c'); |
| | | |
| | | var StageName__c = component.find("select_stageName").get("v.value"); |
| | | var Amount__c = |
| | | component.get("v.oppdata.Amount__c") != null |
| | | ? component.get("v.oppdata.Amount__c").toString() |
| | | : ""; |
| | | var OCMSale_Price__c = |
| | | component.get("v.oppdata.OCMSale_Price__c") != null |
| | | ? component.get("v.oppdata.OCMSale_Price__c").toString() |
| | | : ""; |
| | | var Close_Forecasted_Date__c = component.get( |
| | | "v.oppdata.Close_Forecasted_Date__c" |
| | | ); |
| | | var StageName__c = component.find('select_stageName').get('v.value'); |
| | | var Amount__c = component.get('v.oppdata.Amount__c') != null ? component.get('v.oppdata.Amount__c').toString() : ''; |
| | | var OCMSale_Price__c = component.get('v.oppdata.OCMSale_Price__c') != null ? component.get('v.oppdata.OCMSale_Price__c').toString() : ''; |
| | | var Close_Forecasted_Date__c = component.get('v.oppdata.Close_Forecasted_Date__c'); |
| | | |
| | | var StageName__c_o = component.get("v.StageName__c_o"); |
| | | var Amount__c_o = component.get("v.Amount__c_o"); |
| | | var OCMSale_Price__c_o = component.get("v.OCMSale_Price__c_o"); |
| | | var Close_Forecasted_Date__c_o = component.get( |
| | | "v.Close_Forecasted_Date__c_o" |
| | | ); |
| | | if (StageName__c_o == undefined) StageName__c_o = ""; |
| | | if (Amount__c_o == undefined) Amount__c_o = ""; |
| | | if (OCMSale_Price__c_o == undefined) OCMSale_Price__c_o = ""; |
| | | if (Close_Forecasted_Date__c_o == undefined) |
| | | Close_Forecasted_Date__c_o = ""; |
| | | if ( |
| | | StageName__c == StageName__c_o && |
| | | OCMSale_Price__c_o == OCMSale_Price__c && |
| | | Amount__c == Amount__c_o && |
| | | Close_Forecasted_Date__c == Close_Forecasted_Date__c_o |
| | | ) { |
| | | StageName__c = ""; |
| | | Amount__c = ""; |
| | | OCMSale_Price__c = ""; |
| | | Close_Forecasted_Date__c = ""; |
| | | var StageName__c_o = component.get('v.StageName__c_o'); |
| | | var Amount__c_o = component.get('v.Amount__c_o'); |
| | | var OCMSale_Price__c_o = component.get('v.OCMSale_Price__c_o'); |
| | | var Close_Forecasted_Date__c_o = component.get('v.Close_Forecasted_Date__c_o'); |
| | | if (StageName__c_o == undefined) StageName__c_o = ''; |
| | | if (Amount__c_o == undefined) Amount__c_o = ''; |
| | | if (OCMSale_Price__c_o == undefined) OCMSale_Price__c_o = ''; |
| | | if (Close_Forecasted_Date__c_o == undefined) Close_Forecasted_Date__c_o = ''; |
| | | if (StageName__c == StageName__c_o && OCMSale_Price__c_o == OCMSale_Price__c && Amount__c == Amount__c_o && Close_Forecasted_Date__c == Close_Forecasted_Date__c_o) { |
| | | StageName__c = ''; |
| | | Amount__c = ''; |
| | | OCMSale_Price__c = ''; |
| | | Close_Forecasted_Date__c = ''; |
| | | } |
| | | |
| | | // 产ååºå Product_Category__c (ProductTypes__c) |
| | | var Product_Category1__c = component.find("select_Product1").get("v.value"); |
| | | var Product_Category2__c = component.find("select_Product2").get("v.value"); |
| | | var Product_Category3__c = component.find("select_Product3").get("v.value"); |
| | | var Product_Category1__c = component.find('select_Product1').get('v.value'); |
| | | var Product_Category2__c = component.find('select_Product2').get('v.value'); |
| | | var Product_Category3__c = component.find('select_Product3').get('v.value'); |
| | | |
| | | // çµæ Result__c |
| | | var Result__c = component.find("select_result").get("v.value"); |
| | | var Result__c = component.find('select_result').get('v.value'); |
| | | |
| | | // ããªãã¼ã·ã§ã³ |
| | | var error = []; |
| | | if (!Report_Date__c) { |
| | | error.push("æ´»å¨æ¥ ä¸åå¨"); |
| | | } |
| | | if (!Submit_date__c) { |
| | | error.push("å¨ ä¸åå¨"); |
| | | } |
| | | if (!Report_Date__c) { error.push("æ´»å¨æ¥ ä¸åå¨"); } |
| | | if (!Submit_date__c) { error.push("å¨ ä¸åå¨"); } |
| | | var rDate = new Date(Report_Date__c); |
| | | var sDate = new Date(Submit_date__c); |
| | | sDate.setDate(sDate.getDate() - 1); |
| | | if (rDate < sDate) { |
| | | error.push("æ´»å¨æ¥å¿
é¡»æ¯æ¬å¨ï¼"); |
| | | } |
| | | if (rDate < sDate) {error.push('æ´»å¨æ¥å¿
é¡»æ¯æ¬å¨ï¼'); } |
| | | sDate.setDate(sDate.getDate() + 7); |
| | | if (rDate >= sDate) { |
| | | error.push("æ´»å¨æ¥å¿
é¡»æ¯æ¬å¨ï¼"); |
| | | } |
| | | if (rDate >= sDate) {error.push('æ´»å¨æ¥å¿
é¡»æ¯æ¬å¨ï¼'); } |
| | | |
| | | if (!Person_In_Charge2__c) { |
| | | error.push("æ
å½ ä¸åå¨"); |
| | | } |
| | | if (!Agency_Report_Header__c) { |
| | | this.error("Report Header Id ä¸åå¨"); |
| | | } |
| | | if (!Agency_Hospital__c) { |
| | | error.push("å»é¢ ä¸åå¨"); |
| | | } |
| | | if (!Department_Cateogy__c) { |
| | | error.push("ç§å®¤ ä¸åå¨"); |
| | | } |
| | | if (!doctor2__c) { |
| | | error.push("æè®¿äºº ä¸åå¨"); |
| | | } |
| | | if (!Purpose_Type__c) { |
| | | error.push("æ´»å¨åºå ä¸åå¨"); |
| | | } |
| | | if (!Person_In_Charge2__c) { error.push("æ
å½ ä¸åå¨"); } |
| | | if (!Agency_Report_Header__c) { this.error("Report Header Id ä¸åå¨"); } |
| | | if (!Agency_Hospital__c) { error.push("å»é¢ ä¸åå¨"); } |
| | | if (!Department_Cateogy__c) { error.push("ç§å®¤ ä¸åå¨"); } |
| | | if (!doctor2__c) { error.push("æè®¿äºº ä¸åå¨"); } |
| | | if (!Purpose_Type__c) { error.push("æ´»å¨åºå ä¸åå¨"); } |
| | | // if (!SupportNeeds__c) { error.push("æ¯æ´éæ± ä¸åå¨"); } |
| | | if (!Opportunity__c) { |
| | | Opportunity__c = ""; |
| | | } |
| | | if (!Product_Category1__c) { |
| | | error.push("产ååºå1 ä¸åå¨"); |
| | | } |
| | | if ( |
| | | Purpose_Type__c && |
| | | (Purpose_Type__c.substr(-3) == "SIS" || |
| | | Purpose_Type__c.substr(-3) == "OPD") |
| | | ) { |
| | | if (!Result__c) { |
| | | error.push("ç»æ ä¸åå¨"); |
| | | } |
| | | if (!Opportunity__c) { Opportunity__c = ""; } |
| | | if (!Product_Category1__c) { error.push("产ååºå1 ä¸åå¨"); } |
| | | if (Purpose_Type__c && (Purpose_Type__c.substr(-3) == 'SIS' || Purpose_Type__c.substr(-3) == 'OPD')) { |
| | | if (!Result__c) { error.push("ç»æ ä¸åå¨"); } |
| | | } |
| | | for (var i = 0; i < error.length; i++) { |
| | | this.warning(error[i]); |
| | | } |
| | | if (error.length > 0) { |
| | | component.find("save_button").set("v.disabled", false); |
| | | component.find('save_button').set('v.disabled', false); |
| | | return false; |
| | | } |
| | | |
| | | |
| | | // ä¿åå¦ç |
| | | component.set("v.login", true); |
| | | if (component.get("v.mode") == "edit") { |
| | | var Agency_Report__c = component.get("v.select_report_data").Id; |
| | | var action = component.get("c.editAgencyReport"); |
| | | debugger; |
| | | component.set('v.login',true); |
| | | if (component.get('v.mode') == 'edit') { |
| | | var Agency_Report__c = component.get('v.select_report_data').Id; |
| | | var action = component.get('c.editAgencyReport'); |
| | | debugger |
| | | // alert("Purpose_Type:"+Purpose_Type__c+","+"SupportNeedsc:"+SupportNeeds__c); |
| | | action.setParams({ |
| | | Agency_Report_Id: Agency_Report__c, |
| | | Department_Cateogy: Department_Cateogy__c, |
| | | Purpose_Type: Purpose_Type__c, |
| | | "Agency_Report_Id" : Agency_Report__c, |
| | | "Department_Cateogy" : Department_Cateogy__c, |
| | | "Purpose_Type" : Purpose_Type__c, |
| | | //SWAG-CBX68C fy ãå§æãDAMSç³»ç»å¨æ¥æ¨¡åå
容鿱å¢å start |
| | | SupportNeedsc: SupportNeeds__c, |
| | | "SupportNeedsc" : SupportNeeds__c, |
| | | //SWAG-CBX68C fy ãå§æãDAMSç³»ç»å¨æ¥æ¨¡åå
容鿱å¢å end |
| | | Agency_Report_Header: Agency_Report_Header__c, |
| | | Agency_Hospital: Agency_Hospital__c, |
| | | Person_In_Charge2: Person_In_Charge2__c, |
| | | doctor: doctor2__c, |
| | | Submit_date: Submit_date__c, |
| | | Product_Category1: Product_Category1__c, |
| | | Product_Category2: Product_Category2__c, |
| | | Product_Category3: Product_Category3__c, |
| | | Result: Result__c, |
| | | Opportunity: Opportunity__c, |
| | | StageName: StageName__c, |
| | | oppAmount: Amount__c, |
| | | oppOCMPrice: OCMSale_Price__c, |
| | | Close_Forecasted_Date: Close_Forecasted_Date__c, |
| | | Report_Date: Report_Date__c |
| | | "Agency_Report_Header" : Agency_Report_Header__c, |
| | | "Agency_Hospital" : Agency_Hospital__c, |
| | | "Person_In_Charge2" : Person_In_Charge2__c, |
| | | "doctor" : doctor2__c, |
| | | "Submit_date" : Submit_date__c, |
| | | "Product_Category1" : Product_Category1__c, |
| | | "Product_Category2" : Product_Category2__c, |
| | | "Product_Category3" : Product_Category3__c, |
| | | "Result" : Result__c, |
| | | "Opportunity" : Opportunity__c, |
| | | "StageName" : StageName__c, |
| | | "oppAmount" : Amount__c, |
| | | "oppOCMPrice" : OCMSale_Price__c, |
| | | "Close_Forecasted_Date" : Close_Forecasted_Date__c, |
| | | "Report_Date" : Report_Date__c, |
| | | }); |
| | | |
| | | action.setCallback(this, function (response) { |
| | | var state = response.getState(); |
| | | if (state == "SUCCESS") { |
| | | this.success("ç¼è¾ä¿åæå"); |
| | | if(state == 'SUCCESS'){ |
| | | this.success('ç¼è¾ä¿åæå'); |
| | | var report_id = response.getReturnValue(); |
| | | component.set("v.create_agency_report_id", report_id); |
| | | component.set('v.create_agency_report_id', report_id); |
| | | |
| | | var select_agency_list = |
| | | component.get("v.allselectlist").AgencyPerson__c; |
| | | var select_agency_list = component.get('v.allselectlist').AgencyPerson__c; |
| | | for (var i = 0; i < select_agency_list.length; i++) { |
| | | if ( |
| | | select_agency_list[i].value == |
| | | component.get("v.select_report_data").Person_In_Charge2__c |
| | | ) { |
| | | if (select_agency_list[i].value == component.get('v.select_report_data').Person_In_Charge2__c) { |
| | | select_agency_list[i].selected = true; |
| | | } else { |
| | | select_agency_list[i].selected = false; |
| | | } |
| | | } |
| | | component |
| | | .find("select_agency_person") |
| | | .set("v.options", select_agency_list); |
| | | component.find('select_agency_person').set('v.options', select_agency_list); |
| | | |
| | | component.set("v.update_select_report_data_id", report_id); |
| | | this.get_reports( |
| | | component, |
| | | event, |
| | | helper, |
| | | component.get("v.select_report_data").Submit_date__c, |
| | | component.get("v.select_report_data").Person_In_Charge2__c |
| | | ); |
| | | component.set('v.update_select_report_data_id', report_id); |
| | | this.get_reports(component, event, helper, component.get('v.select_report_data').Submit_date__c, component.get('v.select_report_data').Person_In_Charge2__c); |
| | | |
| | | component.find("save_button").set("v.disabled", false); |
| | | component.set("v.login", false); |
| | | } else { |
| | | component.find('save_button').set('v.disabled', false); |
| | | component.set('v.login',false); |
| | | } |
| | | else{ |
| | | // var error = response.getError(); |
| | | // alert(JSON.stringify(error)); |
| | | // alert(JSON.stringify(error[0].fieldErrors)); |
| | |
| | | // else () { |
| | | // error[0].fieldErrors[0] |
| | | // } |
| | | this.error("save_report failed."); |
| | | component.find("save_button").set("v.disabled", false); |
| | | component.set("v.login", false); |
| | | this.error('save_report failed.'); |
| | | component.find('save_button').set('v.disabled', false); |
| | | component.set('v.login',false); |
| | | } |
| | | }); |
| | | $A.enqueueAction(action); |
| | | } else { |
| | | /* Save (New & Copy) */ |
| | | |
| | | var action = component.get("c.saveAgencyReport"); |
| | | var action = component.get('c.saveAgencyReport'); |
| | | debugger; |
| | | // alert(SupportNeeds__c); |
| | | action.setParams({ |
| | | Department_Cateogy: Department_Cateogy__c, |
| | | Purpose_Type: Purpose_Type__c, |
| | | "Department_Cateogy" : Department_Cateogy__c, |
| | | "Purpose_Type" : Purpose_Type__c, |
| | | //SWAG-CBX68C fy ãå§æãDAMSç³»ç»å¨æ¥æ¨¡åå
容鿱å¢å start |
| | | SupportNeedsc: SupportNeeds__c, |
| | | "SupportNeedsc" : SupportNeeds__c, |
| | | //SWAG-CBX68C fy ãå§æãDAMSç³»ç»å¨æ¥æ¨¡åå
容鿱å¢å end |
| | | Agency_Report_Header: Agency_Report_Header__c, |
| | | Agency_Hospital: Agency_Hospital__c, |
| | | Person_In_Charge2: Person_In_Charge2__c, |
| | | doctor: doctor2__c, |
| | | Submit_date: Submit_date__c, |
| | | Product_Category1: Product_Category1__c, |
| | | Product_Category2: Product_Category2__c, |
| | | Product_Category3: Product_Category3__c, |
| | | Result: Result__c, |
| | | Opportunity: Opportunity__c, |
| | | StageName: StageName__c, |
| | | oppAmount: Amount__c, |
| | | oppOCMPrice: OCMSale_Price__c, |
| | | Close_Forecasted_Date: Close_Forecasted_Date__c, |
| | | Report_Date: Report_Date__c |
| | | "Agency_Report_Header" : Agency_Report_Header__c, |
| | | "Agency_Hospital" : Agency_Hospital__c, |
| | | "Person_In_Charge2" : Person_In_Charge2__c, |
| | | "doctor" : doctor2__c, |
| | | "Submit_date" : Submit_date__c, |
| | | "Product_Category1" : Product_Category1__c, |
| | | "Product_Category2" : Product_Category2__c, |
| | | "Product_Category3" : Product_Category3__c, |
| | | "Result" : Result__c, |
| | | "Opportunity" : Opportunity__c, |
| | | "StageName" : StageName__c, |
| | | "oppAmount" : Amount__c, |
| | | "oppOCMPrice" : OCMSale_Price__c, |
| | | "Close_Forecasted_Date" : Close_Forecasted_Date__c, |
| | | "Report_Date" : Report_Date__c, |
| | | }); |
| | | |
| | | action.setCallback(this, function (response) { |
| | | var state = response.getState(); |
| | | if (state == "SUCCESS") { |
| | | this.success("ä¿åæå"); |
| | | if(state == 'SUCCESS'){ |
| | | this.success('ä¿åæå'); |
| | | var report_id = response.getReturnValue(); |
| | | component.set("v.create_agency_report_id", report_id); |
| | | component.set('v.create_agency_report_id', report_id); |
| | | |
| | | this.get_reports( |
| | | component, |
| | | event, |
| | | helper, |
| | | component.find("select_date").get("v.value"), |
| | | component.find("select_agency_person").get("v.value") |
| | | ); |
| | | this.get_reports(component, event, helper, component.find('select_date').get('v.value'), component.find('select_agency_person').get('v.value')); |
| | | |
| | | // ã¢ã¼ãã«ã¦ã£ã³ãã¦å
ã®ä¸è¦§ç¨ |
| | | var action2 = component.get("c.getReportsById"); |
| | | var action2 = component.get('c.getReportsById'); |
| | | action2.setParams({ |
| | | report_id: report_id |
| | | "report_id" : report_id, |
| | | }); |
| | | action2.setCallback(this, function (response) { |
| | | var state = response.getState(); |
| | | if (state == "SUCCESS") { |
| | | if(state == 'SUCCESS'){ |
| | | var res = response.getReturnValue(); |
| | | var reports_now = component.get("v.reports_now"); |
| | | var reports_now = component.get('v.reports_now'); |
| | | var reports_now_count = 0; |
| | | if (reports_now.length > 0 && reports_now != "") { |
| | | reports_now_count = reports_now.length; |
| | |
| | | return 0; |
| | | }); |
| | | |
| | | component.set("v.reports_now", reports_now); |
| | | component.set("v.reports_now_count", reports_now.length); |
| | | var data_list = component.find("modal_data_list_tr"); |
| | | component.set('v.reports_now', reports_now); |
| | | component.set('v.reports_now_count', reports_now.length); |
| | | var data_list = component.find('modal_data_list_tr'); |
| | | } |
| | | } else { |
| | | this.error("get_reports_now failed."); |
| | | component.find("save_button").set("v.disabled", false); |
| | | component.set("v.login", false); |
| | | } |
| | | else{ |
| | | this.error('get_reports_now failed.'); |
| | | component.find('save_button').set('v.disabled', false); |
| | | component.set('v.login',false); |
| | | } |
| | | }); |
| | | $A.enqueueAction(action2); |
| | | |
| | | this.allclear(component); |
| | | component.find("save_button").set("v.disabled", false); |
| | | component.set("v.login", false); |
| | | } else { |
| | | component.find('save_button').set('v.disabled', false); |
| | | component.set('v.login',false); |
| | | } |
| | | else{ |
| | | var error = response.getError(); |
| | | // alert(JSON.stringify(error)); |
| | | this.error("saveAgencyReport failed."); |
| | | component.find("save_button").set("v.disabled", false); |
| | | component.set("v.login", false); |
| | | this.error('saveAgencyReport failed.'); |
| | | component.find('save_button').set('v.disabled', false); |
| | | component.set('v.login',false); |
| | | } |
| | | }); |
| | | $A.enqueueAction(action); |
| | |
| | | }, |
| | | |
| | | allclear: function (component) { |
| | | var clear = [{ label: "", value: "", selected: true }]; |
| | | component.set("v.hospital", ""); |
| | | component.set("v.hospitalId", ""); |
| | | component.set("v.hospitalLinkId", ""); |
| | | component.find("new_con").set("v.disabled", true); |
| | | component.find("select_doctor").set("v.options", clear); |
| | | component.set("v.doctor_title", ""); |
| | | component |
| | | .find("select_department") |
| | | .set( |
| | | "v.options", |
| | | this.conv_selected( |
| | | component.get("v.allselectlist.Department_Cateogy__c") |
| | | ) |
| | | ); |
| | | component |
| | | .find("select_purpose_type") |
| | | .set( |
| | | "v.options", |
| | | this.conv_selected(component.get("v.allselectlist.Purpose_Type__c")) |
| | | ); |
| | | var clear = [{label:'', value:'', selected:true}]; |
| | | component.set('v.hospital', ''); |
| | | component.set('v.hospitalId', ''); |
| | | component.set('v.hospitalLinkId', ''); |
| | | component.find('new_con').set('v.disabled', true); |
| | | component.find('select_doctor').set('v.options', clear); |
| | | component.set('v.doctor_title', ''); |
| | | component.find('select_department').set('v.options', this.conv_selected(component.get('v.allselectlist.Department_Cateogy__c'))); |
| | | component.find('select_purpose_type').set('v.options', this.conv_selected(component.get('v.allselectlist.Purpose_Type__c'))); |
| | | //SWAG-CBX68C fy ãå§æãDAMSç³»ç»å¨æ¥æ¨¡åå
容鿱å¢å start |
| | | component |
| | | .find("SupportNeeds__c") |
| | | .set( |
| | | "v.options", |
| | | this.conv_selected(component.get("v.allselectlist.SupportNeeds__c")) |
| | | ); |
| | | component.find('SupportNeeds__c').set('v.options', this.conv_selected(component.get('v.allselectlist.SupportNeeds__c'))); |
| | | //SWAG-CBX68C fy ãå§æãDAMSç³»ç»å¨æ¥æ¨¡åå
容鿱å¢å end |
| | | // ToDoéè¦æµè¯ææºä¸è½è¿è¡ä¸ |
| | | component.set("v.data.Opportunity__c", ""); |
| | | component.find("select_Product1").set("v.value", ""); |
| | | component.find("select_Product2").set("v.value", ""); |
| | | component.find("select_Product3").set("v.value", ""); |
| | | component.set("v.data.Report_Date__c", ""); |
| | | component.set("v.oppdata.Close_Forecasted_Date__c", ""); |
| | | component.set("v.oppdata.Amount__c", ""); |
| | | component.set("v.oppdata.OCMSale_Price__c", ""); |
| | | component.set("v.oppdata.StageName__c", ""); |
| | | component.set('v.data.Opportunity__c', ''); |
| | | component.find('select_Product1').set('v.value',''); |
| | | component.find('select_Product2').set('v.value',''); |
| | | component.find('select_Product3').set('v.value',''); |
| | | component.set('v.data.Report_Date__c', ''); |
| | | component.set('v.oppdata.Close_Forecasted_Date__c', ''); |
| | | component.set('v.oppdata.Amount__c', ''); |
| | | component.set('v.oppdata.OCMSale_Price__c', ''); |
| | | component.set('v.oppdata.StageName__c', ''); |
| | | // component.set('v.oppdata', ''); |
| | | component.set("v.Close_Forecasted_Date__c_o", ""); |
| | | component.set("v.Amount__c_o", ""); |
| | | component.set("v.OCMSale_Price__c_o", ""); |
| | | component.set("v.StageName__c_o", ""); |
| | | $A.util.addClass(component.find("input-opportunity-stage"), "disp_none"); |
| | | $A.util.addClass(component.find("input-opportunity-amount1"), "disp_none"); |
| | | $A.util.addClass(component.find("input-opportunity-amount2"), "disp_none"); |
| | | $A.util.addClass(component.find("input-opportunity-date"), "disp_none"); |
| | | $A.util.removeClass(component.find("input-opportunity-blank"), "disp_none"); |
| | | component.set('v.Close_Forecasted_Date__c_o', ''); |
| | | component.set('v.Amount__c_o', ''); |
| | | component.set('v.OCMSale_Price__c_o', ''); |
| | | component.set('v.StageName__c_o', ''); |
| | | $A.util.addClass(component.find('input-opportunity-stage'), 'disp_none'); |
| | | $A.util.addClass(component.find('input-opportunity-amount1'), 'disp_none'); |
| | | $A.util.addClass(component.find('input-opportunity-amount2'), 'disp_none'); |
| | | $A.util.addClass(component.find('input-opportunity-date'), 'disp_none'); |
| | | $A.util.removeClass(component.find('input-opportunity-blank'), 'disp_none'); |
| | | // if ($A.get("$Browser.formFactor") == 'DESKTOP') { |
| | | // var values = []; |
| | | // component.find('input-opportunity').get("v.body")[0].set('v.values', values); |
| | |
| | | // component.find('input-product-category2').get("v.body")[0].set('v.values', values); |
| | | // if (component.find('input-product-category3')) |
| | | // component.find('input-product-category3').get("v.body")[0].set('v.values', values); |
| | | component.find("select_result").set("v.value", ""); |
| | | component.find('select_result').set('v.value', ''); |
| | | this.select_purpose_type(component); |
| | | }, |
| | | |
| | |
| | | var ret_obj = []; |
| | | var now = new Date(); |
| | | for (var i = 0; i < count; i++) { |
| | | var start_day = new Date( |
| | | now.getFullYear(), |
| | | now.getMonth(), |
| | | now.getDate() - now.getDay() + 1 - i * 7 |
| | | ); |
| | | var end_day = new Date( |
| | | now.getFullYear(), |
| | | now.getMonth(), |
| | | now.getDate() + (7 - now.getDay()) - i * 7 |
| | | ); |
| | | |
| | | var start_day_show = new Date( |
| | | now.getFullYear(), |
| | | now.getMonth(), |
| | | now.getDate() - now.getDay() - i * 7 |
| | | ); |
| | | var end_day_show = new Date( |
| | | now.getFullYear(), |
| | | now.getMonth(), |
| | | now.getDate() + (6 - now.getDay()) - i * 7 |
| | | ); |
| | | var date_text = |
| | | start_day.getFullYear() + |
| | | "/" + |
| | | (start_day.getMonth() + 1) + |
| | | "/" + |
| | | start_day.getDate() + |
| | | "~" + |
| | | end_day.getFullYear() + |
| | | "/" + |
| | | (end_day.getMonth() + 1) + |
| | | "/" + |
| | | end_day.getDate(); |
| | | var start_day = new Date(now.getFullYear(), now.getMonth(), (now.getDate() - now.getDay() + 1 - (i * 7))); |
| | | var end_day = new Date(now.getFullYear(), now.getMonth(), now.getDate() + (7 - now.getDay()) - (i * 7)); |
| | | |
| | | var start_day_show = new Date(now.getFullYear(), now.getMonth(), (now.getDate() - now.getDay() - (i * 7))); |
| | | var end_day_show = new Date(now.getFullYear(), now.getMonth(), now.getDate() + (6 - now.getDay()) - (i * 7)); |
| | | var date_text = start_day.getFullYear() + '/' + (start_day.getMonth() + 1) + '/' + start_day.getDate() + '~' + end_day.getFullYear() + '/' + (end_day.getMonth() + 1) + '/' + end_day.getDate(); |
| | | if (i == 0) { |
| | | ret_obj.push({ |
| | | selected: true, |
| | | value: |
| | | start_day.getFullYear() + |
| | | "/" + |
| | | (start_day.getMonth() + 1) + |
| | | "/" + |
| | | start_day.getDate(), |
| | | label: |
| | | start_day_show.getFullYear() + |
| | | "/" + |
| | | (start_day_show.getMonth() + 1) + |
| | | "/" + |
| | | start_day_show.getDate() + |
| | | "~" + |
| | | end_day_show.getFullYear() + |
| | | "/" + |
| | | (end_day_show.getMonth() + 1) + |
| | | "/" + |
| | | end_day_show.getDate() |
| | | value : start_day.getFullYear() + '/' + (start_day.getMonth() + 1) + '/' + start_day.getDate(), |
| | | label : start_day_show.getFullYear() + '/' + (start_day_show.getMonth() + 1) + '/' + start_day_show.getDate() + '~' + end_day_show.getFullYear() + '/' + (end_day_show.getMonth() + 1) + '/' + end_day_show.getDate(), |
| | | }); |
| | | } else { |
| | | ret_obj.push({ |
| | | selected: false, |
| | | value: |
| | | start_day.getFullYear() + |
| | | "/" + |
| | | (start_day.getMonth() + 1) + |
| | | "/" + |
| | | start_day.getDate(), |
| | | label: |
| | | start_day_show.getFullYear() + |
| | | "/" + |
| | | (start_day_show.getMonth() + 1) + |
| | | "/" + |
| | | start_day_show.getDate() + |
| | | "~" + |
| | | end_day_show.getFullYear() + |
| | | "/" + |
| | | (end_day_show.getMonth() + 1) + |
| | | "/" + |
| | | end_day_show.getDate() |
| | | value : start_day.getFullYear() + '/' + (start_day.getMonth() + 1) + '/' + start_day.getDate(), |
| | | label : start_day_show.getFullYear() + '/' + (start_day_show.getMonth() + 1) + '/' + start_day_show.getDate() + '~' + end_day_show.getFullYear() + '/' + (end_day_show.getMonth() + 1) + '/' + end_day_show.getDate(), |
| | | }); |
| | | } |
| | | } |
| | | |
| | | component.find("select_date").set("v.options", ret_obj); |
| | | component.set("v.report_date_list", ret_obj); |
| | | component.find('select_date').set('v.options', ret_obj); |
| | | component.set('v.report_date_list', ret_obj); |
| | | }, |
| | | |
| | | create_report_header: function (component, name, s_agency, s_date) { |
| | | s_date = this.get_date_string(s_date); |
| | | if (s_date == false) { |
| | | this.error("get_date_string failed."); |
| | | this.error('get_date_string failed.'); |
| | | return false; |
| | | } |
| | | |
| | | var head_key = this.create_header_input_key(s_agency, s_date); |
| | | component.set("v.agency_report_header", head_key); |
| | | component.set('v.agency_report_header', head_key); |
| | | if (head_key == false) { |
| | | this.error("create_header_input_key failed."); |
| | | this.error('create_header_input_key failed.'); |
| | | return false; |
| | | } |
| | | |
| | | var key2 = s_date.replace(/-/g, ""); |
| | | var action = component.get("c.createReportHeader"); |
| | | var key2 = s_date.replace(/-/g, ''); |
| | | var action = component.get('c.createReportHeader'); |
| | | |
| | | action.setParams({ |
| | | name: name, |
| | | s_date: s_date, |
| | | s_agency: s_agency, |
| | | head_key: head_key |
| | | "name" : name, |
| | | "s_date" : s_date, |
| | | "s_agency" : s_agency, |
| | | "head_key" : head_key, |
| | | }); |
| | | |
| | | component.set("v.login", true); |
| | | component.set('v.login',true); |
| | | action.setCallback(this, function (response) { |
| | | var state = response.getState(); |
| | | if (state == "SUCCESS") { |
| | | if(state == 'SUCCESS'){ |
| | | var res = response.getReturnValue(); |
| | | component.set("v.agency_report_header_id", res); |
| | | component.set("v.login", false); |
| | | component.set('v.agency_report_header_id', res); |
| | | component.set('v.login',false); |
| | | this.toggle_report(component); |
| | | } else { |
| | | this.error("createReportHeader callback failed."); |
| | | component.set("v.login", false); |
| | | } |
| | | else{ |
| | | this.error('createReportHeader callback failed.'); |
| | | component.set('v.login',false); |
| | | } |
| | | }); |
| | | $A.enqueueAction(action); |
| | | }, |
| | | |
| | | create_header_input_key: function (agency_id, s_date) { |
| | | if (typeof s_date != "string") { |
| | | if (typeof(s_date) != 'string') { |
| | | s_date = this.get_date_string(s_date); |
| | | if (s_date == false) { |
| | | this.error("get_date_string in create_header_input_key."); |
| | | this.error('get_date_string in create_header_input_key.') |
| | | return false; |
| | | } |
| | | } |
| | |
| | | return false; |
| | | } |
| | | |
| | | s_date = s_date.replace(/-/g, ""); |
| | | s_date = s_date.replace(/-/g, ''); |
| | | var headkey = agency_id + ":" + s_date; |
| | | |
| | | return headkey; |
| | |
| | | |
| | | // create yyyy-mm-dd string |
| | | get_date_string: function (val) { |
| | | if (typeof val == "string") { |
| | | if (typeof(val) == 'string') { |
| | | if (val.match(/^\d{4}\/\d{1,2}\/\d{1,2}$/)) { |
| | | val = val.replace(/[\/]/g, "-"); |
| | | var tmp = val.split("-"); |
| | | val = val.replace(/[\/]/g, '-'); |
| | | var tmp = val.split('-'); |
| | | if (tmp[1].length == 1) { |
| | | tmp[1] = "0" + tmp[1]; |
| | | tmp[1] = '0' + tmp[1]; |
| | | } |
| | | if (tmp[2].length == 1) { |
| | | tmp[2] = "0" + tmp[2]; |
| | | tmp[2] = '0' + tmp[2]; |
| | | } |
| | | val = tmp[0] + "-" + tmp[1] + "-" + tmp[2]; |
| | | val = tmp[0] + '-' + tmp[1] + '-' + tmp[2]; |
| | | } else if (val.match(/^\d{4}-\d{1,2}-\d{1,2}$/)) { |
| | | //ok |
| | | } else { |
| | | return false; |
| | | } |
| | | } else if (this.object_type(val) == "Date") { |
| | | } else if (this.object_type(val) == 'Date') { |
| | | var mm = val.getMonth() + 1; |
| | | if (String(mm).length == 1) { |
| | | mm = "0" + mm; |
| | | mm = '0' + mm; |
| | | } |
| | | |
| | | var dd = ""; |
| | | var dd = ''; |
| | | if (String(val.getDate()).length == 1) { |
| | | dd = "0" + val.getDate(); |
| | | dd = '0' + val.getDate(); |
| | | } else { |
| | | dd = val.getDate(); |
| | | } |
| | | |
| | | val = val.getFullYear() + "-" + mm + "-" + dd; |
| | | val = val.getFullYear() + '-' + mm + '-' + dd; |
| | | } else { |
| | | return false; |
| | | } |
| | |
| | | var hospital_name = event.getParam("value"); |
| | | var action = component.get("c.getHospitalList"); |
| | | debugger; |
| | | action.setParams({ hospital_name: hospital_name }); |
| | | action.setParams({"hospital_name": hospital_name}); |
| | | |
| | | action.setCallback(this, function (response) { |
| | | var state = response.getState(); |
| | | if (state === "SUCCESS") { |
| | | var hospital_list = component.find("hospital_list"); |
| | | var hospital_list = component.find('hospital_list'); |
| | | var hosList = response.getReturnValue(); |
| | | if (hosList.length > 0) { |
| | | $A.util.addClass(hospital_list, "slds-is-open"); |
| | | $A.util.addClass(hospital_list, 'slds-is-open'); |
| | | } else { |
| | | $A.util.removeClass(hospital_list, "slds-is-open"); |
| | | $A.util.removeClass(hospital_list, 'slds-is-open'); |
| | | } |
| | | component.set("v.hospitalList", response.getReturnValue()); |
| | | } else { |
| | | $A.util.removeClass(hospital_list, "slds-is-open"); |
| | | $A.util.removeClass(hospital_list, 'slds-is-open'); |
| | | } |
| | | }); |
| | | $A.enqueueAction(action); |
| | | }, |
| | | |
| | | hideSearch: function (component, event, helper) { |
| | | var hospital_list = component.find("hospital_list"); |
| | | $A.util.removeClass(hospital_list, "slds-is-open"); |
| | | var hospital_list = component.find('hospital_list'); |
| | | $A.util.removeClass(hospital_list, 'slds-is-open'); |
| | | }, |
| | | |
| | | selectHos: function (component, event, helper) { |
| | | debugger; |
| | | var hospital_list = component.find("hospital_list"); |
| | | $A.util.removeClass(hospital_list, "slds-is-open"); |
| | | debugger |
| | | var hospital_list = component.find('hospital_list'); |
| | | $A.util.removeClass(hospital_list, 'slds-is-open'); |
| | | var accname = event.currentTarget.dataset.accname; |
| | | var accid = event.currentTarget.dataset.accid; |
| | | var hospital_data = component.get("v.hospitalList"); |
| | | var hospital_data = component.get('v.hospitalList'); |
| | | for (var i = 0; i < hospital_data.length; i++) { |
| | | if (hospital_data[i].Hospital__c == accid) { |
| | | component.set("v.hospitalLinkId", hospital_data[i].Id); |
| | | component.set("v.data.Agency_Hospital__c", hospital_data[i].Id); |
| | | component.find("new_con").set("v.disabled", false); |
| | | component.set('v.hospitalLinkId', hospital_data[i].Id); |
| | | component.set('v.data.Agency_Hospital__c', hospital_data[i].Id); |
| | | component.find('new_con').set('v.disabled', false); |
| | | } |
| | | } |
| | | component.set("v.hospital", accname); |
| | |
| | | }, |
| | | |
| | | select_purpose_type: function (component) { |
| | | var purpose_type = component.find("select_purpose_type").get("v.value"); |
| | | if ( |
| | | (purpose_type != null && |
| | | purpose_type != undefined && |
| | | purpose_type.substr(-3) == "OPD") || |
| | | purpose_type.substr(-3) == "SIS" |
| | | ) { |
| | | var result = component.find("result"); |
| | | $A.util.removeClass(result, "disp_none"); |
| | | var purpose_type = component.find('select_purpose_type').get('v.value'); |
| | | if (purpose_type != null && purpose_type != undefined && purpose_type.substr(-3) == 'OPD' || purpose_type.substr(-3) == 'SIS') { |
| | | var result = component.find('result'); |
| | | $A.util.removeClass(result, 'disp_none'); |
| | | } else { |
| | | component.find("select_result").set("v.value", ""); |
| | | var result = component.find("result"); |
| | | $A.util.addClass(result, "disp_none"); |
| | | component.find('select_result').set('v.value', ''); |
| | | var result = component.find('result'); |
| | | $A.util.addClass(result, 'disp_none'); |
| | | } |
| | | this.select_department(component, null, null); |
| | | }, |
| | | |
| | | doctor_change: function (component, event, helper) { |
| | | var doctor_value = component.find("select_doctor").get("v.value"); |
| | | var doctor_list = component.get("v.doctor_list"); |
| | | var doctor_value = component.find('select_doctor').get('v.value'); |
| | | var doctor_list = component.get('v.doctor_list'); |
| | | var flg = false; |
| | | for (var i = 0; i < doctor_list.length; i++) { |
| | | if (doctor_list[i].value == doctor_value) { |
| | | component.set("v.doctor_title", doctor_list[i].Doctor_Division1__c); |
| | | component.set('v.doctor_title', doctor_list[i].Doctor_Division1__c); |
| | | flg = true; |
| | | break; |
| | | } |
| | | } |
| | | if (flg == false) { |
| | | component.set("v.doctor_title", ""); |
| | | component.set('v.doctor_title', ''); |
| | | } |
| | | }, |
| | | // PIPL update Yin Mingjie 21/02/2022 start |
| | | set_aws_url: function (component, sobject) { |
| | | var action = component.get("c.getAwsurl"); |
| | | var action = component.get('c.getAwsurl'); |
| | | action.setParams({ |
| | | sobj: sobject |
| | | "sobj" : sobject, |
| | | }); |
| | | action.setCallback(this, function (response) { |
| | | var state = response.getState(); |
| | | if (state == "SUCCESS") { |
| | | if(state == 'SUCCESS'){ |
| | | var awsmap = this.conv_selected(response.getReturnValue()); |
| | | component.set("v.AWStoken", awsmap.token); |
| | | component.set("v.AWSinsert", awsmap.newUrl); |
| | | component.set("v.AWSsearch", awsmap.searchUrl); |
| | | component.set("v.AWStransactionURL", awsmap.transactionURL); |
| | | } else { |
| | | this.error("AWS url/token error."); |
| | | component.set("v.login", false); |
| | | component.set('v.AWStoken',awsmap.token); |
| | | component.set('v.AWSinsert',awsmap.newUrl); |
| | | component.set('v.AWSsearch',awsmap.searchUrl); |
| | | component.set('v.AWStransactionURL',awsmap.transactionURL); |
| | | } |
| | | else{ |
| | | this.error('AWS url/token error.'); |
| | | component.set('v.login',false); |
| | | } |
| | | }); |
| | | $A.enqueueAction(action); |
| | | }, |
| | | |
| | | insert_agencycontact: function ( |
| | | component, |
| | | token, |
| | | newUrl, |
| | | payload, |
| | | agencyHospitalid, |
| | | helper, |
| | | hospitalName |
| | | ) { |
| | | insert_agencycontact : function(component,token,newUrl,payload,agencyHospitalid,helper,hospitalName) { |
| | | |
| | | // AWSService.insert(newUrl,payload,function(result){ |
| | | // if(result.status == '0'){ |
| | | // $A.getCallback(function(){ |
| | |
| | | // },token); |
| | | |
| | | fetch(newUrl, { |
| | | method: "POST", |
| | | method: 'POST', |
| | | body: payload, |
| | | headers: { |
| | | "Content-Type": "application/json", |
| | | "pi-token": token |
| | | 'Content-Type': 'application/json', |
| | | 'pi-token': token |
| | | } |
| | | }) |
| | | .then((data) => { |
| | | }).then((data) => { |
| | | return data.json(); |
| | | }) |
| | | .then((result) => { |
| | | if (result.status == "0") { |
| | | }).then((result) => { |
| | | if(result.status == '0'){ |
| | | $A.getCallback(function () { |
| | | helper.to_agencycontact(component, result, agencyHospitalid); |
| | | })(); |
| | | } else { |
| | | console.log("AWS status error:" + result); |
| | | component.set("v.login", false); |
| | | if (result.status == "129") { |
| | | component |
| | | .find("OppMessage") |
| | | .setError( |
| | | "该客æ·äººåååå·²åå¨ï¼å¨" + hospitalName + "å»é¢ï¼è¯·ä¿®æ¹" |
| | | ); |
| | | console.log('AWS status error:' + result) |
| | | component.set('v.login',false); |
| | | if(result.status == '129'){ |
| | | component.find('OppMessage').setError('该客æ·äººåååå·²åå¨ï¼å¨'+hospitalName+'å»é¢ï¼è¯·ä¿®æ¹'); |
| | | } else { |
| | | component.find("OppMessage").setError("AWS insert error."); |
| | | component.find('OppMessage').setError('AWS insert error.'); |
| | | } |
| | | } |
| | | }) |
| | | .catch((error) => { |
| | | console.log("AWS insert error:" + error); |
| | | component.set("v.login", false); |
| | | component.find("OppMessage").setError("AWS insert error."); |
| | | }).catch(error => { |
| | | console.log('AWS insert error:' + error) |
| | | component.set('v.login',false); |
| | | component.find('OppMessage').setError('AWS insert error.'); |
| | | }); |
| | | |
| | | }, |
| | | |
| | | to_agencycontact: function (component, result, agencyHospitalid) { |
| | | var action = component.get("c.saveAgencyContact"); |
| | | var action = component.get('c.saveAgencyContact'); |
| | | action.setParams({ |
| | | name: result.object[0].name, |
| | | "name" : result.object[0].name, |
| | | //"nameEncrypt" : result.object[0].nameEncrypt, |
| | | type: result.object[0].type, |
| | | "type" : result.object[0].type, |
| | | //"typeEncrypt" : result.object[0].typeEncrypt, |
| | | doctorDivision1: result.object[0].doctorDivision1, |
| | | "doctorDivision1" : result.object[0].doctorDivision1, |
| | | //"doctorDivision1Encrypt" : result.object[0].doctorDivision1Encrypt, |
| | | agencyHospitalid: agencyHospitalid, |
| | | awsid: result.object[0].dataId |
| | | "agencyHospitalid" : agencyHospitalid, |
| | | "awsid" : result.object[0].dataId, |
| | | }); |
| | | action.setCallback(this, function (response) { |
| | | var state = response.getState(); |
| | | if (state == "SUCCESS") { |
| | | if(state == 'SUCCESS'){ |
| | | var acMap = this.conv_selected(response.getReturnValue()); |
| | | console.log(acMap); |
| | | if (acMap.AgencyContactId != "") { |
| | | if(acMap.AgencyContactId != ''){ |
| | | //确认äºå¡ |
| | | var token = component.get("v.AWStoken"); |
| | | var confirmUrl = component.get("v.AWStransactionURL"); |
| | | var token = component.get('v.AWStoken'); |
| | | var confirmUrl = component.get('v.AWStransactionURL'); |
| | | |
| | | let data = Object.create(null); |
| | | data["isSuccess"] = 1; |
| | | data["sfRecordId"] = ""; |
| | | data["txId"] = result.txId; |
| | | data['isSuccess'] = 1; |
| | | data['sfRecordId'] = ''; |
| | | data['txId'] = result.txId; |
| | | |
| | | this.to_confirm(component, token, confirmUrl, JSON.stringify(data)); |
| | | } else if (acMap.errormsg != "") { |
| | | }else if(acMap.errormsg != ''){ |
| | | this.error(acMap.errormsg); |
| | | component.set("v.login", false); |
| | | component.set('v.login',false); |
| | | } else { |
| | | this.error("agency contact insert id error."); |
| | | component.set("v.login", false); |
| | | this.error('agency contact insert id error.'); |
| | | component.set('v.login',false); |
| | | } |
| | | } else { |
| | | this.error("agency contact insert error."); |
| | | component.set("v.login", false); |
| | | } |
| | | else{ |
| | | this.error('agency contact insert error.'); |
| | | component.set('v.login',false); |
| | | } |
| | | }); |
| | | $A.enqueueAction(action); |
| | |
| | | |
| | | to_confirm: function (component, token, confirmUrl, payload) { |
| | | fetch(confirmUrl, { |
| | | method: "POST", |
| | | method: 'POST', |
| | | body: payload, |
| | | headers: { |
| | | "Content-Type": "application/json", |
| | | "pi-token": token |
| | | 'Content-Type': 'application/json', |
| | | 'pi-token': token |
| | | } |
| | | }) |
| | | .then((data) => { |
| | | }).then((data) => { |
| | | return data.json(); |
| | | }) |
| | | .then((result) => { |
| | | if ( |
| | | result.status == "0" && |
| | | result.hasOwnProperty("success") && |
| | | result.success |
| | | ) { |
| | | component.set("v.truthy", false); |
| | | var modal_newAC = component.find("modal_newAC"); |
| | | $A.util.addClass(modal_newAC, "disp_none"); |
| | | this.success(".客æ·äººåå·²å建ã"); |
| | | }).then((result) => { |
| | | if(result.status == '0' && result.hasOwnProperty('success') && result.success){ |
| | | component.set('v.truthy', false); |
| | | var modal_newAC = component.find('modal_newAC') |
| | | $A.util.addClass(modal_newAC, 'disp_none'); |
| | | this.success('.客æ·äººåå·²å建ã'); |
| | | this.set_doctor_list(component); |
| | | } else { |
| | | this.error("AWS confirm error."); |
| | | component.set("v.login", false); |
| | | this.error('AWS confirm error.'); |
| | | component.set('v.login',false); |
| | | } |
| | | }) |
| | | .catch((error) => { |
| | | this.error("AWS confirm error."); |
| | | component.set("v.login", false); |
| | | }).catch(error => { |
| | | this.error('AWS confirm error.'); |
| | | component.set('v.login',false); |
| | | }); |
| | | }, |
| | | // PIPL update Yin Mingjie 21/02/2022 end |
| | | |
| | | set_doctor_list: function (component) { |
| | | var hospital_id = component.get("v.hospitalLinkId"); |
| | | var hospital_id = component.get('v.hospitalLinkId'); |
| | | if (hospital_id) { |
| | | component.set("v.login", true); |
| | | var action = component.get("c.getDoctorList"); |
| | | component.set('v.login',true); |
| | | var action = component.get('c.getDoctorList'); |
| | | action.setParams({ |
| | | hospital_id: hospital_id |
| | | "hospital_id" : hospital_id, |
| | | }); |
| | | action.setCallback(this, function (response) { |
| | | var state = response.getState(); |
| | | if (state == "SUCCESS") { |
| | | if(state == 'SUCCESS'){ |
| | | var retMap = this.conv_selected(response.getReturnValue()); |
| | | // PIPL update Yin Mingjie 21/02/2022 start |
| | | this.AWS_search(retMap, component); |
| | |
| | | component.set('v.login',false); |
| | | */ |
| | | // PIPL update Yin Mingjie 21/02/2022 end |
| | | } else { |
| | | this.error("set_doctor_list failed."); |
| | | component.set("v.login", false); |
| | | } |
| | | else{ |
| | | this.error('set_doctor_list failed.'); |
| | | component.set('v.login',false); |
| | | } |
| | | }); |
| | | $A.enqueueAction(action); |
| | |
| | | |
| | | var dataArr = new Array(); |
| | | for (const key in retMap) { |
| | | if (key == "sre") { |
| | | continue; |
| | | } |
| | | if (key == 'sre') {continue;} |
| | | dataArr.push(key); |
| | | } |
| | | if (dataArr.length == 0) { |
| | | component.set("v.login", false); |
| | | this.warning("æ²¡ææ¾å°ç¬¦åæ¡ä»¶ç客æ·äººå"); |
| | | component.set('v.login',false); |
| | | this.warning('æ²¡ææ¾å°ç¬¦åæ¡ä»¶ç客æ·äººå'); |
| | | return; |
| | | } |
| | | let obj = Object.create(null); |
| | | obj["dataIds"] = dataArr; |
| | | obj['dataIds'] = dataArr; |
| | | var data = JSON.stringify(obj); |
| | | this.search_agency_contact(token, searchUrl, data, retMap, component); |
| | | }, |
| | | |
| | | search_agency_contact: function ( |
| | | token, |
| | | searchUrl, |
| | | payload, |
| | | retMap, |
| | | component |
| | | ) { |
| | | this.search_core( |
| | | token, |
| | | searchUrl, |
| | | payload, |
| | | (result) => { |
| | | if (result.status == "0") { |
| | | search_agency_contact : function(token,searchUrl,payload,retMap,component) { |
| | | this.search_core(token,searchUrl,payload,(result)=>{ |
| | | if(result.status == '0'){ |
| | | this.to_doctor_list(result, retMap, component); |
| | | } else { |
| | | this.error("AWS search status4 : " + result.status); |
| | | component.set("v.login", false); |
| | | this.error('AWS search status4 : ' + result.status); |
| | | component.set('v.login',false); |
| | | } |
| | | }, |
| | | component |
| | | ); |
| | | },component); |
| | | // fetch(searchUrl, { |
| | | // method: 'POST', |
| | | // body: payload, |
| | |
| | | // }); |
| | | }, |
| | | search_core: function (token, searchUrl, payload, callback, component) { |
| | | console.log("token = " + token); |
| | | console.log("searchUrl = " + searchUrl); |
| | | console.log("payload = " + payload); |
| | | console.log('token = ' + token); |
| | | console.log('searchUrl = ' + searchUrl); |
| | | console.log('payload = ' + payload); |
| | | fetch(searchUrl, { |
| | | method: "POST", |
| | | method: 'POST', |
| | | body: payload, |
| | | headers: { |
| | | "Content-Type": "application/json", |
| | | "pi-token": token |
| | | 'Content-Type': 'application/json', |
| | | 'pi-token': token |
| | | } |
| | | }) |
| | | .then((data) => { |
| | | }).then((data) => { |
| | | return data.json(); |
| | | }) |
| | | .then((result) => { |
| | | component.set("v.login", false); |
| | | }).then((result) => { |
| | | component.set('v.login',false); |
| | | if (callback) callback(result); |
| | | }) |
| | | .catch((error) => { |
| | | console.log("error = " + JSON.stringify(error)); |
| | | this.error("AWS search error."); |
| | | component.set("v.login", false); |
| | | }).catch(error => { |
| | | console.log('error = ' + JSON.stringify(error)); |
| | | this.error('AWS search error.'); |
| | | component.set('v.login',false); |
| | | }); |
| | | }, |
| | | |
| | |
| | | var resls = result.object; |
| | | var res = []; |
| | | var space = {}; |
| | | space["label"] = ""; |
| | | space["selected"] = true; |
| | | space["value"] = ""; |
| | | space['label'] = ''; |
| | | space['selected'] = true; |
| | | space['value'] = ''; |
| | | res.push(space); |
| | | |
| | | for (var i = 0; i < resls.length; i++) { |
| | | var t = {}; |
| | | t["label"] = resls[i].name; |
| | | t["selected"] = false; |
| | | t["Doctor_Division1__c"] = resls[i].doctorDivision1; |
| | | t["value"] = retMap[resls[i].dataId].value; |
| | | t['label'] = resls[i].name; |
| | | t['selected'] = false; |
| | | t['Doctor_Division1__c'] = resls[i].doctorDivision1; |
| | | t['value'] = retMap[resls[i].dataId].value; |
| | | res.push(t); |
| | | } |
| | | |
| | | var default_doctor = component.get("v.default_select_doctor_id"); |
| | | if (default_doctor != "" && res.length > 0) { |
| | | var doctor_title = ""; |
| | | var default_doctor = component.get('v.default_select_doctor_id'); |
| | | if (default_doctor != '' && res.length > 0) { |
| | | var doctor_title = ''; |
| | | for (var i = 0; i < res.length; i++) { |
| | | if (res[i].value == default_doctor) { |
| | | res[i].selected = true; |
| | |
| | | } |
| | | } |
| | | |
| | | component.find("select_doctor").set("v.options", res); |
| | | component.set("v.doctor_title", doctor_title); |
| | | component.find('select_doctor').set('v.options', res); |
| | | component.set('v.doctor_title', doctor_title); |
| | | } else { |
| | | component.find("select_doctor").set("v.options", res); |
| | | component.find('select_doctor').set('v.options', res); |
| | | if (res.length > 0) { |
| | | component.set("v.doctor_title", res[0].Doctor_Division1__c); |
| | | component.set('v.doctor_title', res[0].Doctor_Division1__c); |
| | | } |
| | | } |
| | | |
| | | component.set("v.default_select_doctor_id", ""); |
| | | component.set("v.doctor_list", res); |
| | | component.set("v.login", false); |
| | | component.set('v.default_select_doctor_id', ''); |
| | | component.set('v.doctor_list', res); |
| | | component.set('v.login',false); |
| | | }, |
| | | // PIPL update Yin Mingjie 21/02/2022 end |
| | | |
| | |
| | | // }, |
| | | |
| | | opportunityChange: function (component, event, helper) { |
| | | debugger; |
| | | var opp_id = component.get("v.data.Opportunity__c"); |
| | | if (opp_id == "") { |
| | | $A.util.addClass(component.find("input-opportunity-stage"), "disp_none"); |
| | | $A.util.addClass( |
| | | component.find("input-opportunity-amount1"), |
| | | "disp_none" |
| | | ); |
| | | $A.util.addClass( |
| | | component.find("input-opportunity-amount2"), |
| | | "disp_none" |
| | | ); |
| | | $A.util.addClass(component.find("input-opportunity-date"), "disp_none"); |
| | | $A.util.removeClass( |
| | | component.find("input-opportunity-blank"), |
| | | "disp_none" |
| | | ); |
| | | } else if (opp_id == "MALFORMED_ID") { |
| | | component.set("v.data.Opportunity__c", ""); |
| | | $A.util.addClass(component.find("input-opportunity-stage"), "disp_none"); |
| | | $A.util.addClass( |
| | | component.find("input-opportunity-amount1"), |
| | | "disp_none" |
| | | ); |
| | | $A.util.addClass( |
| | | component.find("input-opportunity-amount2"), |
| | | "disp_none" |
| | | ); |
| | | $A.util.addClass(component.find("input-opportunity-date"), "disp_none"); |
| | | $A.util.removeClass( |
| | | component.find("input-opportunity-blank"), |
| | | "disp_none" |
| | | ); |
| | | debugger |
| | | var opp_id = component.get('v.data.Opportunity__c'); |
| | | if (opp_id == '') { |
| | | $A.util.addClass(component.find('input-opportunity-stage'), 'disp_none'); |
| | | $A.util.addClass(component.find('input-opportunity-amount1'), 'disp_none'); |
| | | $A.util.addClass(component.find('input-opportunity-amount2'), 'disp_none'); |
| | | $A.util.addClass(component.find('input-opportunity-date'), 'disp_none'); |
| | | $A.util.removeClass(component.find('input-opportunity-blank'), 'disp_none'); |
| | | } else if (opp_id == 'MALFORMED_ID') { |
| | | component.set('v.data.Opportunity__c', ''); |
| | | $A.util.addClass(component.find('input-opportunity-stage'), 'disp_none'); |
| | | $A.util.addClass(component.find('input-opportunity-amount1'), 'disp_none'); |
| | | $A.util.addClass(component.find('input-opportunity-amount2'), 'disp_none'); |
| | | $A.util.addClass(component.find('input-opportunity-date'), 'disp_none'); |
| | | $A.util.removeClass(component.find('input-opportunity-blank'), 'disp_none'); |
| | | } else if (opp_id != "") { |
| | | var hospital_link_id = component.get("v.hospitalLinkId"); |
| | | if (hospital_link_id == "") { |
| | | this.warning("å»é¢ä¸åå¨"); |
| | | var hospital_link_id = component.get('v.hospitalLinkId'); |
| | | if (hospital_link_id == '') { |
| | | this.warning('å»é¢ä¸åå¨'); |
| | | // ToDoéè¦æµè¯ææºä¸è½è¿è¡ä¸ |
| | | component.set("v.data.Opportunity__c", ""); |
| | | $A.util.addClass( |
| | | component.find("input-opportunity-stage"), |
| | | "disp_none" |
| | | ); |
| | | $A.util.addClass( |
| | | component.find("input-opportunity-amount1"), |
| | | "disp_none" |
| | | ); |
| | | $A.util.addClass( |
| | | component.find("input-opportunity-amount2"), |
| | | "disp_none" |
| | | ); |
| | | $A.util.addClass(component.find("input-opportunity-date"), "disp_none"); |
| | | $A.util.removeClass( |
| | | component.find("input-opportunity-blank"), |
| | | "disp_none" |
| | | ); |
| | | component.set('v.data.Opportunity__c', ''); |
| | | $A.util.addClass(component.find('input-opportunity-stage'), 'disp_none'); |
| | | $A.util.addClass(component.find('input-opportunity-amount1'), 'disp_none'); |
| | | $A.util.addClass(component.find('input-opportunity-amount2'), 'disp_none'); |
| | | $A.util.addClass(component.find('input-opportunity-date'), 'disp_none'); |
| | | $A.util.removeClass(component.find('input-opportunity-blank'), 'disp_none'); |
| | | // if ($A.get("$Browser.formFactor") == 'DESKTOP') { |
| | | // var values = []; |
| | | // // component.find('input-opportunity').get("v.body")[0].set('v.values', values); |
| | |
| | | // } |
| | | return false; |
| | | } |
| | | var action = component.get("c.selectOpportunityByIdAndHospitalLinkId"); |
| | | var action = component.get('c.selectOpportunityByIdAndHospitalLinkId'); |
| | | action.setParams({ |
| | | opportunity_id: opp_id, |
| | | agency_hospital_link_id: component.get("v.hospitalLinkId") |
| | | "opportunity_id" : opp_id, |
| | | "agency_hospital_link_id" : component.get('v.hospitalLinkId'), |
| | | }); |
| | | |
| | | component.set("v.login", true); |
| | | component.set('v.login',true); |
| | | action.setCallback(this, function (response) { |
| | | var state = response.getState(); |
| | | if (state == "SUCCESS") { |
| | | if(state == 'SUCCESS'){ |
| | | var res = response.getReturnValue(); |
| | | if (res.length <= 0) { |
| | | if (component.get("v.data.Opportunity__c")) { |
| | | this.warning("å»é¢æªå¹é
å°"); |
| | | if (component.get('v.data.Opportunity__c')) { |
| | | this.warning('å»é¢æªå¹é
å°'); |
| | | } |
| | | // ToDoéè¦æµè¯ææºä¸è½è¿è¡ä¸ |
| | | component.set("v.data.Opportunity__c", ""); |
| | | $A.util.addClass( |
| | | component.find("input-opportunity-stage"), |
| | | "disp_none" |
| | | ); |
| | | $A.util.addClass( |
| | | component.find("input-opportunity-amount1"), |
| | | "disp_none" |
| | | ); |
| | | $A.util.addClass( |
| | | component.find("input-opportunity-amount2"), |
| | | "disp_none" |
| | | ); |
| | | $A.util.addClass( |
| | | component.find("input-opportunity-date"), |
| | | "disp_none" |
| | | ); |
| | | $A.util.removeClass( |
| | | component.find("input-opportunity-blank"), |
| | | "disp_none" |
| | | ); |
| | | component.set('v.data.Opportunity__c', ''); |
| | | $A.util.addClass(component.find('input-opportunity-stage'), 'disp_none'); |
| | | $A.util.addClass(component.find('input-opportunity-amount1'), 'disp_none'); |
| | | $A.util.addClass(component.find('input-opportunity-amount2'), 'disp_none'); |
| | | $A.util.addClass(component.find('input-opportunity-date'), 'disp_none'); |
| | | $A.util.removeClass(component.find('input-opportunity-blank'), 'disp_none'); |
| | | // if ($A.get("$Browser.formFactor") == 'DESKTOP') { |
| | | // var values = []; |
| | | // component.find('input-opportunity').get("v.body")[0].set('v.values', values); |
| | | // } else { |
| | | // component.find('input-opportunity').get("v.body")[0].set('v.selectedLabel', ''); |
| | | // } |
| | | component.set("v.login", false); |
| | | component.set('v.login',false); |
| | | return false; |
| | | } |
| | | //SWAG-CKH5M8 ãå§æã卿¥å
³è询价ï¼å¯éæ©è¯¢ä»·èå´è°æ´ fy start |
| | |
| | | // } |
| | | //SWAG-CKH5M8 ãå§æã卿¥å
³è询价ï¼å¯éæ©è¯¢ä»·èå´è°æ´ fy end |
| | | else { |
| | | component.set("v.loadOpp", false); |
| | | component.set("v.oppdata", res[0]); |
| | | this.set_selected( |
| | | component, |
| | | "select_stageName", |
| | | res[0].StageName__c |
| | | ); |
| | | component.set( |
| | | "v.Close_Forecasted_Date__c_o", |
| | | res[0].Close_Forecasted_Date__c |
| | | ); |
| | | component.set("v.Amount__c_o", res[0].Amount__c); |
| | | component.set("v.OCMSale_Price__c_o", res[0].OCMSale_Price__c); |
| | | component.set("v.StageName__c_o", res[0].StageName__c); |
| | | component.set('v.loadOpp', false); |
| | | component.set('v.oppdata',res[0]); |
| | | this.set_selected(component, 'select_stageName', res[0].StageName__c); |
| | | component.set('v.Close_Forecasted_Date__c_o', res[0].Close_Forecasted_Date__c); |
| | | component.set('v.Amount__c_o', res[0].Amount__c); |
| | | component.set('v.OCMSale_Price__c_o', res[0].OCMSale_Price__c); |
| | | component.set('v.StageName__c_o', res[0].StageName__c); |
| | | |
| | | $A.util.removeClass( |
| | | component.find("input-opportunity-stage"), |
| | | "disp_none" |
| | | ); |
| | | $A.util.removeClass( |
| | | component.find("input-opportunity-amount1"), |
| | | "disp_none" |
| | | ); |
| | | $A.util.removeClass( |
| | | component.find("input-opportunity-amount2"), |
| | | "disp_none" |
| | | ); |
| | | $A.util.removeClass( |
| | | component.find("input-opportunity-date"), |
| | | "disp_none" |
| | | ); |
| | | $A.util.addClass( |
| | | component.find("input-opportunity-blank"), |
| | | "disp_none" |
| | | ); |
| | | $A.util.removeClass(component.find('input-opportunity-stage'), 'disp_none'); |
| | | $A.util.removeClass(component.find('input-opportunity-amount1'), 'disp_none'); |
| | | $A.util.removeClass(component.find('input-opportunity-amount2'), 'disp_none'); |
| | | $A.util.removeClass(component.find('input-opportunity-date'), 'disp_none'); |
| | | $A.util.addClass(component.find('input-opportunity-blank'), 'disp_none'); |
| | | } |
| | | |
| | | component.set("v.login", false); |
| | | } else { |
| | | this.error("selectOpportunityByIdAndHospitalLinkId failed."); |
| | | component.set("v.login", false); |
| | | component.set('v.login',false); |
| | | } |
| | | else{ |
| | | this.error('selectOpportunityByIdAndHospitalLinkId failed.'); |
| | | component.set('v.login',false); |
| | | } |
| | | }); |
| | | $A.enqueueAction(action); |
| | |
| | | }, |
| | | |
| | | productcategoryChange1: function (component, event, helper) { |
| | | var product_category_id = component.find("select_Product1").get("v.value"); |
| | | var pcId1 = component.find("select_Product2").get("v.value"); |
| | | var pcId2 = component.find("select_Product3").get("v.value"); |
| | | var p1bool = pcId1 != "" && pcId1 != null && pcId1 != undefined; |
| | | var p2bool = pcId2 != "" && pcId2 != null && pcId2 != undefined; |
| | | var p0bool = |
| | | product_category_id != "" && |
| | | product_category_id != null && |
| | | product_category_id != undefined; |
| | | if ( |
| | | (p1bool && p0bool && product_category_id == pcId1) || |
| | | (p2bool && p0bool && product_category_id == pcId2) |
| | | ) { |
| | | this.warning("ä¸è½éæ©åæ ·ç产ååºå"); |
| | | component.find("select_Product1").set("v.value", ""); |
| | | var product_category_id = component.find('select_Product1').get('v.value'); |
| | | var pcId1 = component.find('select_Product2').get('v.value'); |
| | | var pcId2 = component.find('select_Product3').get('v.value'); |
| | | var p1bool = pcId1 != '' && pcId1 != null && pcId1 != undefined; |
| | | var p2bool = pcId2 != '' && pcId2 != null && pcId2 != undefined; |
| | | var p0bool = product_category_id != '' && product_category_id != null && product_category_id != undefined; |
| | | if ((p1bool && p0bool && product_category_id == pcId1) || (p2bool && p0bool && product_category_id == pcId2)) { |
| | | this.warning('ä¸è½éæ©åæ ·ç产ååºå'); |
| | | component.find('select_Product1').set('v.value',''); |
| | | } |
| | | }, |
| | | productcategoryChange2: function (component, event, helper) { |
| | | var product_category_id = component.find("select_Product2").get("v.value"); |
| | | var pcId1 = component.find("select_Product1").get("v.value"); |
| | | var pcId2 = component.find("select_Product3").get("v.value"); |
| | | var p1bool = pcId1 != "" && pcId1 != null && pcId1 != undefined; |
| | | var p2bool = pcId2 != "" && pcId2 != null && pcId2 != undefined; |
| | | var p0bool = |
| | | product_category_id != "" && |
| | | product_category_id != null && |
| | | product_category_id != undefined; |
| | | if ( |
| | | (p1bool && p0bool && product_category_id == pcId1) || |
| | | (p2bool && p0bool && product_category_id == pcId2) |
| | | ) { |
| | | this.warning("ä¸è½éæ©åæ ·ç产ååºå"); |
| | | component.find("select_Product2").set("v.value", ""); |
| | | var product_category_id = component.find('select_Product2').get('v.value'); |
| | | var pcId1 = component.find('select_Product1').get('v.value'); |
| | | var pcId2 = component.find('select_Product3').get('v.value'); |
| | | var p1bool = pcId1 != '' && pcId1 != null && pcId1 != undefined; |
| | | var p2bool = pcId2 != '' && pcId2 != null && pcId2 != undefined; |
| | | var p0bool = product_category_id != '' && product_category_id != null && product_category_id != undefined; |
| | | if ((p1bool && p0bool && product_category_id == pcId1) || (p2bool && p0bool && product_category_id == pcId2)) { |
| | | this.warning('ä¸è½éæ©åæ ·ç产ååºå'); |
| | | component.find('select_Product2').set('v.value',''); |
| | | } |
| | | }, |
| | | productcategoryChange3: function (component, event, helper) { |
| | | var product_category_id = component.find("select_Product3").get("v.value"); |
| | | var pcId1 = component.find("select_Product1").get("v.value"); |
| | | var pcId2 = component.find("select_Product2").get("v.value"); |
| | | var p1bool = pcId1 != "" && pcId1 != null && pcId1 != undefined; |
| | | var p2bool = pcId2 != "" && pcId2 != null && pcId2 != undefined; |
| | | var p0bool = |
| | | product_category_id != "" && |
| | | product_category_id != null && |
| | | product_category_id != undefined; |
| | | if ( |
| | | (p1bool && p0bool && product_category_id == pcId1) || |
| | | (p2bool && p0bool && product_category_id == pcId2) |
| | | ) { |
| | | this.warning("ä¸è½éæ©åæ ·ç产ååºå"); |
| | | component.find("select_Product3").set("v.value", ""); |
| | | var product_category_id = component.find('select_Product3').get('v.value'); |
| | | var pcId1 = component.find('select_Product1').get('v.value'); |
| | | var pcId2 = component.find('select_Product2').get('v.value'); |
| | | var p1bool = pcId1 != '' && pcId1 != null && pcId1 != undefined; |
| | | var p2bool = pcId2 != '' && pcId2 != null && pcId2 != undefined; |
| | | var p0bool = product_category_id != '' && product_category_id != null && product_category_id != undefined; |
| | | if ((p1bool && p0bool && product_category_id == pcId1) || (p2bool && p0bool && product_category_id == pcId2)) { |
| | | this.warning('ä¸è½éæ©åæ ·ç产ååºå'); |
| | | component.find('select_Product3').set('v.value',''); |
| | | } |
| | | }, |
| | | |
| | | conv_selected: function (obj) { |
| | | for (var i = 0; i < obj.length; i++) { |
| | | if (obj[i].selected) { |
| | | if (obj[i].selected == "true") { |
| | | if (obj[i].selected == 'true') { |
| | | obj[i].selected = true; |
| | | } else { |
| | | obj[i].selected = false; |
| | |
| | | }, |
| | | |
| | | set_selected: function (component, aura_id_name, value) { |
| | | var select_tmp = component.find(aura_id_name).get("v.options"); |
| | | var select_tmp = component.find(aura_id_name).get('v.options'); |
| | | if (select_tmp) { |
| | | for (var i = 0; i < select_tmp.length; i++) { |
| | | if (select_tmp[i].value == value) { |
| | |
| | | select_tmp[i].selected = false; |
| | | } |
| | | } |
| | | component.find(aura_id_name).set("v.options", select_tmp); |
| | | component.find(aura_id_name).set('v.options', select_tmp); |
| | | return true; |
| | | } else { |
| | | return false; |
| | |
| | | success: function (message) { |
| | | var toastEvent = $A.get("e.force:showToast"); |
| | | toastEvent.setParams({ |
| | | title: "æå!", |
| | | message: message, |
| | | type: "success", |
| | | duration: "5000" |
| | | "title" : "æå!", |
| | | "message" : message, |
| | | "type" : "success", |
| | | "duration" : "5000" |
| | | }); |
| | | toastEvent.fire(); |
| | | }, |
| | |
| | | warning: function (message) { |
| | | var toastEvent = $A.get("e.force:showToast"); |
| | | toastEvent.setParams({ |
| | | title: "è¦å!", |
| | | message: message, |
| | | type: "warning", |
| | | duration: "10000" |
| | | "title": "è¦å!", |
| | | "message": message, |
| | | "type":"warning", |
| | | "duration" : "10000" |
| | | }); |
| | | toastEvent.fire(); |
| | | }, |
| | |
| | | var toastEvent = $A.get("e.force:showToast"); |
| | | |
| | | toastEvent.setParams({ |
| | | title: "é误!", |
| | | message: message, |
| | | type: "error", |
| | | duration: "sticky" |
| | | "title": "é误!", |
| | | "message": message, |
| | | "type":"error", |
| | | "duration" : "sticky" |
| | | }); |
| | | toastEvent.fire(); |
| | | }, |
| | | |
| | | createCon: function (component, event, helper) { |
| | | var modal_newAC = component.find("modal_newAC"); |
| | | $A.util.removeClass(modal_newAC, "disp_none"); |
| | | component.set("v.truthy", true); |
| | | var modal_newAC = component.find('modal_newAC') |
| | | $A.util.removeClass(modal_newAC, 'disp_none'); |
| | | component.set('v.truthy', true); |
| | | // var modal_newAC = component.find('modal_newAC') |
| | | // $A.util.removeClass(modal_newAC, 'disp_none'); |
| | | }, |
| | |
| | | // vivek end æ·»å éªè¯ |
| | | |
| | | hideCmp: function (component, event, helper) { |
| | | var div1 = component.find("report"); |
| | | var div2 = component.find("report_list"); |
| | | $A.util.addClass(div1, "disp_none"); |
| | | $A.util.addClass(div2, "disp_none"); |
| | | var div1 = component.find('report') |
| | | var div2 = component.find('report_list') |
| | | $A.util.addClass(div1, 'disp_none'); |
| | | $A.util.addClass(div2, 'disp_none'); |
| | | }, |
| | | |
| | | handleSuccess: function (component, event, helper) { |
| | | var insertId = event.getParams().response.Id; |
| | | var displayValue = event.getParams().response.fields.Name.value; |
| | | event.setParams({}); |
| | | component.set("v.truthy", false); |
| | | var modal_newAC = component.find("modal_newAC"); |
| | | $A.util.addClass(modal_newAC, "disp_none"); |
| | | this.success(".客æ·äººåå·²å建ã"); |
| | | component.set('v.truthy', false); |
| | | var modal_newAC = component.find('modal_newAC') |
| | | $A.util.addClass(modal_newAC, 'disp_none'); |
| | | this.success('.客æ·äººåå·²å建ã'); |
| | | this.set_doctor_list(component); |
| | | }, |
| | | |
| | | createCancel: function (component, event, helper) { |
| | | component.set("v.truthy", false); |
| | | var modal_newAC = component.find("modal_newAC"); |
| | | $A.util.addClass(modal_newAC, "disp_none"); |
| | | component.set('v.truthy', false); |
| | | var modal_newAC = component.find('modal_newAC') |
| | | $A.util.addClass(modal_newAC, 'disp_none'); |
| | | }, |
| | | setOpportunity_cfilter: function (component) { |
| | | debugger; |
| | | var hosId = component.get("v.hospitalId"); |
| | | var Department_Cateogy__c = component |
| | | .find("select_department") |
| | | .get("v.value"); |
| | | var opportunity_cfilter = ""; |
| | | if (hosId != "" && hosId != null) { |
| | | opportunity_cfilter = |
| | | " Agency_Hospital__r.Hospital__c=" + "'" + hosId + "'"; |
| | | debugger |
| | | var hosId = component.get('v.hospitalId'); |
| | | var Department_Cateogy__c = component.find('select_department').get('v.value'); |
| | | var opportunity_cfilter = ''; |
| | | if (hosId != '' && hosId != null) { |
| | | opportunity_cfilter = ' Agency_Hospital__r.Hospital__c=' + '\'' + hosId + '\''; |
| | | } |
| | | if (Department_Cateogy__c != "" && Department_Cateogy__c != null) { |
| | | if (opportunity_cfilter != "" && opportunity_cfilter != null) { |
| | | opportunity_cfilter += " AND "; |
| | | if (Department_Cateogy__c != '' && Department_Cateogy__c != null) { |
| | | if (opportunity_cfilter != '' && opportunity_cfilter != null) { |
| | | opportunity_cfilter += ' AND '; |
| | | } |
| | | opportunity_cfilter += |
| | | "Department_Cateogy__c=" + "'" + Department_Cateogy__c + "'"; |
| | | opportunity_cfilter += 'Department_Cateogy__c=' + '\'' + Department_Cateogy__c + '\''; |
| | | } |
| | | component.set("v.opportunity_cfilter", opportunity_cfilter); |
| | | component.set("v.data.Opportunity__c", null); |
| | | component.set('v.opportunity_cfilter', opportunity_cfilter); |
| | | component.set('v.data.Opportunity__c', null); |
| | | }, |
| | | readFile: function (component, helper, file) { |
| | | if (!file) return; |
| | | // console.log('file'+file.name); |
| | | if (!file.name.match(/\.(csv||CSV)$/)) { |
| | | return alert("only support csv files"); |
| | | return alert('only support csv files'); |
| | | } else { |
| | | |
| | | reader = new FileReader(); |
| | | reader.onerror = function errorHandler(evt) { |
| | | switch (evt.target.error.code) { |
| | | case evt.target.error.NOT_FOUND_ERR: |
| | | alert("File Not Found!"); |
| | | alert('File Not Found!'); |
| | | break; |
| | | case evt.target.error.NOT_READABLE_ERR: |
| | | alert("File is not readable"); |
| | | alert('File is not readable'); |
| | | break; |
| | | case evt.target.error.ABORT_ERR: |
| | | break; // noop |
| | | default: |
| | | alert("An error occurred reading this file."); |
| | | } |
| | | alert('An error occurred reading this file.'); |
| | | }; |
| | | } |
| | | //reader.onprogress = updateProgress; |
| | | reader.onabort = function (e) { |
| | | alert("File read cancelled"); |
| | | alert('File read cancelled'); |
| | | }; |
| | | reader.onloadstart = function (e) { |
| | | var output = |
| | | '<ui type="disc"><li><strong>' + |
| | | file.name + |
| | | "</strong> (" + |
| | | file.type + |
| | | ")- " + |
| | | file.size + |
| | | "bytes, last modified: " + |
| | | file.lastModifiedDate.toLocaleDateString() + |
| | | "</li></ui>"; |
| | | |
| | | var output = '<ui type=\"disc\"><li><strong>'+file.name +'</strong> ('+file.type+')- '+file.size+'bytes, last modified: '+file.lastModifiedDate.toLocaleDateString()+'</li></ui>'; |
| | | component.set("v.filename", file.name); |
| | | component.set("v.TargetFileName", output); |
| | | |
| | | }; |
| | | reader.onload = function (e) { |
| | | var data = e.target.result; |
| | |
| | | // console.log("file data"+encodeURI(JSON.stringify(data),"utf-8")); |
| | | var allTextLines = data.split(/\r\n|\n/); |
| | | var dataRows = allTextLines.length - 1; |
| | | var headers = allTextLines[0].split(","); |
| | | var headers = allTextLines[0].split(','); |
| | | |
| | | // console.log("Rows length::"+dataRows); |
| | | |
| | | |
| | | var numOfRows = component.get("v.NumOfRecords"); |
| | | if (dataRows > numOfRows + 1 || dataRows == 1 || dataRows == 0) { |
| | | |
| | | alert("File Rows between 1 to " + numOfRows + " ."); |
| | | component.set("v.showMain", true); |
| | | } else { |
| | | |
| | | } |
| | | else{ |
| | | var lines = []; |
| | | var filecontentdata; |
| | | var content = |
| | | '<table class="table slds-table slds-table--bordered slds-table--cell-buffer">'; |
| | | content += '<thead><tr class="slds-text-title--caps">'; |
| | | content += '<th scope="col">' + "è¡å·" + "</th>"; |
| | | var content = "<table class=\"table slds-table slds-table--bordered slds-table--cell-buffer\">"; |
| | | content += "<thead><tr class=\"slds-text-title--caps\">"; |
| | | content += '<th scope=\"col"\>'+'è¡å·'+'</th>'; |
| | | for (i = 0; i < headers.length; i++) { |
| | | content += '<th scope="col">' + headers[i] + "</th>"; |
| | | content += '<th scope=\"col"\>'+headers[i]+'</th>'; |
| | | } |
| | | content += "</tr></thead>"; |
| | | for (var i = 1; i < allTextLines.length; i++) { |
| | | filecontentdata = allTextLines[i].split(","); |
| | | if (filecontentdata[0] != "") { |
| | | filecontentdata = allTextLines[i].split(','); |
| | | if(filecontentdata[0]!=''){ |
| | | content += "<tr>"; |
| | | content += "<td>" + i + "</td>"; |
| | | for (var j = 0; j < filecontentdata.length; j++) { |
| | | content += "<td>" + filecontentdata[j] + "</td>"; |
| | | content +='<td>'+filecontentdata[j]+'</td>'; |
| | | } |
| | | content += "</tr>"; |
| | | } |
| | |
| | | component.set("v.TableContent", content); |
| | | component.set("v.showMain", false); |
| | | } |
| | | }; |
| | | reader.readAsText(file, "gb2312"); |
| | | } |
| | | reader.readAsText(file,'gb2312'); |
| | | |
| | | } |
| | | var reader = new FileReader(); |
| | | reader.onloadend = function () {}; |
| | | reader.onloadend = function() { |
| | | |
| | | }; |
| | | reader.readAsDataURL(file); |
| | | }, |
| | | |
| | | saveRecords: function (component, event, helper) { |
| | | component.set("v.login", true); |
| | | debugger |
| | | component.set('v.login',true); |
| | | //fy 导å
¥ 20220424 start |
| | | var action1 = component.get("c.processDataAWSId"); |
| | | action1.setParams({ |
| | | fileData: component.get("v.fileContentData") |
| | | fileData : component.get("v.fileContentData"), |
| | | }); |
| | | debugger |
| | | action1.setCallback(this, function (response) { |
| | | console.log("response = " + JSON.stringify(response)); |
| | | console.log('response = ' + JSON.stringify(response)); |
| | | var state = response.getState(); |
| | | if (state === "SUCCESS") { |
| | | var ress = response.getReturnValue(); |
| | | console.log("ress = " + JSON.stringify(ress)); |
| | | console.log('ress = ' + JSON.stringify(ress)); |
| | | if (ress) { |
| | | var valur = ress.split("error1"); |
| | | var valur =ress.split('error1'); |
| | | if (valur.length <= 1) { |
| | | var res = JSON.parse(response.getReturnValue()); |
| | | console.log("res = " + JSON.stringify(res)); |
| | | console.log('res = ' + JSON.stringify(res)); |
| | | var dataArr = new Array(); |
| | | var dataMap = new Map(); |
| | | res.forEach((item) => { |
| | | res.forEach(item => { |
| | | if (item.AWS_Data_Id__c) { |
| | | dataArr.push(item.AWS_Data_Id__c); |
| | | //dataMap.set(item.AWS_Data_Id__c,item.Name_Encrypted__c); |
| | | dataMap.set(item.AWS_Data_Id__c, item.AWS_Data_Id__c); //zhj æ°æ¹æ¡æ¹é 2022-12-21 |
| | | } |
| | | }); |
| | | debugger; |
| | | let obj = Object.create(null); |
| | | obj["dataIds"] = dataArr; |
| | | obj['dataIds'] = dataArr; |
| | | var payload = JSON.stringify(obj); |
| | | this.search_contact_url( |
| | | component, |
| | | "Agency_Contact__c", |
| | | (result) => { |
| | | console.log('payload zhj = ' + JSON.stringify(payload)); |
| | | |
| | | this.search_contact_url(component, 'Agency_Contact__c', (result)=>{ |
| | | var token = result.token; |
| | | var searchUrl = result.searchUrl; |
| | | this.search_core( |
| | | token, |
| | | searchUrl, |
| | | payload, |
| | | (result) => { |
| | | if (result.status == "0") { |
| | | this.search_core(token,searchUrl,payload,(result)=>{ |
| | | if(result.status == '0'){ |
| | | if (result.object != null && result.object.length != 0) { |
| | | // var resultjson = JSON.stringify(result.object); |
| | | // if(resultjson){ |
| | |
| | | // component.set('v.login',true); |
| | | // this.ImportMethod(component,resultjson); |
| | | // } |
| | | component.set("v.login", true); |
| | | this.saveRecordsEditFile( |
| | | component, |
| | | dataMap, |
| | | result.object, |
| | | helper |
| | | ); |
| | | component.set('v.login',true); |
| | | this.saveRecordsEditFile(component,dataMap,result.object,helper); |
| | | } else { |
| | | this.error("AWS search status5 "); |
| | | component.set("v.login", false); |
| | | this.error('AWS æ¥è¯¢æ°æ®ä¸ºç©º ' ); |
| | | component.set('v.login',false); |
| | | } |
| | | } else { |
| | | this.error("AWS search status6 : " + result.status); |
| | | component.set("v.login", false); |
| | | this.error('AWS search status6 : ' + result.status); |
| | | component.set('v.login',false); |
| | | } |
| | | }, |
| | | component |
| | | ); |
| | | },component); |
| | | // var resultjson =null; |
| | | // this.ImportMethod(component,resultjson); |
| | | } |
| | | ); |
| | | |
| | | }); |
| | | // var resultjson =null; |
| | | // this.ImportMethod(component,resultjson); |
| | | } else { |
| | | this.error(valur[1] + "\n" + "请修æ¹åéæ°ä¸ä¼ "); |
| | | this.error(valur[1]+'\n'+"请修æ¹åéæ°ä¸ä¼ "); |
| | | } |
| | | } |
| | | } |
| | |
| | | // } |
| | | // }); |
| | | // $A.enqueueAction(action); |
| | | }, |
| | | ImportMethod: function (component, fileStr) { |
| | | |
| | | },isNumber: function(str) { |
| | | return /^\d+$/.test(str); |
| | | },ImportMethod : function(component,fileStr){ |
| | | debugger |
| | | var actionss = component.get("c.processData"); |
| | | var selectDate = component.find("select_date").get("v.value"); |
| | | var fieldsList = ["Name", "Phone", "AccountNumber"]; //Please write your code dynamic |
| | | var selectDate = component.find('select_date').get('v.value'); |
| | | var fieldsList=['Name','Phone','AccountNumber']; //Please write your code dynamic |
| | | var sss = component.get("v.fileContentData"); |
| | | actionss.setParams({ |
| | | // fileData : component.get("v.fileContentData"), |
| | | fileData: fileStr, |
| | | // selectDateselectDate :component.find('select_date').get('v.value'), |
| | | sobjectName: "Account", //Any object |
| | | sobjectName:'Account', //Any object |
| | | fields: fieldsList |
| | | // Agency_ContactListjson:resultjson |
| | | }); |
| | | actionss.setCallback(this, function (response) { |
| | | console.log("002"); |
| | | console.log('002'); |
| | | var state = response.getState(); |
| | | if (state === "SUCCESS") { |
| | | var res = response.getReturnValue(); |
| | | var res1 = ""; |
| | | var res1 = ''; |
| | | console.log("[[[[[[" + res); |
| | | if (res != "success") { |
| | | var ress = res.split("="); |
| | | if(res != 'success'){ |
| | | var ress = res.split('='); |
| | | console.log(ress); |
| | | let errorDatas = []; |
| | | let errorDataRow = []; |
| | | debugger |
| | | for (var i = 0; i < ress.length; i++) { |
| | | res1 += ress[i].substr(7) + "\n"; |
| | | res1 += ress[i].substr(7)+'\n'; |
| | | if (ress[i] != '') { |
| | | let errorData = {} |
| | | if(!this.isNumber(ress[i].substr(7).substring(1, 2))){ |
| | | continue |
| | | } |
| | | // $('.forceToastManager').css('white-space', 'pre-wrap'); |
| | | let index = errorDataRow.indexOf(ress[i].substr(7).substring(1, 2)); |
| | | if (index == -1) { |
| | | errorData.errorRow = ress[i].substr(7).substring(1, 2); |
| | | errorDataRow.push(errorData.errorRow); |
| | | errorData.errorInfo = ress[i].substr(7).substring(5).replace('=',''); |
| | | errorDatas.push(errorData); |
| | | } else { |
| | | errorDatas[index].errorInfo += '; ' + ress[i].substr(7).substring(5); |
| | | } |
| | | } |
| | | } |
| | | var fileContentData = component.get("v.fileContentData").split('\n'); |
| | | let errorColumns = [ |
| | | { label: 'é误è¡', fieldName: 'errorRow', type: 'text', hideDefaultActions: true, initialWidth: 100 }, |
| | | { label: 'é误信æ¯', fieldName: 'errorInfo', type: 'text', hideDefaultActions: true, initialWidth: 300, wrapText: true } |
| | | ]; |
| | | for (var i = 0; i < fileContentData[0].split(',').length; i++) { |
| | | errorColumns.push({ |
| | | label: fileContentData[0].split(',')[i], |
| | | fieldName: 'field' + i, |
| | | type: 'text', |
| | | hideDefaultActions: true, |
| | | wrapText: true, |
| | | initialWidth: 120 |
| | | }); |
| | | } |
| | | |
| | | for (var i = 0; i < errorDatas.length; i++) { |
| | | let data = fileContentData[errorDatas[i].errorRow]; |
| | | console.log('data = ' + JSON.stringify(data)); |
| | | if(data){ |
| | | for (var j = 0; j < data.split(',').length; j++) { |
| | | let label = 'field' + j; |
| | | errorDatas[i][label] = data.split(',')[j]; |
| | | } |
| | | } |
| | | } |
| | | component.set('v.errorColumns', errorColumns); |
| | | component.set('v.errorData', errorDatas); |
| | | component.set("v.showErrorInfo", true); |
| | | console.log("==" + res1); |
| | | this.error(res1 + "请修æ¹åéæ°ä¸ä¼ "); |
| | | component.set("v.login", false); |
| | | component.set('v.login',false); |
| | | } else { |
| | | component.set("v.showMain", true); |
| | | this.success("导å
¥æå"); |
| | | // alert('saved successfully'); |
| | | component.set("v.login", false); |
| | | component.set('v.login',false); |
| | | } |
| | | } else if (state === "INCOMPLETE") { |
| | | |
| | | } |
| | | else if (state === "INCOMPLETE") { |
| | | // do something |
| | | component.set("v.login", false); |
| | | } else if (state === "ERROR") { |
| | | component.set('v.login',false); |
| | | } |
| | | else if (state === "ERROR") { |
| | | var errors = response.getError(); |
| | | if (errors) { |
| | | if (errors[0] && errors[0].message) { |
| | | console.log("Error message: " + errors[0].message); |
| | | component.set("v.login", false); |
| | | console.log("Error message: " + |
| | | errors[0].message); |
| | | component.set('v.login',false); |
| | | } |
| | | } else { |
| | | console.log("Unknown error"); |
| | | component.set("v.login", false); |
| | | component.set('v.login',false); |
| | | } |
| | | } |
| | | }); |
| | | $A.enqueueAction(actionss); |
| | | }, |
| | | saveRecordsEditFile: function (component, dataMap, searchData, helper) { |
| | | },saveRecordsEditFile : function(component,dataMap,searchData,helper){ |
| | | var searchDataMap = new Map(); |
| | | for (var i = 0; i < searchData.length; i++) { |
| | | var sd = searchData[i]; |
| | | if (sd.name) searchDataMap.set(sd.name.replace(" ", ""), sd.dataId); |
| | | if(sd.name) |
| | | searchDataMap.set(sd.name.replace(' ',''),sd.dataId); |
| | | } |
| | | console.log("searchDataMap=" + searchDataMap); |
| | | var error = ""; |
| | | console.log('searchDataMap='+searchDataMap); |
| | | var error = ''; |
| | | var fileData = component.get("v.fileContentData"); |
| | | var files = fileData.split("\n"); |
| | | var files = fileData.split('\n'); |
| | | |
| | | var fileStr = files[0]; |
| | | fileStr += "\n"; |
| | | fileStr += '\n'; |
| | | |
| | | for (var i = 1; i < files.length - 1; i++) { |
| | | var filelist = files[i].split(","); |
| | | var filelist = files[i].split(','); |
| | | var fileName = filelist[4]; |
| | | |
| | | if (searchDataMap.get(fileName.replace(" ", ""))) { |
| | | var nameDataId = searchDataMap.get(fileName.replace(" ", "")); |
| | | if (searchDataMap.get(fileName.replace(' ',''))) { |
| | | var nameDataId = searchDataMap.get(fileName.replace(' ','')); |
| | | if (dataMap.get(nameDataId)) { |
| | | filelist[4] = dataMap.get(nameDataId); //zhj æ°æ¹æ¡æ¹é filelist[4]ä¸ååçnameEncrpt 2022-12-21 |
| | | } else { |
| | | error += "error1 第" + i + "è¡æ°æ®æè®¿äººSFä¸åå¨"; |
| | | error += "="; |
| | | error += 'error1 第'+i+'è¡æ°æ®æè®¿äººSFä¸åå¨'; |
| | | error += '='; |
| | | } |
| | | } else { |
| | | error += "error1 第" + i + "è¡æ°æ®æè®¿äººAWSä¸åå¨"; |
| | | error += "="; |
| | | error += 'error1 第'+i+'è¡æ°æ®æè®¿äººAWSä¸åå¨'; |
| | | error += '='; |
| | | } |
| | | fileStr += filelist.toString(); |
| | | fileStr += "\n"; |
| | | fileStr += '\n'; |
| | | } |
| | | |
| | | if (error != "") { |
| | | if (error != '') { |
| | | console.log('zhj error = ' + error); |
| | | let errorArray = error.split('error1'); |
| | | let errorDatas = []; |
| | | let errorDataRow = []; |
| | | debugger |
| | | console.log('errorArray = ' + JSON.stringify(errorArray)) |
| | | for (var i in errorArray) { |
| | | if (errorArray[i] != '') { |
| | | let errorData = {} |
| | | if(!this.isNumber(errorArray[i].trim().substring(1, 2))){ |
| | | continue |
| | | } |
| | | let index = errorDataRow.indexOf(errorArray[i].trim().substring(1, 2)); |
| | | if (index == -1) { |
| | | errorData.errorRow = errorArray[i].trim().substring(1, 2); |
| | | errorDataRow.push(errorData.errorRow); |
| | | errorData.errorInfo = errorArray[i].trim().substring(5,errorArray[i].trim().length).replace('=',''); |
| | | errorDatas.push(errorData); |
| | | } else { |
| | | errorDatas[index].errorInfo += '; ' + errorArray[i].trim().substring(5,errorArray[i].trim().length); |
| | | } |
| | | } |
| | | } |
| | | var fileContentData = component.get("v.fileContentData").split('\n'); |
| | | let errorColumns = [ |
| | | { label: 'é误è¡', fieldName: 'errorRow', type: 'text', hideDefaultActions: true, initialWidth: 100 }, |
| | | { label: 'é误信æ¯', fieldName: 'errorInfo', type: 'text', hideDefaultActions: true, initialWidth: 300, wrapText: true } |
| | | ]; |
| | | for (var i = 0; i < fileContentData[0].split(',').length; i++) { |
| | | errorColumns.push({ |
| | | label: fileContentData[0].split(',')[i], |
| | | fieldName: 'field' + i, |
| | | type: 'text', |
| | | hideDefaultActions: true, |
| | | wrapText: true, |
| | | initialWidth: 120 |
| | | }); |
| | | } |
| | | |
| | | for (var i = 0; i < errorDatas.length; i++) { |
| | | let data = fileContentData[errorDatas[i].errorRow]; |
| | | console.log('data = ' + JSON.stringify(data)); |
| | | for (var j = 0; j < data.split(',').length; j++) { |
| | | let label = 'field' + j; |
| | | errorDatas[i][label] = data.split(',')[j]; |
| | | } |
| | | } |
| | | console.log('errorDatas =' + JSON.stringify(errorDatas)) |
| | | component.set('v.errorColumns', errorColumns); |
| | | component.set('v.errorData', errorDatas); |
| | | component.set("v.showErrorInfo", true); |
| | | |
| | | |
| | | |
| | | console.log('error = ' + error); |
| | | component.set('v.errorMessage', error); |
| | | |
| | | this.error(error); |
| | | console.log("error=" + error); |
| | | component.set("v.login", false); |
| | | console.log('error='+error); |
| | | component.set('v.login',false); |
| | | return; |
| | | } |
| | | |
| | | console.log("fileStr=" + fileStr); |
| | | console.log('fileStr='+fileStr); |
| | | $A.getCallback(function () { |
| | | debugger; |
| | | debugger |
| | | helper.ImportMethod(component, fileStr); |
| | | })(); |
| | | |
| | | }, |
| | | convertArrayOfObjectsToCSV: function (component, objectRecords) { |
| | | var csvStringResult, counter, keys, columnDivider, lineDivider, thkeys; |
| | | if (objectRecords == null || !objectRecords.length) { |
| | | return null; |
| | | } |
| | | columnDivider = ","; |
| | | lineDivider = "\n"; |
| | | columnDivider = ','; |
| | | lineDivider = '\n'; |
| | | //SWAG-CBX68C fy ãå§æãDAMSç³»ç»å¨æ¥æ¨¡åå
容鿱å¢å start ,'SupportNeeds__c' ,'æ¯æ´éæ±' |
| | | keys = [ |
| | | "Submit_date__c", |
| | | "Person_In_Charge2__c", |
| | | "Report_Date__c", |
| | | "Agency_Hospital__c", |
| | | "Department_Cateogy__c", |
| | | "doctor2__c", |
| | | "visitor_title__c", |
| | | "Product_Category1__c", |
| | | "Product_Category2__c", |
| | | "Product_Category3__c", |
| | | "Purpose_Type__c", |
| | | "Result__c", |
| | | "SupportNeeds__c" |
| | | ]; |
| | | thkeys = [ |
| | | "å¨", |
| | | "æ
å½", |
| | | "æ´»å¨æ¥", |
| | | "å»é¢", |
| | | "ç§å®¤", |
| | | "æè®¿äºº", |
| | | "èä½", |
| | | "产ååºå1", |
| | | "产ååºå2", |
| | | "产ååºå3", |
| | | "æ´»å¨åºå", |
| | | "ç»æ", |
| | | "æ¯æ´éæ±" |
| | | ]; |
| | | csvStringResult = ""; |
| | | keys = ['Submit_date__c','Person_In_Charge2__c','Report_Date__c','Agency_Hospital__c','Department_Cateogy__c','doctor2__c','visitor_title__c','Product_Category1__c','Product_Category2__c','Product_Category3__c','Purpose_Type__c','Result__c','SupportNeeds__c']; |
| | | thkeys = ['å¨','æ
å½','æ´»å¨æ¥','å»é¢','ç§å®¤','æè®¿äºº','èä½','产ååºå1','产ååºå2','产ååºå3','æ´»å¨åºå','ç»æ','æ¯æ´éæ±'] |
| | | csvStringResult = ''; |
| | | csvStringResult += thkeys.join(columnDivider); |
| | | csvStringResult += lineDivider; |
| | | console.log("è¿å
¥å¯¼åºhelper"); |
| | |
| | | csvStringResult += columnDivider; |
| | | } |
| | | if (typeof objectRecords[i][skey] === "undefined") { |
| | | csvStringResult += '"' + "" + '"'; |
| | | csvStringResult += '"'+''+'"'; |
| | | continue; |
| | | } |
| | | if (skey == "Person_In_Charge2__c") { |
| | | csvStringResult += |
| | | '"' + objectRecords[i].Person_In_Charge2__r.Name + '"'; |
| | | } else if (skey == "Agency_Hospital__c") { |
| | | csvStringResult += |
| | | '"' + objectRecords[i].Agency_Hospital__r.Name + '"'; |
| | | } else if (skey == "doctor2__c") { |
| | | if(skey == 'Person_In_Charge2__c'){ |
| | | csvStringResult += '"'+ objectRecords[i].Person_In_Charge2__r.Name+'"'; |
| | | }else if(skey == 'Agency_Hospital__c'){ |
| | | csvStringResult += '"'+ objectRecords[i].Agency_Hospital__r.Name+'"'; |
| | | }else if(skey == 'doctor2__c'){ |
| | | csvStringResult += '"' + objectRecords[i].doctor2__r.Name + '"'; |
| | | } else if (skey == "Product_Category1__c") { |
| | | csvStringResult += |
| | | '"' + objectRecords[i].Product_Category1__r.Name + '"'; |
| | | } else if (skey == "Product_Category2__c") { |
| | | csvStringResult += |
| | | '"' + objectRecords[i].Product_Category2__r.Name + '"'; |
| | | } else if (skey == "Product_Category3__c") { |
| | | csvStringResult += |
| | | '"' + objectRecords[i].Product_Category3__r.Name + '"'; |
| | | } else if (skey == "SupportNeeds__c") { |
| | | //SWAG-CBX68C fy ãå§æãDAMSç³»ç»å¨æ¥æ¨¡åå
容鿱å¢å start |
| | | }else if(skey == 'Product_Category1__c'){ |
| | | csvStringResult += '"'+ objectRecords[i].Product_Category1__r.Name+'"'; |
| | | }else if(skey == 'Product_Category2__c'){ |
| | | csvStringResult += '"'+ objectRecords[i].Product_Category2__r.Name+'"'; |
| | | }else if(skey == 'Product_Category3__c'){ |
| | | csvStringResult += '"'+ objectRecords[i].Product_Category3__r.Name+'"'; |
| | | } |
| | | else if(skey == 'SupportNeeds__c'){//SWAG-CBX68C fy ãå§æãDAMSç³»ç»å¨æ¥æ¨¡åå
容鿱å¢å start |
| | | csvStringResult += '"' + objectRecords[i].SupportNeeds__c + '"'; |
| | | } else { |
| | | } |
| | | else{ |
| | | csvStringResult += '"' + objectRecords[i][skey] + '"'; |
| | | } |
| | | counter++; |
| | | |
| | | } // inner for loop close |
| | | console.log("导åºå¾ªç¯ç»æ"); |
| | | csvStringResult += lineDivider; |
| | |
| | | return csvStringResult; |
| | | }, |
| | | showExportDate: function (component, objectRecords) { |
| | | console.log("è¿å
¥showexceportdate" + objectRecords); //SWAG-CBX68C fy ãå§æãDAMSç³»ç»å¨æ¥æ¨¡åå
容鿱å¢å start ,'SupportNeeds__c' ,'æ¯æ´éæ±' |
| | | var keys = [ |
| | | "Submit_date__c", |
| | | "Person_In_Charge2__c", |
| | | "Report_Date__c", |
| | | "Agency_Hospital__c", |
| | | "Department_Cateogy__c", |
| | | "doctor2__c", |
| | | "visitor_title__c", |
| | | "Product_Category1__c", |
| | | "Product_Category2__c", |
| | | "Product_Category3__c", |
| | | "Purpose_Type__c", |
| | | "Result__c", |
| | | "SupportNeeds__c" |
| | | ]; |
| | | var headers = [ |
| | | "å¨", |
| | | "æ
å½", |
| | | "æ´»å¨æ¥", |
| | | "å»é¢", |
| | | "ç§å®¤", |
| | | "æè®¿äºº", |
| | | "èä½", |
| | | "产ååºå1", |
| | | "产ååºå2", |
| | | "产ååºå3", |
| | | "æ´»å¨åºå", |
| | | "ç»æ", |
| | | "æ¯æ´éæ±" |
| | | ]; |
| | | var content = |
| | | '<table class="table slds-table slds-table--bordered slds-table--cell-buffer">'; |
| | | content += '<thead><tr class="slds-text-title--caps">'; |
| | | console.log('è¿å
¥showexceportdate'+objectRecords);//SWAG-CBX68C fy ãå§æãDAMSç³»ç»å¨æ¥æ¨¡åå
容鿱å¢å start ,'SupportNeeds__c' ,'æ¯æ´éæ±' |
| | | var keys = ['Submit_date__c','Person_In_Charge2__c','Report_Date__c','Agency_Hospital__c','Department_Cateogy__c','doctor2__c','visitor_title__c','Product_Category1__c','Product_Category2__c','Product_Category3__c','Purpose_Type__c','Result__c','SupportNeeds__c']; |
| | | var headers = ['å¨','æ
å½','æ´»å¨æ¥','å»é¢','ç§å®¤','æè®¿äºº','èä½','产ååºå1','产ååºå2','产ååºå3','æ´»å¨åºå','ç»æ','æ¯æ´éæ±'] |
| | | var content = "<table class=\"table slds-table slds-table--bordered slds-table--cell-buffer\">"; |
| | | content += "<thead><tr class=\"slds-text-title--caps\">"; |
| | | for (i = 0; i < headers.length; i++) { |
| | | content += '<th scope="col">' + headers[i] + "</th>"; |
| | | content += '<th scope=\"col"\>'+headers[i]+'</th>'; |
| | | } |
| | | content += "</tr></thead>"; |
| | | for (var i = 0; i < objectRecords.length; i++) { |
| | | console.log("for" + content); |
| | | content += "<tr>"; |
| | | console.log('for'+content); |
| | | content += '<tr>'; |
| | | // content += '<td>'+(i+1)+'</td>'; |
| | | for (var sTempkey in keys) { |
| | | console.log("for1" + sTempkey); |
| | | console.log('for1'+sTempkey); |
| | | var skey = keys[sTempkey]; |
| | | if (typeof objectRecords[i][skey] === "undefined") { |
| | | content += "<td>" + "" + "</td>"; |
| | | content += '<td>'+''+'</td>'; |
| | | continue; |
| | | } |
| | | console.log("for2" + objectRecords[i].Person_In_Charge2__r.Name); |
| | | if (skey == "Person_In_Charge2__c") { |
| | | content += |
| | | "<td>" + objectRecords[i].Person_In_Charge2__r.Name + "</td>"; |
| | | } else if (skey == "Agency_Hospital__c") { |
| | | content += |
| | | "<td>" + objectRecords[i].Agency_Hospital__r.Name + "</td>"; |
| | | } else if (skey == "doctor2__c") { |
| | | content += "<td>" + objectRecords[i].doctor2__r.Name + "</td>"; |
| | | } else if (skey == "Product_Category1__c") { |
| | | content += |
| | | "<td>" + objectRecords[i].Product_Category1__r.Name + "</td>"; |
| | | } else if (skey == "Product_Category2__c") { |
| | | content += |
| | | "<td>" + objectRecords[i].Product_Category2__r.Name + "</td>"; |
| | | } else if (skey == "Product_Category3__c") { |
| | | content += |
| | | "<td>" + objectRecords[i].Product_Category3__r.Name + "</td>"; |
| | | } else if (skey == "SupportNeeds__c") { |
| | | //SWAG-CBX68C fy ãå§æãDAMSç³»ç»å¨æ¥æ¨¡åå
容鿱å¢å start |
| | | content += "<td>" + objectRecords[i].SupportNeeds__c + "</td>"; |
| | | } else { |
| | | content += "<td>" + objectRecords[i][skey] + "</td>"; |
| | | console.log('for2'+objectRecords[i].Person_In_Charge2__r.Name); |
| | | if(skey == 'Person_In_Charge2__c'){ |
| | | content += '<td>'+ objectRecords[i].Person_In_Charge2__r.Name+'</td>'; |
| | | }else if(skey == 'Agency_Hospital__c'){ |
| | | content += '<td>'+ objectRecords[i].Agency_Hospital__r.Name+'</td>'; |
| | | }else if(skey == 'doctor2__c'){ |
| | | content += '<td>'+ objectRecords[i].doctor2__r.Name+'</td>'; |
| | | }else if(skey == 'Product_Category1__c'){ |
| | | content += '<td>'+ objectRecords[i].Product_Category1__r.Name+'</td>'; |
| | | }else if(skey == 'Product_Category2__c'){ |
| | | content += '<td>'+ objectRecords[i].Product_Category2__r.Name+'</td>'; |
| | | }else if(skey == 'Product_Category3__c'){ |
| | | content += '<td>'+ objectRecords[i].Product_Category3__r.Name+'</td>'; |
| | | } |
| | | else if(skey == 'SupportNeeds__c'){//SWAG-CBX68C fy ãå§æãDAMSç³»ç»å¨æ¥æ¨¡åå
容鿱å¢å start |
| | | content += '<td>'+ objectRecords[i].SupportNeeds__c+'</td>'; |
| | | } |
| | | else{ |
| | | content += '<td>'+ objectRecords[i][skey]+'</td>'; |
| | | } |
| | | } // inner for loop close |
| | | content += "</tr>"; |
| | | content += '</tr>' |
| | | } // outer main for loop close |
| | | content += "</table>"; |
| | | content += '</table>'; |
| | | console.log("helper循ç¯ç»æ" + content); |
| | | component.set("v.TableContent2", content); |
| | | component.set("v.showMain", false); |
| | | }, |
| | | |
| | | select_repores_date: function (component, event, helper) { |
| | | component.set("v.login", true); |
| | | var reportsdate1 = component.find("input-report-date1").get("v.value"); |
| | | var reportsdate2 = component.find("input-report-date2").get("v.value"); |
| | | console.log( |
| | | "è¾å
¥çå¼å§æ¥æ" + reportsdate1 + "è¾å
¥çç»ææ¥æ" + reportsdate2 |
| | | ); |
| | | component.set('v.login',true); |
| | | var reportsdate1 = component.find('input-report-date1').get('v.value'); |
| | | var reportsdate2 = component.find('input-report-date2').get('v.value'); |
| | | console.log('è¾å
¥çå¼å§æ¥æ'+reportsdate1+'è¾å
¥çç»ææ¥æ'+reportsdate2); |
| | | var action = component.get("c.getReportsByDate"); |
| | | console.log("è¾å
¥çå¼å§æ¥æ1"); |
| | | console.log('è¾å
¥çå¼å§æ¥æ1'); |
| | | action.setParams({ |
| | | date1: reportsdate1, |
| | | date2: reportsdate2 |
| | | }); |
| | | console.log("è¾å
¥çå¼å§æ¥æ2"); |
| | | console.log('è¾å
¥çå¼å§æ¥æ2'); |
| | | action.setCallback(this, function (response) { |
| | | var state = response.getState(); |
| | | if (state === "SUCCESS") { |
| | | |
| | | var res = response.getReturnValue(); |
| | | console.log("è¾å
¥çå¼å§æ¥æ3" + res); |
| | | component.set("v.login", false); |
| | | console.log('è¾å
¥çå¼å§æ¥æ3'+res); |
| | | component.set('v.login',false); |
| | | |
| | | // PI æ¹é By Bright 20220328 |
| | | if (true) { |
| | | let awsids = []; |
| | | for (let ri in res) { |
| | | if ( |
| | | res[ri] && |
| | | res[ri].doctor2__r && |
| | | res[ri].doctor2__r.AWS_Data_Id__c |
| | | ) { |
| | | if(res[ri] && res[ri].doctor2__r && res[ri].doctor2__r.AWS_Data_Id__c){ |
| | | awsids.push(res[ri].doctor2__r.AWS_Data_Id__c); |
| | | } |
| | | } |
| | | if (awsids.length > 0) { |
| | | let awsurl = component.get("v.awsurl"); |
| | | let awsurl = component.get('v.awsurl'); |
| | | |
| | | AWSService.search( |
| | | awsurl.searchUrl, |
| | | { |
| | | AWSService.search(awsurl.searchUrl,{ |
| | | dataIds: awsids |
| | | }, |
| | | function (data) { |
| | | }, function(data){ |
| | | if (data && data.object && data.object.length) { |
| | | let m = {}; |
| | | for (let di in data.object) { |
| | |
| | | } |
| | | |
| | | for (let ri in res) { |
| | | if ( |
| | | res[ri] && |
| | | res[ri].doctor2__r && |
| | | res[ri].doctor2__r.AWS_Data_Id__c && |
| | | m.hasOwnProperty(res[ri].doctor2__r.AWS_Data_Id__c) |
| | | ) { |
| | | res[ri].doctor2__r.Name = |
| | | m[res[ri].doctor2__r.AWS_Data_Id__c].name; |
| | | res[ri].visitor_title__c = |
| | | m[res[ri].doctor2__r.AWS_Data_Id__c].doctorDivision1; |
| | | if(res[ri] && res[ri].doctor2__r && res[ri].doctor2__r.AWS_Data_Id__c && m.hasOwnProperty(res[ri].doctor2__r.AWS_Data_Id__c)){ |
| | | res[ri].doctor2__r.Name = m[res[ri].doctor2__r.AWS_Data_Id__c].name; |
| | | res[ri].visitor_title__c = m[res[ri].doctor2__r.AWS_Data_Id__c].doctorDivision1; |
| | | |
| | | } |
| | | } |
| | | } |
| | | helper.showExportDate(component, res); |
| | | |
| | | component.set("v.login", false); |
| | | }, |
| | | awsurl.token |
| | | ); |
| | | component.set('v.login', false); |
| | | }, awsurl.token); |
| | | } else { |
| | | helper.showExportDate(component, res); |
| | | } |
| | | } |
| | | |
| | | component.set("v.reports_date", res); |
| | | |
| | | component.set('v.reports_date', res); |
| | | |
| | | } else { |
| | | alert("导åºå¤±è´¥,è¯·æ£æ¥æ´»å¨æ¥"); |
| | | component.set("v.login", false); |
| | | alert('导åºå¤±è´¥,è¯·æ£æ¥æ´»å¨æ¥'); |
| | | component.set('v.login',false); |
| | | } |
| | | }); |
| | | $A.enqueueAction(action); |
| | | |
| | | }, |
| | | |
| | | showImport: function (component) { |
| | | // console.log('è¿å
¥'); |
| | | // component.find('file').click(); |
| | | var modalimport = component.find("modal_import"); |
| | | var modalimportbg = component.find("modal_importbg"); |
| | | $A.util.removeClass(modalimport, "disp_none"); |
| | | $A.util.removeClass(modalimportbg, "disp_none"); |
| | | var modalimport = component.find('modal_import'); |
| | | var modalimportbg = component.find('modal_importbg'); |
| | | $A.util.removeClass(modalimport, 'disp_none'); |
| | | $A.util.removeClass(modalimportbg,'disp_none'); |
| | | }, |
| | | |
| | | showExport: function (component) { |
| | | var modalimport = component.find("modal_export"); |
| | | var modalimportbg = component.find("modal_exportbg"); |
| | | $A.util.removeClass(modalimport, "disp_none"); |
| | | $A.util.removeClass(modalimportbg, "disp_none"); |
| | | var modalimport = component.find('modal_export'); |
| | | var modalimportbg = component.find('modal_exportbg'); |
| | | $A.util.removeClass(modalimport, 'disp_none'); |
| | | $A.util.removeClass(modalimportbg,'disp_none'); |
| | | }, |
| | | |
| | | close_import: function (component) { |
| | | var modalimport = component.find("modal_import"); |
| | | var modalimportbg = component.find("modal_importbg"); |
| | | $A.util.addClass(modalimport, "disp_none"); |
| | | $A.util.addClass(modalimportbg, "disp_none"); |
| | | var modalimport = component.find('modal_import'); |
| | | var modalimportbg = component.find('modal_importbg'); |
| | | $A.util.addClass(modalimport, 'disp_none'); |
| | | $A.util.addClass(modalimportbg,'disp_none'); |
| | | }, |
| | | |
| | | close_export: function (component) { |
| | | var modalimport = component.find("modal_export"); |
| | | var modalimportbg = component.find("modal_exportbg"); |
| | | $A.util.addClass(modalimport, "disp_none"); |
| | | $A.util.addClass(modalimportbg, "disp_none"); |
| | | var modalimport = component.find('modal_export'); |
| | | var modalimportbg = component.find('modal_exportbg'); |
| | | $A.util.addClass(modalimport, 'disp_none'); |
| | | $A.util.addClass(modalimportbg,'disp_none'); |
| | | }, |
| | | |
| | | //zhj MEBGæ°æ¹æ¡æ¹é 2022-11-29 start |
| | | CallBackAction: function (component, action_name, para, callback) { |
| | | var action = component.get( |
| | | "c." + action_name.trimStart().replace("c.", "") |
| | | ); |
| | | var action = component.get("c." + action_name.trimStart().replace("c.","")); |
| | | if (para) { |
| | | action.setParams(para); |
| | | } |
| | |
| | | } |
| | | |
| | | $A.enqueueAction(action); |
| | | } |
| | | }, |
| | | //zhj MEBGæ°æ¹æ¡æ¹é 2022-11-29 end |
| | | |
| | | //zhj 导åºéè¯¯ä¿¡æ¯ 2023-05-16 start |
| | | exportErrorInfoHelper: function (component) { |
| | | var errorData = component.get('v.errorData'); |
| | | var errorColumns = component.get('v.errorColumns'); |
| | | |
| | | var datas = []; |
| | | let errorColumnsArray = []; |
| | | for(var i in errorColumns){ |
| | | errorColumnsArray.push(errorColumns[i].label); |
| | | } |
| | | datas.push(errorColumnsArray); |
| | | //datas.push(errorColumns); |
| | | |
| | | for (var i in errorData) { |
| | | let data = []; |
| | | data.push(errorData[i].errorRow) |
| | | data.push(errorData[i].errorInfo) |
| | | for(var j = 0 ; j < Object.keys(errorData[i]).length - 2 ; j++){ |
| | | data.push(errorData[i]['field' + j]) |
| | | } |
| | | datas.push(data); |
| | | } |
| | | |
| | | console.log('datas = ' + JSON.stringify(datas)); |
| | | var csv = this.convertToCSV(component, datas); |
| | | console.log('csv = ' + JSON.stringify(csv)) |
| | | this.downloadCSV(component, csv); |
| | | }, |
| | | |
| | | convertToCSV: function (component, data) { |
| | | console.log('enter convertToCSV') |
| | | console.log('data = ' + data); |
| | | var csv = ''; |
| | | for (var i = 0; i < data.length; i++) { |
| | | var row = data[i]; |
| | | console.log('row = ' + JSON.stringify(row)); |
| | | for (var j = 0; j < row.length; j++) { |
| | | var val = ''; |
| | | val = row[j] === null ? '' : row[j].toString(); |
| | | console.log('val = ' + val); |
| | | if (val.indexOf(',') !== -1 || val.indexOf('"') !== -1 || val.indexOf('\n') !== -1) { |
| | | //val = '"' + val.replace(/"/g,'""') + '"'; |
| | | } |
| | | if (j > 0) { |
| | | csv += ','; |
| | | } |
| | | csv += val; |
| | | } |
| | | csv += '\n'; |
| | | } |
| | | return csv; |
| | | }, |
| | | |
| | | downloadCSV: function (component, csv) { |
| | | var link = document.createElement('a'); |
| | | // 设置å符éåæä»¶å¤´ |
| | | var bom = "\uFEFF"; |
| | | link.href = 'data:text/csv;charset=utf-8,' + encodeURIComponent(bom + csv); |
| | | link.download = 'data.csv'; |
| | | document.body.appendChild(link); |
| | | link.click(); |
| | | document.body.removeChild(link); |
| | | }, |
| | | //zhj 导åºéè¯¯ä¿¡æ¯ 2023-05-16 end |
| | | |
| | | // searchAgencyContact : function(res) { |
| | | // var agencyContacts = []; |
| | |
| | | // var data = this.search(searchUrl,data,token); |
| | | // return data;searchUrl,requestSearchPayload,token |
| | | // }, |
| | | }); |
| | | }) |
| New file |
| | |
| | | global without sharing class Batch_FixAttachmentToFiles implements Database.Batchable<sObject>{ |
| | | // Id batchJobId = Database.executeBatch(new Batch_FixAttachmentToFiles(Datetime.newInstance(2023, 5, 20, 8, 0, 0),'Consumable_order__c'),2000); |
| | | private Datetime endDate = null; |
| | | private String objectApiName = null; |
| | | public Batch_FixAttachmentToFiles(Datetime setTime,String objectType) { |
| | | endDate = setTime; |
| | | objectApiName = objectType; |
| | | } |
| | | |
| | | global Database.QueryLocator start(Database.BatchableContext BC) { |
| | | String queryObject = 'SELECT Id FROM ' + objectApiName + ' WHERE CreatedDate >=:endDate' + ' order by CreatedDate desc'; |
| | | System.debug('queryObject:' + queryObject); |
| | | return Database.getQueryLocator(queryObject);//åæå®Objectä¸é¢çIdæè
å¤çå
¨é¨ |
| | | } |
| | | |
| | | global void execute(Database.BatchableContext BC, List<sObject> scope) { |
| | | Set<Id> setId = new Set<Id>(); |
| | | for(sObject sc: scope){ |
| | | setId.add(sc.Id); |
| | | } |
| | | List<ContentVersion> insertContents = new List<ContentVersion>(); |
| | | Map<string,id> nameParentMaps = new Map<string,id>(); |
| | | for (Attachment att : [select Id,Name ,OwnerId,ParentId, Body, CreatedById from Attachment where ParentId in: setId Order by Name desc]) { |
| | | nameParentMaps.put(att.name, att.ParentId); |
| | | ContentVersion cVersion = new ContentVersion(); |
| | | cVersion.ContentLocation = 'S'; //S-Document is in Salesforce. E-Document is outside of Salesforce. L-Document is on a Social Netork. |
| | | cVersion.PathOnClient = att.Name; //File name with extention |
| | | cVersion.Origin = 'C'; //C-Content Origin. H-Chatter Origin. |
| | | cVersion.Title = att.Name; //Name of the file |
| | | cVersion.VersionData = att.Body; //File content |
| | | insertContents.add(cVersion); |
| | | } |
| | | if(insertContents.isEmpty()){ |
| | | return; |
| | | } |
| | | Insert insertContents; |
| | | set<Id> contentIds = new set<Id>(); |
| | | for(ContentVersion cv : insertContents){ |
| | | contentIds.add(cv.id); |
| | | } |
| | | List<ContentVersion> conDocuments = [SELECT ContentDocumentId, Title FROM ContentVersion WHERE Id in: contentIds]; |
| | | List<ContentDocumentLink> insertDocLinks = new List<ContentDocumentLink>(); |
| | | for(ContentVersion cv : conDocuments){ |
| | | ContentDocumentLink cDocLink = new ContentDocumentLink(); |
| | | cDocLink.ContentDocumentId = cv.ContentDocumentId; //Add ContentDocumentId |
| | | cDocLink.LinkedEntityId = nameParentMaps.get(cv.Title); //Add attachment parentId |
| | | cDocLink.ShareType = 'V'; //V - Viewer permission. C - Collaborator permission. I - Inferred permission. |
| | | cDocLink.Visibility = 'AllUsers'; |
| | | insertDocLinks.add(cDocLink); |
| | | } |
| | | Insert insertDocLinks; |
| | | } |
| | | |
| | | global void finish(Database.BatchableContext BC) { |
| | | |
| | | } |
| | | } |
| New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <ApexClass xmlns="http://soap.sforce.com/2006/04/metadata"> |
| | | <apiVersion>57.0</apiVersion> |
| | | <status>Active</status> |
| | | </ApexClass> |
| | |
| | | public without sharing class LexArriveGoodsController { |
| | | |
| | | //åå§å |
| | | @AuraEnabled |
| | | public static Results init(String arrType, String eSetId) { |
| | | Results results = new Results(); |
| | | results.isNoteStay = LexUtility.getIsNoteStay(); |
| | | try { |
| | | ArriveGoodsController arrController = new ArriveGoodsController( |
| | | eSetId, |
| | | arrType |
| | | ); |
| | | ArriveGoodsController arrController = new ArriveGoodsController(eSetId, arrType); |
| | | arrController.isLwc = true; |
| | | arrController.init(); |
| | | results.arrGoodCon = JSON.serialize(arrController); |
| | |
| | | Results results = new Results(); |
| | | try { |
| | | System.debug('arrControllerStr:' + arrControllerStr); |
| | | ArriveGoodsController arrController = (ArriveGoodsController) JSON.deserialize( |
| | | arrControllerStr, |
| | | ArriveGoodsController.class |
| | | ); |
| | | ArriveGoodsController arrController = (ArriveGoodsController)JSON.deserialize(arrControllerStr, ArriveGoodsController.class); |
| | | arrController.barcode = barcode; |
| | | arrController.returnError = null; |
| | | arrController.warningList = new List<String>(); |
| | | arrController.errorList = new List<String>(); |
| | | arrController.SearchPro(); |
| | | results.arrGoodCon = JSON.serialize(arrController); |
| | | if ( |
| | | arrController.returnError != null && |
| | | arrController.returnError != '' |
| | | ) { |
| | | if(arrController.returnError != null && arrController.returnError != ''){ |
| | | results.result = 'Fail'; |
| | | results.errorMsgList = arrController.errorList; |
| | | results.warningMsgList = arrController.warningList; |
| | |
| | | results.saveFLGbln = arrController.saveFLGbln; |
| | | results.returnFLGbln = arrController.ReturnFLGbln; |
| | | results.detailsSummary = changeType1(arrController.detailsSummary); |
| | | results.consumableorderdetailsRecords = changeType1( |
| | | arrController.ConsumableorderdetailsRecords |
| | | ); |
| | | results.showGoodsofReturnList = changeType1( |
| | | arrController.ShowGoodsofReturnList |
| | | ); |
| | | results.consumableInventory = changeType1( |
| | | arrController.consumableInventory |
| | | ); |
| | | results.consumableorderdetailsRecordserror = changeType1( |
| | | arrController.ConsumableorderdetailsRecordserror |
| | | ); |
| | | results.consumableorderdetailsRecords = changeType1(arrController.ConsumableorderdetailsRecords); |
| | | results.showGoodsofReturnList = changeType1(arrController.ShowGoodsofReturnList); |
| | | results.consumableInventory = changeType1(arrController.consumableInventory); |
| | | results.consumableorderdetailsRecordserror = changeType1(arrController.ConsumableorderdetailsRecordserror); |
| | | results.errorMsgList = arrController.errorList; |
| | | results.warningMsgList = arrController.warningList; |
| | | results.result = 'Success'; |
| | | } |
| | | } catch (Exception e) { |
| | | results.result = 'Fail'; |
| | | results.errorMsg = |
| | | e.getLineNumber() + |
| | | '---' + |
| | | e.getMessage() + |
| | | '---' + |
| | | e.getStackTraceString(); |
| | | results.errorMsg = e.getLineNumber() + '---' + e.getMessage() + '---' + e.getStackTraceString(); |
| | | } |
| | | return results; |
| | | } |
| | |
| | | public static Results arriveGoodsConfim(String arrControllerStr) { |
| | | Results results = new Results(); |
| | | try { |
| | | ArriveGoodsController arrController = (ArriveGoodsController) JSON.deserialize( |
| | | arrControllerStr, |
| | | ArriveGoodsController.class |
| | | ); |
| | | ArriveGoodsController arrController = (ArriveGoodsController)JSON.deserialize(arrControllerStr, ArriveGoodsController.class); |
| | | arrController.returnError = null; |
| | | arrController.warningList = new List<String>(); |
| | | arrController.errorList = new List<String>(); |
| | | Pagereference page = arrController.ArriveGoodsConfim(); |
| | | results.arrGoodCon = JSON.serialize(arrController); |
| | | if ( |
| | | arrController.returnError != null && |
| | | arrController.returnError != '' |
| | | ) { |
| | | if(arrController.returnError != null && arrController.returnError != ''){ |
| | | results.result = 'Fail'; |
| | | results.errorMsgList = arrController.errorList; |
| | | results.warningMsgList = arrController.warningList; |
| | |
| | | |
| | | //ç»å½è¿å |
| | | @AuraEnabled |
| | | public static Results updateGoodsOfReturn( |
| | | String arrControllerStr, |
| | | String showGoodsofReturnListStr |
| | | ) { |
| | | public static Results updateGoodsOfReturn(String arrControllerStr, String showGoodsofReturnListStr) { |
| | | Results results = new Results(); |
| | | try { |
| | | List<ConsumableorderdetailsInfo> showGoodsofReturnList = (List<ConsumableorderdetailsInfo>) JSON.deserialize( |
| | | showGoodsofReturnListStr, |
| | | List<ConsumableorderdetailsInfo>.class |
| | | ); |
| | | ArriveGoodsController arrController = (ArriveGoodsController) JSON.deserialize( |
| | | arrControllerStr, |
| | | ArriveGoodsController.class |
| | | ); |
| | | List<ConsumableorderdetailsInfo> showGoodsofReturnList = (List<ConsumableorderdetailsInfo>)JSON.deserialize(showGoodsofReturnListStr, List<ConsumableorderdetailsInfo>.class); |
| | | ArriveGoodsController arrController = (ArriveGoodsController)JSON.deserialize(arrControllerStr, ArriveGoodsController.class); |
| | | arrController.ShowGoodsofReturnList = changeType2(showGoodsofReturnList); |
| | | arrController.returnError = null; |
| | | arrController.warningList = new List<String>(); |
| | | arrController.errorList = new List<String>(); |
| | | StaticParameter.ConsumableOrderTrigger = true; //Add by Li Jun for bypass ConsumableOrderTrigger 20230616 |
| | | Pagereference page = arrController.UpdateGoodsOfReturn(); |
| | | results.arrGoodCon = JSON.serialize(arrController); |
| | | if ( |
| | | arrController.returnError != null && |
| | | arrController.returnError != '' |
| | | ) { |
| | | if(arrController.returnError != null && arrController.returnError != ''){ |
| | | results.result = 'Fail'; |
| | | results.errorMsgList = arrController.errorList; |
| | | results.warningMsgList = arrController.warningList; |
| | |
| | | return results; |
| | | } |
| | | |
| | | public static List<ConsumableorderdetailsInfo> changeType1( |
| | | List<ArriveGoodsController.ConsumableorderdetailsInfo> conList |
| | | ) { |
| | | public static List<ConsumableorderdetailsInfo> changeType1(List<ArriveGoodsController.ConsumableorderdetailsInfo> conList){ |
| | | List<ConsumableorderdetailsInfo> conList1 = new List<ConsumableorderdetailsInfo>(); |
| | | if (conList != null) { |
| | | for (ArriveGoodsController.ConsumableorderdetailsInfo con : conList) { |
| | |
| | | return conList1; |
| | | } |
| | | |
| | | public static List<ArriveGoodsController.ConsumableorderdetailsInfo> changeType2( |
| | | List<ConsumableorderdetailsInfo> conList |
| | | ) { |
| | | public static List<ArriveGoodsController.ConsumableorderdetailsInfo> changeType2(List<ConsumableorderdetailsInfo> conList){ |
| | | List<ArriveGoodsController.ConsumableorderdetailsInfo> conList1 = new List<ArriveGoodsController.ConsumableorderdetailsInfo>(); |
| | | if (conList != null) { |
| | | for (ConsumableorderdetailsInfo con : conList) { |
| | |
| | | public String ReportProductExpirationDate { get; set; } |
| | | |
| | | public ConsumableorderdetailsInfo() { |
| | | |
| | | } |
| | | |
| | | public ConsumableorderdetailsInfo( |
| | | Consumable_order_details2__c e, |
| | | string str |
| | | ) { |
| | | esd = e; |
| | | Prod = e.Consumable_Product__r; |
| | | oldConsumableCount = e.name; |
| | | ErrorReason = str; |
| | | intMark = 1; |
| | | if (e.Report_Product_Expiration__c != null) { |
| | | ReportProductExpirationDate = e.Report_Product_Expiration__c.format(); |
| | | } |
| | | } |
| | | public ConsumableorderdetailsInfo(Consumable_order_details2__c e) { |
| | | canEdit = false; |
| | | if (e.Box_Piece__c == 'ç') { |
| | | e.Rrturn_count__c = 1; |
| | | canEdit = true; |
| | | } |
| | | esd = e; |
| | | Prod = e.Consumable_Product__r; |
| | | oldConsumableCount = e.name; |
| | | if (e.Report_Product_Expiration__c != null) { |
| | | ReportProductExpirationDate = e.Report_Product_Expiration__c.format(); |
| | | } |
| | | } |
| | | |
| | | public ConsumableorderdetailsInfo(Product2__c e, List<String> barinfoL) { |
| | | esd = new Consumable_order_details2__c(); |
| | | ProductName = e.Name__c; |
| | | Prod = e; |
| | | barCodeNo = barinfoL[0]; |
| | | if (String.isNotBlank(barinfoL[1])) { |
| | | sterilizationlimitDate = Date.valueOf(barinfoL[1]); |
| | | } |
| | | serialNoorLotNo = barinfoL[2]; |
| | | tracingCodeNo = barinfoL[3]; |
| | | ReturnReason = ''; |
| | | } |
| | | |
| | | public ConsumableorderdetailsInfo( |
| | | Consumable_order_details2__c e, |
| | | List<String> barinfoL |
| | | ) { |
| | | esd = e; |
| | | Prod = e.Consumable_Product__r; |
| | | barCodeNo = barinfoL[0]; |
| | | if (String.isNotBlank(barinfoL[1])) { |
| | | sterilizationlimitDate = Date.valueOf(barinfoL[1]); |
| | | } |
| | | serialNoorLotNo = barinfoL[2]; |
| | | tracingCodeNo = barinfoL[3]; |
| | | if (e.Report_Product_Expiration__c != null) { |
| | | ReportProductExpirationDate = e.Report_Product_Expiration__c.format(); |
| | | } |
| | | } |
| | | public ConsumableorderdetailsInfo(Product2__c e) { |
| | | Prod = e; |
| | | } |
| | | // æåº |
| | | public Integer compareTo(Object compareTo) { |
| | | return null; |
| | |
| | | Results results = new Results(); |
| | | results.isNoteStay = LexUtility.getIsNoteStay(); |
| | | try { |
| | | List<String> idList = new List<String>(); |
| | | idList.add('a2K10000002zHyDEAU'); |
| | | idList.add('a2K10000002zIJEEA2'); |
| | | idList.add('a2K10000002zK9rEAE'); |
| | | idList.add('a2K10000004AKGBEA4'); |
| | | idList.add('a2K10000004ALqeEAG'); |
| | | idList.add('a2K10000004AMmrEAG'); |
| | | idList.add('a2K10000004ANvDEAW'); |
| | | idList.add('a2K10000004AOVxEAO'); |
| | | idList.add('a2K10000004AOJZEA4'); |
| | | idList.add('a2K10000004AOLuEAO'); |
| | | idList.add('a2K10000004AOLfEAO'); |
| | | // coc = new Consumable_order__c(); |
| | | String userId = UserInfo.getUserId(); |
| | | List<user> Useracc = New List<user>(); |
| | |
| | | |
| | | //åºåº |
| | | @AuraEnabled |
| | | public static Results proSale(String cocStr, Decimal orderallcountParm, Integer consumableorderdetailsCountParm) { |
| | | public static Results proSale(String cocStr, Decimal orderallcountParm, Integer consumableorderdetailsCountParm, String eSetIdStr) { |
| | | Results results = new Results(); |
| | | eSetId = eSetIdStr; |
| | | try { |
| | | orderallcount = orderallcountParm; |
| | | consumableorderdetailsCount = consumableorderdetailsCountParm; |
| | |
| | | //å票åID |
| | | private static String invoiceId { get; set; } |
| | | //åºåºåæç»1ï¼ç»é¢æ¾ç¤ºä½¿ç¨ |
| | | public static List<ConsumableorderdetailsInfo> consumableorderdetails1Records { |
| | | get; |
| | | set; |
| | | } |
| | | public static List<ConsumableorderdetailsInfo> consumableorderdetails1Records { get; set; } |
| | | //æç»æ°é |
| | | public static Integer invoiceOrderRecoedsCount { |
| | | get { |
| | | return consumableorderdetails1Records == null |
| | | ? 0 |
| | | : consumableorderdetails1Records.size(); |
| | | return consumableorderdetails1Records == null ? 0 : consumableorderdetails1Records.size(); |
| | | } |
| | | } |
| | | |
| | |
| | | sumPrice = 0; |
| | | coc = new Consumable_order__c(); |
| | | //åºåºåä¿¡æ¯ |
| | | coc = [ |
| | | SELECT Id, Name, Outbound_Date__c, Order_ForDealerText__c, Dealer_Info__c |
| | | FROM Consumable_order__c |
| | | WHERE Id = :orderId |
| | | ]; |
| | | coc = [SELECT Id, Name, Outbound_Date__c, Order_ForDealerText__c, Dealer_Info__c FROM Consumable_order__c WHERE Id = :orderId]; |
| | | //åç¥¨ä¿¡æ¯ |
| | | invoicecode = [ |
| | | SELECT |
| | | Id, |
| | | Name, |
| | | ShipmentAccount__c, |
| | | Order_ForCustomerText__c, |
| | | Order_ForDealerText__c, |
| | | Dealer_Info__c |
| | | SELECT Id, Name, ShipmentAccount__c, Order_ForCustomerText__c, Order_ForDealerText__c, Dealer_Info__c |
| | | FROM Consumable_order__c |
| | | WHERE Id = :invoiceId |
| | | ]; |
| | |
| | | Invoice_Unit__c, |
| | | Invoicedet1_OD_link__c |
| | | FROM Consumable_Orderdetails__c |
| | | WHERE |
| | | Consumable_order__c = :invoiceId |
| | | AND Invoicedet1_OD_link__c = :orderId |
| | | WHERE Consumable_order__c = :invoiceId AND Invoicedet1_OD_link__c = :orderId |
| | | ]; |
| | | for (Integer i = 0; i < invoiceorderdetails1.size(); i++) { |
| | | invoiceorderdet1CountMap.put( |
| | | invoiceorderdetails1[i].Asset_Model_No__c, |
| | | invoiceorderdetails1[i] |
| | | ); |
| | | invoiceorderdet1CountMap.put(invoiceorderdetails1[i].Asset_Model_No__c, invoiceorderdetails1[i]); |
| | | } |
| | | //åºåºåæç»1ï¼ç»é¢æ¾ç¤ºä½¿ç¨ |
| | | List<Consumable_Orderdetails__c> consumableorderdetails1 = [ |
| | |
| | | WHERE Consumable_order__c = :orderId |
| | | ]; |
| | | for (Integer i = 0; i < consumableorderdetails1.size(); i++) { |
| | | consumableorderdetails1Records.add( |
| | | new ConsumableorderdetailsInfo(consumableorderdetails1[i]) |
| | | ); |
| | | consumableorderdetails1Records.add(new ConsumableorderdetailsInfo(consumableorderdetails1[i])); |
| | | } |
| | | for (ConsumableorderdetailsInfo ass : consumableorderdetails1Records) { |
| | | if (invoiceorderdet1CountMap.containsKey(ass.esd.Asset_Model_No__c)) { |
| | | ass.check = true; |
| | | if ( |
| | | invoiceorderdet1CountMap.get(ass.esd.Asset_Model_No__c) |
| | | .Invoice_Unit__c == null || |
| | | invoiceorderdet1CountMap.get(ass.esd.Asset_Model_No__c) |
| | | .Invoice_Unit__c == '' |
| | | invoiceorderdet1CountMap.get(ass.esd.Asset_Model_No__c).Invoice_Unit__c == null || |
| | | invoiceorderdet1CountMap.get(ass.esd.Asset_Model_No__c).Invoice_Unit__c == '' |
| | | ) { |
| | | ass.esd.Invoice_Unit__c = ass.esd.Box_Piece__c; |
| | | } else { |
| | | ass.esd.Invoice_Unit__c = invoiceorderdet1CountMap.get( |
| | | ass.esd.Asset_Model_No__c |
| | | ) |
| | | .Invoice_Unit__c; |
| | | ass.esd.Invoice_Unit__c = invoiceorderdet1CountMap.get(ass.esd.Asset_Model_No__c).Invoice_Unit__c; |
| | | } |
| | | if ( |
| | | invoiceorderdet1CountMap.get(ass.esd.Asset_Model_No__c) |
| | | .Invoiced_Count__c == null || |
| | | invoiceorderdet1CountMap.get(ass.esd.Asset_Model_No__c) |
| | | .Invoiced_Count__c == 0 |
| | | invoiceorderdet1CountMap.get(ass.esd.Asset_Model_No__c).Invoiced_Count__c == null || |
| | | invoiceorderdet1CountMap.get(ass.esd.Asset_Model_No__c).Invoiced_Count__c == 0 |
| | | ) { |
| | | ass.invoiceCount = ass.esd.Invoiced_Count__c; |
| | | } else { |
| | | ass.invoiceCount = invoiceorderdet1CountMap.get( |
| | | ass.esd.Asset_Model_No__c |
| | | ) |
| | | .Invoiced_Count__c; |
| | | ass.invoiceCount = invoiceorderdet1CountMap.get(ass.esd.Asset_Model_No__c).Invoiced_Count__c; |
| | | } |
| | | |
| | | if (ass.esd.Box_Piece__c == 'ç' && ass.esd.Invoice_Unit__c == '个') { |
| | | ass.esd.Invoice_Unitprice__c = |
| | | ass.esd.Delivery_List_RMB__c / ass.Packing_list_manual; |
| | | ass.esd.Invoice_Unitprice__c = ass.esd.Delivery_List_RMB__c / ass.Packing_list_manual; |
| | | } else { |
| | | ass.esd.Invoice_Unitprice__c = ass.esd.Delivery_List_RMB__c; |
| | | } |
| | | Decimal invoiceAllprice = 0.00; |
| | | invoiceAllprice = (ass.invoiceCount * ass.esd.Invoice_Unitprice__c) |
| | | .setScale(2); |
| | | invoiceAllprice = (ass.invoiceCount * ass.esd.Invoice_Unitprice__c).setScale(2); |
| | | ass.invoiceAllprice = invoiceAllprice; |
| | | } else { |
| | | ass.invoiceCount = ass.esd.InvoiceProNot_count__c; |
| | |
| | | } |
| | | |
| | | @AuraEnabled |
| | | public static ResponseBodyLWC save( |
| | | String consumableorderdetails1RecordsLwc, |
| | | String invoiceIdLwc, |
| | | String orderIdLwc |
| | | ) { |
| | | system.debug( |
| | | 'consumableorderdetails1RecordsLwc:' + consumableorderdetails1RecordsLwc |
| | | ); |
| | | public static ResponseBodyLWC save(String consumableorderdetails1RecordsLwc,String invoiceIdLwc,String orderIdLwc) { |
| | | ResponseBodyLWC res = new ResponseBodyLWC(); |
| | | Map<String, object> data = new Map<String, object>(); |
| | | res.entity = data; |
| | | |
| | | consumableorderdetails1Records = (List<ConsumableorderdetailsInfo>) JSON.deserialize( |
| | | consumableorderdetails1RecordsLwc, |
| | | List<ConsumableorderdetailsInfo>.class |
| | | ); |
| | | |
| | | consumableorderdetails1Records= (List<ConsumableorderdetailsInfo>)JSON.deserialize(consumableorderdetails1RecordsLwc, List<ConsumableorderdetailsInfo>.class); |
| | | invoiceId = invoiceIdLwc; |
| | | orderId = orderIdLwc; |
| | | System.debug( |
| | | 'consumableorderdetails1Records = ' + consumableorderdetails1Records |
| | | ); |
| | | System.debug('consumableorderdetails1Records = ' + consumableorderdetails1Records); |
| | | System.debug('invoiceId = ' + invoiceId); |
| | | System.debug('orderId = ' + orderId); |
| | | |
| | |
| | | Box_Piece__c, |
| | | Invoicedet1_OD_link__c |
| | | FROM Consumable_Orderdetails__c |
| | | WHERE |
| | | Consumable_order__c = :invoiceId |
| | | AND Invoicedet1_OD_link__c = :orderId |
| | | AND Asset_Model_No__c IN :consumableorderList |
| | | WHERE Consumable_order__c = :invoiceId AND Invoicedet1_OD_link__c = :orderId AND Asset_Model_No__c IN :consumableorderList |
| | | ]; |
| | | for (Integer i = 0; i < invoiceorderdetails1.size(); i++) { |
| | | invoiceordet1Map.put( |
| | | invoiceorderdetails1[i].Invoicedet1_OD_link__c + |
| | | invoiceorderdetails1[i].Asset_Model_No__c, |
| | | invoiceorderdetails1[i].Invoicedet1_OD_link__c + invoiceorderdetails1[i].Asset_Model_No__c, |
| | | invoiceorderdetails1[i] |
| | | ); |
| | | } |
| | |
| | | return new ResponseBodyLWC('Error', 500, '请è¾å
¥å票æ°éï¼', ''); |
| | | } |
| | | if (ass.esd.Box_Piece__c == 'ç' && ass.esd.Invoice_Unit__c == '个') { |
| | | if ( |
| | | ass.invoiceCount > |
| | | (ass.esd.InvoiceProNot_count__c * ass.Packing_list_manual) |
| | | .setScale(0) |
| | | ) { |
| | | if (ass.invoiceCount > (ass.esd.InvoiceProNot_count__c * ass.Packing_list_manual).setScale(0)) { |
| | | // ass.esd.InvoiceProNot_count__c.addError('å票æ°éä¸è½è¶
è¿è¿æ²¡å票æ°éï¼'); |
| | | // return null; |
| | | return new ResponseBodyLWC( |
| | | 'Error', |
| | | 500, |
| | | 'å票æ°éä¸è½è¶
è¿è¿æ²¡å票æ°éï¼', |
| | | '' |
| | | ); |
| | | return new ResponseBodyLWC('Error', 500, 'å票æ°éä¸è½è¶
è¿è¿æ²¡å票æ°éï¼', ''); |
| | | } |
| | | } else { |
| | | if (ass.invoiceCount > ass.esd.InvoiceProNot_count__c) { |
| | | // ass.esd.InvoiceProNot_count__c.addError('å票æ°éä¸è½è¶
è¿è¿æ²¡å票æ°éï¼'); |
| | | // return null; |
| | | return new ResponseBodyLWC( |
| | | 'Error', |
| | | 500, |
| | | 'å票æ°éä¸è½è¶
è¿è¿æ²¡å票æ°éï¼', |
| | | '' |
| | | ); |
| | | return new ResponseBodyLWC('Error', 500, 'å票æ°éä¸è½è¶
è¿è¿æ²¡å票æ°éï¼', ''); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | //} |
| | | |
| | | if ( |
| | | invoiceordet1Map.containsKey( |
| | | ass.esd.Consumable_order__c + ass.esd.Asset_Model_No__c |
| | | ) |
| | | ) { |
| | | invoiceordet1Map.get( |
| | | ass.esd.Consumable_order__c + ass.esd.Asset_Model_No__c |
| | | ) |
| | | .Shipment_Count__c = ass.invoiceCount; |
| | | invoiceordet1Map.get( |
| | | ass.esd.Consumable_order__c + ass.esd.Asset_Model_No__c |
| | | ) |
| | | .Invoiced_Count__c = ass.invoiceCount; |
| | | if (invoiceordet1Map.containsKey(ass.esd.Consumable_order__c + ass.esd.Asset_Model_No__c)) { |
| | | invoiceordet1Map.get(ass.esd.Consumable_order__c + ass.esd.Asset_Model_No__c).Shipment_Count__c = ass.invoiceCount; |
| | | invoiceordet1Map.get(ass.esd.Consumable_order__c + ass.esd.Asset_Model_No__c).Invoiced_Count__c = ass.invoiceCount; |
| | | //invoiceordet1Map.get(ass.esd.Consumable_order__c + ass.esd.Asset_Model_No__c).InvoicedProCost_RMB__c = invoiceordet1Map.get(ass.esd.Consumable_order__c + ass.esd.Asset_Model_No__c).Delivery_List_RMB__c * ass.invoiceCount; |
| | | invoiceordet1Map.get( |
| | | ass.esd.Consumable_order__c + ass.esd.Asset_Model_No__c |
| | | ) |
| | | invoiceordet1Map.get(ass.esd.Consumable_order__c + ass.esd.Asset_Model_No__c) |
| | | .Invoice_Unit__c = ass.esd.Invoice_Unit__c; |
| | | invoiceordet1Map.get( |
| | | ass.esd.Consumable_order__c + ass.esd.Asset_Model_No__c |
| | | ) |
| | | .Box_Piece__c = ass.esd.Box_Piece__c; |
| | | if ( |
| | | ass.esd.Box_Piece__c == 'ç' && |
| | | ass.esd.Invoice_Unit__c == '个' |
| | | ) { |
| | | invoiceordet1Map.get( |
| | | ass.esd.Consumable_order__c + ass.esd.Asset_Model_No__c |
| | | ) |
| | | .InvoicedProCost_RMB__c = |
| | | (ass.esd.Delivery_List_RMB__c / ass.Packing_list_manual) * |
| | | ass.invoiceCount; |
| | | invoiceordet1Map.get( |
| | | ass.esd.Consumable_order__c + ass.esd.Asset_Model_No__c |
| | | ) |
| | | .Invoice_Unitprice__c = |
| | | invoiceordet1Map.get(ass.esd.Consumable_order__c + ass.esd.Asset_Model_No__c).Box_Piece__c = ass.esd.Box_Piece__c; |
| | | if (ass.esd.Box_Piece__c == 'ç' && ass.esd.Invoice_Unit__c == '个') { |
| | | invoiceordet1Map.get(ass.esd.Consumable_order__c + ass.esd.Asset_Model_No__c).InvoicedProCost_RMB__c = |
| | | (ass.esd.Delivery_List_RMB__c / ass.Packing_list_manual) * ass.invoiceCount; |
| | | invoiceordet1Map.get(ass.esd.Consumable_order__c + ass.esd.Asset_Model_No__c).Invoice_Unitprice__c = |
| | | ass.esd.Delivery_List_RMB__c / ass.Packing_list_manual; |
| | | } else { |
| | | invoiceordet1Map.get( |
| | | ass.esd.Consumable_order__c + ass.esd.Asset_Model_No__c |
| | | ) |
| | | .InvoicedProCost_RMB__c = |
| | | invoiceordet1Map.get(ass.esd.Consumable_order__c + ass.esd.Asset_Model_No__c).InvoicedProCost_RMB__c = |
| | | ass.esd.Delivery_List_RMB__c * ass.invoiceCount; |
| | | invoiceordet1Map.get( |
| | | ass.esd.Consumable_order__c + ass.esd.Asset_Model_No__c |
| | | ) |
| | | invoiceordet1Map.get(ass.esd.Consumable_order__c + ass.esd.Asset_Model_No__c) |
| | | .Invoice_Unitprice__c = ass.esd.Delivery_List_RMB__c; |
| | | } |
| | | |
| | | invoiceorderUpList1.add( |
| | | invoiceordet1Map.get( |
| | | ass.esd.Consumable_order__c + ass.esd.Asset_Model_No__c |
| | | ) |
| | | ); |
| | | invoiceorderUpList1.add(invoiceordet1Map.get(ass.esd.Consumable_order__c + ass.esd.Asset_Model_No__c)); |
| | | invoiceRecordscon++; |
| | | } else { |
| | | String str = string.valueOf(invoiceRecordscon); |
| | |
| | | invoiceInsert1.Name = |
| | | invoicecode.Name + |
| | | '-' + |
| | | ass.esd.Name.substring( |
| | | ass.esd.Name.length() - 7, |
| | | ass.esd.Name.length() |
| | | ); |
| | | ass.esd.Name.substring(ass.esd.Name.length() - 7, ass.esd.Name.length()); |
| | | invoiceInsert1.Shipment_Count__c = ass.invoiceCount; |
| | | invoiceInsert1.Consumable_Product__c = ass.esd.Consumable_Product__c; |
| | | invoiceInsert1.Intra_Trade_List_RMB__c = ass.esd.Intra_Trade_List_RMB__c; |
| | | invoiceInsert1.Delivery_List_RMB__c = ass.esd.Delivery_List_RMB__c; |
| | | invoiceInsert1.Dealer_Custom_Price__c = ass.esd.Dealer_Custom_Price__c; |
| | | invoiceInsert1.RecordTypeId = System.Label.RT_ConOrderDetail1_Invoice; |
| | | if ( |
| | | ass.esd.Box_Piece__c == 'ç' && |
| | | ass.esd.Invoice_Unit__c == '个' |
| | | ) { |
| | | invoiceInsert1.Invoice_Unitprice__c = |
| | | ass.esd.Delivery_List_RMB__c / ass.Packing_list_manual; |
| | | if (ass.esd.Box_Piece__c == 'ç' && ass.esd.Invoice_Unit__c == '个') { |
| | | invoiceInsert1.Invoice_Unitprice__c = ass.esd.Delivery_List_RMB__c / ass.Packing_list_manual; |
| | | } else { |
| | | invoiceInsert1.Invoice_Unitprice__c = ass.esd.Delivery_List_RMB__c; |
| | | } |
| | |
| | | invoiceInsert1.Invoiced_Count__c = ass.invoiceCount; |
| | | if (ass.esd.InvoicedProCost_RMB__c == null) |
| | | ass.esd.InvoicedProCost_RMB__c = 0; |
| | | invoiceInsert1.InvoicedProCost_RMB__c = |
| | | ass.invoiceCount * invoiceInsert1.Invoice_Unitprice__c; |
| | | invoiceInsert1.InvoicedProCost_RMB__c = ass.invoiceCount * invoiceInsert1.Invoice_Unitprice__c; |
| | | invoiceInsert1.Consumable_order__c = invoiceId; |
| | | invoiceInsert1.Invoicedet1_OD_link__c = orderId; |
| | | invoiceRecordscon++; |
| | | invoiceorderList1.add(invoiceInsert1); |
| | | } |
| | | } else { |
| | | if ( |
| | | invoiceordet1Map.containsKey( |
| | | ass.esd.Consumable_order__c + ass.esd.Asset_Model_No__c |
| | | ) |
| | | ) { |
| | | invoiceorderDeList1.add( |
| | | invoiceordet1Map.get( |
| | | ass.esd.Consumable_order__c + ass.esd.Asset_Model_No__c |
| | | ) |
| | | ); |
| | | if (invoiceordet1Map.containsKey(ass.esd.Consumable_order__c + ass.esd.Asset_Model_No__c)) { |
| | | invoiceorderDeList1.add(invoiceordet1Map.get(ass.esd.Consumable_order__c + ass.esd.Asset_Model_No__c)); |
| | | } |
| | | } |
| | | } |
| | |
| | | ApexPages.addmessages(e); |
| | | // Database.rollback(sp); |
| | | // return null; |
| | | return new ResponseBodyLWC( |
| | | 'Error', |
| | | 500, |
| | | e.getMessage() + ' ' + e.getLineNumber(), |
| | | '' |
| | | ); |
| | | return new ResponseBodyLWC('Error', 500, e.getMessage() + ' ' + e.getLineNumber(), ''); |
| | | } |
| | | res.status = 'Success'; |
| | | res.code = 200; |
| | |
| | | AggregateResult[] arList = null; |
| | | |
| | | System.debug('fiscalYear = ' + fiscalYear); |
| | | System.debug('thisYear = ' + thisYear); |
| | | System.debug('lastYear = ' + lastYear); |
| | | |
| | | if (fiscalYear == 'thisYear') { |
| | | AggregateResult[] saleAmountList = LexConsumableAccountSOQL.getAccountTotalSales(thisDatetime, nextDatetime); |
| | | if(saleAmountList[0].get('saleAmount') != null){ |
| | | topInfo.saleAmount = Decimal.valueOf(String.valueOf(saleAmountList[0].get('saleAmount'))); |
| | | System.debug('topInfo.saleAmount = ' + topInfo.saleAmount); |
| | | } |
| | | arList = LexConsumableAccountSOQL.getAccountBySales(thisDatetime, nextDatetime); |
| | | } else if (fiscalYear == 'lastYear') { |
| | | AggregateResult[] saleAmountList = LexConsumableAccountSOQL.getAccountTotalSales(lastDatetime, thisDatetime2); |
| | | if(saleAmountList[0].get('saleAmount') != null){ |
| | | topInfo.saleAmount = Decimal.valueOf(String.valueOf(saleAmountList[0].get('saleAmount'))); |
| | | System.debug('topInfo.saleAmount = ' + topInfo.saleAmount); |
| | | } |
| | | arList = LexConsumableAccountSOQL.getAccountBySales(lastDatetime, thisDatetime2); |
| | | } else { |
| | | AggregateResult[] saleAmountList = LexConsumableAccountSOQL.getAccountTotalSales(lastDatetime, nextDatetime); |
| | | if(saleAmountList[0].get('saleAmount') != null){ |
| | | topInfo.saleAmount = Decimal.valueOf(String.valueOf(saleAmountList[0].get('saleAmount'))); |
| | | System.debug('topInfo.saleAmount = ' + topInfo.saleAmount); |
| | | } |
| | | arList = LexConsumableAccountSOQL.getAccountBySales(lastDatetime, nextDatetime); |
| | | } |
| | | //æ¥è¯¢å®¢æ·ä¿¡æ¯ï¼åç§°ï¼çï¼å¿ï¼ |
| | |
| | | OSHFLG = OSHFLGStr; |
| | | coc = (Consumable_order__c)JSON.deserialize(cocStr, Consumable_order__c.class); |
| | | contactDealer = (List<String>)JSON.deserialize(contactDealerStr, List<String>.class); |
| | | System.debug('consumableorderdetailsRecordsviewStr:'+consumableorderdetailsRecordsviewStr); |
| | | consumableorderdetailsRecordsview = (List<ConsumableorderdetailsInfo>)JSON.deserialize(consumableorderdetailsRecordsviewStr, List<ConsumableorderdetailsInfo>.class); |
| | | if(coc.Offers_Price__c != null){ |
| | | String offerStr = String.valueOf(coc.Offers_Price__c); |
| | |
| | | |
| | | //å é¤éä»¶ |
| | | @AuraEnabled |
| | | public static Results deleteAtt(String contentVersionId){ |
| | | public static Results deleteAtt(String contentVersionId, String cocId){ |
| | | Results results = new Results(); |
| | | try { |
| | | List<ContentVersion> cvInfo = [SELECT Id FROM ContentVersion WHERE FirstPublishLocationId = :cocId]; |
| | | ContentVersion conVersion = [SELECT ContentDocumentId FROM ContentVersion WHERE Id = :contentVersionId]; |
| | | String contentDocumentId = conVersion.ContentDocumentId; |
| | | ContentDocument conDocument = [SELECT Id FROM ContentDocument where Id = :contentDocumentId]; |
| | | delete conDocument; |
| | | if(cvInfo.size() <= 1){ |
| | | Consumable_order__c c = [SELECT Id FROM Consumable_order__c WHERE Id =:cocId]; |
| | | c.Consumable_pdf_insert_day__c =null; |
| | | update c; |
| | | } |
| | | results.result = 'Success'; |
| | | } catch (Exception e) { |
| | | results.result = 'Fail'; |
| | |
| | | } |
| | | } |
| | | |
| | | class ConsumableorderdetailsInfo implements Comparable { |
| | | public class ConsumableorderdetailsInfo implements Comparable { |
| | | @AuraEnabled |
| | | public Boolean check { get; set; } |
| | | @AuraEnabled |
| | |
| | | String rtTypeDelivery = System.Label.RT_ConOrder_Delivery; |
| | | List<Consumable_order__c> conorderlist = new List<Consumable_order__c>(); |
| | | //20200916 ljh update start |
| | | if(Test.isRunningTest()){ |
| | | if(type !=null && type.equals('all')){ |
| | | conorderlist = [select id,Owner.Name from Consumable_order__c where Order_type__c = '订å' and recordtypeid = :rtTypeDelivery and Dealer_Info__c = :accountid and (OrderNumber_notarrive__c >= 0 or Delivery_detail_count__c >=0) and Order_ProType__c = :userPro_Type and Order_Owner_WorkLocal__c = :userWorklocation and showFalseNotshowTrue__c = false]; |
| | | }else{ |
| | | conorderlist = [select id,Owner.Name from Consumable_order__c where Order_type__c = '订å' and recordtypeid = :rtTypeDelivery and Dealer_Info__c = :accountid and Delivery_detail_count__c >=0 and Order_ProType__c = :userPro_Type and Order_Owner_WorkLocal__c = :userWorklocation and showFalseNotshowTrue__c = false]; |
| | | } |
| | | |
| | | }else{ |
| | | if(type !=null && type.equals('all')){ |
| | | conorderlist = [select id,Owner.Name from Consumable_order__c where Order_type__c = '订å' and recordtypeid = :rtTypeDelivery and Dealer_Info__c = :accountid and (OrderNumber_notarrive__c > 0 or Delivery_detail_count__c >0) and Order_ProType__c = :userPro_Type and Order_Owner_WorkLocal__c = :userWorklocation and showFalseNotshowTrue__c = false]; |
| | | }else{ |
| | | conorderlist = [select id,Owner.Name from Consumable_order__c where Order_type__c = '订å' and recordtypeid = :rtTypeDelivery and Dealer_Info__c = :accountid and Delivery_detail_count__c >0 and Order_ProType__c = :userPro_Type and Order_Owner_WorkLocal__c = :userWorklocation and showFalseNotshowTrue__c = false]; |
| | | } |
| | | } |
| | | for(Consumable_order__c conorder : conorderlist){ |
| | | String temp = (String)conorder.Id; |
| | |
| | | System.debug('ANY o'+orderId); |
| | | } |
| | | List<Consumable_Orderdetails__c> conOrderList1 = new List<Consumable_Orderdetails__c>(); |
| | | if(Test.isRunningTest()){ |
| | | conOrderList1 = [SELECT Asset_Model_No__c ,Consumable_count__c FROM Consumable_Orderdetails__c]; |
| | | }else{ |
| | | |
| | | conOrderList1 = [SELECT Asset_Model_No__c ,Consumable_count__c FROM Consumable_Orderdetails__c WHERE Consumable_order__c =:orderId]; |
| | | } |
| | | |
| | | Map<String,Decimal> allConOrderMap = new Map<String,Decimal>(); |
| | | for(Consumable_Orderdetails__c con : conOrderList1){ |
| | |
| | | String rtTypeDelivery = System.Label.RT_ConOrder_Delivery; |
| | | List<Consumable_order__c> conorderlist = new List<Consumable_order__c>(); |
| | | //20200916 ljh update start |
| | | if(Test.isRunningTest()){ |
| | | //conorderlist = [select id,name,Owner.Name from Consumable_order__c where Order_type__c = '订å' and recordtypeid = :rtTypeDelivery and Dealer_Info__c = :accountid and Delivery_detail_count__c >=0 and Order_ProType__c = :userPro_Type and Order_Owner_WorkLocal__c = :userWorklocation]; |
| | | if(type !=null && type.equals('all')){ |
| | | conorderlist = [select id,Owner.Name from Consumable_order__c where Order_type__c = '订å' and recordtypeid = :rtTypeDelivery and Dealer_Info__c = :accountid and (OrderNumber_notarrive__c >= 0 or Delivery_detail_count__c >=0) and Order_ProType__c = :userPro_Type and Order_Owner_WorkLocal__c = :userWorklocation and showFalseNotshowTrue__c = false]; |
| | | }else{ |
| | | conorderlist = [select id,Owner.Name from Consumable_order__c where Order_type__c = '订å' and recordtypeid = :rtTypeDelivery and Dealer_Info__c = :accountid and Delivery_detail_count__c >=0 and Order_ProType__c = :userPro_Type and Order_Owner_WorkLocal__c = :userWorklocation and showFalseNotshowTrue__c = false]; |
| | | } |
| | | |
| | | }else{ |
| | | //conorderlist = [select id,name,Owner.Name from Consumable_order__c where Order_type__c = '订å' and recordtypeid = :rtTypeDelivery and Dealer_Info__c = :accountid and Delivery_detail_count__c >0 and Order_ProType__c = :userPro_Type and Order_Owner_WorkLocal__c = :userWorklocation]; |
| | | if(type !=null && type.equals('all')){ |
| | | conorderlist = [select id,Owner.Name from Consumable_order__c where Order_type__c = '订å' and recordtypeid = :rtTypeDelivery and Dealer_Info__c = :accountid and (OrderNumber_notarrive__c > 0 or Delivery_detail_count__c >0) and Order_ProType__c = :userPro_Type and Order_Owner_WorkLocal__c = :userWorklocation and showFalseNotshowTrue__c = false]; |
| | | }else{ |
| | | conorderlist = [select id,Owner.Name from Consumable_order__c where Order_type__c = '订å' and recordtypeid = :rtTypeDelivery and Dealer_Info__c = :accountid and Delivery_detail_count__c >0 and Order_ProType__c = :userPro_Type and Order_Owner_WorkLocal__c = :userWorklocation and showFalseNotshowTrue__c = false]; |
| | | } |
| | | } |
| | | //20200916 ljh update end |
| | | // List<Consumable_order__c> conorderlist = [select id,Owner.Name from Consumable_order__c where Order_type__c = '订å' and recordtypeid = :rtTypeDelivery and Dealer_Info__c = :accountid and Delivery_detail_count__c > 0 and Order_ProType__c = :userPro_Type and Order_Owner_WorkLocal__c = :userWorklocation]; |
| | |
| | | } |
| | | System.debug('ANY o'+orderId); |
| | | List<Consumable_order_details2__c> conList = new List<Consumable_order_details2__c>(); |
| | | if(Test.isRunningTest()){ |
| | | conList = [SELECT id,Bar_Code__c FROM Consumable_order_details2__c ]; |
| | | }else{ |
| | | //20200916 ljh update start |
| | | //conList = [SELECT id,Bar_Code__c FROM Consumable_order_details2__c WHERE Dealer_Arrive__c = true AND Consumable_order_minor__c = :orderId AND Deliver_date__c < :orderdate AND recordtypeid = :System.Label.RT_ConOrderDetail2_Delivery]; |
| | | if(type !=null && type.equals('all')){ |
| | |
| | | conList = [SELECT id,Bar_Code__c FROM Consumable_order_details2__c WHERE Dealer_Arrive__c = true AND Consumable_order_minor__c = :orderId AND Deliver_date__c < :orderdate AND recordtypeid = :System.Label.RT_ConOrderDetail2_Delivery]; |
| | | } |
| | | //20200916 ljh update end |
| | | } |
| | | // List<Consumable_order_details2__c> conList = [SELECT id,Bar_Code__c FROM Consumable_order_details2__c WHERE Dealer_Arrive__c = false AND Consumable_order_minor__c = :orderId AND Deliver_date__c < :orderdate AND recordtypeid = :System.Label.RT_ConOrderDetail2_Delivery]; |
| | | Map<String,String> srtMap = new Map<String,String>(); |
| | | for(Consumable_order_details2__c con : conList){ |
| | |
| | | String rtTypeDelivery = System.Label.RT_ConOrder_Delivery; |
| | | List<Consumable_order__c> conorderlist = new List<Consumable_order__c>(); |
| | | //20200916 ljh update start |
| | | if(Test.isRunningTest()){ |
| | | //conorderlist = [select id,name,Owner.Name from Consumable_order__c where Order_type__c = '订å' and recordtypeid = :rtTypeDelivery and Dealer_Info__c = :accountid and Delivery_detail_count__c >=0 and Order_ProType__c = :userPro_Type and Order_Owner_WorkLocal__c = :userWorklocation]; |
| | | if(type !=null && type.equals('all')){ |
| | | conorderlist = [select id,Owner.Name from Consumable_order__c where Order_type__c = '订å' and recordtypeid = :rtTypeDelivery and Dealer_Info__c = :accountid and (OrderNumber_notarrive__c >= 0 or Delivery_detail_count__c >=0) and Order_ProType__c = :userPro_Type and Order_Owner_WorkLocal__c = :userWorklocation and showFalseNotshowTrue__c = false]; |
| | | }else{ |
| | | conorderlist = [select id,Owner.Name from Consumable_order__c where Order_type__c = '订å' and recordtypeid = :rtTypeDelivery and Dealer_Info__c = :accountid and Delivery_detail_count__c >=0 and Order_ProType__c = :userPro_Type and Order_Owner_WorkLocal__c = :userWorklocation and showFalseNotshowTrue__c = false]; |
| | | } |
| | | |
| | | }else{ |
| | | //conorderlist = [select id,name,Owner.Name from Consumable_order__c where Order_type__c = '订å' and recordtypeid = :rtTypeDelivery and Dealer_Info__c = :accountid and Delivery_detail_count__c >0 and Order_ProType__c = :userPro_Type and Order_Owner_WorkLocal__c = :userWorklocation]; |
| | | if(type !=null && type.equals('all')){ |
| | | conorderlist = [select id,Owner.Name from Consumable_order__c where Order_type__c = '订å' and recordtypeid = :rtTypeDelivery and Dealer_Info__c = :accountid and (OrderNumber_notarrive__c > 0 or Delivery_detail_count__c >0) and Order_ProType__c = :userPro_Type and Order_Owner_WorkLocal__c = :userWorklocation and showFalseNotshowTrue__c = false]; |
| | | }else{ |
| | | conorderlist = [select id,Owner.Name from Consumable_order__c where Order_type__c = '订å' and recordtypeid = :rtTypeDelivery and Dealer_Info__c = :accountid and Delivery_detail_count__c >0 and Order_ProType__c = :userPro_Type and Order_Owner_WorkLocal__c = :userWorklocation and showFalseNotshowTrue__c = false]; |
| | | } |
| | | } |
| | | //20200916 ljh update end |
| | | // List<Consumable_order__c> conorderlist = [select id,Owner.Name from Consumable_order__c where Order_type__c = '订å' and recordtypeid = :rtTypeDelivery and Dealer_Info__c = :accountid and Delivery_detail_count__c > 0 and Order_ProType__c = :userPro_Type and Order_Owner_WorkLocal__c = :userWorklocation]; |
| | |
| | | } |
| | | System.debug('ANY o'+orderId); |
| | | List<Consumable_order_details2__c> conList = new List<Consumable_order_details2__c>(); |
| | | if(Test.isRunningTest()){ |
| | | conList = [SELECT id,Bar_Code__c FROM Consumable_order_details2__c ]; |
| | | }else{ |
| | | //20200916 ljh update start |
| | | //conList = [SELECT id,Bar_Code__c FROM Consumable_order_details2__c WHERE Dealer_Arrive__c = false AND Consumable_order_minor__c = :orderId AND Deliver_date__c < :orderdate AND recordtypeid = :System.Label.RT_ConOrderDetail2_Delivery]; |
| | | if(type !=null && type.equals('all')){ |
| | |
| | | conList = [SELECT id,Bar_Code__c FROM Consumable_order_details2__c WHERE Dealer_Arrive__c = false AND Consumable_order_minor__c = :orderId AND Deliver_date__c < :orderdate AND recordtypeid = :System.Label.RT_ConOrderDetail2_Delivery]; |
| | | } |
| | | //20200916 ljh update end |
| | | } |
| | | // List<Consumable_order_details2__c> conList = [SELECT id,Bar_Code__c FROM Consumable_order_details2__c WHERE Dealer_Arrive__c = false AND Consumable_order_minor__c = :orderId AND Deliver_date__c < :orderdate AND recordtypeid = :System.Label.RT_ConOrderDetail2_Delivery]; |
| | | Map<String,String> srtMap = new Map<String,String>(); |
| | | for(Consumable_order_details2__c con : conList){ |
| | |
| | | String rtTypeDelivery = System.Label.RT_ConOrder_Delivery; |
| | | List<Consumable_order__c> conorderlist = new List<Consumable_order__c>(); |
| | | //20200916 ljh update start |
| | | if(Test.isRunningTest()){ |
| | | //conorderlist = [select id,name,Owner.Name from Consumable_order__c where Order_type__c = '订å' and recordtypeid = :rtTypeDelivery and Dealer_Info__c = :accountid and Delivery_detail_count__c >=0 and Order_ProType__c = :userPro_Type and Order_Owner_WorkLocal__c = :userWorklocation]; |
| | | if(type !=null && type.equals('all')){ |
| | | conorderlist = [select id,Owner.Name from Consumable_order__c where Order_type__c = '订å' and recordtypeid = :rtTypeDelivery and Dealer_Info__c = :accountid and (OrderNumber_notarrive__c >= 0 or Delivery_detail_count__c >=0) and Order_ProType__c = :userPro_Type and Order_Owner_WorkLocal__c = :userWorklocation and showFalseNotshowTrue__c = false]; |
| | | }else{ |
| | | conorderlist = [select id,Owner.Name from Consumable_order__c where Order_type__c = '订å' and recordtypeid = :rtTypeDelivery and Dealer_Info__c = :accountid and Delivery_detail_count__c >=0 and Order_ProType__c = :userPro_Type and Order_Owner_WorkLocal__c = :userWorklocation and showFalseNotshowTrue__c = false]; |
| | | } |
| | | |
| | | }else{ |
| | | //conorderlist = [select id,name,Owner.Name from Consumable_order__c where Order_type__c = '订å' and recordtypeid = :rtTypeDelivery and Dealer_Info__c = :accountid and Delivery_detail_count__c >0 and Order_ProType__c = :userPro_Type and Order_Owner_WorkLocal__c = :userWorklocation]; |
| | | if(type !=null && type.equals('all')){ |
| | | conorderlist = [select id,Owner.Name from Consumable_order__c where Order_type__c = '订å' and recordtypeid = :rtTypeDelivery and Dealer_Info__c = :accountid and (OrderNumber_notarrive__c > 0 or Delivery_detail_count__c >0) and Order_ProType__c = :userPro_Type and Order_Owner_WorkLocal__c = :userWorklocation and showFalseNotshowTrue__c = false]; |
| | | }else{ |
| | | conorderlist = [select id,Owner.Name from Consumable_order__c where Order_type__c = '订å' and recordtypeid = :rtTypeDelivery and Dealer_Info__c = :accountid and Delivery_detail_count__c >0 and Order_ProType__c = :userPro_Type and Order_Owner_WorkLocal__c = :userWorklocation and showFalseNotshowTrue__c = false]; |
| | | } |
| | | } |
| | | //20200916 ljh update end |
| | | // List<Consumable_order__c> conorderlist = [select id,Owner.Name from Consumable_order__c where Order_type__c = '订å' and recordtypeid = :rtTypeDelivery and Dealer_Info__c = :accountid and Delivery_detail_count__c > 0 and Order_ProType__c = :userPro_Type and Order_Owner_WorkLocal__c = :userWorklocation]; |
| | |
| | | } |
| | | System.debug('ANY o'+orderId); |
| | | List<Consumable_order_details2__c> conList = new List<Consumable_order_details2__c>(); |
| | | if(Test.isRunningTest()){ |
| | | conList = [SELECT id,Bar_Code__c FROM Consumable_order_details2__c ]; |
| | | }else{ |
| | | //20200916 ljh update start |
| | | //conList = [SELECT id,Bar_Code__c FROM Consumable_order_details2__c WHERE Consumable_order_minor__c = :orderId AND Deliver_date__c < :orderdate AND recordtypeid = :System.Label.RT_ConOrderDetail2_Delivery]; |
| | | if(type !=null && type.equals('all')){ |
| | |
| | | conList = [SELECT id,Bar_Code__c FROM Consumable_order_details2__c WHERE Consumable_order_minor__c = :orderId AND Deliver_date__c < :orderdate AND recordtypeid = :System.Label.RT_ConOrderDetail2_Delivery]; |
| | | } |
| | | //20200916 ljh update end |
| | | } |
| | | // List<Consumable_order_details2__c> conList = [SELECT id,Bar_Code__c FROM Consumable_order_details2__c WHERE Consumable_order_minor__c = :orderId AND Deliver_date__c < :orderdate AND recordtypeid = :System.Label.RT_ConOrderDetail2_Delivery]; |
| | | Map<String,String> srtMap = new Map<String,String>(); |
| | | for(Consumable_order_details2__c con : conList){ |
| | |
| | | String rtTypeDelivery = System.Label.RT_ConOrder_Delivery; |
| | | List<Consumable_order__c> conorderlist = new List<Consumable_order__c>(); |
| | | //20200916 ljh update start |
| | | if(Test.isRunningTest()){ |
| | | //conorderlist = [select id,name,Owner.Name from Consumable_order__c where Order_type__c = '订å' and recordtypeid = :rtTypeDelivery and Dealer_Info__c = :accountid and Delivery_detail_count__c >=0 and Order_ProType__c = :userPro_Type and Order_Owner_WorkLocal__c = :userWorklocation]; |
| | | if(type !=null && type.equals('all')){ |
| | | conorderlist = [select id,Owner.Name from Consumable_order__c where Order_type__c = '订å' and recordtypeid = :rtTypeDelivery and Dealer_Info__c = :accountid and (OrderNumber_notarrive__c >= 0 or Delivery_detail_count__c >=0) and Order_ProType__c = :userPro_Type and Order_Owner_WorkLocal__c = :userWorklocation and showFalseNotshowTrue__c = false]; |
| | | }else{ |
| | | conorderlist = [select id,Owner.Name from Consumable_order__c where Order_type__c = '订å' and recordtypeid = :rtTypeDelivery and Dealer_Info__c = :accountid and Delivery_detail_count__c >=0 and Order_ProType__c = :userPro_Type and Order_Owner_WorkLocal__c = :userWorklocation and showFalseNotshowTrue__c = false]; |
| | | } |
| | | |
| | | }else{ |
| | | //conorderlist = [select id,name,Owner.Name from Consumable_order__c where Order_type__c = '订å' and recordtypeid = :rtTypeDelivery and Dealer_Info__c = :accountid and Delivery_detail_count__c >0 and Order_ProType__c = :userPro_Type and Order_Owner_WorkLocal__c = :userWorklocation]; |
| | | if(type !=null && type.equals('all')){ |
| | | conorderlist = [select id,Owner.Name from Consumable_order__c where Order_type__c = '订å' and recordtypeid = :rtTypeDelivery and Dealer_Info__c = :accountid and (OrderNumber_notarrive__c > 0 or Delivery_detail_count__c >0) and Order_ProType__c = :userPro_Type and Order_Owner_WorkLocal__c = :userWorklocation and showFalseNotshowTrue__c = false]; |
| | | }else{ |
| | | conorderlist = [select id,Owner.Name from Consumable_order__c where Order_type__c = '订å' and recordtypeid = :rtTypeDelivery and Dealer_Info__c = :accountid and Delivery_detail_count__c >0 and Order_ProType__c = :userPro_Type and Order_Owner_WorkLocal__c = :userWorklocation and showFalseNotshowTrue__c = false]; |
| | | } |
| | | } |
| | | system.debug('==============>conorderlist'+conorderlist); |
| | | system.debug('==============>conorderlist'+conorderlist.size()); |
| | |
| | | } |
| | | System.debug('ANY o'+orderId); |
| | | List<Consumable_order_details2__c> conList = new List<Consumable_order_details2__c>(); |
| | | if(Test.isRunningTest()){ |
| | | conList = [SELECT id,Bar_Code__c FROM Consumable_order_details2__c ]; |
| | | }else{ |
| | | //20200916 ljh update start |
| | | //conList = [SELECT id,Bar_Code__c FROM Consumable_order_details2__c WHERE Dealer_Arrive__c = false AND Consumable_order_minor__c = :orderId AND Deliver_date__c < :orderdate AND recordtypeid = :System.Label.RT_ConOrderDetail2_Delivery]; |
| | | if(type !=null && type.equals('all')){ |
| | |
| | | system.debug('notallconList==========='+conList.size()); |
| | | } |
| | | //20200916 ljh update end |
| | | } |
| | | // List<Consumable_order_details2__c> conList = [SELECT id,Bar_Code__c FROM Consumable_order_details2__c WHERE Dealer_Arrive__c = false AND Consumable_order_minor__c = :orderId AND Deliver_date__c < :orderdate AND recordtypeid = :System.Label.RT_ConOrderDetail2_Delivery]; |
| | | Map<String,String> srtMap = new Map<String,String>(); |
| | | for(Consumable_order_details2__c con : conList){ |
| | |
| | | // }; |
| | | |
| | | public static String[] proLimitAndDate = new List<String>{}; |
| | | private static Map<String, Date> productkucun = new Map<String, Date>(); |
| | | public static Map<String, Date> productkucun = new Map<String, Date>(); |
| | | public static List<SelectOption> categoryOptionList { get; set; } |
| | | @AuraEnabled |
| | | public static Map<String, String> categoryOptionMap { get; set; } |
| | |
| | | public static String category1 { get; set; } |
| | | public static Boolean editAble { get; set; } |
| | | // ç»éåå¨åºäº§åID |
| | | public static List<String> orderDetZaikuList = new List<String>(); |
| | | public static List<String> orderDetZaikuList{set;get;} |
| | | // 产å ID |
| | | public static String ESetId { get; set; } |
| | | public static String idCheck { get; set; } |
| | |
| | | // add by rentx 2021-3-10 |
| | | |
| | | public LexInventoryViewController() { |
| | | orderDetZaikuList = new List<String>(); |
| | | consumableorderdetailsRecords = new List<ConsumableorderdetailsInfo>(); |
| | | consumableorderdetailsRecordsview = new List<List<ConsumableorderdetailsInfo>>(); |
| | | editAble = false; |
| | |
| | | data.put('consumableorderdetailsRecords', consumableorderdetailsRecords); |
| | | data.put('hasHos', hasHos); |
| | | data.put('productLimtAndDate',proLimitAndDate); |
| | | data.put('productkucun',productkucun); |
| | | res.status = 'Success'; |
| | | res.code = 200; |
| | | System.debug('res = ' + res); |
| | | System.debug('productkucun = ' + productkucun); |
| | | return res; |
| | | } |
| | | @AuraEnabled |
| | |
| | | Integer pageSizeLWC, |
| | | Integer pageTokenLWC, |
| | | String sortFieldLWC, |
| | | String sortOrderLWC |
| | | String sortOrderLWC, |
| | | Map<String, Date> productkucunLWC |
| | | ) { |
| | | try { |
| | | System.debug('orderDetZaikuListLWC===>'+orderDetZaikuListLWC); |
| | | System.debug('productkucun===>'+productkucun); |
| | | pageSize = pageSizeLWC; |
| | | pageToken = pageTokenLWC; |
| | | sortField = sortFieldLWC; |
| | | sortOrder = sortOrderLWC; |
| | | productkucun = new Map<String, Date>(); |
| | | orderDetZaikuList = new List<String>(); |
| | | productkucun = productkucunLWC; |
| | | |
| | | orderDetZaikuList = orderDetZaikuListLWC; |
| | | sqlagencyProType = '%' + agencyProType + '%'; |
| | |
| | | } |
| | | |
| | | // Data Bean |
| | | @TestVisible |
| | | class ConsumableorderdetailsInfo implements Comparable { |
| | | @AuraEnabled |
| | | public Consumable_order_details2__c esd { get; set; } |
| | |
| | | } |
| | | // return; |
| | | System.debug('overduePageRecords = ' + overduePageRecords); |
| | | System.debug('overdueList = ' + overdueList); |
| | | data.put('overduePageRecords',JSON.serialize(overduePageRecords)); |
| | | data.put('codPageRecords',JSON.serialize(codPageRecords)); |
| | | data.put('iSinventory',iSinventory); |
| | | data.put('overdueList',overdueList); |
| | | res.status = 'Success'; |
| | | res.status = 'Success1'; |
| | | res.code = 200; |
| | | // res.msg = '请è¾å
¥BarCodeå·'; |
| | | System.debug('res = ' + res); |
| | |
| | | StaticParameter.EscapeConsumableOrderDetail2Trigger = true; |
| | | if(!iSinventory){ |
| | | // ApexPages.addmessage(new ApexPages.message(ApexPages.severity.ERROR,'请å
ç¹ãBarCodeå½å
¥ã')); |
| | | return new ResponseBodyLWC('Error',500, '请å
å½å
¥BarCode', ''); |
| | | return new ResponseBodyLWC('Error',500, '请å
ç¹å»è·åæç»', ''); |
| | | // return null; |
| | | } |
| | | integer Lo = 0; |
| | |
| | | |
| | | // ç»é¢åå§å |
| | | @AuraEnabled |
| | | public static ResponseBodyLWC init(String ESetidJs, String statusEdit, Integer pageSizeLWC, Integer pageTokenLWC) { |
| | | // try { |
| | | public static ResponseBodyLWC init(String ESetidJs, String statusEdit, Integer pageSizeLWC, Integer pageTokenLWC,String arriveorderLWC) { |
| | | try { |
| | | firstInit(ESetidJs); |
| | | statusEdit = statusEdit; |
| | | arriveorder = ''; |
| | | arriveorder = arriveorderLWC; |
| | | HospitalName = ''; |
| | | provinceOpts = new List<SelectOption>(); |
| | | provinceOptsMap = new Map<String, String>(); |
| | |
| | | res.code = 200; |
| | | System.debug('res = ' + res); |
| | | return res; |
| | | // } catch (Exception e) { |
| | | // return new ResponseBodyLWC('Error',500, e.getMessage(), ''); |
| | | // } |
| | | } catch (Exception e) { |
| | | return new ResponseBodyLWC('Error',500, e.getMessage() + e.getLineNumber(), ''); |
| | | } |
| | | } |
| | | |
| | | @AuraEnabled |
| | |
| | | data.put('paginatedAccounts', paginatedAccounts); |
| | | data.put('pageRecords', pageRecordsTemp); |
| | | data.put('SearchDone', SearchDone); |
| | | data.put('hasHosPro', hasHosPro); |
| | | res.status = 'Success'; |
| | | res.code = 200; |
| | | System.debug('res = ' + res); |
| | |
| | | for (ConsumableorderdetailsInfoLwc ass : pageRecordsLwc) { |
| | | if (ass.check == true) { |
| | | if (ass.orderdetails1.Delivery_List_RMB__c < 0) { |
| | | // ass.orderdetails1.Delivery_List_RMB__c.addError('请è¾å
¥æ£ç¡®çåºè´§åä»· (å
)'); |
| | | // return null; |
| | | return new ResponseBodyLWC('Error', 500, '请è¾å
¥æ£ç¡®çåºè´§åä»· (å
)', ''); |
| | | } |
| | | if (ass.orderdetails1.Delivery_List_RMB__c == null && coc.SummonsForDirction__c != 'å»é¢è¯ç¨') { |
| | | // ass.orderdetails1.Delivery_List_RMB__c.addError('请è¾å
¥åºè´§åä»· (å
)'); |
| | | // return null; |
| | | return new ResponseBodyLWC('Error', 500, '请è¾å
¥æ£ç¡®çåºè´§åä»· (å
)', ''); |
| | | } |
| | | if ((ass.orderdetails1.Delivery_List_RMB__c == null || ass.orderdetails1.Delivery_List_RMB__c == 0) && coc.SummonsForDirction__c != 'å»é¢è¯ç¨') { |
| | | return new ResponseBodyLWC('Error', 500, '请è¾å
¥åºè´§åä»· (å
)', ''); |
| | | } |
| | | if ( |
| | | ass.orderdetails1.Delivery_List_RMB__c == 0 && |
| | | (coc.SummonsForDirction__c == 'éå®ç»äºçº§ç»éå' || |
| | | coc.SummonsForDirction__c == 'ç´æ¥éå®ç»å»é¢') |
| | | ) { |
| | | // ass.orderdetails1.Delivery_List_RMB__c.addError('请è¾å
¥åºè´§åä»· (å
)'); |
| | | // return null; |
| | | return new ResponseBodyLWC('Error', 500, '请è¾å
¥åºè´§åä»· (å
)', ''); |
| | | } |
| | | if (ass.orderdetails1.Shipment_Count__c == null || ass.orderdetails1.Shipment_Count__c == 0) { |
| | |
| | | for (ConsumableorderdetailsInfoLwc ass : pageRecordsLwc) { |
| | | if (ass.check == true) { |
| | | if (ass.orderdetails1.Delivery_List_RMB__c < 0) { |
| | | // ass.orderdetails1.Delivery_List_RMB__c.addError('请è¾å
¥æ£ç¡®çåºè´§åä»· (å
)'); |
| | | // return null; |
| | | return new ResponseBodyLWC('Error', 500, '请è¾å
¥æ£ç¡®çåºè´§åä»· (å
)', ''); |
| | | } |
| | | Consumable_orderdetails__c InsAfterDel = new Consumable_orderdetails__c(); |
| | | if (ass.orderdetails1.Delivery_List_RMB__c == null && coc.SummonsForDirction__c != 'å»é¢è¯ç¨') { |
| | | // ass.orderdetails1.Delivery_List_RMB__c.addError('请è¾å
¥åºè´§åä»· (å
)'); |
| | | // return null; |
| | | if ((ass.orderdetails1.Delivery_List_RMB__c == null || ass.orderdetails1.Delivery_List_RMB__c == 0) && coc.SummonsForDirction__c != 'å»é¢è¯ç¨') { |
| | | return new ResponseBodyLWC('Error', 500, '请è¾å
¥åºè´§åä»· (å
)', ''); |
| | | } |
| | | if ( |
| | |
| | | (coc.SummonsForDirction__c == 'éå®ç»äºçº§ç»éå' || |
| | | coc.SummonsForDirction__c == 'ç´æ¥éå®ç»å»é¢') |
| | | ) { |
| | | // ass.orderdetails1.Delivery_List_RMB__c.addError('请è¾å
¥åºè´§åä»· (å
)'); |
| | | // return null; |
| | | return new ResponseBodyLWC('Error', 500, '请è¾å
¥åºè´§åä»· (å
)', ''); |
| | | } |
| | | if (ass.orderdetails1.Box_Piece__c == null || ass.orderdetails1.Box_Piece__c == '') { |
| | |
| | | return res; |
| | | } |
| | | |
| | | //å é¤éä»¶ |
| | | @AuraEnabled |
| | | public static ResponseBodyLWC deleteAtt(String contentVersionId){ |
| | | try { |
| | | ContentVersion conVersion = [SELECT ContentDocumentId FROM ContentVersion WHERE Id = :contentVersionId]; |
| | | String contentDocumentId = conVersion.ContentDocumentId; |
| | | ContentDocument conDocument = [SELECT Id FROM ContentDocument where Id = :contentDocumentId]; |
| | | delete conDocument; |
| | | return new ResponseBodyLWC('Success',200,'',''); |
| | | } catch (Exception e) { |
| | | return new ResponseBodyLWC('Error',500, e.getMessage() + e.getLineNumber(), ''); |
| | | } |
| | | } |
| | | |
| | | //跳转åºè´§/éå® |
| | | @AuraEnabled |
| | | public static ResponseBodyLWC GoodsDelivery( |
| | |
| | | system.debug('userPro_Type' + userPro_Type); |
| | | String checkResoultstr = checkResoult(productLimit); |
| | | system.debug('checkResoultstr====>'+checkResoultstr); |
| | | system.debug('accountId'+accountId); |
| | | if(String.isNotBlank(checkResoultstr)){ |
| | | return new ResponseBodyLWC('Error',500,''+checkResoultstr+'', ''); |
| | | // return checkResoultstr; |
| | |
| | | ]; |
| | | if(null == acc || acc.size() == 0) { |
| | | // return '没æç»éåï¼' + accountId + 'çæ°æ®ã'; |
| | | return new ResponseBodyLWC('Error',500,'没æç»éåï¼' + accountId + 'çæ°æ®', ''); |
| | | return new ResponseBodyLWC('Error',500,'没æç»éåï¼' + accountId + 'çæ°æ®ã', ''); |
| | | } |
| | | //proidList = acc[0].view_product__c.split(','); |
| | | //--------UpdateStart-----XHL--------------20180929------------- |
| | | String sql = ''; |
| | | List<Product2__c> roduct2List = [SELECT Asset_Model_No__c |
| | | |
| | | List<Product2__c> roduct2List = [SELECT Asset_Model_No__c,Estimation_Entry_Possibility__c |
| | | FROM Product2__c |
| | | WHERE Product_Type__c like :userPro_Typestr limit 10000];//Add Limit by Li Jun 20230601, need to remove limit later |
| | | WHERE Product_Type__c like :userPro_Typestr and Estimation_Entry_Possibility__c = 'â'];//Add by WangXueqin 20230605 |
| | | //ApexPages.addmessage(new ApexPages.message(ApexPages.severity.ERROR,'roduct2List:'+ roduct2List)); |
| | | //sql = 'SELECT Asset_Model_No__c ' |
| | | // + ' FROM Product2__c ' |
| | |
| | | for(Integer i = 0; i < pro_List.size(); i++){ |
| | | if(!productMap.containsKey(pro_List[i])){ |
| | | // return 'ç»éåæ²¡æ ' + pro_List[i] + ' ç产åä¸éè®¾å®æéï¼æäº§åä¸åå¨ï¼'; |
| | | return new ResponseBodyLWC('Error',500,'ç»éåæ²¡æ ' + pro_List[i] + ' ç产åä¸éè®¾å®æéï¼æäº§åä¸åå¨', ''); |
| | | return new ResponseBodyLWC('Error',500,'ç»éåæ²¡æ ' + pro_List[i] + ' ç产åä¸éè®¾å®æéï¼æäº§åä¸åå¨ï¼', ''); |
| | | } |
| | | } |
| | | String productLimitDa = ''; |
| | |
| | | } |
| | | } |
| | | if(asstModelNoCount.size() > 0){ |
| | | return '产åï¼' + asstModelNoCount + 'çæ°æ®éå¤'; |
| | | return '产åï¼' + asstModelNoCount + 'çæ°æ®éå¤ã'; |
| | | // return new ResponseBodyLWC('Error',500,'产åï¼' + asstModelNoCount + 'çæ°æ®éå¤ã', ''); |
| | | }else{ |
| | | return ''; |
| | |
| | | { |
| | | "definitionName": "prm:branding-prm-merged", |
| | | "id": "57ae3440-8896-4020-a05b-a780ddaf46f0", |
| | | "id" : "da39013d-fbc0-4c27-a7a2-5f9d07bdb4bd", |
| | | "label": "Partner Central", |
| | | "type": "brandingSet", |
| | | "values": { |
| | | "ActionColor": "rgb(10, 129, 223)", |
| | | "BorderColor": "rgb(212, 212, 212)", |
| | | "CardBackgroundColor": "rgba(244, 244, 244, 0)", |
| | | "CompanyLogo": "/file-asset/servlet1?v=1&height=300&width=300", |
| | | "BorderColor" : "#D4D4D4", |
| | | "CardBackgroundColor" : "rgba(255, 255, 255, 0)", |
| | | "CompanyLogo" : "/file-asset/OlympusCommunityLogo?v=1&height=300&width=300", |
| | | "DetailTextColor": "rgb(51, 51, 51)", |
| | | "ErrorFontColor": "rgb(224, 75, 32)", |
| | | "HeaderBackgroundColor": "rgb(255, 255, 255)", |
| | | "HeaderFonts": "sans-serif", |
| | | "ErrorFontColor" : "#ff9e9e", |
| | | "HeaderBackgroundColor" : "#FFFFFF", |
| | | "HeaderFonts" : "Salesforce Sans", |
| | | "LinkColor": "rgb(37, 116, 169)", |
| | | "LoginBackgroundColor": "rgb(216, 233, 229)", |
| | | "LoginBackgroundImage": "/file-asset/LEXCommunityLogin?v=1", |
| | | "LoginButtonBorderColor": "#5d392e", |
| | | "LoginButtonColor": "#202834", |
| | | "LoginButtonHoverBorderColor": "#4f748b", |
| | | "LoginButtonHoverColor": "#89644c", |
| | | "LoginBackgroundColor" : "#F4F4F4", |
| | | "LoginBackgroundImage" : "/file-asset/OlympusCommunityLoginBG?v=1", |
| | | "NavigationMenuColor": "rgb(8, 16, 132)", |
| | | "NavigationMenuTextColor": "rgb(255, 255, 255)", |
| | | "OverlayTextColor": "rgb(255, 255, 255)", |
| | | "PageBackgroundColor": "rgb(255, 255, 255)", |
| | | "NavigationMenuTextColor" : "#FFFFFF", |
| | | "OverlayTextColor" : "#FFFFFF", |
| | | "PageBackgroundColor" : "#FFFFFF", |
| | | "PrimaryFont": "sans-serif", |
| | | "TextColor": "rgb(51, 51, 51)", |
| | | "TextColor" : "#222222", |
| | | "TextTransformStyle": "none", |
| | | "_ActionColorDarker": "#0865ae", |
| | | "_ActionColorTrans": "rgba(10, 129, 223, 0.9)", |
| | | "_BackgroundColor1": "rgb(235, 235, 235)", |
| | | "_BackgroundColor2": "rgb(194, 194, 194)", |
| | | "_BackgroundColor3": "rgb(133, 133, 133)", |
| | | "_DxpPageBackgroundColor": "rgb(255, 255, 255)", |
| | | "_DxpPageBackgroundColor" : "#FFFFFF", |
| | | "_HeaderInputBackgroundColor": "rgba(255,255,255,.4)", |
| | | "_HeaderPlaceholderTextColor": "rgba(85,85,85,.8)", |
| | | "_HeaderTextColor": "rgba(34,34,34,.8)", |
| | |
| | | "_NeutralForegroundColor1": "#000", |
| | | "_NeutralForegroundColor2": "#000", |
| | | "_NeutralForegroundColor3": "#fff", |
| | | "_OverlayTextColorShadow": "#000", |
| | | "_OverlayTextColorShadow" : "#000000", |
| | | "_PrimaryAccentColor1": "rgb(8, 106, 184)", |
| | | "_PrimaryAccentColor2": "rgb(5, 61, 106)", |
| | | "_PrimaryAccentColor3": "rgb(0, 0, 0)", |
| | | "_PrimaryAccentForegroundColor1": "rgb(255, 255, 255)", |
| | | "_PrimaryAccentForegroundColor2": "rgb(255, 255, 255)", |
| | | "_PrimaryAccentForegroundColor3": "rgb(255, 255, 255)", |
| | | "_TextColor1": "rgb(31, 31, 31)", |
| | | "_TextColor1" : "rgb(14, 14, 14)", |
| | | "_TextColor2": "rgb(0, 0, 0)", |
| | | "_TextColor3": "rgb(0, 0, 0)" |
| | | } |
| | |
| | | { |
| | | "forgotPasswordRouteId": "696dc6cc-2e29-4d91-8947-826d95506b8b", |
| | | "forgotPasswordRouteId" : "543c3ca6-a340-46d3-a25b-82ce3864cf02", |
| | | "isAvailableToGuests": false, |
| | | "isFilteredComponentsView": false, |
| | | "isProgressiveRenderingEnabled": false, |
| | | "loginAppPageId": "bfbf7350-cdcd-4e2c-97a5-ab51f2aa3b9d", |
| | | "mainAppPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "loginAppPageId" : "7756c67f-7774-4fe1-b1c2-eecb19f9c6a5", |
| | | "mainAppPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "preferredDomain": "none", |
| | | "selfRegistrationRouteId": "e8838dbc-c64c-4cd5-b34a-9dea25b08d42", |
| | | "selfRegistrationRouteId" : "2d8061dd-a482-4608-8514-113389805fc4", |
| | | "type": "site" |
| | | } |
| | |
| | | { |
| | | "defaultCode": "zh_CN", |
| | | "defaultLabel": "䏿ï¼ç®ä½ï¼ (CN)", |
| | | "id": "50b82dc6-9079-40b8-aa74-c83564656d96", |
| | | "id" : "574943f7-c68f-4a1b-9b77-b2154af650ab", |
| | | "type": "languageContainer" |
| | | } |
| | |
| | | { |
| | | "cmsSettings": {}, |
| | | "id": "bfbf7350-cdcd-4e2c-97a5-ab51f2aa3b9d", |
| | | "id" : "7756c67f-7774-4fe1-b1c2-eecb19f9c6a5", |
| | | "label": "login", |
| | | "templateName": "Login Template", |
| | | "type": "appPage" |
| | |
| | | { |
| | | "cmsSettings": {}, |
| | | "currentThemeId": "0c81955a-9ad5-4639-a11d-03665e570a65", |
| | | "headMarkup": "<script>\n var homeWindowLocation = '/consumable/s/';\n window.onload = function() {\n console.log('URL' +window.location.pathname);\n if(homeWindowLocation ==window.location.pathname ){\n console.log('refresh dashboard');\n setTimeout(\n function() {\n let refreshButtonElement = document.getElementsByTagName('iframe')[0].contentWindow.document.getElementsByTagName('button')[0];\n console.log('Refresh:'+refreshButtonElement);\n refreshButtonElement.click();\n }, 10000);\n }\n\t};\n\t\n</script>", |
| | | "id": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "currentThemeId" : "dc3ec245-c32a-48fc-920e-8ff30c6cff7a", |
| | | "headMarkup" : "<script>\n var homeWindowLocation = '/consumable/s/';\n window.onload = function() {\n console.log('URL' +window.location.pathname);\n if(homeWindowLocation ==window.location.pathname ){\n console.log('refresh dashboard');\n setTimeout(\n function() {\n let refreshButtonElement = document.getElementsByTagName('iframe')[0].contentWindow.document.getElementsByTagName('button')[0];\n console.log('Refresh:'+refreshButtonElement);\n refreshButtonElement.click();\n }, 10000);\n }\n \n\t};\n\t\n</script>", |
| | | "id" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "isRelaxedCSPLevel": true, |
| | | "label": "main", |
| | | "templateName": "PRM Community Template", |
| | |
| | | { |
| | | "activeViewId": "fd91a176-37cc-4c72-887d-8a32f8472825", |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "id": "4160137e-e9a7-47f3-8f55-2a7a6f94dacb", |
| | | "activeViewId" : "198e4bed-7a3a-4a56-a15a-d354e55d5624", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "id" : "a5aefe6e-da20-437c-8ff9-ef31a22b8d4a", |
| | | "label": "Account Management", |
| | | "routeType": "account-management", |
| | | "type": "route", |
| | |
| | | { |
| | | "activeViewId": "4908488d-d41c-4c3d-9f3e-c885a408863c", |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "id": "6b80aa5c-e10f-4760-82e4-c07fd6939d02", |
| | | "activeViewId" : "f83414cc-cd96-4d24-94d6-1d6fdad65b83", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "id" : "cccb42f4-95dd-426f-a700-cbe4c839764c", |
| | | "label": "Campaign List", |
| | | "routeType": "list-701", |
| | | "type": "route", |
| | |
| | | { |
| | | "activeViewId": "b17204f0-44a2-4866-abaf-23f750a97ddd", |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "id": "f4887cf8-32fc-4d06-ab40-bbe055a26662", |
| | | "activeViewId" : "3b1b2646-af41-43d3-a519-528aa49f45f4", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "id" : "4601c961-03a6-4646-9c14-5db8084e379a", |
| | | "label": "Case Detail", |
| | | "routeType": "detail-500", |
| | | "type": "route", |
| | |
| | | { |
| | | "activeViewId": "14d5ae00-1629-429d-ac4f-b5abd28a21a3", |
| | | "appPageId": "bfbf7350-cdcd-4e2c-97a5-ab51f2aa3b9d", |
| | | "id": "9c99cfbb-0aad-460f-9399-ef4943f6e535", |
| | | "activeViewId" : "82d3f50a-42f2-4aa2-b028-7b07d878cd63", |
| | | "appPageId" : "7756c67f-7774-4fe1-b1c2-eecb19f9c6a5", |
| | | "id" : "86273d15-52e6-4761-b84b-fd899e3def47", |
| | | "label": "Check Password", |
| | | "routeType": "check-password", |
| | | "type": "route", |
| | |
| | | { |
| | | "activeViewId": "112e477b-4a73-4f9d-9e34-ebb2efff5acd", |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "id": "8620c8eb-dd82-44a2-9c87-5fe5a029d55c", |
| | | "activeViewId" : "e8279a27-ff8f-42fc-9bd1-53b3f59350ab", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "id" : "1237083a-e1c5-44da-a3c1-cb1d6c3f762b", |
| | | "label": "Contact Support", |
| | | "pageAccess": "UseParent", |
| | | "routeType": "contactsupport", |
| | |
| | | { |
| | | "activeViewId": "d64df38f-9de1-4248-9c13-ef41d110ffd8", |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "id": "a2259a30-2003-47b7-83a9-466f3e4d0aaf", |
| | | "activeViewId" : "0f63dfba-f74b-4011-a0d5-75fe665d7bfb", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "id" : "ea1db874-7a52-4702-afc8-f7d4b8dbae5c", |
| | | "label": "Create Record", |
| | | "routeType": "createrecord", |
| | | "type": "route", |
| | |
| | | { |
| | | "activeViewId": "47937364-e71b-469a-b996-317032189c45", |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "id": "c5c8d6ff-ac51-41b6-8508-a408ce244a7d", |
| | | "activeViewId" : "4544a0e2-5ddb-49d0-b154-3903b3e7fb68", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "id" : "7f941e81-8998-459a-a76b-93f5807e3db7", |
| | | "label": "Dashboard Detail", |
| | | "routeType": "detail-01Z", |
| | | "type": "route", |
| | |
| | | { |
| | | "activeViewId": "b59c266b-a1ad-47f9-bf26-a8295147505c", |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "id": "677a2606-2502-4451-8e5e-9a903153d902", |
| | | "activeViewId" : "f10a3529-b77e-4ebc-9b99-281160c97c7f", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "id" : "57493307-536a-4ebe-84db-00112d5e0e8d", |
| | | "label": "Dashboard List", |
| | | "routeType": "list-01Z", |
| | | "type": "route", |
| | |
| | | { |
| | | "activeViewId": "48f1f5ec-b27a-4874-83fa-15e857b27699", |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "id": "83bad28f-5c2c-4e3e-999c-5173c3d188dc", |
| | | "activeViewId" : "f02c5a75-f64e-4716-b209-f9f1ef46d49a", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "id" : "2d27ac00-e60f-444a-8627-23c58e43d9ad", |
| | | "label": "Error", |
| | | "pageAccess": "UseParent", |
| | | "routeType": "error", |
| | |
| | | { |
| | | "activeViewId": "fefd7f80-945b-489b-8a4e-615884934641", |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "id": "e7141d9b-41ac-4475-918a-40364d069e55", |
| | | "activeViewId" : "eb28719b-06b5-4397-bf8d-667ec408ca46", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "id" : "cfc32bfb-64dc-442c-9c4a-ed8a75b0b9cc", |
| | | "label": "Feed Detail", |
| | | "routeType": "feeditem-generic", |
| | | "type": "route", |
| | |
| | | { |
| | | "activeViewId": "cbccf1c1-b50f-4c66-9dbd-9be4accededd", |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "id": "4b6624be-47a1-4c1c-932e-ba1661e492d2", |
| | | "activeViewId" : "2322115a-ac65-4862-9104-912d42fca69a", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "id" : "b99c3313-97ee-4e8e-88e7-3156a4d86e82", |
| | | "label": "File Detail", |
| | | "routeType": "detail-069", |
| | | "type": "route", |
| | |
| | | { |
| | | "activeViewId": "eace253f-203f-4414-a7a4-a2d9c47deb3d", |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "id": "582cdc1b-b836-41bf-bc54-91e86a17b0aa", |
| | | "activeViewId" : "193807a6-e99f-4075-9811-62dda5b13d43", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "id" : "b891df7c-7ecf-4a9c-92d4-8bb6107eb215", |
| | | "label": "File List", |
| | | "routeType": "list-069", |
| | | "type": "route", |
| | |
| | | { |
| | | "activeViewId": "17c9c45c-4c81-49d0-985e-d6281d899320", |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "id": "366aef61-f77b-463e-9e3b-b64525248f29", |
| | | "activeViewId" : "4aa9507c-1470-43b3-8000-390325f6bd7d", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "id" : "c8358de2-e646-44de-b2da-2424e96bea67", |
| | | "label": "Flow", |
| | | "pageAccess": "UseParent", |
| | | "routeType": "flow", |
| | |
| | | { |
| | | "activeViewId": "367df6e8-480c-4b75-9718-1ebcfc8d57c1", |
| | | "appPageId": "bfbf7350-cdcd-4e2c-97a5-ab51f2aa3b9d", |
| | | "id": "696dc6cc-2e29-4d91-8947-826d95506b8b", |
| | | "activeViewId" : "eac49d21-4e4d-4e8e-997e-42dfce021ff4", |
| | | "appPageId" : "7756c67f-7774-4fe1-b1c2-eecb19f9c6a5", |
| | | "id" : "543c3ca6-a340-46d3-a25b-82ce3864cf02", |
| | | "label": "Forgot Password", |
| | | "routeType": "forgot-password", |
| | | "type": "route", |
| | |
| | | { |
| | | "activeViewId": "1f22553d-fa1f-41e2-afa6-bf930865e2fa", |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "id": "d65c3c39-9762-4205-b78a-8111168012f2", |
| | | "activeViewId" : "7b772cb6-1146-4bb7-8567-853ebfe7bb2c", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "id" : "ddfb3b5d-5ba5-4152-8103-754658eba70b", |
| | | "label": "Group Detail", |
| | | "routeType": "detail-0F9", |
| | | "type": "route", |
| | |
| | | { |
| | | "activeViewId": "87a9b140-31e2-4c28-9fa4-82135022e59d", |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "id": "68d9196c-9eac-4f7c-b1ae-ad2eb703855c", |
| | | "activeViewId" : "949c0ee3-6484-4ed7-a44f-aa417cec1835", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "id" : "34a31fa2-0d70-4d03-a4bd-d962306cb8e4", |
| | | "label": "Group List", |
| | | "routeType": "list-0F9", |
| | | "type": "route", |
| | |
| | | { |
| | | "activeViewId": "d22f1a01-e0a0-44df-b5e2-808abb2391f5", |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "id": "939c3a99-21d2-46b8-82dd-6713bce11e9c", |
| | | "activeViewId" : "0b3166bc-2eec-43fa-8adf-532f629e9392", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "id" : "8e6532c1-df5e-4843-af7f-e01178398907", |
| | | "label": "Home", |
| | | "pageAccess": "UseParent", |
| | | "routeType": "home", |
| | |
| | | { |
| | | "activeViewId": "ace4cc2b-a063-40be-94c6-c5bdabeb00e0", |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "id": "72138bd6-1956-4337-8eb3-3135b8091773", |
| | | "label": "lexAgencyInfo", |
| | | "activeViewId" : "376ad65a-00b6-4198-aa04-19a6360969bc", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "id" : "5e5ad0fe-6812-4fd0-9c56-bfce5822bf96", |
| | | "label" : "LexAgencyInfo", |
| | | "pageAccess": "UseParent", |
| | | "routeType": "custom-lexagencyinfo", |
| | | "type": "route", |
| | |
| | | { |
| | | "activeViewId": "23ddff87-c778-4457-b0f7-07029a8a9ffd", |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "id": "faabccd4-5e3b-4646-b626-6a85b751c910", |
| | | "activeViewId" : "ec872079-c8a8-4c21-a0f2-84a95d4a93e5", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "id" : "cbb28431-553a-49de-8f9d-0d297c0dd897", |
| | | "label": "LexArriveGoods", |
| | | "pageAccess": "UseParent", |
| | | "routeType": "custom-lexarrivegoods", |
| | |
| | | { |
| | | "activeViewId": "e8d527e1-b86c-4449-bf5c-1ed05301648b", |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "id": "8e439ddc-a758-4cba-a5f8-c3295fc7349a", |
| | | "activeViewId" : "f46aba62-01c3-4a20-93c6-f9b2362717e6", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "id" : "372e3324-9c48-41ca-8e6d-4b349f076f65", |
| | | "label": "LexArriveGoodsMain", |
| | | "pageAccess": "UseParent", |
| | | "routeType": "custom-lexarrivegoodsmain", |
| | |
| | | { |
| | | "activeViewId": "ccdc4c02-3ec5-4c8c-bb43-af7c391c0876", |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "id": "e067f74a-448c-4b0e-aeb3-e0fc8d4bd724", |
| | | "activeViewId" : "91695311-fdcc-4e42-87ca-c97cfd56a2b0", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "id" : "c7a297cc-a883-4507-b04c-965b15d7d470", |
| | | "label": "LexArriveGsDetails", |
| | | "pageAccess": "UseParent", |
| | | "routeType": "custom-lexarrivegsdetails", |
| | |
| | | { |
| | | "activeViewId": "b7569df4-3d59-4e39-9916-b444d62da530", |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "id": "9022f6fd-bd92-40a7-a7a8-11276aa04bda", |
| | | "label": "lexCancelRemoveBox", |
| | | "activeViewId" : "5fd84b73-2065-46d3-b121-2f8a77b76a3a", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "id" : "3289956a-758b-4222-898c-604d006a99fe", |
| | | "label" : "LexCancelRemoveBox", |
| | | "pageAccess": "UseParent", |
| | | "routeType": "custom-lexcancelremovebox", |
| | | "type": "route", |
| | |
| | | { |
| | | "activeViewId": "def29cb0-a769-4ec4-8e98-f1d9e4433e76", |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "id": "a7d054c5-781a-4e86-8137-3d65615fd049", |
| | | "activeViewId" : "4bbfb3d2-f8f2-4b23-b5cf-711d448a2b51", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "id" : "40788493-ac31-4a30-b873-956597a23a37", |
| | | "label": "LexConInvoiceView", |
| | | "pageAccess": "UseParent", |
| | | "routeType": "custom-lexconinvoiceview", |
| | |
| | | { |
| | | "activeViewId": "a3a6bd48-fa28-4210-b2f1-396f0169df2f", |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "id": "92ab763f-0891-4b15-b0c9-6c769b8a00a1", |
| | | "activeViewId" : "756785e1-4fb5-4ab3-b38a-58ea679a4361", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "id" : "0460cf80-25a2-4785-acb9-587a66def46e", |
| | | "label": "LexConsumable", |
| | | "pageAccess": "UseParent", |
| | | "routeType": "custom-lexconsumable", |
| | |
| | | { |
| | | "activeViewId": "f724180a-789f-4a5f-909f-a3b6926cff21", |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "id": "790c190b-8bf4-4211-a8fb-172af3538e9f", |
| | | "activeViewId" : "65a5c9a4-0cc9-4b00-872b-b90bc1e47411", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "id" : "7db2303f-7e83-4c85-a7ad-12fa6672974b", |
| | | "label": "LexConsumableAccount", |
| | | "pageAccess": "UseParent", |
| | | "routeType": "custom-lexconsumableaccount", |
| | |
| | | { |
| | | "activeViewId": "469dc013-dd9c-46d5-a4e8-57e7b4718b74", |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "id": "0b5b4633-9d43-4758-a5a1-7f3048846a66", |
| | | "activeViewId" : "5d615179-dd62-4481-a874-de16a69d7374", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "id" : "82091f6c-517f-4ee0-8ad2-8958cf953804", |
| | | "label": "LexConsumableAccountInfoPrint", |
| | | "pageAccess": "UseParent", |
| | | "routeType": "custom-lexconsumableaccountinfoprint", |
| | |
| | | { |
| | | "activeViewId": "adc3f3b5-03a9-4f8d-9284-7ff06dc338af", |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "id": "6335d5ad-ddd3-4fc4-b256-dd3fc662034f", |
| | | "activeViewId" : "0c6f8778-bba4-4726-97f6-b639cce7c99e", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "id" : "17e0e204-7337-4cc3-8ae8-386f15253878", |
| | | "label": "LexConsumableOrderManage", |
| | | "pageAccess": "UseParent", |
| | | "routeType": "custom-lexconsumableordermanage", |
| | |
| | | { |
| | | "activeViewId": "86cd7e17-9d77-47e1-906e-f87e8a36b5e0", |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "id": "347e4abc-85c2-477d-ae7a-0ac5bfc0728f", |
| | | "label": "lexInventory", |
| | | "activeViewId" : "5a24538d-0a99-40a3-a6a1-4496d0333a05", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "id" : "465ce810-60bc-45a4-92f4-8148664ee531", |
| | | "label" : "LexInventory", |
| | | "pageAccess": "UseParent", |
| | | "routeType": "custom-lex-inventory", |
| | | "routeType" : "custom-lexinventory", |
| | | "type": "route", |
| | | "urlPrefix": "lexinventory" |
| | | } |
| | |
| | | { |
| | | "activeViewId": "f8b18a5a-4f37-46d3-946e-3c5307c081e6", |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "id": "2b760536-1491-4c8d-b0e3-f9972354708d", |
| | | "activeViewId" : "e8224149-f1b9-4c44-8839-4d9737739c72", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "id" : "839786f7-032b-4c35-b6b3-7e5ad0de3ac3", |
| | | "label": "LexOutboundorderImport", |
| | | "pageAccess": "UseParent", |
| | | "routeType": "custom-lexoutboundorderimport", |
| | |
| | | { |
| | | "activeViewId": "38d1e97a-0728-46a2-bee1-0c72ff1d6570", |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "id": "73006608-6ed7-459c-b9bc-14c6c16476f4", |
| | | "activeViewId" : "b0f2e8e7-62fd-42f3-bf3a-4bdf40b02bf4", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "id" : "2c0812bd-c08f-4e4a-980f-360b54f841c4", |
| | | "label": "LexOverdueStock", |
| | | "pageAccess": "UseParent", |
| | | "routeType": "custom-lexoverduestock", |
| | |
| | | { |
| | | "activeViewId": "8feef62c-b227-4815-b93f-fe0fe07a34bd", |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "id": "06d0bb54-97e9-4556-a6ee-5e9c7e34633a", |
| | | "activeViewId" : "b4a2ba1b-3827-4ec7-8f8e-5461c3893ce0", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "id" : "f7bab43e-2170-4980-9b2c-126154272cb0", |
| | | "label": "LexRemoveBox", |
| | | "pageAccess": "UseParent", |
| | | "routeType": "custom-lexremovebox", |
| | |
| | | { |
| | | "activeViewId": "f5a6e76f-41cd-4eb3-8652-695bcce0e678", |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "id": "62628d80-2d75-4a25-aeaf-a0ce85407a6b", |
| | | "activeViewId" : "e5d81e8f-b0a5-4bf3-b11b-08dd8fef1a3c", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "id" : "28c40941-a2fa-4f30-a790-936542b1cf84", |
| | | "label": "LexSaleAndDelivery", |
| | | "pageAccess": "UseParent", |
| | | "routeType": "custom-lexsaleanddelivery", |
| | |
| | | { |
| | | "activeViewId": "b7e402c5-b5ed-4d2c-8cd1-a7c189bfbcda", |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "id": "4021ee9a-4769-4dac-af20-5099288bae35", |
| | | "activeViewId" : "c2e9c913-ab1c-4b38-899b-136fb95066fb", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "id" : "94af1a52-11ac-4e16-8f30-f6fe250ccd1e", |
| | | "label": "LexSummonsCreat", |
| | | "pageAccess": "UseParent", |
| | | "routeType": "custom-lexsummonscreat", |
| | |
| | | { |
| | | "activeViewId": "bda75bd7-499d-4d41-ad47-2d49173854dd", |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "id": "146bed7f-b8f1-4016-8a31-035874516b5d", |
| | | "label": "lexTopPage", |
| | | "activeViewId" : "09c93676-a531-4ba7-8708-cc47f8458c90", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "id" : "855eeb08-6e57-404b-a5f6-072349535002", |
| | | "label" : "LexTopPage", |
| | | "pageAccess": "UseParent", |
| | | "routeType": "custom-lextoppage", |
| | | "type": "route", |
| | |
| | | { |
| | | "activeViewId": "4c2e26c5-f1ea-42e0-85f6-371bc184fe49", |
| | | "appPageId": "bfbf7350-cdcd-4e2c-97a5-ab51f2aa3b9d", |
| | | "id": "bc26e928-8b62-4f80-9355-ef5553737e13", |
| | | "activeViewId" : "7c2dd152-d6d3-4652-bbfe-cb8e11d83c43", |
| | | "appPageId" : "7756c67f-7774-4fe1-b1c2-eecb19f9c6a5", |
| | | "id" : "c7457673-c277-4525-81e4-00da62b21ee0", |
| | | "label": "Login", |
| | | "routeType": "login-home", |
| | | "type": "route", |
| | |
| | | { |
| | | "activeViewId": "a8ddd7f3-7895-497a-bb20-7f0ce5c387aa", |
| | | "appPageId": "bfbf7350-cdcd-4e2c-97a5-ab51f2aa3b9d", |
| | | "id": "6b34ae60-30a7-46c8-8e80-657fa96816b1", |
| | | "activeViewId" : "ba40442c-80fc-411f-8c02-9cfce2ab1372", |
| | | "appPageId" : "7756c67f-7774-4fe1-b1c2-eecb19f9c6a5", |
| | | "id" : "b0404c8e-8a84-4ed9-800b-93e742025cef", |
| | | "label": "Login Error", |
| | | "routeType": "login-error", |
| | | "type": "route", |
| | |
| | | { |
| | | "activeViewId": "51554054-4eaf-44f6-96bd-b90145e6e078", |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "id": "f9897b41-4fb8-433e-8895-82e47d6aa298", |
| | | "activeViewId" : "b253bc1d-fe4a-4156-91f4-88f4725a3616", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "id" : "3e75febe-ff75-4d4f-841d-28dc994a1da1", |
| | | "label": "MDF and Coop", |
| | | "routeType": "mdf", |
| | | "type": "route", |
| | |
| | | { |
| | | "activeViewId": "a4397b8d-c4ab-44d4-b2dc-cce577b9d2c8", |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "id": "3929da47-f3e6-42a7-ad00-269ea899171d", |
| | | "activeViewId" : "55f1ae5d-c9ac-44ad-bb27-4c22dddc2a2e", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "id" : "93d1b5dd-fc4b-464f-b034-2321557eb837", |
| | | "label": "Messages", |
| | | "routeType": "messages", |
| | | "type": "route", |
| | |
| | | { |
| | | "activeViewId": "25eab78c-263e-4a55-8bff-ad852efc15c9", |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "id": "ddfd00c8-3c1c-463c-a5d6-78a97c47b79f", |
| | | "activeViewId" : "2cd7a2df-9e65-4663-9e35-9b4134b4beb1", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "id" : "42a42c86-6517-4e0e-a630-be5ab221baf1", |
| | | "label": "My Account", |
| | | "routeType": "my-account", |
| | | "type": "route", |
| | |
| | | { |
| | | "activeViewId": "d4ed7ed0-3745-461e-acd3-32108749ab93", |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "id": "a91ac3c9-aca5-4723-ae43-bc9c7f231015", |
| | | "activeViewId" : "c29033d4-ea89-4311-9a8f-9b1cee010f96", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "id" : "d4e8748f-c126-4d7f-a4e8-43e4314bf361", |
| | | "label": "Question Detail", |
| | | "routeType": "feeditem", |
| | | "type": "route", |
| | |
| | | { |
| | | "activeViewId": "b076cb5b-405f-4199-b9be-7429234ce226", |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "id": "56d102f8-5197-4dca-a1d3-fec183274f67", |
| | | "activeViewId" : "be244254-9e8f-46bd-83e0-a6cdb3780540", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "id" : "12cc102d-f664-49b7-8b25-c78d7939a8ed", |
| | | "label": "Quip Docs Related List", |
| | | "pageAccess": "UseParent", |
| | | "routeType": "extrelated-quip", |
| | |
| | | { |
| | | "activeViewId": "c8075095-c3fd-4d07-8079-0eb063287ad7", |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "id": "de9cd95e-59e4-4622-8f8d-8fdb3768da70", |
| | | "activeViewId" : "d30889c1-09fc-407a-8d9d-155b305cce6f", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "id" : "63bae7d4-3412-48c3-9503-126a63811892", |
| | | "label": "Record Detail", |
| | | "routeType": "detail", |
| | | "type": "route", |
| | |
| | | { |
| | | "activeViewId": "568148b6-8356-45bb-a31e-e8c320ff9726", |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "id": "4bb09a90-41cc-4630-a450-d8545941e231", |
| | | "activeViewId" : "f14a9999-9077-4660-a62f-b9df05228f6c", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "id" : "b63deca7-c984-4812-9b2a-f757908981a0", |
| | | "label": "Record List", |
| | | "pageAccess": "UseParent", |
| | | "routeType": "list", |
| | |
| | | { |
| | | "activeViewId": "3af8afbb-87fe-417d-818c-7e8a8f00faf6", |
| | | "appPageId": "bfbf7350-cdcd-4e2c-97a5-ab51f2aa3b9d", |
| | | "id": "e8838dbc-c64c-4cd5-b34a-9dea25b08d42", |
| | | "activeViewId" : "7cadb098-b80c-40d4-a33c-714c36f8a2f3", |
| | | "appPageId" : "7756c67f-7774-4fe1-b1c2-eecb19f9c6a5", |
| | | "id" : "2d8061dd-a482-4608-8514-113389805fc4", |
| | | "label": "Register", |
| | | "routeType": "self-register", |
| | | "type": "route", |
| | |
| | | { |
| | | "activeViewId": "172db5bf-c37b-4cee-853b-212bf73517d7", |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "id": "0bcea7b6-93f9-47b9-a354-7c6ecc13b22f", |
| | | "activeViewId" : "2a182209-2527-4335-b672-176196ee6a0d", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "id" : "821d09c9-7732-4bb0-a002-f8fc3e825a20", |
| | | "label": "Related Record List", |
| | | "pageAccess": "UseParent", |
| | | "routeType": "relatedlist", |
| | |
| | | { |
| | | "activeViewId": "8e5cdbce-69e6-41cf-9d28-bf22b82ab29f", |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "id": "4cbb98c3-d712-4d7f-9516-d497244b5d7b", |
| | | "activeViewId" : "059d5f4a-e616-4540-be96-a34b294fb2a4", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "id" : "20b2eb69-8eea-41f6-bef2-3a3e66f4ac0f", |
| | | "label": "Report Builder", |
| | | "routeType": "createreport", |
| | | "type": "route", |
| | |
| | | { |
| | | "activeViewId": "ac90421b-0cd9-4c2e-a836-ee4567ce8d1f", |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "id": "a3d550e0-17da-410b-9046-20710587176d", |
| | | "activeViewId" : "66e48eb0-9203-4842-9fde-8b4e7e63b8ac", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "id" : "fbba1bbe-83b3-4711-ab64-131ca5bf8e4e", |
| | | "label": "Report Detail", |
| | | "routeType": "detail-00O", |
| | | "type": "route", |
| | |
| | | { |
| | | "activeViewId": "f71c1609-6433-4cf0-8846-695e50897517", |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "id": "0334744b-2e69-4b21-bca0-46da443d17a2", |
| | | "activeViewId" : "cbac51d9-cfc4-4fa7-bf92-603361ff1747", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "id" : "2f63d133-547c-46d3-ba43-4badc59db592", |
| | | "label": "Report List", |
| | | "routeType": "list-00O", |
| | | "type": "route", |
| | |
| | | { |
| | | "activeViewId": "2feda9aa-a785-4e98-9448-352e28d95b34", |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "id": "d3935a4f-b947-4b06-aaa7-a435e32b0d8f", |
| | | "activeViewId" : "dc215254-3731-423c-ba11-3d87746598e8", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "id" : "84243d63-bbfd-4642-8fc2-923d714ca322", |
| | | "label": "Resources", |
| | | "pageAccess": "UseParent", |
| | | "routeType": "files", |
| | |
| | | { |
| | | "activeViewId": "99b69c91-c8d8-42fe-91af-6f71e4612910", |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "id": "0bc852e1-bd84-4ab4-a37a-a680a15378e6", |
| | | "activeViewId" : "74aeae6d-8d40-433e-8168-45175ee356a6", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "id" : "a891eb3e-9e90-410a-9016-65f1ad0dc887", |
| | | "label": "Search", |
| | | "pageAccess": "UseParent", |
| | | "routeType": "global-search", |
| | |
| | | { |
| | | "activeViewId": "0c2c3b1a-34ee-493b-af35-596aa83568d6", |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "id": "6d5ad4ec-9290-4748-81ac-d75e71699bbb", |
| | | "activeViewId" : "e3ef5ec3-0aba-44b3-b608-6f939cf49c88", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "id" : "363f8c18-dff6-46a3-91c7-f574cc32b412", |
| | | "label": "Stream Detail", |
| | | "routeType": "detail-0Fq", |
| | | "type": "route", |
| | |
| | | { |
| | | "activeViewId": "6ef6f17a-0dda-4824-8310-e283e961890f", |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "id": "328d83cb-799e-47d6-af05-0f3b2cd704e4", |
| | | "activeViewId" : "e1275716-f06a-4a27-a667-19c49eefb083", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "id" : "fa6fe95d-1642-4d25-8690-9b9a1504e9a0", |
| | | "label": "Stream List", |
| | | "routeType": "list-0Fq", |
| | | "type": "route", |
| | |
| | | { |
| | | "activeViewId": "bc041b32-bf8f-47ac-8c7d-35d8b4167ee7", |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "id": "710677ce-88c2-4a7c-83bd-2e1a6ccce33f", |
| | | "activeViewId" : "3912430c-3c10-4bf3-bf37-5a619a596491", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "id" : "ecc9aeb9-aacd-4c2a-ab2e-e2e1befce726", |
| | | "label": "Topic Catalog", |
| | | "pageAccess": "UseParent", |
| | | "routeType": "topic-catalog", |
| | |
| | | { |
| | | "activeViewId": "8f8238dc-8f81-4994-9933-b4dcb285776e", |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "id": "77f8e584-3870-49e2-86c8-08389b371d5f", |
| | | "activeViewId" : "060ff5da-04b3-49de-8fb8-03decd8c188c", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "id" : "8a6adaa6-3a66-4924-aae5-ea1120239b86", |
| | | "label": "Topic Detail", |
| | | "routeType": "topic", |
| | | "type": "route", |
| | |
| | | { |
| | | "activeViewId": "2245cd19-8057-487b-8284-d7f20c56e1f7", |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "id": "a6b8fa86-82fc-41af-ad13-7bd0f38d383e", |
| | | "activeViewId" : "b3764d11-d26d-4554-8747-e7f30fb722bd", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "id" : "a611aa58-e18f-4242-882d-e91bc8977624", |
| | | "label": "User Profile", |
| | | "routeType": "detail-005", |
| | | "type": "route", |
| | |
| | | { |
| | | "activeViewId": "55bd4245-fde3-4919-8a43-b7e2ffc3aed7", |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "id": "7b23fd34-333f-4950-8543-98bea72908f6", |
| | | "activeViewId" : "8225f2be-2536-4868-afe9-ed11e1c1eb15", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "id" : "cf47d325-829c-4ce7-a2b3-2440777f63c4", |
| | | "label": "User Settings", |
| | | "routeType": "usersettings", |
| | | "type": "route", |
| | |
| | | { |
| | | "activeViewId": "c331401c-5c71-4d88-9350-c5e8a79202c5", |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "id": "0bc8b231-a663-4b31-8bc2-7b3e5e625d81", |
| | | "activeViewId" : "293921b6-1a37-49a3-a225-be2f3471a41c", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "id" : "9d3bd2d5-0b87-4b44-adad-6044a25d08aa", |
| | | "label": "æ¶èå订å å表", |
| | | "objectApiName": "Consumable_order__c", |
| | | "routeType": "list-a2K", |
| | |
| | | { |
| | | "activeViewId": "3dd9b830-a644-429b-8b1c-e2770454179a", |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "id": "1c5bbf6d-ddab-45f3-a882-a7bac3128a9f", |
| | | "activeViewId" : "54811d17-d3d4-47f5-b3a5-a9efd7a62afa", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "id" : "34031253-cc77-4f4e-8baf-c77ca2b9cc2a", |
| | | "label": "æ¶èå订å ç¸å
³å表", |
| | | "objectApiName": "Consumable_order__c", |
| | | "routeType": "relatedlist-a2K", |
| | |
| | | { |
| | | "activeViewId": "ae18f3f9-5d00-46e8-96d1-86c0ec9719cc", |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "id": "7283136d-99d5-4982-bb41-02e2ebc00e5a", |
| | | "activeViewId" : "edf32642-ece4-4435-94c9-82eb6b8f67a9", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "id" : "e7af9c90-036b-4cee-921f-06d6ef72f826", |
| | | "label": "æ¶èå订å 详ç»ä¿¡æ¯", |
| | | "objectApiName": "Consumable_order__c", |
| | | "routeType": "detail-a2K", |
| | |
| | | { |
| | | "activeBrandingSetId": "57ae3440-8896-4020-a05b-a780ddaf46f0", |
| | | "customCSS": ".siteforcePrmBody .cHeader .cBrandingLogo{\n width: 140px !important;\n height: 40px !important;\n}\n\n.siteforcePrmBody .comm-navigation{\n min-height:48px !important;\n}\n\n.siteforcePrmBody .comm-navigation .comm-navigation__item a, .siteforcePrmBody .comm-navigation .comm-navigation__item button{\n font-size:20px;\n}\n\ncAltToggleNav slds-icon_x-small{\n display:none;\n}\n\n.salesforceIdentityLoginBody2 .cCenterPanel{\n left:200px;\n top:-30px;\n min-width:320px !important;\n}\n.salesforceIdentityLoginForm2 .inputBox{\n min-width:180px !important;\n}\n\n.siteforcePrmBody .cHeader .forceSearchInputDesktop input, .siteforcePrmBody .cHeader .forceSearchInputDesktop input::placeholder{\n font-size:14px !important;\n}", |
| | | "activeBrandingSetId" : "da39013d-fbc0-4c27-a7a2-5f9d07bdb4bd", |
| | | "customCSS" : ".siteforcePrmBody .cHeader .cBrandingLogo{\n width: 140px !important;\n height: 40px !important;\n pointer-events:none;\n}\n\n.siteforcePrmBody .comm-navigation{\n min-height:48px !important;\n}\n\n.siteforcePrmBody .comm-navigation .comm-navigation__item a, .siteforcePrmBody .comm-navigation .comm-navigation__item button{\n font-size:20px;\n}\n\ncAltToggleNav slds-icon_x-small{\n display:none;\n}\n\n.salesforceIdentityLoginBody2 .cCenterPanel{\n left:200px;\n top:-30px;\n min-width:320px !important;\n}\n.salesforceIdentityLoginForm2 .inputBox{\n min-width:180px !important;\n}\n\n.siteforcePrmBody .cHeader .forceSearchInputDesktop input, .siteforcePrmBody .cHeader .forceSearchInputDesktop input::placeholder{\n font-size:14px !important;\n}\n.slds-button_icon-more{\n display:none;\n}\na.slds-button{\n display:none;\n}\n\n.forcePageBlockItemView .slds-form-element .slds-button_icon {\n display: none;\n}\n.siteforcePrmBody .forceCommunityRecordDetail .forceRecordLayout .forcePageBlockSectionView .full.forcePageBlockItemView{\n pointer-events:none\n}\n\n.slds-nav-vertical__title{\n display:none;\n}\n.slds-nav-vertical__title:first-of-type {\n display: block;\n}\n.slds-nav-vertical .slds-nav-vertical__section.navItems.entityItems:nth-child(3){\n display: none!important;\n}", |
| | | "developerName": "prm", |
| | | "id": "0c81955a-9ad5-4639-a11d-03665e570a65", |
| | | "id" : "dc3ec245-c32a-48fc-920e-8ff30c6cff7a", |
| | | "label": "Partner Central", |
| | | "layouts": { |
| | | "Inner": "39faaefb-3ef8-4fa6-a453-e348651dc20c", |
| | | "Login": "84cd1ad9-7292-4b3d-9595-4e9b33dbb1ab", |
| | | "ServiceNotAvailable": "16e1a319-5f46-4925-8a1d-7e4ee97b9b97" |
| | | "Inner" : "27b0f619-7930-4846-b53d-3eb904a52e9e", |
| | | "Login" : "d5b47306-6295-4d2d-a5d9-cb373be9c125", |
| | | "ServiceNotAvailable" : "1ed3aeb9-9205-4229-bfb0-71096321a26b" |
| | | }, |
| | | "type": "theme", |
| | | "views": [ |
| | | { |
| | | "views" : [ { |
| | | "componentAttributes": {}, |
| | | "componentName": "salesforceIdentity:loginBody2", |
| | | "id": "84cd1ad9-7292-4b3d-9595-4e9b33dbb1ab", |
| | | "id" : "d5b47306-6295-4d2d-a5d9-cb373be9c125", |
| | | "label": "Login", |
| | | "regions": [ |
| | | { |
| | | "id": "a91c3512-ae18-4751-bcf0-80e8cd355d9b", |
| | | "regions" : [ { |
| | | "id" : "74f03049-e17f-419d-b642-3406729e5ffe", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "id": "b788957d-6263-4d64-8491-97ea0a5187a4", |
| | | }, { |
| | | "id" : "0744fcb0-7421-49a4-8a25-eef41dc46740", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "id": "ba3b541d-6631-437f-a979-432ff99fdd30", |
| | | }, { |
| | | "id" : "74aa9402-e6be-4155-9d62-225d117a1754", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "type": "view" |
| | | }, |
| | | { |
| | | }, { |
| | | "componentAttributes": { |
| | | "IsDefaultHeaderHidden": false, |
| | | "IsDefaultHeaderPositionFixed": true, |
| | |
| | | "isPageWidthFixed": true |
| | | }, |
| | | "componentName": "siteforce:prmBody", |
| | | "id": "39faaefb-3ef8-4fa6-a453-e348651dc20c", |
| | | "id" : "27b0f619-7930-4846-b53d-3eb904a52e9e", |
| | | "label": "Default", |
| | | "regions": [ |
| | | { |
| | | "id": "c5802569-2598-48b8-9441-b4c8f976a16c", |
| | | "regions" : [ { |
| | | "id" : "16bdf3ff-1315-4546-88a6-de32558d62ab", |
| | | "regionName": "customHeader", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "maxAutoCompleteResults": 5, |
| | | "searchLabel": "æç´¢", |
| | | "searchObjects": [ |
| | | { |
| | | "isPublic": true, |
| | | "name": "Agency_Report_Header__c" |
| | | }, |
| | | { |
| | | "searchLabel" : "æç´¢...", |
| | | "searchObjects" : [ { |
| | | "isPublic": true, |
| | | "name": "Consumable_order__c" |
| | | } |
| | | ] |
| | | }, { |
| | | "isPublic" : true, |
| | | "name" : "Consumable_order_details2__c" |
| | | }, { |
| | | "isPublic" : true, |
| | | "name" : "ContentDocument" |
| | | } ] |
| | | }, |
| | | "componentName": "forceCommunity:globalSearchInput", |
| | | "id": "3c8dc360-c5d6-41fd-b1b0-8caec0d2377b", |
| | | "id" : "8675f0f3-1f0a-4d4b-a1e5-f49da3a754d6", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "f6021099-2f13-462d-a2a5-3c8cd07eb5ad", |
| | | } ], |
| | | "id" : "7af0cf8c-92cf-45b1-a808-2c4edea02007", |
| | | "regionName": "search", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "accountManagementLabel": "Account Management", |
| | | "communityBuilderLabel": "Experience Builder", |
| | | "communitySetupLabel": "Salesforce Setup", |
| | | "communitySetupLabel" : "设置", |
| | | "contactSupportLabel": "Contact Support", |
| | | "filterName": "MyCases", |
| | | "homeLabel": "Home", |
| | | "homeLabel" : "主页", |
| | | "includeContactSupport": false, |
| | | "includeMessages": false, |
| | | "loginLabel": "Login", |
| | | "logoutLabel": "Logout", |
| | | "myAccountLabel": "My Account", |
| | | "showAccountManagement": true, |
| | | "loginLabel" : "ç»å½", |
| | | "logoutLabel" : "éåº", |
| | | "myAccountLabel" : "æç客æ·", |
| | | "showAccountManagement" : false, |
| | | "showUserSettings": false, |
| | | "userSettingsLabel": "My Settings", |
| | | "viewProfileLabel": "My Profile" |
| | | "viewProfileLabel" : "个人信æ¯" |
| | | }, |
| | | "componentName": "selfService:userProfileMenu", |
| | | "id": "c241566b-9bf8-43a6-a068-c176ff75109e", |
| | | "id" : "e9f75e24-e895-4c54-83c3-936329504b74", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "6a60ad26-0295-4a78-ab90-28fcd2c0531e", |
| | | } ], |
| | | "id" : "1f8acbb0-d430-44e9-a27f-695c6176b837", |
| | | "regionName": "profileMenu", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "NavigationMenuEditorRefresh": "Default_Navigation3", |
| | | "hideAppLauncher": true, |
| | | "hideHomeText": false |
| | | }, |
| | | "componentName": "forceCommunity:globalNavigation", |
| | | "id": "932fd9d7-f187-457d-83af-d59077849505", |
| | | "id" : "ef1a7404-2c49-4de2-82fd-cfcd351cc65a", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "7475eca5-ac9b-46dd-bda0-15fee73ff99a", |
| | | } ], |
| | | "id" : "ce986e45-573a-4449-821c-c1d048044cd6", |
| | | "regionName": "navBar", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "id": "f932ec44-4720-4579-b9bb-014a3c718815", |
| | | }, { |
| | | "id" : "d389ebfc-0fde-47e7-93c5-1181c3a80075", |
| | | "regionName": "customRegion", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "id": "0e9bcb14-01ed-4e78-b6a0-f04805ae5206", |
| | | }, { |
| | | "id" : "773b1fa0-0bcd-4b2e-81f7-a88ac559a6bf", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "type": "view" |
| | | }, |
| | | { |
| | | }, { |
| | | "componentAttributes": { |
| | | "fixedPageWidth": 1170, |
| | | "headerBgColor": "rgba(0, 0, 0, 0)", |
| | |
| | | "showHero": true |
| | | }, |
| | | "componentName": "siteforce:themeLayoutStarter", |
| | | "id": "16e1a319-5f46-4925-8a1d-7e4ee97b9b97", |
| | | "id" : "1ed3aeb9-9205-4229-bfb0-71096321a26b", |
| | | "label": "ServiceNotAvailable", |
| | | "regions": [ |
| | | { |
| | | "id": "a4d1a1d0-2316-47b2-8a3a-2e1a6fa7c860", |
| | | "regions" : [ { |
| | | "id" : "a29c8ac1-de42-4098-910c-b4c76b635e54", |
| | | "regionName": "themeHeader", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "id": "649ab6db-a997-4384-970f-554fd7658ea8", |
| | | }, { |
| | | "id" : "a2b35d26-5d76-47c4-9dd0-cfff946cd7c7", |
| | | "regionName": "themeFooter", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "type": "view" |
| | | } |
| | | ] |
| | | } ] |
| | | } |
| | |
| | | { |
| | | "componentVariants": [ |
| | | { |
| | | "componentVariants" : [ { |
| | | "id": "5a61b685-6f3e-4b96-979f-4aa7aa2ecc1f", |
| | | "propertyOverrides": { |
| | | "componentAttributes": { |
| | |
| | | }, |
| | | "targetId": "ef1a7404-2c49-4de2-82fd-cfcd351cc65a", |
| | | "type": "componentVariant" |
| | | } |
| | | ], |
| | | } ], |
| | | "developerName": "Default_CustomComponent_Properties_Component_Properties", |
| | | "id": "5cd60da6-8927-4324-9ed5-e03ab9ab5da6", |
| | | "type": "experienceVariation" |
| | |
| | | { |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "componentName": "siteforce:sldsOneColLayout", |
| | | "dataProviders": [], |
| | | "id": "fd91a176-37cc-4c72-887d-8a32f8472825", |
| | | "id" : "198e4bed-7a3a-4a56-a15a-d354e55d5624", |
| | | "label": "Account Management", |
| | | "regions": [ |
| | | { |
| | | "id": "262d4441-fd9c-4127-9986-4c9ad8587eba", |
| | | "regions" : [ { |
| | | "id" : "202c6d5b-0e3e-4ee4-9327-bb9e056f5ccd", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "richTextValue": " <h1 style=\"text-align: center;\"> <b style=\"font-size: 20px; color: #1e2443;\">Account Management</b> </h1> " |
| | | }, |
| | | "componentName": "forceCommunity:richTextInline", |
| | | "id": "3d0c495a-f911-45a0-9567-812a0743c581", |
| | | "id" : "23086da8-7c2e-4db2-9d92-e2cb300415db", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | }, |
| | | { |
| | | }, { |
| | | "componentAttributes": { |
| | | "tabsetConfig": { |
| | | "UUID": "70bcdbb9-d991-42bc-b481-e7402ac6098d", |
| | | "UUID" : "65ec293d-c556-4ebb-a718-1d2091eebe82", |
| | | "activeTab": "tab1", |
| | | "tabs": [ |
| | | { |
| | | "UUID": "a29aefd0-0fcc-4da9-9870-d36a8d0de93e", |
| | | "tabs" : [ { |
| | | "UUID" : "507fb429-2282-49b5-8878-f05f01f9861a", |
| | | "allowGuestUser": false, |
| | | "locked": false, |
| | | "seedComponents": [ |
| | | { |
| | | "seedComponents" : [ { |
| | | "attributes": { |
| | | "customTitle": "Members", |
| | | "parentRecordId": "{!CurrentUser.accountId}", |
| | |
| | | "showRowNumbers": "false" |
| | | }, |
| | | "fqn": "forceCommunity:relatedList" |
| | | } |
| | | ], |
| | | } ], |
| | | "tabKey": "tab1", |
| | | "tabName": "Members" |
| | | }, |
| | | { |
| | | "UUID": "03536177-264d-43e3-8c3f-1214755f8b7b", |
| | | }, { |
| | | "UUID" : "c61e3f16-c77e-49f2-b596-d89451128362", |
| | | "allowGuestUser": false, |
| | | "locked": false, |
| | | "seedComponents": [ |
| | | { |
| | | "seedComponents" : [ { |
| | | "attributes": { |
| | | "recordId": "{!CurrentUser.accountId}" |
| | | }, |
| | | "fqn": "forceCommunity:accountBrandRecord" |
| | | } |
| | | ], |
| | | } ], |
| | | "tabKey": "tab2", |
| | | "tabName": "Branding" |
| | | } |
| | | ], |
| | | } ], |
| | | "useOverflowMenu": false |
| | | } |
| | | }, |
| | | "componentName": "forceCommunity:tabset", |
| | | "id": "70bcdbb9-d991-42bc-b481-e7402ac6098d", |
| | | "regions": [ |
| | | { |
| | | "components": [ |
| | | { |
| | | "id" : "65ec293d-c556-4ebb-a718-1d2091eebe82", |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customTitle": "Members", |
| | | "parentRecordId": "{!CurrentUser.accountId}", |
| | |
| | | "showRowNumbers": false |
| | | }, |
| | | "componentName": "forceCommunity:relatedList", |
| | | "id": "a9efd81a-d6fa-448b-93cf-280e7c6ef46c", |
| | | "id" : "1054405a-fda1-450b-a9ec-67e9be3839fb", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "a29aefd0-0fcc-4da9-9870-d36a8d0de93e", |
| | | } ], |
| | | "id" : "507fb429-2282-49b5-8878-f05f01f9861a", |
| | | "regionLabel": "Members", |
| | | "regionName": "tab1", |
| | | "renditionMap": {}, |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "recordId": "{!CurrentUser.accountId}" |
| | | }, |
| | | "componentName": "forceCommunity:accountBrandRecord", |
| | | "id": "18ef9967-2369-484a-83db-f4c32494e9cc", |
| | | "id" : "7b84436c-612b-4042-b9c4-411d9fbe0957", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "03536177-264d-43e3-8c3f-1214755f8b7b", |
| | | } ], |
| | | "id" : "c61e3f16-c77e-49f2-b596-d89451128362", |
| | | "regionLabel": "Branding", |
| | | "regionName": "tab2", |
| | | "renditionMap": {}, |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "994d71b3-70bd-4c11-a9a5-343ca297dc90", |
| | | } ], |
| | | "id" : "9d9976f8-dd44-4d6f-91c8-06440b957386", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "id": "dd298082-15f8-418d-9f95-7384993b0791", |
| | | }, { |
| | | "id" : "3583c796-50b6-4943-86ba-e0f908a892d2", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customHeadTags": "", |
| | | "description": "", |
| | | "title": "Account Management" |
| | | }, |
| | | "componentName": "forceCommunity:seoAssistant", |
| | | "id": "675eddaf-9bb9-4932-86dd-ee69780ecb3d", |
| | | "id" : "e6b1c498-01fb-4b0d-b21f-55bfa86e605b", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "0736aa4d-5574-41f3-8504-6e9ab73263f2", |
| | | } ], |
| | | "id" : "786a718c-93c1-484e-8839-716d2b615d06", |
| | | "regionName": "sfdcHiddenRegion", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "account-management" |
| | |
| | | "dataProviders": [], |
| | | "id": "708367ab-41a2-4633-a93a-1a54141f1f48", |
| | | "label": "CIC ãªã¹ã", |
| | | "regions": [ |
| | | { |
| | | "regions" : [ { |
| | | "id": "2c3dbc4b-bfd9-4394-af4f-e60cb9fdcb79", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "enableInlineEdit": true, |
| | | "filterName": "{!filterId}", |
| | |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | } ], |
| | | "id": "2e605af4-63d3-4eae-beb4-fd599953e389", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | }, { |
| | | "id": "04eec419-32b1-46b5-9099-b2d8ee3f3b9f", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "list-500" |
| | |
| | | "dataProviders": [], |
| | | "id": "23a3c897-7fcb-41da-8cff-7a8e8c2450a7", |
| | | "label": "CIC é¢é£ãªã¹ã", |
| | | "regions": [ |
| | | { |
| | | "regions" : [ { |
| | | "id": "7800ff3e-33e5-4b19-bab9-8644728f37bf", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customTitle": "", |
| | | "parentRecordId": "{!recordId}", |
| | |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | } ], |
| | | "id": "a0fd5eb9-914a-4c35-b584-0ff858f8c09f", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | }, { |
| | | "id": "22efa46a-6f6e-4300-8b97-ab5a253c1410", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "relatedlist-500" |
| | |
| | | { |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "componentName": "siteforce:sldsOneColLayout", |
| | | "dataProviders": [], |
| | | "id": "4908488d-d41c-4c3d-9f3e-c885a408863c", |
| | | "id" : "f83414cc-cd96-4d24-94d6-1d6fdad65b83", |
| | | "label": "Campaign List", |
| | | "regions": [ |
| | | { |
| | | "id": "60c2bc90-4421-459e-b1ba-a2107f339447", |
| | | "regions" : [ { |
| | | "id" : "8cd141df-47bb-44e7-88e8-d6cf2dcb60e0", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "tabsetConfig": { |
| | | "UUID": "d016bcc8-d583-403f-98e1-b4cc52482162", |
| | | "UUID" : "8eb696d0-116a-43bd-aacf-3dcb9d42f82a", |
| | | "activeTab": "tab1", |
| | | "tabs": [ |
| | | { |
| | | "UUID": "05cfd9b7-fe86-42d7-ae45-913d15406f64", |
| | | "tabs" : [ { |
| | | "UUID" : "295af927-269e-4ae3-89c6-1065c44b9479", |
| | | "allowGuestUser": true, |
| | | "locked": false, |
| | | "seedComponents": [ |
| | | { |
| | | "seedComponents" : [ { |
| | | "attributes": { |
| | | "richTextValue": " <p><br/></p> <p style="text-align:left;"> Use these campaigns to generate leads and grow your business </p> " |
| | | }, |
| | | "fqn": "forceCommunity:richTextInline" |
| | | }, |
| | | { |
| | | }, { |
| | | "attributes": {}, |
| | | "fqn": "forceCommunity:campaignTileList" |
| | | } |
| | | ], |
| | | } ], |
| | | "tabKey": "tab1", |
| | | "tabName": "Campaign Marketplace" |
| | | }, |
| | | { |
| | | "UUID": "6b84f5c2-b5dd-4aae-b061-dbb84244686b", |
| | | }, { |
| | | "UUID" : "41da809c-e1f0-44f4-b742-c33cfecac7ff", |
| | | "allowGuestUser": true, |
| | | "locked": false, |
| | | "seedComponents": [ |
| | | { |
| | | "seedComponents" : [ { |
| | | "attributes": { |
| | | "filterName": "Recent", |
| | | "scope": "Campaign" |
| | | }, |
| | | "fqn": "forceCommunity:objectHome" |
| | | } |
| | | ], |
| | | } ], |
| | | "tabKey": "tab2", |
| | | "tabName": "All Campaigns" |
| | | } |
| | | ], |
| | | } ], |
| | | "useOverflowMenu": false |
| | | } |
| | | }, |
| | | "componentName": "forceCommunity:tabset", |
| | | "id": "d016bcc8-d583-403f-98e1-b4cc52482162", |
| | | "regions": [ |
| | | { |
| | | "components": [ |
| | | { |
| | | "id" : "8eb696d0-116a-43bd-aacf-3dcb9d42f82a", |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "richTextValue": " <p><br/></p> <p style="text-align:left;"> Use these campaigns to generate leads and grow your business </p> " |
| | | }, |
| | | "componentName": "forceCommunity:richTextInline", |
| | | "id": "5d79ac34-0177-4289-b5a8-ca6411a73449", |
| | | "id" : "ffe2df03-ba7f-4a7f-a8a2-c3e393c9cfaa", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | }, |
| | | { |
| | | }, { |
| | | "componentAttributes": { |
| | | "bodyField": "Description", |
| | | "categoryField": "__", |
| | |
| | | "titleField": "Name" |
| | | }, |
| | | "componentName": "forceCommunity:campaignTileList", |
| | | "id": "6759af65-a1cb-4ed7-857d-7d1e8f5345aa", |
| | | "id" : "b697c485-7d58-4403-a0ca-3ad0490ca174", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "05cfd9b7-fe86-42d7-ae45-913d15406f64", |
| | | } ], |
| | | "id" : "295af927-269e-4ae3-89c6-1065c44b9479", |
| | | "regionLabel": "Campaign Marketplace", |
| | | "regionName": "tab1", |
| | | "renditionMap": {}, |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "enableInlineEdit": true, |
| | | "filterName": "Recent", |
| | |
| | | "showSearchBar": true |
| | | }, |
| | | "componentName": "forceCommunity:objectHome", |
| | | "id": "b172d17f-5066-4094-8678-182496badab9", |
| | | "id" : "468384df-73f0-459b-8b3b-99cb260ace82", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "6b84f5c2-b5dd-4aae-b061-dbb84244686b", |
| | | } ], |
| | | "id" : "41da809c-e1f0-44f4-b742-c33cfecac7ff", |
| | | "regionLabel": "All Campaigns", |
| | | "regionName": "tab2", |
| | | "renditionMap": {}, |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "535cdff9-cb2b-4795-a86f-7ab08bee59c0", |
| | | } ], |
| | | "id" : "f05e4448-347d-4264-ba99-7d8afeb75c23", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "id": "3c3ec81e-d8af-40ff-9335-930d66638643", |
| | | }, { |
| | | "id" : "7627cbac-8224-4c40-ac93-186f3a47f991", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "list-701" |
| | |
| | | { |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "componentName": "siteforce:sldsOneColLayout", |
| | | "dataProviders": [], |
| | | "id": "b17204f0-44a2-4866-abaf-23f750a97ddd", |
| | | "id" : "3b1b2646-af41-43d3-a519-528aa49f45f4", |
| | | "label": "Case Detail", |
| | | "regions": [ |
| | | { |
| | | "id": "9c67d8f8-f7eb-4b96-a1a7-16b8062b3d57", |
| | | "regions" : [ { |
| | | "id" : "1eb1822e-40d4-40a9-8504-a3bc8ae79809", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "recordId": "{!recordId}" |
| | | }, |
| | | "componentName": "forceCommunity:recordHeadline", |
| | | "id": "2c68dcfb-9f4e-4cac-b812-0ae412ff8733", |
| | | "id" : "1602b68a-ea96-47ea-8132-0bba6301069a", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | }, |
| | | { |
| | | }, { |
| | | "componentAttributes": { |
| | | "detailsTabLabel": "Details", |
| | | "discussionsTabLabel": "Feed", |
| | |
| | | "timelineTabLabel": "Activity" |
| | | }, |
| | | "componentName": "forceCommunity:recordHomeTabs", |
| | | "id": "fd039f89-ba1f-4f3d-a270-52cbb83bb6e5", |
| | | "id" : "eb5335d5-d3df-4512-91ae-50c5403ea737", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "744079bf-ab73-462e-a23f-4f17a7b40b13", |
| | | } ], |
| | | "id" : "40f59663-263d-41c7-94ea-345dca5b494e", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "id": "c3923904-a96f-479d-94da-8529e773dada", |
| | | }, { |
| | | "id" : "c47a29f6-4120-46fd-9cfb-e9724d01b1e8", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customHeadTags": "", |
| | | "description": "", |
| | | "title": "{!Record._Object}: {!Record._Title}" |
| | | }, |
| | | "componentName": "forceCommunity:seoAssistant", |
| | | "id": "d7c9dd3f-bed9-4be6-877e-a0aa3309ab58", |
| | | "id" : "f8cd34d0-3569-404e-ad02-b6abae393992", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "6926117b-34c0-4fd7-b2c0-040443303e3e", |
| | | } ], |
| | | "id" : "28f1ae6f-7ab6-49c0-a8b1-4819fbedcae3", |
| | | "regionName": "sfdcHiddenRegion", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "detail-500" |
| | |
| | | { |
| | | "appPageId": "bfbf7350-cdcd-4e2c-97a5-ab51f2aa3b9d", |
| | | "appPageId" : "7756c67f-7774-4fe1-b1c2-eecb19f9c6a5", |
| | | "componentName": "siteforce:sldsOneColLayout", |
| | | "dataProviders": [], |
| | | "id": "14d5ae00-1629-429d-ac4f-b5abd28a21a3", |
| | | "id" : "82d3f50a-42f2-4aa2-b028-7b07d878cd63", |
| | | "label": "Check Password", |
| | | "regions": [ |
| | | { |
| | | "components": [ |
| | | { |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "richTextValue": "<p style=\"text-align: center;\"><span style=\"color: rgb(255, 255, 255); font-size: 22px;\">è¯·æ£æ¥æ¨çé®ç®±</span></p>" |
| | | "richTextValue" : "<p style=\"text-align: center;\"><span style=\"font-size: 22px; color: rgb(255, 255, 255);\">请è¾å
¥æ¨çé®ç®±</span></p>" |
| | | }, |
| | | "componentName": "forceCommunity:richTextInline", |
| | | "id": "e9066c74-c45a-4512-a11b-755b5f5629bc", |
| | | "id" : "19245457-d13d-434e-9b0f-b0242a8ab8f4", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | }, |
| | | { |
| | | }, { |
| | | "componentAttributes": { |
| | | "richTextValue": "<p style=\"text-align: center;\"><span style=\"color: rgb(255, 255, 255);\">æ£æ¥ä¸æ¨çç¨æ·åå
³èççµåé®ä»¶å¸æ·ï¼ä»¥è·åæå
³éç½®å¯ç ç说æãè¯·è®°ä½æ¥çæ¨çåå¾é®ä»¶æä»¶å¤¹ï¼èªå¨é®ä»¶ææ¶ä¼å¨å
¶ä¸è¿æ»¤ã妿æ¨ä»ç¶æ æ³ç»å½ï¼è¯·èç³»æ¨ç管çåã</span></p><p style=\"text-align: center;\"><br></p><p style=\"text-align: center;\"><a href=\"./\" rel=\"noopener noreferrer\" target=\"_self\" style=\"font-size: 16px; color: rgb(255, 255, 255);\"><strong>è¿åç»å½</strong></a></p>" |
| | | "richTextValue" : "<p style=\"text-align: center;\"><span style=\"color: rgb(255, 255, 255);\">æ£æ¥ä¸æ¨çç¨æ·åå
³èççµåé®ä»¶å¸æ·ï¼ä»¥è·åæå
³éç½®å¯ç ç说æãè¯·è®°ä½æ¥çæ¨çåå¾é®ä»¶æä»¶å¤¹ï¼èªå¨é®ä»¶ææ¶ä¼å¨å
¶ä¸è¿æ»¤ã妿æ¨ä»ç¶æ æ³ç»å½ï¼è¯·èç³»æ¨ç管çå</span></p>" |
| | | }, |
| | | "componentName": "forceCommunity:richTextInline", |
| | | "id": "87485c52-d378-475d-895e-caeb1bdd08ac", |
| | | "id" : "402e03d5-588a-468f-9acf-adddef37b551", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "ee29b16c-6260-473d-b315-a8b3e70d218f", |
| | | }, { |
| | | "componentAttributes" : { |
| | | "richTextValue" : "<p style=\"text-align: center;\"><a href=\"./\" rel=\"noopener noreferrer\" target=\"_blank\" style=\"color: rgb(255, 255, 255);\"><strong>è¿åç»å½</strong></a></p>" |
| | | }, |
| | | "componentName" : "forceCommunity:richTextInline", |
| | | "id" : "4ad83c2b-e483-49d6-9721-2245ea3567bf", |
| | | "renderPriority" : "NEUTRAL", |
| | | "renditionMap" : { }, |
| | | "type" : "component" |
| | | } ], |
| | | "id" : "9985d44e-a0e1-4ea8-8392-69ecd11b717a", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customHeadTags": "", |
| | | "description": "", |
| | | "title": "Check Password" |
| | | }, |
| | | "componentName": "forceCommunity:seoAssistant", |
| | | "id": "cee2921c-7188-455b-b121-8633b148aac3", |
| | | "id" : "d9766929-20bd-4383-bb47-d081a8982254", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "e3ffa5e5-e5e0-49ac-b32f-953d1c6c7084", |
| | | } ], |
| | | "id" : "cfc14d85-84ee-4928-9a0e-a5b204930def", |
| | | "regionName": "sfdcHiddenRegion", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Login", |
| | | "type": "view", |
| | | "viewType": "check-password" |
| | |
| | | { |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "componentName": "siteforce:dynamicLayout", |
| | | "dataProviders": [], |
| | | "id": "ae18f3f9-5d00-46e8-96d1-86c0ec9719cc", |
| | | "id" : "edf32642-ece4-4435-94c9-82eb6b8f67a9", |
| | | "label": "ConsumableDetail_fix", |
| | | "regions": [ |
| | | { |
| | | "components": [ |
| | | { |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "background": "background: rgba(0,0,0,0)", |
| | | "backgroundOverlay": "rgba(0,0,0,0.5)", |
| | | "contentAreaWidth": 100, |
| | | "sectionConfig": { |
| | | "UUID": "c5216591-0210-4c09-a832-9b7a8c57c03f", |
| | | "columns": [ |
| | | { |
| | | "UUID": "192f0791-c2cd-4d37-953e-3b145ecdf320", |
| | | "UUID" : "2669d21c-e835-4689-a403-f77a18c9d715", |
| | | "columns" : [ { |
| | | "UUID" : "e9dbbc4b-efc6-4508-9533-9280eec53143", |
| | | "columnKey": "1", |
| | | "columnName": "Column 1", |
| | | "columnWidth": "12", |
| | | "seedComponents": [] |
| | | } |
| | | ] |
| | | } ] |
| | | }, |
| | | "sectionHeight": 115 |
| | | }, |
| | | "componentName": "forceCommunity:section", |
| | | "id": "c5216591-0210-4c09-a832-9b7a8c57c03f", |
| | | "regions": [ |
| | | { |
| | | "components": [ |
| | | { |
| | | "id" : "2669d21c-e835-4689-a403-f77a18c9d715", |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "recordId": "{!recordId}" |
| | | }, |
| | | "componentName": "forceCommunity:recordHeadline", |
| | | "id": "6b924e95-ca67-4fab-87f2-d4d2286e13a7", |
| | | "id" : "73412524-f13e-4a0f-b81b-94cc87c0440c", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "192f0791-c2cd-4d37-953e-3b145ecdf320", |
| | | } ], |
| | | "id" : "e9dbbc4b-efc6-4508-9533-9280eec53143", |
| | | "regionLabel": "Column 1", |
| | | "regionName": "1", |
| | | "renditionMap": {}, |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | }, |
| | | { |
| | | }, { |
| | | "componentAttributes": { |
| | | "background": "background: rgba(0,0,0,0)", |
| | | "backgroundOverlay": "rgba(0,0,0,0.5)", |
| | | "contentAreaWidth": 100, |
| | | "sectionConfig": { |
| | | "UUID": "6ff941f3-4e49-4606-b575-e6c1111b189a", |
| | | "columns": [ |
| | | { |
| | | "UUID": "b39f19c2-e5bf-4dd1-8c92-f0e8ca28f43f", |
| | | "UUID" : "ca5f02db-0367-4e6f-8d40-9a4c8ea72d7b", |
| | | "columns" : [ { |
| | | "UUID" : "4bd8dfe7-7509-4b99-ad0a-0b6c9eb193bf", |
| | | "columnKey": "1", |
| | | "columnName": "Column 1", |
| | | "columnWidth": "8", |
| | | "seedComponents": [] |
| | | }, |
| | | { |
| | | "UUID": "488034df-aeaa-4f35-a60f-f87855a1b359", |
| | | "columnKey": "9f7d9", |
| | | }, { |
| | | "UUID" : "3aa51a7e-96bb-475b-96b3-7cd6fe4a14af", |
| | | "columnKey" : "a2a96", |
| | | "columnName": "Column 2", |
| | | "columnWidth": "4", |
| | | "seedComponents": [] |
| | | } |
| | | ] |
| | | } ] |
| | | }, |
| | | "sectionHeight": 300 |
| | | }, |
| | | "componentName": "forceCommunity:section", |
| | | "id": "6ff941f3-4e49-4606-b575-e6c1111b189a", |
| | | "regions": [ |
| | | { |
| | | "components": [ |
| | | { |
| | | "id" : "ca5f02db-0367-4e6f-8d40-9a4c8ea72d7b", |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "recordId": "{!recordId}" |
| | | }, |
| | | "componentName": "forceCommunity:recordDetail", |
| | | "id": "e13b2d88-d293-4f5f-92c3-114708265abb", |
| | | "id" : "8804e9ec-b2a3-41f4-b8be-6a0443bea1e7", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "b39f19c2-e5bf-4dd1-8c92-f0e8ca28f43f", |
| | | } ], |
| | | "id" : "4bd8dfe7-7509-4b99-ad0a-0b6c9eb193bf", |
| | | "regionLabel": "Column 1", |
| | | "regionName": "1", |
| | | "renditionMap": {}, |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "recordId": "{!recordId}", |
| | | "width": "MEDIUM" |
| | | }, |
| | | "componentName": "forceCommunity:relatedRecords", |
| | | "id": "b85bf391-627a-4855-b35c-06ad17df77e7", |
| | | "id" : "eda1b3f7-603a-4290-a4b4-0bdd5bfea4ec", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "488034df-aeaa-4f35-a60f-f87855a1b359", |
| | | } ], |
| | | "id" : "3aa51a7e-96bb-475b-96b3-7cd6fe4a14af", |
| | | "regionLabel": "Column 2", |
| | | "regionName": "9f7d9", |
| | | "regionName" : "a2a96", |
| | | "renditionMap": {}, |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "0dbd3738-5308-4691-90ef-2ca7435f6c0d", |
| | | } ], |
| | | "id" : "e0d975de-d0c9-499e-9c79-15b3de367011", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customHeadTags": "", |
| | | "description": "", |
| | | "title": "{!Record._Object}: {!Record._Title}" |
| | | }, |
| | | "componentName": "forceCommunity:seoAssistant", |
| | | "id": "d53c3fbf-b313-4cc9-ac51-c415bdb3a8c7", |
| | | "id" : "d1ccd1e3-344a-42e4-b66e-81c4ac575f87", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "7edf4894-febc-4588-b8ec-a1600a9a04d3", |
| | | } ], |
| | | "id" : "926e94d2-26ee-49b8-9085-abb739f639ee", |
| | | "regionName": "sfdcHiddenRegion", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "detail-a2K" |
| | |
| | | { |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "componentName": "siteforce:sldsTwoCol66Layout", |
| | | "dataProviders": [], |
| | | "id": "112e477b-4a73-4f9d-9e34-ebb2efff5acd", |
| | | "id" : "e8279a27-ff8f-42fc-9bd1-53b3f59350ab", |
| | | "label": "Contact Support", |
| | | "regions": [ |
| | | { |
| | | "id": "3fac5382-70c4-4d82-9a05-196fbcfce6ce", |
| | | "regions" : [ { |
| | | "id" : "4ad609eb-6693-4846-a08e-e4fa961e9991", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "allowAttachments": true, |
| | | "attachmentLabel": "Upload File", |
| | |
| | | "requestSummaryText": "Case summary" |
| | | }, |
| | | "componentName": "forceCommunity:contactSupportForm", |
| | | "id": "6ccb7e63-0255-4dd9-995a-4d52b12e4311", |
| | | "id" : "31e9512a-f8de-4d46-8f19-5c2afaf7b18b", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "ef1eb48b-62cf-4b6b-bb30-a9783f410efb", |
| | | } ], |
| | | "id" : "d2619a80-c4a9-449f-8dd4-4305e7c1e81c", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "askConfirmationQuestion": true, |
| | | "confirmationMessageLabel": "Got it!", |
| | |
| | | "topicId": "" |
| | | }, |
| | | "componentName": "forceCommunity:caseDeflection", |
| | | "id": "f2a0a519-1464-4325-a800-2ec01165be89", |
| | | "id" : "647280c4-1a9d-4551-a0fd-1323f11625af", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "6dc7c8e1-bb5d-48b0-ba00-fa97b9cfeced", |
| | | } ], |
| | | "id" : "3c86f83b-c2fa-41ed-bef6-f6d97c96253c", |
| | | "regionName": "sidebar", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "id": "c2e93eba-7820-4af2-bd14-a67cca438b33", |
| | | }, { |
| | | "id" : "bacb957e-44f3-481a-aa70-7b45c0c9ba1e", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customHeadTags": "", |
| | | "description": "", |
| | | "title": "Contact Support" |
| | | }, |
| | | "componentName": "forceCommunity:seoAssistant", |
| | | "id": "dc9640dc-b460-4a6b-a845-7e753a94d360", |
| | | "id" : "d0de04cd-88a3-4905-a36c-bbf4e97b7707", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "d377d055-e453-4ad9-a2ab-572a3e788983", |
| | | } ], |
| | | "id" : "0b6a520d-0f34-4411-a3c9-c360b06d30fa", |
| | | "regionName": "sfdcHiddenRegion", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "contactsupport" |
| | |
| | | { |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "componentName": "siteforce:sldsOneColLayout", |
| | | "dataProviders": [], |
| | | "id": "d64df38f-9de1-4248-9c13-ef41d110ffd8", |
| | | "id" : "0f63dfba-f74b-4011-a0d5-75fe665d7bfb", |
| | | "label": "Create Record", |
| | | "regions": [ |
| | | { |
| | | "id": "0ef64b23-8a56-4d87-9984-219633feaf24", |
| | | "regions" : [ { |
| | | "id" : "951aa7a1-efc5-4041-8929-3d980fe6f9b7", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes" : { |
| | | "actionApiName" : "{!actionApiName}", |
| | | "isMicrobatch" : false |
| | | }, |
| | | { |
| | | "id": "33abd4a1-c8d6-4b2b-8df7-3ef0b829a56c", |
| | | "componentName" : "forceCommunity:createRecordForm", |
| | | "id" : "21c870a6-c4cb-476f-8dde-6906530b418e", |
| | | "renderPriority" : "NEUTRAL", |
| | | "renditionMap" : { }, |
| | | "type" : "component" |
| | | } ], |
| | | "id" : "7f501f3e-1f42-4cf8-925e-d0e654c13ff3", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "id": "63eee37e-e8ea-4cae-b2a7-81328a5fefab", |
| | | }, { |
| | | "id" : "23111281-f438-4296-b47a-773feea9a17e", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "createrecord" |
| | |
| | | { |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "componentName": "siteforce:sldsOneColLayout", |
| | | "dataProviders": [], |
| | | "id": "47937364-e71b-469a-b996-317032189c45", |
| | | "id" : "4544a0e2-5ddb-49d0-b154-3903b3e7fb68", |
| | | "label": "Dashboard Detail", |
| | | "regions": [ |
| | | { |
| | | "id": "646d2c85-c6e9-4db7-8a6f-3c118c0c5ee8", |
| | | "regions" : [ { |
| | | "id" : "cf059051-9545-478c-a076-e7ff4543d95f", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "height": "1065", |
| | | "recordId": "{!recordId}" |
| | | }, |
| | | "componentName": "forceCommunity:dashboard", |
| | | "id": "d0f9abce-c4ac-4e23-a574-19da9a5024c3", |
| | | "id" : "a3426236-d100-4c2a-9655-6d6e3930b6df", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "e91e78ff-ac70-4d20-8301-fb1e76dedb9b", |
| | | } ], |
| | | "id" : "38ddc7db-4ed1-42e3-9ee6-ef8459588b7f", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "id": "b1e7a1e2-39aa-47b7-a37d-75824027907a", |
| | | }, { |
| | | "id" : "d8f6f3ba-bac7-47a6-aa9c-12121409f9f2", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customHeadTags": "", |
| | | "description": "", |
| | | "title": "{!Record._Object}: {!Record._Title}" |
| | | }, |
| | | "componentName": "forceCommunity:seoAssistant", |
| | | "id": "6d83a6d3-edaf-4f22-ac0c-92d6b220fd30", |
| | | "id" : "d12ac0ed-4451-4546-bb3f-07f3465b5d33", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "558015ea-19cc-4c77-aba2-c53f3cc764d9", |
| | | } ], |
| | | "id" : "f48d58f3-43e0-47a0-ab8b-61f57ce68b15", |
| | | "regionName": "sfdcHiddenRegion", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "detail-01Z" |
| | |
| | | { |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "componentName": "siteforce:sldsOneColLayout", |
| | | "dataProviders": [], |
| | | "id": "b59c266b-a1ad-47f9-bf26-a8295147505c", |
| | | "id" : "f10a3529-b77e-4ebc-9b99-281160c97c7f", |
| | | "label": "Dashboard List", |
| | | "regions": [ |
| | | { |
| | | "id": "33cc3069-d9f2-464b-9053-91112d7480d4", |
| | | "regions" : [ { |
| | | "id" : "aace5538-56aa-4a21-bb35-9a40c211bcb0", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": {}, |
| | | "componentName": "forceCommunity:dashboardList", |
| | | "id": "760458df-b4cc-46a5-beac-b21fde008f88", |
| | | "id" : "1b31f86d-98da-4daf-b754-b394d38a581a", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "e38cff0d-f391-468b-a4cc-cf69b7eeabff", |
| | | } ], |
| | | "id" : "45be9d35-4310-4df5-a2ce-56f3a70c91cb", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "id": "1045796b-cf40-4b2b-867e-ce02ce0a02dc", |
| | | }, { |
| | | "id" : "54a7dd8d-3042-44ce-834f-6a590085586d", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "list-01Z" |
| | |
| | | { |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "componentName": "siteforce:sldsOneColLayout", |
| | | "dataProviders": [], |
| | | "id": "48f1f5ec-b27a-4874-83fa-15e857b27699", |
| | | "id" : "f02c5a75-f64e-4716-b209-f9f1ef46d49a", |
| | | "label": "Error", |
| | | "regions": [ |
| | | { |
| | | "id": "01af81bd-4eb5-4add-bd2a-5af47ca64f31", |
| | | "regions" : [ { |
| | | "id" : "04daa4a0-4d2d-46f9-bc70-f4ef28375c2d", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "richTextValue": " <div class='slds-grid slds-grid--vertical slds-align--absolute-center slds-container--large'> <div class='slds-align-middle slds-m-bottom--xx-large slds-m-top--xx-large' alt='Page not available'> <img src='/sfsites/c/img/community/slds/messaging/illustration-page-not-found.png' class='slds-p-horizontal--large'/> </div> <h4 class='slds-text-align--center slds-text-heading--large slds-text-color--weak slds-m-bottom--small'>Page not available</h4> <p class='slds-text-align--center slds-text-heading--medium slds-text-color--weak'>Maybe the page was deleted, the URL is incorrect, or something else went wrong. If you know the page exists but you still canât get to it, please ask the community administrator for help.</p> </div>" |
| | | }, |
| | | "componentName": "forceCommunity:htmlBlock", |
| | | "id": "24077521-3224-4633-840d-25c26a493f1d", |
| | | "id" : "8f1aad62-6fd8-4a0a-bf73-603d03724841", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "748f88b6-3627-4078-9abe-c618059a8613", |
| | | } ], |
| | | "id" : "a801a07b-dbc3-4650-9e01-934eabb7a789", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "id": "25077bd2-d3e5-440d-aa48-322dd23c2177", |
| | | }, { |
| | | "id" : "e59b2192-4edb-4144-8f08-755e9e111518", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customHeadTags": "", |
| | | "description": "", |
| | | "title": "Error" |
| | | }, |
| | | "componentName": "forceCommunity:seoAssistant", |
| | | "id": "5ba201e2-05bb-479d-b173-7efc99ae56c5", |
| | | "id" : "f322e8e2-b32f-471c-a992-fdb40e009539", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "d8d0e969-4c0d-4f6f-aa06-be29638f5fa3", |
| | | } ], |
| | | "id" : "ac65174b-2219-479b-8ca4-6f679e28f7d4", |
| | | "regionName": "sfdcHiddenRegion", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "error" |
| | |
| | | { |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "componentName": "siteforce:sldsOneColLayout", |
| | | "dataProviders": [], |
| | | "id": "fefd7f80-945b-489b-8a4e-615884934641", |
| | | "id" : "eb28719b-06b5-4397-bf8d-667ec408ca46", |
| | | "label": "Feed Detail", |
| | | "regions": [ |
| | | { |
| | | "id": "b3c377f9-ebc1-4ae5-8c28-f78f8bc9cdca", |
| | | "regions" : [ { |
| | | "id" : "6a9400e1-ad64-47ea-829f-6ce793c4ad02", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "id": "{!recordId}" |
| | | }, |
| | | "componentName": "forceCommunity:feedItemDetail", |
| | | "id": "41ed8fa1-1f73-4385-a28f-faa0ecd561e3", |
| | | "id" : "59f29841-0c8d-40d7-83ba-c590f2214d4e", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "2bf7238a-fe13-4617-8f6b-cd74a8ee0780", |
| | | } ], |
| | | "id" : "d66f961b-0bba-4472-9a69-13676f89b28e", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "id": "ba025857-7cad-4cea-9780-b8b86e89a9bf", |
| | | }, { |
| | | "id" : "04b45900-4d8a-4452-86c8-ca0c8b030bd5", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "feeditem-generic" |
| | |
| | | { |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "componentName": "siteforce:sldsOneColLayout", |
| | | "dataProviders": [], |
| | | "id": "cbccf1c1-b50f-4c66-9dbd-9be4accededd", |
| | | "id" : "2322115a-ac65-4862-9104-912d42fca69a", |
| | | "label": "File Detail", |
| | | "regions": [ |
| | | { |
| | | "id": "f14be551-933a-4a05-944a-68e824e2f1f5", |
| | | "regions" : [ { |
| | | "id" : "d076ed42-1664-4b15-96ee-70c0eb0707ef", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": {}, |
| | | "componentName": "forceCommunity:fileDetailPage", |
| | | "id": "122674c6-a847-4043-ae63-b059b3963a61", |
| | | "id" : "1782e7b6-53ac-4493-bffe-00fe18a9a42f", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "c1598287-4d0a-4195-8935-e6bd18495b19", |
| | | } ], |
| | | "id" : "89a0e125-284e-4240-bf7a-52e32979cf3e", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "id": "2c5abc89-16a5-4df8-a4c8-e3bc22a258dd", |
| | | }, { |
| | | "id" : "efd311f4-16ab-4cf8-9d82-bdeda1722dfb", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "detail-069" |
| | |
| | | { |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "componentName": "siteforce:sldsOneColLayout", |
| | | "dataProviders": [], |
| | | "id": "eace253f-203f-4414-a7a4-a2d9c47deb3d", |
| | | "id" : "193807a6-e99f-4075-9811-62dda5b13d43", |
| | | "label": "File List", |
| | | "regions": [ |
| | | { |
| | | "id": "86a4e739-1949-4199-9687-9d9e5a0e8b7b", |
| | | "regions" : [ { |
| | | "id" : "af6a54e4-65cf-4412-831e-3d55625076ae", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "pageSize": 25 |
| | | }, |
| | | "componentName": "forceCommunity:filesList", |
| | | "id": "8d8b9ad4-91c1-44c2-b566-b5ddec17c62d", |
| | | "id" : "11e918ad-fc08-4907-8d8c-5aaddd9a92e8", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "0ceef01d-d0aa-44fa-87e6-a36a92fe73ce", |
| | | } ], |
| | | "id" : "4a7c43a0-6939-4ea5-b8a4-b69789506c76", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "id": "91694ac3-024d-4480-b8f2-b82180070fd1", |
| | | }, { |
| | | "id" : "f720b89f-67f7-40d3-9eb0-f56d0fc7d379", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "list-069" |
| | |
| | | { |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "componentName": "siteforce:sldsOneColLayout", |
| | | "dataProviders": [], |
| | | "id": "17c9c45c-4c81-49d0-985e-d6281d899320", |
| | | "id" : "4aa9507c-1470-43b3-8000-390325f6bd7d", |
| | | "label": "Flow", |
| | | "regions": [ |
| | | { |
| | | "id": "bf7ef746-6791-4aa9-a096-0038d427dee1", |
| | | "regions" : [ { |
| | | "id" : "4d7e2fae-45a7-4b69-9005-de342f942f38", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes" : { |
| | | "flowArguments" : "", |
| | | "flowName" : "{!flowName}" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | "componentAttributes": {}, |
| | | "componentName": "c:RetrospectiveWeeklyReport", |
| | | "id": "fadeafaa-5cf8-497e-8561-cb2c463012c0", |
| | | "componentName" : "forceCommunity:flowCommunity", |
| | | "id" : "45d0d38f-558e-4351-99c6-e14557f11731", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "1e71465d-b903-4a32-b4bc-21003f85b882", |
| | | } ], |
| | | "id" : "96c3caa0-6524-4903-8de2-aad59a4c6e03", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "id": "496f34a6-ba4c-4796-8afd-00fed3cb7882", |
| | | }, { |
| | | "id" : "6ac44c78-d53b-4560-bbff-73d0b87baa93", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "flow" |
| | |
| | | { |
| | | "appPageId": "bfbf7350-cdcd-4e2c-97a5-ab51f2aa3b9d", |
| | | "appPageId" : "7756c67f-7774-4fe1-b1c2-eecb19f9c6a5", |
| | | "componentName": "siteforce:sldsOneColLayout", |
| | | "dataProviders": [], |
| | | "id": "367df6e8-480c-4b75-9718-1ebcfc8d57c1", |
| | | "id" : "eac49d21-4e4d-4e8e-997e-42dfce021ff4", |
| | | "label": "Forgot Password", |
| | | "regions": [ |
| | | { |
| | | "components": [ |
| | | { |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "richTextValue": "<p style=\"text-align: center;\"><span style=\"color: rgb(255, 255, 255); font-size: 22px;\">éç½®å¯ç </span></p>" |
| | | "richTextValue" : "<p style=\"text-align: center;\"><span style=\"font-size: 22px; color: rgb(255, 255, 255);\">éç½®å¯ç </span></p>" |
| | | }, |
| | | "componentName": "forceCommunity:richTextInline", |
| | | "id": "78431e15-96d3-47e5-90a4-060c0580d9f1", |
| | | "id" : "2b141c57-9556-45f3-9e15-90ac1419a02f", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | }, |
| | | { |
| | | }, { |
| | | "componentAttributes": { |
| | | "richTextValue": "<p style=\"text-align: center;\"><span style=\"color: rgb(255, 255, 255);\">请è¾å
¥æ¨çç¨æ·å</span></p>" |
| | | "richTextValue" : "<p style=\"text-align: center;\"><span style=\"font-size: 16px; color: rgb(255, 255, 255);\">请è¾å
¥æ¨çç¨æ·å</span></p>" |
| | | }, |
| | | "componentName": "forceCommunity:richTextInline", |
| | | "id": "391e2f6e-25ba-4d60-8429-fa83c865f188", |
| | | "id" : "203ce0df-48b9-4b50-85af-ba98cff2599e", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | }, |
| | | { |
| | | }, { |
| | | "componentAttributes": { |
| | | "checkEmailUrl": "./CheckPasswordResetEmail", |
| | | "submitButtonLabel": "éç½®å¯ç ", |
| | | "usernameLabel": "ç¨æ·å" |
| | | }, |
| | | "componentName": "salesforceIdentity:forgotPassword2", |
| | | "id": "ef09e7c2-8849-4559-a007-267530809bdb", |
| | | "id" : "9afeb3da-d8a0-41df-8b00-4ca493eda07b", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | }, |
| | | { |
| | | }, { |
| | | "componentAttributes": { |
| | | "richTextValue": "<p style=\"text-align: center;\"><a href=\"./\" rel=\"noopener noreferrer\" target=\"_self\" style=\"color: rgb(255, 255, 255); font-size: 16px;\">åæ¶</a></p>" |
| | | "richTextValue" : "<p style=\"text-align: center;\"><span style=\"color: rgb(255, 255, 255);\">åæ¶</span></p>" |
| | | }, |
| | | "componentName": "forceCommunity:richTextInline", |
| | | "id": "79792fe3-b6d6-41d1-aeb6-912471e1b013", |
| | | "id" : "ac7cc923-2a73-45a7-a124-b94477b33e34", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "53a5629c-91b2-4f5b-91ef-76d991ec923a", |
| | | } ], |
| | | "id" : "e9992f81-cb4b-4485-a34c-4a7db847cad9", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customHeadTags": "", |
| | | "description": "", |
| | | "title": "Forgot Password" |
| | | }, |
| | | "componentName": "forceCommunity:seoAssistant", |
| | | "id": "a506de7f-74b7-47e4-84d0-8579f8925ebb", |
| | | "id" : "973d922a-76bf-4c04-91b9-f10851baf1c3", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "842b093a-48db-4342-b4f9-d7953055c798", |
| | | } ], |
| | | "id" : "47d9db7d-c4bd-478e-9a55-3d796c30b606", |
| | | "regionName": "sfdcHiddenRegion", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Login", |
| | | "type": "view", |
| | | "viewType": "forgot-password" |
| | |
| | | { |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "componentName": "siteforce:sldsOneColLayout", |
| | | "dataProviders": [], |
| | | "id": "1f22553d-fa1f-41e2-afa6-bf930865e2fa", |
| | | "id" : "7b772cb6-1146-4bb7-8567-853ebfe7bb2c", |
| | | "label": "Group Detail", |
| | | "regions": [ |
| | | { |
| | | "id": "330444b1-bbd6-493f-8e30-9c7d914f351e", |
| | | "regions" : [ { |
| | | "id" : "060923b0-77f7-42e7-b254-d75fc65bc96b", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "detailsTabLabel": "Details", |
| | | "engagementManagersOnly": false, |
| | |
| | | "relatedTabLabel": "Related" |
| | | }, |
| | | "componentName": "forceCommunity:groupRecordHomeTabs", |
| | | "id": "04f2c0f0-ba9f-4aba-87c9-fc060e93e50c", |
| | | "id" : "c30496d8-d218-46e9-895f-fa9ef9e054e2", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "fd783466-f338-443f-b168-79fdb31885b4", |
| | | } ], |
| | | "id" : "9c183d6e-53c2-4b3a-a3db-5c3657024407", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "id": "8dd0118d-278b-4e47-a977-f67e4e0fe115", |
| | | }, { |
| | | "id" : "ac91d64b-2f65-4f8a-ab26-d6ec7656960d", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customHeadTags": "", |
| | | "description": "", |
| | | "title": "{!Record._Object}: {!Record._Title}" |
| | | }, |
| | | "componentName": "forceCommunity:seoAssistant", |
| | | "id": "ae88a178-5983-43d9-87ba-7613de4d54ec", |
| | | "id" : "fdab4c93-fa91-4bc1-9c74-e99e5a54315c", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "cabd2974-2029-44be-b37f-b7fd95ebb879", |
| | | } ], |
| | | "id" : "162e1f76-59b0-40b1-98fd-e38e325cce5e", |
| | | "regionName": "sfdcHiddenRegion", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "detail-0F9" |
| | |
| | | { |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "componentName": "siteforce:sldsOneColLayout", |
| | | "dataProviders": [], |
| | | "id": "87a9b140-31e2-4c28-9fa4-82135022e59d", |
| | | "id" : "949c0ee3-6484-4ed7-a44f-aa417cec1835", |
| | | "label": "Group List", |
| | | "regions": [ |
| | | { |
| | | "id": "89649989-257d-4c62-ac2d-cfb067a7dab9", |
| | | "regions" : [ { |
| | | "id" : "9a5c8668-57b0-4ed9-b08f-7db30276d775", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "richTextValue": " <h1 style=\"text-align: center;\"> <b style=\"font-size: 20px; color: #1e2443;\">Group List</b> </h1> " |
| | | }, |
| | | "componentName": "forceCommunity:richTextInline", |
| | | "id": "0c8f9c88-77cb-432b-aad6-bfb98bb54388", |
| | | "id" : "cbff4378-dadd-486b-b610-0c737fcc355a", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | }, |
| | | { |
| | | }, { |
| | | "componentAttributes": {}, |
| | | "componentName": "forceCommunity:groupObjectHome", |
| | | "id": "0856cb72-ce49-46cb-b936-e908c1096841", |
| | | "id" : "c5348791-4e5f-4115-bc57-297af7a3560b", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "b21ee870-d315-48be-93c1-d4d79e5f1b53", |
| | | } ], |
| | | "id" : "e9583cc1-1d2d-49a3-bab1-4e826e4cce53", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "id": "08886110-b15a-4ff9-9de1-3a1f81708cb5", |
| | | }, { |
| | | "id" : "cc1ad297-48af-47cf-b66f-373b81e275f1", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "list-0F9" |
| | |
| | | { |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "componentName": "siteforce:sldsTwoCol84Layout", |
| | | "dataProviders": [], |
| | | "id": "060f3385-936a-41da-8086-58f66522aeea", |
| | | "id" : "d47db83f-301d-4624-a8db-4474a6a30bd9", |
| | | "label": "Home", |
| | | "regions": [ |
| | | { |
| | | "components": [ |
| | | { |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "richTextValue": " <h1 style=\"text-align: center;\"> <b style=\"font-size: 28px; color: #1e2443;\">Welcome!</b> </h1> <p style=\"text-align: center;\"> <span style=\"font-size: 20px;\">Work on leads, register deals, and track progress with analytics.</span> </p> " |
| | | }, |
| | | "componentName": "forceCommunity:richTextInline", |
| | | "id": "757bc2a8-8fc2-4080-8a6c-79cd5c948d16", |
| | | "id" : "19cbd1e7-a45d-47b4-bdad-385c5562b1b8", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "8f13358a-c852-482b-ac84-0aa6ead20c98", |
| | | } ], |
| | | "id" : "10ac200f-b20b-4ad8-8f0d-040c3a4ba494", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "richTextValue": "<img src='/sfsites/c/img/community/prm/prm-default-banner.png' alt='Banner image for Partner Central template' style='width:100%;'/>" |
| | | }, |
| | | "componentName": "forceCommunity:richTextInline", |
| | | "id": "c0931ab3-1d66-4aba-8bdf-76d43261d6da", |
| | | "id" : "f55d8364-8d18-4c91-b733-ef2e9fbeead2", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | }, |
| | | { |
| | | }, { |
| | | "componentAttributes": { |
| | | "tabsetConfig": { |
| | | "UUID": "be388d96-ba83-4ae5-bc04-71413fcb1c48", |
| | | "UUID" : "77ed0454-75bd-4886-bc4b-6e90cc656e73", |
| | | "activeTab": "tab1", |
| | | "tabs": [ |
| | | { |
| | | "UUID": "d174ad4b-8cba-41fa-ba18-dff027c9c474", |
| | | "tabs" : [ { |
| | | "UUID" : "c6a30d6c-fc5b-4287-ae6c-eeb943d82d95", |
| | | "allowGuestUser": true, |
| | | "locked": false, |
| | | "seedComponents": [ |
| | | { |
| | | "seedComponents" : [ { |
| | | "attributes": {}, |
| | | "fqn": "forceCommunity:dashboard" |
| | | } |
| | | ], |
| | | } ], |
| | | "tabKey": "tab1", |
| | | "tabName": "Business Summary" |
| | | }, |
| | | { |
| | | "UUID": "26e87aa3-7dba-4973-a3c4-041aec610bb5", |
| | | }, { |
| | | "UUID" : "f0c897ae-e9b5-4eff-b7e8-b3b461359b4c", |
| | | "allowGuestUser": true, |
| | | "locked": false, |
| | | "seedComponents": [ |
| | | { |
| | | "seedComponents" : [ { |
| | | "attributes": { |
| | | "type": "Home" |
| | | }, |
| | | "fqn": "forceCommunity:forceCommunityFeed" |
| | | } |
| | | ], |
| | | } ], |
| | | "tabKey": "tab2", |
| | | "tabName": "News & Updates" |
| | | } |
| | | ], |
| | | } ], |
| | | "useOverflowMenu": false |
| | | } |
| | | }, |
| | | "componentName": "forceCommunity:tabset", |
| | | "id": "be388d96-ba83-4ae5-bc04-71413fcb1c48", |
| | | "regions": [ |
| | | { |
| | | "components": [ |
| | | { |
| | | "id" : "77ed0454-75bd-4886-bc4b-6e90cc656e73", |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "height": "485", |
| | | "recordId": "01Z100000013zqGEAQ" |
| | | "recordId" : "01Z10000001cpWqEAI" |
| | | }, |
| | | "componentName": "forceCommunity:dashboard", |
| | | "id": "d4f4c8c7-e1cc-43e0-bdf7-a91c8f3f7d77", |
| | | "id" : "8a7ab317-f6e5-4781-8734-86cf083bef93", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "d174ad4b-8cba-41fa-ba18-dff027c9c474", |
| | | } ], |
| | | "id" : "c6a30d6c-fc5b-4287-ae6c-eeb943d82d95", |
| | | "regionLabel": "Business Summary", |
| | | "regionName": "tab1", |
| | | "renditionMap": {}, |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "canChangeSorting": true, |
| | | "defaultFilter": "", |
| | |
| | | "type": "Home" |
| | | }, |
| | | "componentName": "forceCommunity:forceCommunityFeed", |
| | | "id": "89169035-2123-484c-a320-aa12d136b737", |
| | | "id" : "0965c626-6474-43f8-8064-7f2a06272adc", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "26e87aa3-7dba-4973-a3c4-041aec610bb5", |
| | | } ], |
| | | "id" : "f0c897ae-e9b5-4eff-b7e8-b3b461359b4c", |
| | | "regionLabel": "News & Updates", |
| | | "regionName": "tab2", |
| | | "renditionMap": {}, |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "d0a93f84-0c8e-4330-91fa-ae3a171ac07c", |
| | | } ], |
| | | "id" : "8642333f-fe8d-4b21-8526-34a61169f1dc", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "actions": [ |
| | | { |
| | | "actions" : [ { |
| | | "isPublic": true, |
| | | "name": "NewLead" |
| | | }, |
| | | { |
| | | }, { |
| | | "isPublic": true, |
| | | "name": "NewOpportunity" |
| | | }, |
| | | { |
| | | }, { |
| | | "isPublic": true, |
| | | "name": "NewTask" |
| | | }, |
| | | { |
| | | }, { |
| | | "isPublic": true, |
| | | "name": "NewCase" |
| | | } |
| | | ], |
| | | } ], |
| | | "label": "Quick Create" |
| | | }, |
| | | "componentName": "forceCommunity:createRecordButton", |
| | | "id": "a794a745-990f-481b-9cf2-5cdd5eec12e6", |
| | | "id" : "bd29d6d1-7296-4e0f-b89b-6670b88e8415", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | }, |
| | | { |
| | | }, { |
| | | "componentAttributes": { |
| | | "listViewIdForNavigation": "FOLLOW", |
| | | "navigateToListView": true, |
| | |
| | | "title": "Lead Inbox" |
| | | }, |
| | | "componentName": "forceCommunity:leadInbox", |
| | | "id": "cc30815c-4721-411d-94ad-af5c53d4af0d", |
| | | "id" : "330e6363-913a-4cc3-a7bc-042c71d21073", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | }, |
| | | { |
| | | }, { |
| | | "componentAttributes": { |
| | | "enableInlineEdit": true, |
| | | "filterName": "MyOpportunities", |
| | |
| | | "showSearchBar": true |
| | | }, |
| | | "componentName": "forceCommunity:objectHome", |
| | | "id": "ec72b889-1cee-4d5a-a9a6-87f43359b3b5", |
| | | "id" : "b1ba9dd2-888a-4d31-9d43-863a18ae7a92", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | }, |
| | | { |
| | | }, { |
| | | "componentAttributes": { |
| | | "enableInlineEdit": true, |
| | | "filterName": "OPEN", |
| | |
| | | "showSearchBar": true |
| | | }, |
| | | "componentName": "forceCommunity:objectHome", |
| | | "id": "7653914f-b749-49f2-a483-6b268b59369f", |
| | | "id" : "94bf80cd-edef-47dd-b710-bbcbeab44d75", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "e39b35aa-8bd4-4a48-b7e7-dc1e2505aaeb", |
| | | } ], |
| | | "id" : "78ad9488-9cad-453f-9ee1-053f31dd7d83", |
| | | "regionName": "sidebar", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "id": "864fe56c-bda6-4c9a-8869-8025ac329f4a", |
| | | }, { |
| | | "id" : "5640820f-3232-4372-8fbb-2ab9bf9b9979", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customHeadTags": "", |
| | | "description": "", |
| | | "title": "æ¶èå管çç³»ç»" |
| | | }, |
| | | "componentName": "forceCommunity:seoAssistant", |
| | | "id": "b403e241-261c-4abc-a01c-4960c5b43ea3", |
| | | "id" : "0dfbf9f2-6bd0-4150-b2a2-29107b376fef", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "0110900c-6b38-40f9-a6fb-16fe86ceaabe", |
| | | } ], |
| | | "id" : "9b4f717e-09a8-44bd-8e53-d8e807d0d800", |
| | | "regionName": "sfdcHiddenRegion", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "home" |
| | |
| | | { |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "componentName": "siteforce:dynamicLayout", |
| | | "dataProviders": [], |
| | | "id": "d22f1a01-e0a0-44df-b5e2-808abb2391f5", |
| | | "id" : "0b3166bc-2eec-43fa-8adf-532f629e9392", |
| | | "label": "Home_Flexible", |
| | | "regions": [ |
| | | { |
| | | "components": [ |
| | | { |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "background": "background: rgba(0,0,0,0)", |
| | | "backgroundOverlay": "rgba(0,0,0,0.5)", |
| | | "contentAreaWidth": 100, |
| | | "sectionConfig": { |
| | | "UUID": "41cc4b3a-7166-49bc-b065-8d15e99a7937", |
| | | "columns": [ |
| | | { |
| | | "UUID": "b6706b54-3422-40d2-a719-0162d2a20aa5", |
| | | "UUID" : "8ae08b67-88c4-492b-98a8-924b20bb1544", |
| | | "columns" : [ { |
| | | "UUID" : "10b668a2-336e-4764-b5b8-303f9939b7e3", |
| | | "columnKey": "1", |
| | | "columnName": "Column 1", |
| | | "columnWidth": "12", |
| | | "seedComponents": [] |
| | | } |
| | | ] |
| | | } ] |
| | | }, |
| | | "sectionHeight": 300 |
| | | }, |
| | | "componentName": "forceCommunity:section", |
| | | "id": "41cc4b3a-7166-49bc-b065-8d15e99a7937", |
| | | "regions": [ |
| | | { |
| | | "components": [ |
| | | { |
| | | "id" : "8ae08b67-88c4-492b-98a8-924b20bb1544", |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "richTextValue": "<p style=\"text-align: center;\"><span style=\"font-size: 48px; color: rgb(0, 71, 178);\">欢è¿ç»å½æ¶èå追溯系ç»</span></p>" |
| | | "richTextValue" : "<p style=\"text-align: center;\"><span style=\"font-size: 48px; font-family: sans-serif; color: rgb(0, 71, 178);\">欢è¿ç»å½æ¶èå追溯系ç»</span></p>" |
| | | }, |
| | | "componentName": "forceCommunity:richTextInline", |
| | | "id": "a970dbc1-3bd6-4786-9358-4d23aefe0476", |
| | | "id" : "d14e9b8c-a3d9-40cb-8ad0-5161fe285a74", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | }, |
| | | { |
| | | }, { |
| | | "componentAttributes": {}, |
| | | "componentName": "c:lexLicenceReminder", |
| | | "id": "5f083ad9-6878-4cea-9c61-ab8a1c17593b", |
| | | "id" : "e0232bc3-f6c4-4671-b26e-160b3d73a0a4", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | }, |
| | | { |
| | | }, { |
| | | "componentAttributes": { |
| | | "height": "800", |
| | | "recordId": "01Z0l000000cnvqEAA" |
| | | "recordId" : "01Z6D000000EyGYUA0" |
| | | }, |
| | | "componentName": "forceCommunity:dashboard", |
| | | "id": "345cf353-5531-484c-a94c-a120ecb854e5", |
| | | "id" : "e0024c07-3f6e-4822-9079-47ad41f4c3a8", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "b6706b54-3422-40d2-a719-0162d2a20aa5", |
| | | } ], |
| | | "id" : "10b668a2-336e-4764-b5b8-303f9939b7e3", |
| | | "regionLabel": "Column 1", |
| | | "regionName": "1", |
| | | "renditionMap": {}, |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "52b2abe8-346e-43db-b1ca-9254d387e8db", |
| | | } ], |
| | | "id" : "1bac6fb4-0163-4896-8cd7-85b1f34df29f", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customHeadTags": "", |
| | | "description": "", |
| | | "title": "æ¶èå管çç³»ç»" |
| | | }, |
| | | "componentName": "forceCommunity:seoAssistant", |
| | | "id": "2762cc02-0105-42d7-9e2e-08ed9a61c1ca", |
| | | "id" : "84e91754-c40d-4c64-a0e4-9bfae8320536", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "f04df81d-a2d5-4a8b-b937-e0c26399e6b2", |
| | | } ], |
| | | "id" : "1c72742c-4f76-41b6-b8f2-7582c4245d05", |
| | | "regionName": "sfdcHiddenRegion", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "home" |
| | |
| | | { |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "componentName": "siteforce:dynamicLayout", |
| | | "dataProviders": [], |
| | | "id": "ace4cc2b-a063-40be-94c6-c5bdabeb00e0", |
| | | "label": "lexAgencyInfo", |
| | | "regions": [ |
| | | { |
| | | "components": [ |
| | | { |
| | | "id" : "376ad65a-00b6-4198-aa04-19a6360969bc", |
| | | "label" : "LexAgencyInfo", |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "background": "background: rgba(0,0,0,0)", |
| | | "backgroundOverlay": "rgba(0,0,0,0.5)", |
| | | "contentAreaWidth": 100, |
| | | "sectionConfig": { |
| | | "UUID": "5bae00dc-a841-45bc-af8f-3607536ecc2b", |
| | | "columns": [ |
| | | { |
| | | "UUID": "55056592-e02c-455e-b831-5f29ba25ae8b", |
| | | "UUID" : "d682942a-eb4a-46cc-b2ba-ee37ee9f7974", |
| | | "columns" : [ { |
| | | "UUID" : "2db9074f-7efa-4fc1-aef6-e94f4af43def", |
| | | "columnKey": "1", |
| | | "columnName": "Column 1", |
| | | "columnWidth": "12", |
| | | "seedComponents": [] |
| | | } |
| | | ] |
| | | } ] |
| | | }, |
| | | "sectionHeight": 300 |
| | | }, |
| | | "componentName": "forceCommunity:section", |
| | | "id": "5bae00dc-a841-45bc-af8f-3607536ecc2b", |
| | | "regions": [ |
| | | { |
| | | "components": [ |
| | | { |
| | | "id" : "d682942a-eb4a-46cc-b2ba-ee37ee9f7974", |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes": {}, |
| | | "componentName": "c:lexAgencyInfo", |
| | | "id": "6324c43f-2751-4e38-bf86-5a8d7d2df87d", |
| | | "id" : "7762e10b-5ce6-4594-ac4e-648a78b6c9b2", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "55056592-e02c-455e-b831-5f29ba25ae8b", |
| | | } ], |
| | | "id" : "2db9074f-7efa-4fc1-aef6-e94f4af43def", |
| | | "regionLabel": "Column 1", |
| | | "regionName": "1", |
| | | "renditionMap": {}, |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "d0b67e99-b73f-4016-b342-44b5bd5004de", |
| | | } ], |
| | | "id" : "2f459a20-131e-4548-ab46-f9920697d1d7", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customHeadTags": "", |
| | | "description": "", |
| | | "title": "æ¶èå管çç³»ç»" |
| | | "title" : "ç»éåä¿¡æ¯ ~ æ¶èå管çç³»ç»" |
| | | }, |
| | | "componentName": "forceCommunity:seoAssistant", |
| | | "id": "dea6c82c-c9c5-41cc-960b-f7be4c8540ff", |
| | | "id" : "2bacf8a5-3038-42e9-b2e0-3fee8cc95ea3", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "74d33395-e564-480d-9df2-5ca9d246845d", |
| | | } ], |
| | | "id" : "ce682a09-6e95-438e-9f22-d2fb11703354", |
| | | "regionName": "sfdcHiddenRegion", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "custom-lexagencyinfo" |
| | |
| | | { |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "componentName": "siteforce:dynamicLayout", |
| | | "dataProviders": [], |
| | | "id": "23ddff87-c778-4457-b0f7-07029a8a9ffd", |
| | | "id" : "ec872079-c8a8-4c21-a0f2-84a95d4a93e5", |
| | | "label": "LexArriveGoods", |
| | | "regions": [ |
| | | { |
| | | "components": [ |
| | | { |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "background": "background: rgba(0,0,0,0)", |
| | | "backgroundOverlay": "rgba(0,0,0,0.5)", |
| | | "contentAreaWidth": 100, |
| | | "sectionConfig": { |
| | | "UUID": "888145dd-72c9-4e26-a813-21c7346e0e39", |
| | | "columns": [ |
| | | { |
| | | "UUID": "ea876df4-d4fa-4c11-8588-6076a3b87f79", |
| | | "UUID" : "8aedf101-f8cf-43c7-bb42-da69a742aa74", |
| | | "columns" : [ { |
| | | "UUID" : "c73eacf8-7d9a-4ed8-a53a-833c19b39b47", |
| | | "columnKey": "1", |
| | | "columnName": "Column 1", |
| | | "columnWidth": "12", |
| | | "seedComponents": [] |
| | | } |
| | | ] |
| | | } ] |
| | | }, |
| | | "sectionHeight": 300 |
| | | }, |
| | | "componentName": "forceCommunity:section", |
| | | "id": "888145dd-72c9-4e26-a813-21c7346e0e39", |
| | | "regions": [ |
| | | { |
| | | "components": [ |
| | | { |
| | | "id" : "8aedf101-f8cf-43c7-bb42-da69a742aa74", |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes": {}, |
| | | "componentName": "c:lexArriveGoods", |
| | | "id": "3483355f-5db7-43e9-9501-a0868434e472", |
| | | "id" : "76c84633-d7e3-48e5-bea6-6b9bd9d53b84", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "ea876df4-d4fa-4c11-8588-6076a3b87f79", |
| | | } ], |
| | | "id" : "c73eacf8-7d9a-4ed8-a53a-833c19b39b47", |
| | | "regionLabel": "Column 1", |
| | | "regionName": "1", |
| | | "renditionMap": {}, |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "a09b4773-f3c4-45c1-9d61-7a08c3e9b1b2", |
| | | } ], |
| | | "id" : "54f6208b-cf85-4f6d-ab18-a932c63b5761", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customHeadTags": "", |
| | | "description": "", |
| | | "title": "æ¶èå管çç³»ç»" |
| | | "title" : "å
¥åº/è¿å ~ æ¶èå管çç³»ç»" |
| | | }, |
| | | "componentName": "forceCommunity:seoAssistant", |
| | | "id": "3363f170-a3c6-42c2-8615-cb89c4665710", |
| | | "id" : "930825d9-d67b-4d95-8ebf-1b16db181e7c", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "03bed34c-102a-4081-9ffa-5a71d359716b", |
| | | } ], |
| | | "id" : "7fbb47ad-d923-4a89-ae79-922b35d71571", |
| | | "regionName": "sfdcHiddenRegion", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "custom-lexarrivegoods" |
| | |
| | | { |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "componentName": "siteforce:dynamicLayout", |
| | | "dataProviders": [], |
| | | "id": "e8d527e1-b86c-4449-bf5c-1ed05301648b", |
| | | "id" : "f46aba62-01c3-4a20-93c6-f9b2362717e6", |
| | | "label": "LexArriveGoodsMain", |
| | | "regions": [ |
| | | { |
| | | "components": [ |
| | | { |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "background": "background: rgba(0,0,0,0)", |
| | | "backgroundOverlay": "rgba(0,0,0,0.5)", |
| | | "contentAreaWidth": 100, |
| | | "sectionConfig": { |
| | | "UUID": "196f0047-adf4-4653-b3b1-502f0132ac63", |
| | | "columns": [ |
| | | { |
| | | "UUID": "8d475e45-01bc-4767-849a-8386d433285d", |
| | | "UUID" : "c31d034f-cc57-4be4-ad72-4431e59d3dc3", |
| | | "columns" : [ { |
| | | "UUID" : "d25ba467-5924-40aa-bcdd-e1ac8643be08", |
| | | "columnKey": "1", |
| | | "columnName": "Column 1", |
| | | "columnWidth": "12", |
| | | "seedComponents": [] |
| | | } |
| | | ] |
| | | } ] |
| | | }, |
| | | "sectionHeight": 300 |
| | | }, |
| | | "componentName": "forceCommunity:section", |
| | | "id": "196f0047-adf4-4653-b3b1-502f0132ac63", |
| | | "regions": [ |
| | | { |
| | | "components": [ |
| | | { |
| | | "id" : "c31d034f-cc57-4be4-ad72-4431e59d3dc3", |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes": {}, |
| | | "componentName": "c:lexArriveGoodsMain", |
| | | "id": "af3b9e79-413e-4e41-94a5-9e22511c69da", |
| | | "id" : "1d0f8205-b81b-446f-866b-237e69f338d9", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "8d475e45-01bc-4767-849a-8386d433285d", |
| | | } ], |
| | | "id" : "d25ba467-5924-40aa-bcdd-e1ac8643be08", |
| | | "regionLabel": "Column 1", |
| | | "regionName": "1", |
| | | "renditionMap": {}, |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "6d407bee-c7b6-4862-928b-6ace9e3b1e07", |
| | | } ], |
| | | "id" : "7efb4626-0f15-4ee3-9418-cb6419fb0bcd", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customHeadTags": "", |
| | | "description": "", |
| | | "title": "æ¶èå管çç³»ç»" |
| | | "title" : "å
¥åº/è¿å ~ æ¶èå管çç³»ç»" |
| | | }, |
| | | "componentName": "forceCommunity:seoAssistant", |
| | | "id": "505a452b-9d0e-4607-9c6e-5a1de7c8d722", |
| | | "id" : "71e9fe84-4f41-453b-a6b5-35ed5cdbfadc", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "260b9853-f9b6-4b32-be09-325a251d890a", |
| | | } ], |
| | | "id" : "da8c93ee-69b0-47b5-83bb-61150b2aa560", |
| | | "regionName": "sfdcHiddenRegion", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "custom-lexarrivegoodsmain" |
| | |
| | | { |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "componentName": "siteforce:dynamicLayout", |
| | | "dataProviders": [], |
| | | "id": "ccdc4c02-3ec5-4c8c-bb43-af7c391c0876", |
| | | "id" : "91695311-fdcc-4e42-87ca-c97cfd56a2b0", |
| | | "label": "LexArriveGsDetails", |
| | | "regions": [ |
| | | { |
| | | "components": [ |
| | | { |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "background": "background: rgba(0,0,0,0)", |
| | | "backgroundOverlay": "rgba(0,0,0,0.5)", |
| | | "contentAreaWidth": 100, |
| | | "sectionConfig": { |
| | | "UUID": "8743236b-840d-4987-8168-2449baaa559c", |
| | | "columns": [ |
| | | { |
| | | "UUID": "861293f5-2153-4223-b8a6-ae59bc2843f0", |
| | | "UUID" : "08f6ef6f-e105-4de7-9aaa-1f114864bdc7", |
| | | "columns" : [ { |
| | | "UUID" : "08d81f90-ef1a-4686-a0e9-cc3913ed0973", |
| | | "columnKey": "1", |
| | | "columnName": "Column 1", |
| | | "columnWidth": "12", |
| | | "seedComponents": [] |
| | | } |
| | | ] |
| | | } ] |
| | | }, |
| | | "sectionHeight": 300 |
| | | }, |
| | | "componentName": "forceCommunity:section", |
| | | "id": "8743236b-840d-4987-8168-2449baaa559c", |
| | | "regions": [ |
| | | { |
| | | "components": [ |
| | | { |
| | | "id" : "08f6ef6f-e105-4de7-9aaa-1f114864bdc7", |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes": {}, |
| | | "componentName": "c:lexArriveGsDetails", |
| | | "id": "967bc21a-73f4-4af3-90e3-8961f1903457", |
| | | "id" : "18ff9dd3-7039-4ffb-8d15-faa606335456", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "861293f5-2153-4223-b8a6-ae59bc2843f0", |
| | | } ], |
| | | "id" : "08d81f90-ef1a-4686-a0e9-cc3913ed0973", |
| | | "regionLabel": "Column 1", |
| | | "regionName": "1", |
| | | "renditionMap": {}, |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "fed879a2-37ad-4d00-ac2b-6a7d45f219e0", |
| | | } ], |
| | | "id" : "2ed898cb-77b1-437e-8eca-16a3a98927e0", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customHeadTags": "", |
| | | "description": "", |
| | | "title": "æ¶èå管çç³»ç»" |
| | | "title" : "å°è´§ ~ æ¶èå管çç³»ç»" |
| | | }, |
| | | "componentName": "forceCommunity:seoAssistant", |
| | | "id": "1bde528a-2d7c-4e45-a5ae-cf6b4e730c1b", |
| | | "id" : "961b31ea-175a-4e22-8256-be31f553c70c", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "123c9d6e-48b4-4a79-9c2c-cf348022512a", |
| | | } ], |
| | | "id" : "034871d6-1f2c-43f2-81d3-0e46a864ad33", |
| | | "regionName": "sfdcHiddenRegion", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "custom-lexarrivegsdetails" |
| | |
| | | { |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "componentName": "siteforce:dynamicLayout", |
| | | "dataProviders": [], |
| | | "id": "b7569df4-3d59-4e39-9916-b444d62da530", |
| | | "label": "lexCancelRemoveBox", |
| | | "regions": [ |
| | | { |
| | | "components": [ |
| | | { |
| | | "id" : "5fd84b73-2065-46d3-b121-2f8a77b76a3a", |
| | | "label" : "LexCancelRemoveBox", |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "background": "background: rgba(0,0,0,0)", |
| | | "backgroundOverlay": "rgba(0,0,0,0.5)", |
| | | "contentAreaWidth": 100, |
| | | "sectionConfig": { |
| | | "UUID": "67efdf26-a8b9-4ccc-a78a-7c4237367233", |
| | | "columns": [ |
| | | { |
| | | "UUID": "9e34f640-834f-4c40-b4e2-86cbb2f8eb01", |
| | | "UUID" : "e015f78b-3948-452d-9df3-fb57eaf1144a", |
| | | "columns" : [ { |
| | | "UUID" : "dda851ea-a46f-4c8b-8cf7-52db66e6864a", |
| | | "columnKey": "1", |
| | | "columnName": "Column 1", |
| | | "columnWidth": "12", |
| | | "seedComponents": [] |
| | | } |
| | | ] |
| | | } ] |
| | | }, |
| | | "sectionHeight": 300 |
| | | }, |
| | | "componentName": "forceCommunity:section", |
| | | "id": "67efdf26-a8b9-4ccc-a78a-7c4237367233", |
| | | "regions": [ |
| | | { |
| | | "components": [ |
| | | { |
| | | "id" : "e015f78b-3948-452d-9df3-fb57eaf1144a", |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes": {}, |
| | | "componentName": "c:lexCancelRemoveBox", |
| | | "id": "18cfcc0d-2e74-4439-b0e4-374d6173769c", |
| | | "id" : "de961c6a-bc79-4956-aaf1-9b9a9329cd7b", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "9e34f640-834f-4c40-b4e2-86cbb2f8eb01", |
| | | } ], |
| | | "id" : "dda851ea-a46f-4c8b-8cf7-52db66e6864a", |
| | | "regionLabel": "Column 1", |
| | | "regionName": "1", |
| | | "renditionMap": {}, |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "144d67b6-b37a-48bb-8d3f-c5a642a2eb15", |
| | | } ], |
| | | "id" : "63a06f7d-bca6-430e-b51f-04c307c741f9", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customHeadTags": "", |
| | | "description": "", |
| | | "title": "åæ¶æç~æ¶èå管çç³»ç»" |
| | | }, |
| | | "componentName": "forceCommunity:seoAssistant", |
| | | "id": "9a46d997-620e-4c7b-b471-14f9f099ed5f", |
| | | "id" : "495b4819-9802-4a8b-af22-b33a65ed6dde", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "b0e97eeb-db76-4ec4-9d1a-4020dcecb04e", |
| | | } ], |
| | | "id" : "fc3783d1-cb91-473f-87a0-62c480010a60", |
| | | "regionName": "sfdcHiddenRegion", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "custom-lexcancelremovebox" |
| | |
| | | { |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "componentName": "siteforce:sldsOneColLayout", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "componentName" : "siteforce:dynamicLayout", |
| | | "dataProviders": [], |
| | | "id": "def29cb0-a769-4ec4-8e98-f1d9e4433e76", |
| | | "id" : "4bbfb3d2-f8f2-4b23-b5cf-711d448a2b51", |
| | | "label": "LexConInvoiceView", |
| | | "regions": [ |
| | | { |
| | | "components": [ |
| | | { |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes" : { |
| | | "background" : "background: rgba(0,0,0,0)", |
| | | "backgroundOverlay" : "rgba(0,0,0,0.5)", |
| | | "contentAreaWidth" : 100, |
| | | "sectionConfig" : { |
| | | "UUID" : "d52f86d0-b463-43a9-9817-40d500fcc2ad", |
| | | "columns" : [ { |
| | | "UUID" : "73c51c99-c8ed-45c9-ab83-89ff66ca5239", |
| | | "columnKey" : "1", |
| | | "columnName" : "Column 1", |
| | | "columnWidth" : "12", |
| | | "seedComponents" : [ ] |
| | | } ] |
| | | }, |
| | | "sectionHeight" : 300 |
| | | }, |
| | | "componentName" : "forceCommunity:section", |
| | | "id" : "d52f86d0-b463-43a9-9817-40d500fcc2ad", |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes": {}, |
| | | "componentName": "c:lexConInvoiceView", |
| | | "id": "188f5457-5ba8-4c48-b154-fac11122d6fa", |
| | | "id" : "af1fd8e8-0495-4aa4-a724-b200588463eb", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "97ef1ee1-bf76-4af8-8fb0-67e0f93c9b20", |
| | | "regionName": "header", |
| | | } ], |
| | | "id" : "73c51c99-c8ed-45c9-ab83-89ff66ca5239", |
| | | "regionLabel" : "Column 1", |
| | | "regionName" : "1", |
| | | "renditionMap" : { }, |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "id": "01bd66d3-16ee-49b0-8957-6c65fc9e6d35", |
| | | } ], |
| | | "renderPriority" : "NEUTRAL", |
| | | "renditionMap" : { }, |
| | | "type" : "component" |
| | | } ], |
| | | "id" : "87b7dcd5-40d6-4441-9443-26d7647ded5c", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "id": "d892a453-fd5d-41e9-a86a-2a5939d74274", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customHeadTags": "", |
| | | "description": "", |
| | | "title": "æ¶èå管çç³»ç»" |
| | | "title" : "å票 ~ æ¶èå管çç³»ç»" |
| | | }, |
| | | "componentName": "forceCommunity:seoAssistant", |
| | | "id": "c117564e-23b4-4cd3-8d91-0f58a569c5b5", |
| | | "id" : "0dacce9e-e531-41b1-ad79-6a6efefc9dd1", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "0499e9da-7082-412c-8a76-3a002f26f75f", |
| | | } ], |
| | | "id" : "d415f744-fe96-4c81-90b0-73d1b66dafbb", |
| | | "regionName": "sfdcHiddenRegion", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "custom-lexconinvoiceview" |
| | |
| | | { |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "componentName": "siteforce:dynamicLayout", |
| | | "dataProviders": [], |
| | | "id": "a3a6bd48-fa28-4210-b2f1-396f0169df2f", |
| | | "id" : "756785e1-4fb5-4ab3-b38a-58ea679a4361", |
| | | "label": "LexConsumable", |
| | | "regions": [ |
| | | { |
| | | "components": [ |
| | | { |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "background": "background: rgba(0,0,0,0)", |
| | | "backgroundOverlay": "rgba(0,0,0,0.5)", |
| | | "contentAreaWidth": 100, |
| | | "sectionConfig": { |
| | | "UUID": "105e0268-90b6-4f6e-b018-41d4f9d70489", |
| | | "columns": [ |
| | | { |
| | | "UUID": "b4cd3a78-9020-48a5-947f-c39b796b7d5f", |
| | | "UUID" : "57a191f6-fa19-4876-98e5-da8c72cb9258", |
| | | "columns" : [ { |
| | | "UUID" : "6972e5ef-d04e-4c93-a2e6-07c797f78748", |
| | | "columnKey": "1", |
| | | "columnName": "Column 1", |
| | | "columnWidth": "12", |
| | | "seedComponents": [] |
| | | } |
| | | ] |
| | | } ] |
| | | }, |
| | | "sectionHeight": 300 |
| | | }, |
| | | "componentName": "forceCommunity:section", |
| | | "id": "105e0268-90b6-4f6e-b018-41d4f9d70489", |
| | | "regions": [ |
| | | { |
| | | "components": [ |
| | | { |
| | | "id" : "57a191f6-fa19-4876-98e5-da8c72cb9258", |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes": {}, |
| | | "componentName": "c:lexConsumable", |
| | | "id": "28c07586-c606-4466-93f4-7da43f4323cb", |
| | | "id" : "f9cc8cb4-e94e-4c9e-aeac-91e4cc01875f", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "b4cd3a78-9020-48a5-947f-c39b796b7d5f", |
| | | } ], |
| | | "id" : "6972e5ef-d04e-4c93-a2e6-07c797f78748", |
| | | "regionLabel": "Column 1", |
| | | "regionName": "1", |
| | | "renditionMap": {}, |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "2094f211-8183-43a9-84d9-2b41cbc84990", |
| | | } ], |
| | | "id" : "c7989e63-0c78-4086-8ad3-f9db0c99411a", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customHeadTags": "", |
| | | "description": "", |
| | | "title": "æ¶èå管çç³»ç»" |
| | | "title" : "订å管ç ~ æ¶èå管çç³»ç»" |
| | | }, |
| | | "componentName": "forceCommunity:seoAssistant", |
| | | "id": "19440ece-25e3-40df-ae9d-788b112b92f1", |
| | | "id" : "ee494697-6008-45fc-a3c8-0bc4b904974b", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "d3987b2a-05ec-4b44-a249-70a07a38d553", |
| | | } ], |
| | | "id" : "77747bb3-667b-42f0-8885-822eb331d6c9", |
| | | "regionName": "sfdcHiddenRegion", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "custom-lexconsumable" |
| | |
| | | { |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "componentName": "siteforce:sldsOneColLayout", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "componentName" : "siteforce:dynamicLayout", |
| | | "dataProviders": [], |
| | | "id": "f724180a-789f-4a5f-909f-a3b6926cff21", |
| | | "id" : "65a5c9a4-0cc9-4b00-872b-b90bc1e47411", |
| | | "label": "LexConsumableAccount", |
| | | "regions": [ |
| | | { |
| | | "components": [ |
| | | { |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes" : { |
| | | "background" : "background: rgba(0,0,0,0)", |
| | | "backgroundOverlay" : "rgba(0,0,0,0.5)", |
| | | "contentAreaWidth" : 100, |
| | | "sectionConfig" : { |
| | | "UUID" : "21aff1b6-3fc5-4eaa-9c90-3909310f21fa", |
| | | "columns" : [ { |
| | | "UUID" : "600f91f5-1068-4b1f-8a86-d0a193bce882", |
| | | "columnKey" : "1", |
| | | "columnName" : "Column 1", |
| | | "columnWidth" : "12", |
| | | "seedComponents" : [ ] |
| | | } ] |
| | | }, |
| | | "sectionHeight" : 300 |
| | | }, |
| | | "componentName" : "forceCommunity:section", |
| | | "id" : "21aff1b6-3fc5-4eaa-9c90-3909310f21fa", |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes": {}, |
| | | "componentName": "c:lexConsumableAccount", |
| | | "id": "918c23ca-5bf3-4ed0-80cf-70c22fdc15e5", |
| | | "id" : "5ad65eac-4ab2-4e31-823f-241cd8a31b77", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "53e16625-5ad6-4555-a03e-5ddfc7ed6200", |
| | | "regionName": "header", |
| | | } ], |
| | | "id" : "600f91f5-1068-4b1f-8a86-d0a193bce882", |
| | | "regionLabel" : "Column 1", |
| | | "regionName" : "1", |
| | | "renditionMap" : { }, |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "id": "08d8f81e-8b77-4c51-bc72-53efd131a367", |
| | | } ], |
| | | "renderPriority" : "NEUTRAL", |
| | | "renditionMap" : { }, |
| | | "type" : "component" |
| | | } ], |
| | | "id" : "da25695d-f912-48f0-a829-ff77681dea16", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "id": "684378e9-c38e-49ee-acc0-ea99f8730e7d", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customHeadTags": "", |
| | | "description": "", |
| | | "title": "æ¶èå管çç³»ç»" |
| | | "title" : "å®¢æ· ~ æ¶èå管çç³»ç»" |
| | | }, |
| | | "componentName": "forceCommunity:seoAssistant", |
| | | "id": "8922f5cd-dab7-49b9-98d6-dc3193827188", |
| | | "id" : "34026022-6682-46cb-920f-4c24fbf656f8", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "0890434c-63ef-4621-b17e-8b995d014686", |
| | | } ], |
| | | "id" : "149173b3-ab4a-47d1-824b-c73e4cee068d", |
| | | "regionName": "sfdcHiddenRegion", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "custom-lexconsumableaccount" |
| | |
| | | { |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "componentName": "siteforce:dynamicLayout", |
| | | "dataProviders": [], |
| | | "id": "469dc013-dd9c-46d5-a4e8-57e7b4718b74", |
| | | "id" : "5d615179-dd62-4481-a874-de16a69d7374", |
| | | "label": "LexConsumableAccountInfoPrint", |
| | | "regions": [ |
| | | { |
| | | "components": [ |
| | | { |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "background": "background: rgba(0,0,0,0)", |
| | | "backgroundOverlay": "rgba(0,0,0,0.5)", |
| | | "contentAreaWidth": 100, |
| | | "sectionConfig": { |
| | | "UUID": "74ce3d06-cf05-449f-882f-88400116354b", |
| | | "columns": [ |
| | | { |
| | | "UUID": "1803a98f-aa73-4a73-b8ec-518365d169ec", |
| | | "UUID" : "e9f987a3-92bd-470f-9afb-7804ecfcf578", |
| | | "columns" : [ { |
| | | "UUID" : "81d173bc-f9c3-4758-bc9e-570e99d92545", |
| | | "columnKey": "1", |
| | | "columnName": "Column 1", |
| | | "columnWidth": "12", |
| | | "seedComponents": [] |
| | | } |
| | | ] |
| | | } ] |
| | | }, |
| | | "sectionHeight": 300 |
| | | }, |
| | | "componentName": "forceCommunity:section", |
| | | "id": "74ce3d06-cf05-449f-882f-88400116354b", |
| | | "regions": [ |
| | | { |
| | | "components": [ |
| | | { |
| | | "id" : "e9f987a3-92bd-470f-9afb-7804ecfcf578", |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes": {}, |
| | | "componentName": "c:lexConsumableAccountInfoPrint", |
| | | "id": "4b082cd8-767e-43f5-94b6-cb5a3113c88a", |
| | | "id" : "03fc88cd-8285-4d6e-878b-5c75456032a2", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "1803a98f-aa73-4a73-b8ec-518365d169ec", |
| | | } ], |
| | | "id" : "81d173bc-f9c3-4758-bc9e-570e99d92545", |
| | | "regionLabel": "Column 1", |
| | | "regionName": "1", |
| | | "renditionMap": {}, |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "66e4d1fa-43ae-4e10-8387-2fc761caf3d9", |
| | | } ], |
| | | "id" : "4ff49dcd-f175-4fb8-a368-30195f218e22", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customHeadTags": "", |
| | | "description": "", |
| | | "title": "LexConsumableAccountInfoPrint" |
| | | "title" : "客æ·è¯¦ç»ä¿¡æ¯ ~ æ¶èå管çç³»ç»" |
| | | }, |
| | | "componentName": "forceCommunity:seoAssistant", |
| | | "id": "41c17f3c-ec08-40cd-b41f-2e14e13f3277", |
| | | "id" : "d08e3a38-3069-4275-b3f5-6db7c28ced59", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "fc6c01a8-09c5-4bd9-80eb-e36d3a65bb84", |
| | | } ], |
| | | "id" : "6b25d2b2-bb26-48ff-9e0f-226821b3d62a", |
| | | "regionName": "sfdcHiddenRegion", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "custom-lexconsumableaccountinfoprint" |
| | |
| | | { |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "componentName": "siteforce:dynamicLayout", |
| | | "dataProviders": [], |
| | | "id": "adc3f3b5-03a9-4f8d-9284-7ff06dc338af", |
| | | "id" : "0c6f8778-bba4-4726-97f6-b639cce7c99e", |
| | | "label": "LexConsumableOrderManage", |
| | | "regions": [ |
| | | { |
| | | "components": [ |
| | | { |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "background": "background: rgba(0,0,0,0)", |
| | | "backgroundOverlay": "rgba(0,0,0,0.5)", |
| | | "contentAreaWidth": 100, |
| | | "sectionConfig": { |
| | | "UUID": "e755f4ef-9468-4884-b2d6-db7da95af5f6", |
| | | "columns": [ |
| | | { |
| | | "UUID": "c3e44009-7b50-45e6-b4e1-81dc6b85c17c", |
| | | "UUID" : "c816a792-e9df-4280-a595-4f7a2de81a72", |
| | | "columns" : [ { |
| | | "UUID" : "0dc2ef0d-dfb8-4347-814b-251e3e16b10b", |
| | | "columnKey": "1", |
| | | "columnName": "Column 1", |
| | | "columnWidth": "12", |
| | | "seedComponents": [] |
| | | } |
| | | ] |
| | | } ] |
| | | }, |
| | | "sectionHeight": 300 |
| | | }, |
| | | "componentName": "forceCommunity:section", |
| | | "id": "e755f4ef-9468-4884-b2d6-db7da95af5f6", |
| | | "regions": [ |
| | | { |
| | | "components": [ |
| | | { |
| | | "id" : "c816a792-e9df-4280-a595-4f7a2de81a72", |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes": {}, |
| | | "componentName": "c:lexConsumableOrderManage", |
| | | "id": "bcc9fb43-5bc7-4e22-b4db-4590542b0d63", |
| | | "id" : "480e4dee-4c0b-43d9-b81a-ba3ecd96f4e3", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "c3e44009-7b50-45e6-b4e1-81dc6b85c17c", |
| | | } ], |
| | | "id" : "0dc2ef0d-dfb8-4347-814b-251e3e16b10b", |
| | | "regionLabel": "Column 1", |
| | | "regionName": "1", |
| | | "renditionMap": {}, |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "61d4e85c-8cf2-4c5a-9a25-5f7dd8797e86", |
| | | } ], |
| | | "id" : "5425b128-bc13-4529-9741-c37eca368806", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customHeadTags": "", |
| | | "description": "", |
| | | "title": "æ¶èå管çç³»ç»" |
| | | "title" : "订å管ç ~ æ¶èå管çç³»ç»" |
| | | }, |
| | | "componentName": "forceCommunity:seoAssistant", |
| | | "id": "ecb86434-590f-47cf-a6b7-b4a2e03f8a45", |
| | | "id" : "01bf62a2-fff9-4f38-8cea-6c4a8df40eda", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "ea264f2a-7bd5-4f4a-97e8-fbddc045e948", |
| | | } ], |
| | | "id" : "44d87bc4-7c1d-43ce-acc5-e20a018fc57d", |
| | | "regionName": "sfdcHiddenRegion", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "custom-lexconsumableordermanage" |
| | |
| | | { |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "componentName": "siteforce:dynamicLayout", |
| | | "dataProviders": [], |
| | | "id": "86cd7e17-9d77-47e1-906e-f87e8a36b5e0", |
| | | "label": "lexInventory", |
| | | "regions": [ |
| | | { |
| | | "components": [ |
| | | { |
| | | "id" : "5a24538d-0a99-40a3-a6a1-4496d0333a05", |
| | | "label" : "LexInventory", |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "background": "background: rgba(0,0,0,0)", |
| | | "backgroundOverlay": "rgba(0,0,0,0.5)", |
| | | "contentAreaWidth": 100, |
| | | "sectionConfig": { |
| | | "UUID": "d5972ccb-1ae1-42b2-bc91-1de65e0b8821", |
| | | "columns": [ |
| | | { |
| | | "UUID": "fed2ff4a-a0a3-4358-ab0a-593e1ce77c14", |
| | | "UUID" : "01395e1f-fbd3-4be4-9cf0-24df23b8b820", |
| | | "columns" : [ { |
| | | "UUID" : "c27de1cb-1805-4399-a99e-cbd7ff3ecd10", |
| | | "columnKey": "1", |
| | | "columnName": "Column 1", |
| | | "columnWidth": "12", |
| | | "seedComponents": [] |
| | | } |
| | | ] |
| | | } ] |
| | | }, |
| | | "sectionHeight": 300 |
| | | }, |
| | | "componentName": "forceCommunity:section", |
| | | "id": "d5972ccb-1ae1-42b2-bc91-1de65e0b8821", |
| | | "regions": [ |
| | | { |
| | | "components": [ |
| | | { |
| | | "id" : "01395e1f-fbd3-4be4-9cf0-24df23b8b820", |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes": {}, |
| | | "componentName": "c:lexInventory", |
| | | "id": "f87bb2fd-5cac-490f-ad2b-c0c96882413c", |
| | | "id" : "567f3188-aa85-40b7-b2fa-9caf501e4b44", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "fed2ff4a-a0a3-4358-ab0a-593e1ce77c14", |
| | | } ], |
| | | "id" : "c27de1cb-1805-4399-a99e-cbd7ff3ecd10", |
| | | "regionLabel": "Column 1", |
| | | "regionName": "1", |
| | | "renditionMap": {}, |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "6f5860dd-27a5-44e6-8c5d-2d1011245d0d", |
| | | } ], |
| | | "id" : "45b8b9b5-bc3e-45f2-b8fb-a5c5b77924b6", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customHeadTags": "", |
| | | "description": "", |
| | | "title": "çç¹~æ¶èå管çç³»ç»" |
| | | "title" : "åºåçç¹ ~ æ¶èå管çç³»ç»" |
| | | }, |
| | | "componentName": "forceCommunity:seoAssistant", |
| | | "id": "7eb8f5a5-046e-44af-ba4f-c2805b21ef82", |
| | | "id" : "49bde76e-3088-4ae0-91e2-a0d7f68a7ca6", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "e30387d3-bc5d-45e1-9b2f-4c232581c35a", |
| | | } ], |
| | | "id" : "9e364a81-0317-445a-b308-8746e418eea6", |
| | | "regionName": "sfdcHiddenRegion", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "custom-lex-inventory" |
| | | "viewType" : "custom-lexinventory" |
| | | } |
| | |
| | | "dataProviders": [], |
| | | "id": "afb34dd9-404b-4bea-949d-07c42681d821", |
| | | "label": "LexInventoryView", |
| | | "regions": [ |
| | | { |
| | | "components": [ |
| | | { |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "background": "background: rgba(0,0,0,0)", |
| | | "backgroundOverlay": "rgba(0,0,0,0.5)", |
| | | "contentAreaWidth": 100, |
| | | "sectionConfig": { |
| | | "UUID": "747680b6-fa7d-40b9-9fb2-5eeedec2111f", |
| | | "columns": [ |
| | | { |
| | | "columns" : [ { |
| | | "UUID": "7dae9038-fe28-4dd2-beda-d90442f650d1", |
| | | "columnKey": "1", |
| | | "columnName": "Column 1", |
| | | "columnWidth": "12", |
| | | "seedComponents": [] |
| | | } |
| | | ] |
| | | } ] |
| | | }, |
| | | "sectionHeight": 300 |
| | | }, |
| | | "componentName": "forceCommunity:section", |
| | | "id": "747680b6-fa7d-40b9-9fb2-5eeedec2111f", |
| | | "regions": [ |
| | | { |
| | | "components": [ |
| | | { |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes": {}, |
| | | "componentName": "c:lexinventoryViewLWC", |
| | | "id": "2db28040-90b0-4c1c-8793-28479780c069", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | } ], |
| | | "id": "7dae9038-fe28-4dd2-beda-d90442f650d1", |
| | | "regionLabel": "Column 1", |
| | | "regionName": "1", |
| | | "renditionMap": {}, |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | } ], |
| | | "id": "f951952b-7e3c-4622-bef8-b6c333c9913d", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customHeadTags": "", |
| | | "description": "", |
| | |
| | | "id": "54a2e6e2-68ec-4ad2-9e6d-e2ab853931bc", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | } ], |
| | | "id": "417422ac-dd59-4afe-bf23-e35fda0bc023", |
| | | "regionName": "sfdcHiddenRegion", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "custom-lexinventoryview" |
| | |
| | | { |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "componentName": "siteforce:sldsOneColLayout", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "componentName" : "siteforce:dynamicLayout", |
| | | "dataProviders": [], |
| | | "id": "f8b18a5a-4f37-46d3-946e-3c5307c081e6", |
| | | "id" : "e8224149-f1b9-4c44-8839-4d9737739c72", |
| | | "label": "LexOutboundorderImport", |
| | | "regions": [ |
| | | { |
| | | "components": [ |
| | | { |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes" : { |
| | | "background" : "background: rgba(0,0,0,0)", |
| | | "backgroundOverlay" : "rgba(0,0,0,0.5)", |
| | | "contentAreaWidth" : 100, |
| | | "sectionConfig" : { |
| | | "UUID" : "83050955-aa3b-4e32-80a6-da5359b8362a", |
| | | "columns" : [ { |
| | | "UUID" : "fbfcccd6-3c29-49b4-9a8b-ce0fadccab60", |
| | | "columnKey" : "1", |
| | | "columnName" : "Column 1", |
| | | "columnWidth" : "12", |
| | | "seedComponents" : [ ] |
| | | } ] |
| | | }, |
| | | "sectionHeight" : 300 |
| | | }, |
| | | "componentName" : "forceCommunity:section", |
| | | "id" : "83050955-aa3b-4e32-80a6-da5359b8362a", |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes": {}, |
| | | "componentName": "c:lexOutboundorderImport", |
| | | "id": "3a2da04d-2fb3-4dc7-aadc-40c9a0fb049e", |
| | | "id" : "68e59073-ba5b-46d7-b8cd-552587a748a2", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "280aa141-39f4-4ce6-8d22-f8c7132cc3bf", |
| | | "regionName": "header", |
| | | } ], |
| | | "id" : "fbfcccd6-3c29-49b4-9a8b-ce0fadccab60", |
| | | "regionLabel" : "Column 1", |
| | | "regionName" : "1", |
| | | "renditionMap" : { }, |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "id": "396f0d91-64bb-48dd-a3c8-428458d7b4d1", |
| | | } ], |
| | | "renderPriority" : "NEUTRAL", |
| | | "renditionMap" : { }, |
| | | "type" : "component" |
| | | } ], |
| | | "id" : "f58362fc-b12d-41ba-bb99-fce2e6dba3fb", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "id": "a2a09aa1-691c-44b4-b20a-6450cfe54c0b", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customHeadTags": "", |
| | | "description": "", |
| | | "title": "æ¶èå管çç³»ç»" |
| | | "title" : "åºåº ~ æ¶èå管çç³»ç»" |
| | | }, |
| | | "componentName": "forceCommunity:seoAssistant", |
| | | "id": "20aa6845-e7bd-4cec-814f-c8a4422f0dd6", |
| | | "id" : "e562ea3b-ac29-4271-9010-481f74d59780", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "bb3f92d2-e08e-411c-9a7b-196a86da29d6", |
| | | } ], |
| | | "id" : "ddc00cfb-8eb3-49b7-8d9a-44ac4fe1979b", |
| | | "regionName": "sfdcHiddenRegion", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "custom-lexoutboundorderimport" |
| | |
| | | { |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "componentName": "siteforce:sldsOneColLayout", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "componentName" : "siteforce:dynamicLayout", |
| | | "dataProviders": [], |
| | | "id": "38d1e97a-0728-46a2-bee1-0c72ff1d6570", |
| | | "id" : "b0f2e8e7-62fd-42f3-bf3a-4bdf40b02bf4", |
| | | "label": "LexOverdueStock", |
| | | "regions": [ |
| | | { |
| | | "components": [ |
| | | { |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes" : { |
| | | "background" : "background: rgba(0,0,0,0)", |
| | | "backgroundOverlay" : "rgba(0,0,0,0.5)", |
| | | "contentAreaWidth" : 100, |
| | | "sectionConfig" : { |
| | | "UUID" : "cdbb12a5-9c06-495c-97bd-111a00ed0880", |
| | | "columns" : [ { |
| | | "UUID" : "4d9b4158-4336-47ad-8d7f-f2814c843237", |
| | | "columnKey" : "1", |
| | | "columnName" : "Column 1", |
| | | "columnWidth" : "12", |
| | | "seedComponents" : [ ] |
| | | } ] |
| | | }, |
| | | "sectionHeight" : 300 |
| | | }, |
| | | "componentName" : "forceCommunity:section", |
| | | "id" : "cdbb12a5-9c06-495c-97bd-111a00ed0880", |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes": {}, |
| | | "componentName": "c:lexOverdueStock", |
| | | "id": "4a56ea96-8dbf-466a-8bae-c63c91494b47", |
| | | "id" : "1840dac3-e335-4628-b86b-d46d31831af5", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "a4b13816-1cc1-4942-aac1-cd4a877f682a", |
| | | "regionName": "header", |
| | | } ], |
| | | "id" : "4d9b4158-4336-47ad-8d7f-f2814c843237", |
| | | "regionLabel" : "Column 1", |
| | | "regionName" : "1", |
| | | "renditionMap" : { }, |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "id": "1bef605d-91f2-4557-bd39-00d4b2427d95", |
| | | } ], |
| | | "renderPriority" : "NEUTRAL", |
| | | "renditionMap" : { }, |
| | | "type" : "component" |
| | | } ], |
| | | "id" : "70a9cbdd-d242-44d6-9ade-f12aa57a6101", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "id": "e77e1337-6376-42be-847a-d4bd459d81ce", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customHeadTags": "", |
| | | "description": "", |
| | | "title": "è¿æåºåéå~æ¶èå管çç³»ç»" |
| | | }, |
| | | "componentName": "forceCommunity:seoAssistant", |
| | | "id": "0f5328a8-e4da-44d4-aa05-943f2aeb1a05", |
| | | "id" : "65ba038f-9318-496d-9863-751d9b084cb0", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "6da76625-3ea0-4b35-b08e-99dd6de43df8", |
| | | } ], |
| | | "id" : "87ad5976-ac2f-446f-aa1e-f9a0d34525fb", |
| | | "regionName": "sfdcHiddenRegion", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "custom-lexoverduestock" |
| | |
| | | "dataProviders": [], |
| | | "id": "57a80c74-e471-4b90-b214-580f7d3b66cd", |
| | | "label": "LexProductLimitEdit", |
| | | "regions": [ |
| | | { |
| | | "components": [ |
| | | { |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "background": "background: rgba(0,0,0,0)", |
| | | "backgroundOverlay": "rgba(0,0,0,0.5)", |
| | | "contentAreaWidth": 100, |
| | | "sectionConfig": { |
| | | "UUID": "59856db5-4bb3-414f-83d5-8ae14ccfc0d6", |
| | | "columns": [ |
| | | { |
| | | "columns" : [ { |
| | | "UUID": "b78140a7-5f4e-4685-a3c4-0a92ba950dc7", |
| | | "columnKey": "1", |
| | | "columnName": "Column 1", |
| | | "columnWidth": "12", |
| | | "seedComponents": [] |
| | | } |
| | | ] |
| | | } ] |
| | | }, |
| | | "sectionHeight": 300 |
| | | }, |
| | | "componentName": "forceCommunity:section", |
| | | "id": "59856db5-4bb3-414f-83d5-8ae14ccfc0d6", |
| | | "regions": [ |
| | | { |
| | | "components": [ |
| | | { |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes": {}, |
| | | "componentName": "c:lexProductLimitEdit", |
| | | "id": "a096dd49-afe0-4796-8af0-cedd62664f2c", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | } ], |
| | | "id": "b78140a7-5f4e-4685-a3c4-0a92ba950dc7", |
| | | "regionLabel": "Column 1", |
| | | "regionName": "1", |
| | | "renditionMap": {}, |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | } ], |
| | | "id": "d17f6f02-da3e-4235-81d9-1502e0ec6ca3", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customHeadTags": "", |
| | | "description": "", |
| | |
| | | "id": "f5b7eb44-8ce3-40c9-b71a-d5d9f3552955", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | } ], |
| | | "id": "2257c0fb-ca9b-4e22-9e82-b20b1c22eb1d", |
| | | "regionName": "sfdcHiddenRegion", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "custom-lexproductlimitedit" |
| | |
| | | { |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "componentName": "siteforce:dynamicLayout", |
| | | "dataProviders": [], |
| | | "id": "8feef62c-b227-4815-b93f-fe0fe07a34bd", |
| | | "label": "lexRemoveBox", |
| | | "regions": [ |
| | | { |
| | | "components": [ |
| | | { |
| | | "id" : "b4a2ba1b-3827-4ec7-8f8e-5461c3893ce0", |
| | | "label" : "LexRemoveBox", |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "background": "background: rgba(0,0,0,0)", |
| | | "backgroundOverlay": "rgba(0,0,0,0.5)", |
| | | "contentAreaWidth": 100, |
| | | "sectionConfig": { |
| | | "UUID": "f3c5d228-c50a-4ecc-8a29-f06be86bb4ac", |
| | | "columns": [ |
| | | { |
| | | "UUID": "c05d007d-f593-42c1-a4b4-1cbf7095d56b", |
| | | "UUID" : "c8d284bf-b761-4de7-88ad-d976e03783c2", |
| | | "columns" : [ { |
| | | "UUID" : "74d9ee71-cdf0-46f9-87e0-56feb724f0de", |
| | | "columnKey": "1", |
| | | "columnName": "Column 1", |
| | | "columnWidth": "12", |
| | | "seedComponents": [] |
| | | } |
| | | ] |
| | | } ] |
| | | }, |
| | | "sectionHeight": 300 |
| | | }, |
| | | "componentName": "forceCommunity:section", |
| | | "id": "f3c5d228-c50a-4ecc-8a29-f06be86bb4ac", |
| | | "regions": [ |
| | | { |
| | | "components": [ |
| | | { |
| | | "id" : "c8d284bf-b761-4de7-88ad-d976e03783c2", |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes": {}, |
| | | "componentName": "c:lexRemoveBox", |
| | | "id": "d16c00a3-c5f4-4385-91f3-834488f39600", |
| | | "id" : "ff8f68eb-eb9b-40db-94ca-6aec9fb379c3", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "c05d007d-f593-42c1-a4b4-1cbf7095d56b", |
| | | } ], |
| | | "id" : "74d9ee71-cdf0-46f9-87e0-56feb724f0de", |
| | | "regionLabel": "Column 1", |
| | | "regionName": "1", |
| | | "renditionMap": {}, |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "8e5500f1-3f43-475d-a41f-26a35a4fd06e", |
| | | } ], |
| | | "id" : "e555311d-b588-4ab1-add1-4f830b0ebc03", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customHeadTags": "", |
| | | "description": "", |
| | | "title": "æç ~æ¶èå管çç³»ç»" |
| | | }, |
| | | "componentName": "forceCommunity:seoAssistant", |
| | | "id": "c044df7e-0f7d-459b-9082-4e5b89bca9e1", |
| | | "id" : "ad6dcd28-5872-4bac-b016-ea09e096a6c3", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "06074999-fc27-4540-a8d6-a467900db79e", |
| | | } ], |
| | | "id" : "7c28cb01-e082-404a-81a8-7afe5f78c023", |
| | | "regionName": "sfdcHiddenRegion", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "custom-lexremovebox" |
| | |
| | | { |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "componentName": "siteforce:sldsOneColLayout", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "componentName" : "siteforce:dynamicLayout", |
| | | "dataProviders": [], |
| | | "id": "f5a6e76f-41cd-4eb3-8652-695bcce0e678", |
| | | "id" : "e5d81e8f-b0a5-4bf3-b11b-08dd8fef1a3c", |
| | | "label": "LexSaleAndDelivery", |
| | | "regions": [ |
| | | { |
| | | "id": "1f0946e1-1735-4650-a205-dd61df8759d4", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes" : { |
| | | "background" : "background: rgba(0,0,0,0)", |
| | | "backgroundOverlay" : "rgba(0,0,0,0.5)", |
| | | "contentAreaWidth" : 100, |
| | | "sectionConfig" : { |
| | | "UUID" : "02b47908-d44c-4ffe-89b4-6aad09343bd0", |
| | | "columns" : [ { |
| | | "UUID" : "a1846e1c-c395-4e77-9218-5375bac83cb8", |
| | | "columnKey" : "1", |
| | | "columnName" : "Column 1", |
| | | "columnWidth" : "12", |
| | | "seedComponents" : [ ] |
| | | } ] |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | "sectionHeight" : 300 |
| | | }, |
| | | "componentName" : "forceCommunity:section", |
| | | "id" : "02b47908-d44c-4ffe-89b4-6aad09343bd0", |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes": {}, |
| | | "componentName": "c:lexSaleAndDelivery", |
| | | "id": "e3313269-05be-4724-aa4e-db0958a1ddd0", |
| | | "id" : "b77b243f-d2ce-42ff-8349-048ba0100837", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "3367d193-f337-49ca-95ca-6ac1caaa7349", |
| | | } ], |
| | | "id" : "a1846e1c-c395-4e77-9218-5375bac83cb8", |
| | | "regionLabel" : "Column 1", |
| | | "regionName" : "1", |
| | | "renditionMap" : { }, |
| | | "type" : "region" |
| | | } ], |
| | | "renderPriority" : "NEUTRAL", |
| | | "renditionMap" : { }, |
| | | "type" : "component" |
| | | } ], |
| | | "id" : "ed598892-294e-43c2-b91c-4df7dae88a1b", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "id": "e25f498e-41fb-4f4d-8dfe-fbf9a069cb93", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customHeadTags": "", |
| | | "description": "", |
| | | "title": "æ¶èå管çç³»ç»" |
| | | "title" : "åºåº ~ æ¶èå管çç³»ç»" |
| | | }, |
| | | "componentName": "forceCommunity:seoAssistant", |
| | | "id": "84ec3d27-0378-42f8-a3ac-3fd350b72067", |
| | | "id" : "5ee61636-ae06-4737-9d50-20fd9a6971db", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "430f1ad6-c368-493e-b311-28818c66e9cd", |
| | | } ], |
| | | "id" : "e27b9d74-50aa-4022-bffa-7f6a08f707b8", |
| | | "regionName": "sfdcHiddenRegion", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "custom-lexsaleanddelivery" |
| | |
| | | { |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "componentName": "siteforce:sldsOneColLayout", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "componentName" : "siteforce:dynamicLayout", |
| | | "dataProviders": [], |
| | | "id": "b7e402c5-b5ed-4d2c-8cd1-a7c189bfbcda", |
| | | "id" : "c2e9c913-ab1c-4b38-899b-136fb95066fb", |
| | | "label": "LexSummonsCreat", |
| | | "regions": [ |
| | | { |
| | | "id": "6388ef86-a800-4056-811f-d56f7381b8a1", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes" : { |
| | | "background" : "background: rgba(0,0,0,0)", |
| | | "backgroundOverlay" : "rgba(0,0,0,0.5)", |
| | | "contentAreaWidth" : 100, |
| | | "sectionConfig" : { |
| | | "UUID" : "2f081513-f8b1-4a18-93ed-07528785644e", |
| | | "columns" : [ { |
| | | "UUID" : "0034a928-ed12-4a8f-8b61-e2a879be675e", |
| | | "columnKey" : "1", |
| | | "columnName" : "Column 1", |
| | | "columnWidth" : "12", |
| | | "seedComponents" : [ ] |
| | | } ] |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | "sectionHeight" : 300 |
| | | }, |
| | | "componentName" : "forceCommunity:section", |
| | | "id" : "2f081513-f8b1-4a18-93ed-07528785644e", |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes": {}, |
| | | "componentName": "c:lexSummonsCreat", |
| | | "id": "2cf76214-9746-4039-aa9f-8d956261bf1e", |
| | | "id" : "78274e15-2cc6-4863-8ce4-2d10e89d802f", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "5080fa3e-dede-46af-8878-00cefafbea4a", |
| | | } ], |
| | | "id" : "0034a928-ed12-4a8f-8b61-e2a879be675e", |
| | | "regionLabel" : "Column 1", |
| | | "regionName" : "1", |
| | | "renditionMap" : { }, |
| | | "type" : "region" |
| | | } ], |
| | | "renderPriority" : "NEUTRAL", |
| | | "renditionMap" : { }, |
| | | "type" : "component" |
| | | } ], |
| | | "id" : "74103ed0-eb74-4ae0-a9f5-aa1bed790517", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "id": "9138e351-3acd-45bd-8f86-81f98fc33515", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customHeadTags": "", |
| | | "description": "", |
| | | "title": "æ¶èå管çç³»ç»" |
| | | "title" : "åºåºåæç» ~ æ¶èå管çç³»ç»" |
| | | }, |
| | | "componentName": "forceCommunity:seoAssistant", |
| | | "id": "08468c2f-c8ee-4a89-b3a4-e8a329634e17", |
| | | "id" : "569ba6aa-c702-4a13-aed6-79a792706f37", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "29505c19-f110-4803-a463-159e2e71fb3d", |
| | | } ], |
| | | "id" : "cf2865b2-d5a1-434f-b53f-927218bca79c", |
| | | "regionName": "sfdcHiddenRegion", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "custom-lexsummonscreat" |
| | |
| | | { |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "componentName": "siteforce:dynamicLayout", |
| | | "dataProviders": [], |
| | | "id": "bda75bd7-499d-4d41-ad47-2d49173854dd", |
| | | "label": "lexTopPage", |
| | | "regions": [ |
| | | { |
| | | "components": [ |
| | | { |
| | | "id" : "09c93676-a531-4ba7-8708-cc47f8458c90", |
| | | "label" : "LexTopPage", |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "background": "background: rgba(0,0,0,0)", |
| | | "backgroundOverlay": "rgba(0,0,0,0.5)", |
| | | "contentAreaWidth": 100, |
| | | "sectionConfig": { |
| | | "UUID": "5d2f345c-27a4-493e-b41b-0aa663636b99", |
| | | "columns": [ |
| | | { |
| | | "UUID": "c9d294f7-8319-44f8-ba80-34ec0c7b6bc7", |
| | | "UUID" : "3493c458-56a0-4990-8499-772754716049", |
| | | "columns" : [ { |
| | | "UUID" : "9eb85cd6-22f0-4d6c-89bf-bfdf13eb4889", |
| | | "columnKey": "1", |
| | | "columnName": "Column 1", |
| | | "columnWidth": "12", |
| | | "seedComponents": [] |
| | | } |
| | | ] |
| | | } ] |
| | | }, |
| | | "sectionHeight": 300 |
| | | }, |
| | | "componentName": "forceCommunity:section", |
| | | "id": "5d2f345c-27a4-493e-b41b-0aa663636b99", |
| | | "regions": [ |
| | | { |
| | | "components": [ |
| | | { |
| | | "id" : "3493c458-56a0-4990-8499-772754716049", |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes": {}, |
| | | "componentName": "c:lexTopPage", |
| | | "id": "bcc522fd-ec7f-44db-a05e-54157d9c1f3b", |
| | | "id" : "a987052c-27fc-4881-a10a-76813f6f1a37", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "c9d294f7-8319-44f8-ba80-34ec0c7b6bc7", |
| | | } ], |
| | | "id" : "9eb85cd6-22f0-4d6c-89bf-bfdf13eb4889", |
| | | "regionLabel": "Column 1", |
| | | "regionName": "1", |
| | | "renditionMap": {}, |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "34880e8c-124a-46db-ab66-c8ab4dc1af9c", |
| | | } ], |
| | | "id" : "fef29330-80e6-40e7-83ce-74b60dd68887", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customHeadTags": "", |
| | | "description": "", |
| | | "title": "æ¶èå管çç³»ç»" |
| | | "title" : "订åæç¤º ~ æ¶èå管çç³»ç»" |
| | | }, |
| | | "componentName": "forceCommunity:seoAssistant", |
| | | "id": "638a5a1c-d763-42b1-9ffa-f45692336891", |
| | | "id" : "6dbf3064-0f5f-4648-a787-4a09f1d915fe", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "9f86202b-a3f8-4a98-9255-352caf7a80c8", |
| | | } ], |
| | | "id" : "8cd1759d-130c-40a0-99b0-395cdd92cdc8", |
| | | "regionName": "sfdcHiddenRegion", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "custom-lextoppage" |
| | |
| | | { |
| | | "appPageId": "bfbf7350-cdcd-4e2c-97a5-ab51f2aa3b9d", |
| | | "appPageId" : "7756c67f-7774-4fe1-b1c2-eecb19f9c6a5", |
| | | "componentName": "siteforce:sldsOneColLayout", |
| | | "dataProviders": [], |
| | | "id": "4c2e26c5-f1ea-42e0-85f6-371bc184fe49", |
| | | "id" : "7c2dd152-d6d3-4652-bbfe-cb8e11d83c43", |
| | | "label": "Login", |
| | | "regions": [ |
| | | { |
| | | "components": [ |
| | | { |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes" : { }, |
| | | "componentName" : "salesforceIdentity:communityLogo2", |
| | | "id" : "a96beff8-2727-4f74-b08a-e908ab6e72be", |
| | | "renderPriority" : "NEUTRAL", |
| | | "renditionMap" : { }, |
| | | "type" : "component" |
| | | }, { |
| | | "componentAttributes": { |
| | | "forgotPasswordLabel": "å¿è®°å¯ç ï¼", |
| | | "forgotPasswordUrl": "/ForgotPassword", |
| | |
| | | "usernameLabel": "ç¨æ·å" |
| | | }, |
| | | "componentName": "salesforceIdentity:loginForm2", |
| | | "id": "d6a2d892-7104-4e50-8da1-d4b81c2fd790", |
| | | "id" : "2de8135d-cb57-4614-9afe-2453f1cbe676", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "0249aee3-9513-4ce4-bc73-57051629556f", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | "componentAttributes": { |
| | | "customHeadTags": "", |
| | | "description": "", |
| | | "title": "Login" |
| | | }, |
| | | "componentName": "forceCommunity:seoAssistant", |
| | | "id": "a508199c-9ac8-499b-9259-710b933385c9", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "b1f4c1e9-2975-469b-8450-23c36497bdb0", |
| | | "regionName": "sfdcHiddenRegion", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | "componentAttributes": {}, |
| | | "componentName": "salesforceIdentity:communityLogo2", |
| | | "id": "44fd503d-4872-47ae-bd55-4e249e60eaac", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | }, |
| | | { |
| | | }, { |
| | | "componentAttributes": { |
| | | "headerText": "", |
| | | "showHeader": false, |
| | | "useCommunityDomainSso": true |
| | | }, |
| | | "componentName": "salesforceIdentity:socialLogin2", |
| | | "id": "5197f70b-55e5-4e64-827c-54630cc74b0c", |
| | | "id" : "f4d72a64-5e5f-48d8-8bb7-4253a8309b40", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "ad5d0647-ce12-47ee-8439-a47a35d876ce", |
| | | "regionName": "header", |
| | | } ], |
| | | "id" : "11b4798e-fa84-4594-beea-500d991e23f2", |
| | | "regionName" : "content", |
| | | "type": "region" |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes" : { |
| | | "customHeadTags" : "", |
| | | "description" : "", |
| | | "title" : "Login" |
| | | }, |
| | | { |
| | | "id": "70260364-5f55-47f8-9e09-bf445957eea1", |
| | | "regionName": "sidebar", |
| | | "componentName" : "forceCommunity:seoAssistant", |
| | | "id" : "c72bcc7d-29ea-40e6-969c-c818f267f8f4", |
| | | "renditionMap" : { }, |
| | | "type" : "component" |
| | | } ], |
| | | "id" : "02d41dc1-9a37-47cf-90c8-438d40bba670", |
| | | "regionName" : "sfdcHiddenRegion", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "id": "b50b01b5-4352-4dce-850c-f4d477bb871b", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Login", |
| | | "type": "view", |
| | | "viewType": "login-home" |
| | |
| | | { |
| | | "appPageId": "bfbf7350-cdcd-4e2c-97a5-ab51f2aa3b9d", |
| | | "appPageId" : "7756c67f-7774-4fe1-b1c2-eecb19f9c6a5", |
| | | "componentName": "siteforce:sldsOneColLayout", |
| | | "dataProviders": [], |
| | | "id": "a8ddd7f3-7895-497a-bb20-7f0ce5c387aa", |
| | | "id" : "ba40442c-80fc-411f-8c02-9cfce2ab1372", |
| | | "label": "Login Error", |
| | | "regions": [ |
| | | { |
| | | "id": "79334ce5-8806-43ed-824a-36948d933f87", |
| | | "regions" : [ { |
| | | "id" : "18c0d543-48fc-4503-82bf-96cb3cb61e53", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "richTextValue": "<div style=\"text-align: center;\">Invalid Page</div>" |
| | | }, |
| | | "componentName": "forceCommunity:richTextInline", |
| | | "id": "a7518e76-7f61-466f-a82a-9880b806f1af", |
| | | "id" : "98a859f9-d38a-4454-b376-39558ba5a564", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "72829da8-38fa-478c-a4d8-70e3cbb74749", |
| | | } ], |
| | | "id" : "6778281e-69dc-4122-abff-15414362a3e3", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "id": "0e1faede-f160-45cf-83d8-9c0256af66dc", |
| | | }, { |
| | | "id" : "562ba090-15e4-4844-baa3-568c08ef67be", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customHeadTags": "", |
| | | "description": "", |
| | | "title": "Login Error" |
| | | }, |
| | | "componentName": "forceCommunity:seoAssistant", |
| | | "id": "8afbbb1d-2436-4920-83de-2485490447f8", |
| | | "id" : "1367586b-b337-4e9b-b465-e2acd34738f8", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "d30d0bbc-dc48-4a9e-a6a4-56831143992b", |
| | | } ], |
| | | "id" : "012e5756-ea8f-4d49-9778-29654974830d", |
| | | "regionName": "sfdcHiddenRegion", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Login", |
| | | "type": "view", |
| | | "viewType": "login-error" |
| | |
| | | { |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "componentName": "siteforce:sldsOneColLayout", |
| | | "dataProviders": [], |
| | | "id": "51554054-4eaf-44f6-96bd-b90145e6e078", |
| | | "id" : "b253bc1d-fe4a-4156-91f4-88f4725a3616", |
| | | "label": "MDF and Coop", |
| | | "regions": [ |
| | | { |
| | | "id": "698ada79-fc75-4ade-807e-75c384962660", |
| | | "regions" : [ { |
| | | "id" : "b9dd4ac2-817d-4d34-874f-58def515fa47", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "richTextValue": " <p> <span style=\"font-size: 20px;\">Request and Manage your Market Developments Funds.</span> </p> " |
| | | }, |
| | | "componentName": "forceCommunity:richTextInline", |
| | | "id": "f49e0798-27c8-4219-84fa-8b3c270c0052", |
| | | "id" : "d8f1484b-ac5d-4563-adc7-7c5635d6cf40", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | }, |
| | | { |
| | | }, { |
| | | "componentAttributes": { |
| | | "tabsetConfig": { |
| | | "UUID": "e9ff9632-77ea-4754-b16c-2bce71e42671", |
| | | "UUID" : "08adad9c-71b1-4370-8572-a165f1f855a9", |
| | | "activeTab": "tab1", |
| | | "tabs": [ |
| | | { |
| | | "UUID": "37fc97f7-cde7-4498-aee2-80be33c2c147", |
| | | "tabs" : [ { |
| | | "UUID" : "dcaa5816-93b6-44fe-ae88-a3854c2c8863", |
| | | "allowGuestUser": false, |
| | | "locked": false, |
| | | "seedComponents": [ |
| | | { |
| | | "seedComponents" : [ { |
| | | "attributes": { |
| | | "filterName": "Recent", |
| | | "scope": "PartnerFundAllocation" |
| | | }, |
| | | "fqn": "forceCommunity:objectHome" |
| | | } |
| | | ], |
| | | } ], |
| | | "tabKey": "tab1", |
| | | "tabName": "Fund Allocations" |
| | | }, |
| | | { |
| | | "UUID": "0c982ce9-9469-4a57-83f8-9dafc5a699cf", |
| | | }, { |
| | | "UUID" : "24cea51a-4f10-469b-ab68-750473d6a847", |
| | | "allowGuestUser": false, |
| | | "locked": false, |
| | | "seedComponents": [ |
| | | { |
| | | "seedComponents" : [ { |
| | | "attributes": { |
| | | "filterName": "Recent", |
| | | "scope": "PartnerFundRequest" |
| | | }, |
| | | "fqn": "forceCommunity:objectHome" |
| | | } |
| | | ], |
| | | } ], |
| | | "tabKey": "tab2", |
| | | "tabName": "Fund Requests" |
| | | }, |
| | | { |
| | | "UUID": "cd13853b-84c0-4cd1-ae7d-efeb14ded580", |
| | | }, { |
| | | "UUID" : "46f65d8c-5983-4c38-9ea8-df27e49d3084", |
| | | "allowGuestUser": false, |
| | | "locked": false, |
| | | "seedComponents": [ |
| | | { |
| | | "seedComponents" : [ { |
| | | "attributes": { |
| | | "filterName": "Recent", |
| | | "scope": "PartnerFundClaim" |
| | | }, |
| | | "fqn": "forceCommunity:objectHome" |
| | | } |
| | | ], |
| | | } ], |
| | | "tabKey": "tab3", |
| | | "tabName": "Fund Claims" |
| | | } |
| | | ], |
| | | } ], |
| | | "useOverflowMenu": false |
| | | } |
| | | }, |
| | | "componentName": "forceCommunity:tabset", |
| | | "id": "e9ff9632-77ea-4754-b16c-2bce71e42671", |
| | | "regions": [ |
| | | { |
| | | "components": [ |
| | | { |
| | | "id" : "08adad9c-71b1-4370-8572-a165f1f855a9", |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "enableInlineEdit": true, |
| | | "filterName": "Recent", |
| | |
| | | "showSearchBar": true |
| | | }, |
| | | "componentName": "forceCommunity:objectHome", |
| | | "id": "3531b597-cb4c-4535-a558-8092b6fa8978", |
| | | "id" : "26811630-f8f1-4326-91cc-25e8d8f712b3", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "37fc97f7-cde7-4498-aee2-80be33c2c147", |
| | | } ], |
| | | "id" : "dcaa5816-93b6-44fe-ae88-a3854c2c8863", |
| | | "regionLabel": "Fund Allocations", |
| | | "regionName": "tab1", |
| | | "renditionMap": {}, |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "enableInlineEdit": true, |
| | | "filterName": "Recent", |
| | |
| | | "showSearchBar": true |
| | | }, |
| | | "componentName": "forceCommunity:objectHome", |
| | | "id": "78d6e688-cf9c-4af1-ade6-6daeb2457ba7", |
| | | "id" : "8a6128de-fe3d-4cf1-b3a3-a81eefa1afd5", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "0c982ce9-9469-4a57-83f8-9dafc5a699cf", |
| | | } ], |
| | | "id" : "24cea51a-4f10-469b-ab68-750473d6a847", |
| | | "regionLabel": "Fund Requests", |
| | | "regionName": "tab2", |
| | | "renditionMap": {}, |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "enableInlineEdit": true, |
| | | "filterName": "Recent", |
| | |
| | | "showSearchBar": true |
| | | }, |
| | | "componentName": "forceCommunity:objectHome", |
| | | "id": "2b94ac35-0ffc-4846-a564-8ce23c8c82b5", |
| | | "id" : "d838a652-cd5d-4c9c-bce0-37ec29b10b2b", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "cd13853b-84c0-4cd1-ae7d-efeb14ded580", |
| | | } ], |
| | | "id" : "46f65d8c-5983-4c38-9ea8-df27e49d3084", |
| | | "regionLabel": "Fund Claims", |
| | | "regionName": "tab3", |
| | | "renditionMap": {}, |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "8af61955-d97e-44f2-b708-b0b1f86dd6e4", |
| | | } ], |
| | | "id" : "4a8ad10b-ad7d-4821-90e2-73e4e75738fe", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "id": "1b5dacc9-d26b-484f-8de0-f7bee7b2b519", |
| | | }, { |
| | | "id" : "d8a1fe61-f24d-4969-bfa9-9745db5d1021", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "mdf" |
| | |
| | | { |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "componentName": "siteforce:sldsOneColLayout", |
| | | "dataProviders": [], |
| | | "id": "a4397b8d-c4ab-44d4-b2dc-cce577b9d2c8", |
| | | "id" : "55f1ae5d-c9ac-44ad-bb27-4c22dddc2a2e", |
| | | "label": "Messages", |
| | | "regions": [ |
| | | { |
| | | "components": [ |
| | | { |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes": {}, |
| | | "componentName": "forceChatter:messages", |
| | | "id": "76859eb9-b786-4b53-9285-b3a81a95cd53", |
| | | "id" : "e42525c8-73ea-4e9f-8306-81021473d168", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "665047c1-c182-448a-bab3-d5a0d581d5bb", |
| | | } ], |
| | | "id" : "a60f42f5-2ed2-4a01-93e5-dff8f3f5552f", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "messages" |
| | |
| | | { |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "componentName": "siteforce:dynamicLayout", |
| | | "dataProviders": [], |
| | | "id": "25eab78c-263e-4a55-8bff-ad852efc15c9", |
| | | "id" : "2cd7a2df-9e65-4663-9e35-9b4134b4beb1", |
| | | "label": "My Account", |
| | | "regions": [ |
| | | { |
| | | "id": "c1b1b648-5ba6-4a83-8907-be9c4abd0d6d", |
| | | "regions" : [ { |
| | | "id" : "23da0649-b638-4675-96dc-b2c9ab32b443", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "background": "background: rgba(0,0,0,0)", |
| | | "backgroundOverlay": "rgba(0,0,0,0.5)", |
| | | "contentAreaWidth": 100, |
| | | "sectionConfig": { |
| | | "UUID": "dd822d23-1af7-4fff-b81a-8b05999fc3d8", |
| | | "columns": [ |
| | | { |
| | | "UUID": "8086ee04-373f-44dc-a32d-1b3949308dcf", |
| | | "UUID" : "f07182ad-75fc-4431-b6ba-400214c3d0ac", |
| | | "columns" : [ { |
| | | "UUID" : "3e85aad9-15c8-45da-bc0d-22dc37dd17d0", |
| | | "columnKey": "col1", |
| | | "columnName": "column 1", |
| | | "columnWidth": "12", |
| | | "seedComponents": [ |
| | | { |
| | | "seedComponents" : [ { |
| | | "attributes": { |
| | | "recordId": "{!CurrentUser.accountId}", |
| | | "sfdc:identifier": "forceCommunity_recordHeadline" |
| | | }, |
| | | "fqn": "forceCommunity:recordHeadline" |
| | | }, |
| | | { |
| | | }, { |
| | | "attributes": { |
| | | "recordId": "{!CurrentUser.accountId}", |
| | | "sfdc:identifier": "forceCommunity_recordHomeTabs" |
| | | }, |
| | | "fqn": "forceCommunity:recordHomeTabs" |
| | | } |
| | | ] |
| | | } |
| | | ] |
| | | } ] |
| | | } ] |
| | | }, |
| | | "sectionHeight": 32 |
| | | }, |
| | | "componentName": "forceCommunity:section", |
| | | "id": "dd822d23-1af7-4fff-b81a-8b05999fc3d8", |
| | | "regions": [ |
| | | { |
| | | "components": [ |
| | | { |
| | | "id" : "f07182ad-75fc-4431-b6ba-400214c3d0ac", |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "recordId": "{!CurrentUser.accountId}" |
| | | }, |
| | | "componentName": "forceCommunity:recordHeadline", |
| | | "id": "0498afe2-2170-4e41-9a7b-5d96e1a9820b", |
| | | "id" : "76e15d29-c38a-4c72-94b5-08c54a39de76", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | }, |
| | | { |
| | | }, { |
| | | "componentAttributes": { |
| | | "detailsTabLabel": "Details", |
| | | "discussionsTabLabel": "Feed", |
| | |
| | | "timelineTabLabel": "Activity" |
| | | }, |
| | | "componentName": "forceCommunity:recordHomeTabs", |
| | | "id": "9151bf03-f322-4ccf-93dc-3367571ea0f6", |
| | | "id" : "7d8fefed-3819-4d75-8e8a-4757c623ab25", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "8086ee04-373f-44dc-a32d-1b3949308dcf", |
| | | } ], |
| | | "id" : "3e85aad9-15c8-45da-bc0d-22dc37dd17d0", |
| | | "regionLabel": "column 1", |
| | | "regionName": "col1", |
| | | "renditionMap": {}, |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "c12e8d8d-e1f3-43b9-8543-5c285db3c848", |
| | | } ], |
| | | "id" : "b79a556f-e9df-45e1-bdab-1be9be91cfff", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "id": "c6a9fc30-77e8-458b-a7f2-2f4d9fefc79b", |
| | | }, { |
| | | "id" : "f4a5b0fd-e283-47e3-9183-5364ef798372", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "my-account" |
| | |
| | | { |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "componentName": "siteforce:sldsTwoCol84Layout", |
| | | "dataProviders": [], |
| | | "id": "d4ed7ed0-3745-461e-acd3-32108749ab93", |
| | | "id" : "c29033d4-ea89-4311-9a8f-9b1cee010f96", |
| | | "label": "Question Detail", |
| | | "regions": [ |
| | | { |
| | | "components": [ |
| | | { |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "bannerText": "", |
| | | "bannerTextWithKnowledge": "Explore other <a href=\"javascript:void(0)\" class=\"headlineArticles\">articles</a> and <a href=\"javascript:void(0)\" class=\"headlineDiscussions\">discussions</a> on this topic.", |
| | |
| | | "uniqueNameOrId": "{!recordId}" |
| | | }, |
| | | "componentName": "forceCommunity:headline", |
| | | "id": "30e7636a-9f44-4386-927f-dc05e6dca7c3", |
| | | "id" : "84f7129f-6ae2-44fa-8479-fda420f20cf4", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "5dc8a770-ab6e-425f-9737-c564f0ff61b8", |
| | | } ], |
| | | "id" : "eb922188-1611-42f3-be3f-671128373c93", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "id": "{!feedItemId}" |
| | | }, |
| | | "componentName": "forceCommunity:feedItemDetail", |
| | | "id": "541c18f5-73d0-4d1e-a815-5a6779bde321", |
| | | "id" : "5f16c8ce-8910-4700-bf92-03bebb56d251", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "d3c4b9c8-ec9d-4b90-bc4b-c0553ae852e6", |
| | | } ], |
| | | "id" : "23ae6845-c63c-4df8-b294-1460939daf5b", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "numberOfItems": 5, |
| | | "showViewCounts": true, |
| | | "title": "Related Questions" |
| | | }, |
| | | "componentName": "selfService:similarQuestions", |
| | | "id": "3ec73f50-3c08-4ffa-9e59-13ffc1fd8262", |
| | | "id" : "2560050a-7f4a-4fe3-833b-4086f89d7cae", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | }, |
| | | { |
| | | }, { |
| | | "componentAttributes": { |
| | | "channel": "DefaultChannel", |
| | | "title": "" |
| | | }, |
| | | "componentName": "forceCommunity:recommendations", |
| | | "id": "034fc1f4-bc73-4cc7-b3de-62ce6abadbd5", |
| | | "id" : "fefd9c6b-eac3-425b-a0a6-2721a4131d4f", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "c3057ca7-1e03-44b2-854d-944c6b2710c6", |
| | | } ], |
| | | "id" : "386f4a49-d920-4888-a249-1ae1f4c1b0d8", |
| | | "regionName": "sidebar", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "id": "9b430d39-728f-4c02-8d61-7140d62ff5b7", |
| | | }, { |
| | | "id" : "efd4c33f-e3bf-4021-abf9-be0b741a0cd7", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customHeadTags": "", |
| | | "description": "", |
| | | "title": "{!Record.Title}" |
| | | }, |
| | | "componentName": "forceCommunity:seoAssistant", |
| | | "id": "b5bcdcc8-6b0b-4742-916f-7690109d3a8e", |
| | | "id" : "f0017168-74ce-4587-8af7-4c5e0dc965eb", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "e66b0876-ced9-4b9e-a9dc-d3ca8b04dd3b", |
| | | } ], |
| | | "id" : "05ba98f5-e29b-47ce-8099-b16e50e34f30", |
| | | "regionName": "sfdcHiddenRegion", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "feeditem" |
| | |
| | | { |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "componentName": "siteforce:sldsOneColLayout", |
| | | "dataProviders": [], |
| | | "id": "b076cb5b-405f-4199-b9be-7429234ce226", |
| | | "id" : "be244254-9e8f-46bd-83e0-a6cdb3780540", |
| | | "label": "Quip Docs Related List", |
| | | "regions": [ |
| | | { |
| | | "id": "e701d724-1504-44c7-92a3-ea1ec941cf73", |
| | | "regions" : [ { |
| | | "id" : "2a9b05d7-cafd-4e4d-8f30-067e7e2f45ed", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "parentRecordId": "{!recordId}" |
| | | }, |
| | | "componentName": "forceCommunity:relatedQuipItemsView", |
| | | "id": "a9d4f298-cfdd-48b7-ace5-0c47aadf2876", |
| | | "id" : "a2c16258-72fb-4eb3-8b04-b80f8b4beafb", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "b12e6374-255d-413c-93a1-d14857aaf21a", |
| | | } ], |
| | | "id" : "9bc5f2b8-7b65-47fc-a3d5-1d83ada44a72", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "id": "a6b90480-6c77-4df3-a631-065e1f4f2c1b", |
| | | }, { |
| | | "id" : "73a8a853-5872-4055-8a42-9723c11db0e9", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "extrelated-quip" |
| | |
| | | { |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "componentName": "siteforce:sldsOneColLayout", |
| | | "dataProviders": [], |
| | | "id": "c8075095-c3fd-4d07-8079-0eb063287ad7", |
| | | "id" : "d30889c1-09fc-407a-8d9d-155b305cce6f", |
| | | "label": "Record Detail", |
| | | "regions": [ |
| | | { |
| | | "id": "6da91020-2e9a-45bb-824c-c649aa91eb2b", |
| | | "regions" : [ { |
| | | "id" : "58b8dc89-c614-4b2a-be76-1cd2733c7a2d", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "recordId": "{!recordId}" |
| | | }, |
| | | "componentName": "forceCommunity:recordHeadline", |
| | | "id": "90d97e07-565d-4df0-b939-466bdcd3af4a", |
| | | "id" : "d6471194-6314-4cc2-ad8d-8844760b584f", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | }, |
| | | { |
| | | }, { |
| | | "componentAttributes": { |
| | | "detailsTabLabel": "Details", |
| | | "discussionsTabLabel": "Feed", |
| | |
| | | "showLegacyActivityComposer": false, |
| | | "tab1Type": "details", |
| | | "tab2Type": "related", |
| | | "tab3Type": "chatter", |
| | | "tab3Type" : "none", |
| | | "tab4Type": "none", |
| | | "timelineTabLabel": "Activity" |
| | | }, |
| | | "componentName": "forceCommunity:recordHomeTabs", |
| | | "id": "8857f111-6bd5-4e6e-aeaf-c5222f826b61", |
| | | "id" : "43f7a144-34dd-4fe7-a4d6-9b4ce60a2633", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "bf3bbcd3-bf99-43a1-a4d8-139ede220c94", |
| | | } ], |
| | | "id" : "79ac024a-2855-4c3d-ad2e-1529cb3588a7", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "id": "b0395436-3796-48d1-be24-0fdc721d91a3", |
| | | }, { |
| | | "id" : "73ccaf9e-c514-4a24-aaf6-c5c0d176c356", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customHeadTags": "", |
| | | "description": "", |
| | | "title": "{!Record._Object}: {!Record._Title}" |
| | | }, |
| | | "componentName": "forceCommunity:seoAssistant", |
| | | "id": "0a293aa4-d48c-4b46-8a04-30d0a0e02f54", |
| | | "id" : "23c28297-68e4-4693-b7c2-eddb3a672965", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "24d73a32-25b2-404e-8b51-64f354ada477", |
| | | } ], |
| | | "id" : "06f1cca0-baa5-4d1c-b943-72735f101956", |
| | | "regionName": "sfdcHiddenRegion", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "detail" |
| | |
| | | { |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "componentName": "siteforce:sldsOneColLayout", |
| | | "dataProviders": [], |
| | | "id": "568148b6-8356-45bb-a31e-e8c320ff9726", |
| | | "id" : "f14a9999-9077-4660-a62f-b9df05228f6c", |
| | | "label": "Record List", |
| | | "regions": [ |
| | | { |
| | | "id": "26cdcc22-9daa-47ef-99dc-be188646430f", |
| | | "regions" : [ { |
| | | "id" : "c142f9c9-d513-4938-8678-c78cb05ca097", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes" : { |
| | | "enableInlineEdit" : true, |
| | | "filterName" : "{!filterId}", |
| | | "layout" : "FULL", |
| | | "pageSize" : 25, |
| | | "scope" : "{!objectName}", |
| | | "showActionBar" : true, |
| | | "showChartsPanel" : true, |
| | | "showDisplay" : "showall", |
| | | "showFilterPanel" : true, |
| | | "showImageIcon" : true, |
| | | "showManualRefreshButton" : true, |
| | | "showObjectName" : true, |
| | | "showPinnedList" : true, |
| | | "showSearchBar" : true |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | "componentAttributes": {}, |
| | | "componentName": "c:RetrospectiveWeeklyReport", |
| | | "id": "9a2492e1-96b7-48dc-bfb4-c01067848016", |
| | | "componentName" : "forceCommunity:objectHome", |
| | | "id" : "9cf46f79-994f-4674-9cf3-8f1309488f9e", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "e56df536-cc19-4136-97d0-fe33a9209a61", |
| | | } ], |
| | | "id" : "2d62ef08-0512-4116-8b2c-877e41412967", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "id": "24a8ec26-2d89-4203-9025-61f05c4d8a2b", |
| | | }, { |
| | | "id" : "53ed7ccf-2c5e-428f-84aa-9c122f0a2031", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "list" |
| | |
| | | { |
| | | "appPageId": "bfbf7350-cdcd-4e2c-97a5-ab51f2aa3b9d", |
| | | "appPageId" : "7756c67f-7774-4fe1-b1c2-eecb19f9c6a5", |
| | | "componentName": "siteforce:sldsOneColLayout", |
| | | "dataProviders": [], |
| | | "id": "3af8afbb-87fe-417d-818c-7e8a8f00faf6", |
| | | "id" : "7cadb098-b80c-40d4-a33c-714c36f8a2f3", |
| | | "label": "Register", |
| | | "regions": [ |
| | | { |
| | | "components": [ |
| | | { |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes": {}, |
| | | "componentName": "salesforceIdentity:communityLogo2", |
| | | "id": "9c0037ff-0d41-4d35-b8c6-4dc80d41c19a", |
| | | "id" : "03d0e758-407a-4e8e-83ee-5a0ab3c4e2a0", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | }, |
| | | { |
| | | }, { |
| | | "componentAttributes": { |
| | | "richTextValue": "<div style=\"text-align: center;\" class=\"inverseTextColor\">Join the community to receive personalized information and customer support.</div>" |
| | | }, |
| | | "componentName": "forceCommunity:richTextInline", |
| | | "id": "76521ecb-efe5-42bf-870c-0689113e2470", |
| | | "id" : "59a3555f-3c74-470e-a473-bb10cbe44afb", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | }, |
| | | { |
| | | }, { |
| | | "componentAttributes": { |
| | | "confirmPasswordLabel": "Confirm Password", |
| | | "emailLabel": "Email", |
| | |
| | | "submitButtonLabel": "Sign Up" |
| | | }, |
| | | "componentName": "salesforceIdentity:selfRegister2", |
| | | "id": "a9570792-c915-4d1a-9118-10d822a486ca", |
| | | "id" : "b4dd7cc4-4fc4-4f38-bd0e-c89b1f32590b", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | }, |
| | | { |
| | | }, { |
| | | "componentAttributes": { |
| | | "headerText": "", |
| | | "showHeader": false, |
| | | "useCommunityDomainSso": true |
| | | }, |
| | | "componentName": "salesforceIdentity:socialLogin2", |
| | | "id": "ebe05af6-96dc-4fce-9e84-4d4f3431c32a", |
| | | "id" : "3af49aa2-c5df-472d-a9f8-d1320b632c9a", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | }, |
| | | { |
| | | }, { |
| | | "componentAttributes": { |
| | | "richTextValue": "<div style=\"text-align: center;\"><a class=\"inverseTextColor\" href=\"./\">Already have an account?</a></div>" |
| | | }, |
| | | "componentName": "forceCommunity:richTextInline", |
| | | "id": "b28a8b4b-abd0-4e0e-a7d3-906c8325d1b6", |
| | | "id" : "a1dd5955-819a-4921-80e5-29882955ca7e", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "8ba378ad-f887-47f5-854b-ad866edaecc6", |
| | | } ], |
| | | "id" : "4d46ac5c-75c6-4730-a2ac-bc191a179149", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customHeadTags": "", |
| | | "description": "", |
| | | "title": "Register" |
| | | }, |
| | | "componentName": "forceCommunity:seoAssistant", |
| | | "id": "14c2fe6e-169e-43ca-9cba-8b06e14820b5", |
| | | "id" : "fce946a1-2d69-4ed8-bf94-2a246fc10291", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "e6ab04a5-8f13-41ee-bc2c-f40309ba6b5e", |
| | | } ], |
| | | "id" : "7d12b5c7-f9c8-45e9-a4e8-71d4639011af", |
| | | "regionName": "sfdcHiddenRegion", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Login", |
| | | "type": "view", |
| | | "viewType": "self-register" |
| | |
| | | { |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "componentName": "siteforce:sldsOneColLayout", |
| | | "dataProviders": [], |
| | | "id": "172db5bf-c37b-4cee-853b-212bf73517d7", |
| | | "id" : "2a182209-2527-4335-b672-176196ee6a0d", |
| | | "label": "Related Record List", |
| | | "regions": [ |
| | | { |
| | | "id": "0b2e1664-3809-4c37-b7e4-20b63faf9e5e", |
| | | "regions" : [ { |
| | | "id" : "6caa2d71-5392-4b0c-b738-9ac48f16aa52", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customTitle": "", |
| | | "parentRecordId": "{!recordId}", |
| | |
| | | "showRowNumbers": true |
| | | }, |
| | | "componentName": "forceCommunity:relatedList", |
| | | "id": "2ba8fce5-1fdb-4d3d-804e-f6790c20e360", |
| | | "id" : "d476d8c7-4802-4819-951f-39a101f6be63", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "766cafb3-a3bf-47f0-aca8-e6358ffe63e7", |
| | | } ], |
| | | "id" : "715ead5b-8d41-4edc-bf80-4daebe3464c7", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "id": "e07e0baf-8c53-44c3-b957-5e12464c2137", |
| | | }, { |
| | | "id" : "d6ef29fb-2766-4065-a1c9-2e251d3a24da", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "relatedlist" |
| | |
| | | { |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "componentName": "siteforce:sldsOneColLayout", |
| | | "dataProviders": [], |
| | | "id": "8e5cdbce-69e6-41cf-9d28-bf22b82ab29f", |
| | | "id" : "059d5f4a-e616-4540-be96-a34b294fb2a4", |
| | | "label": "Report Builder", |
| | | "regions": [ |
| | | { |
| | | "id": "dba98a8a-984b-42ed-9b2c-c979fbc59d0b", |
| | | "regions" : [ { |
| | | "id" : "b0668fae-e6be-4e0f-85ad-0bd2ff51e3f4", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "recordId": "{!recordId}" |
| | | }, |
| | | "componentName": "forceCommunity:reportBuilder", |
| | | "id": "6beb6fa8-c9bf-4990-b075-edd5e3022e32", |
| | | "id" : "2d38f9cf-474d-490e-92d0-ab02343f9c7a", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "d727fea1-1d73-48c4-b2ac-be189e71a38b", |
| | | } ], |
| | | "id" : "69520259-ca39-49a9-bc51-28a53ce45025", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "id": "529179bd-e9d3-4070-b7b8-e657e5f5a36b", |
| | | }, { |
| | | "id" : "2bcf6747-9ca7-4726-8e9a-dd1334643433", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "createreport" |
| | |
| | | { |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "componentName": "siteforce:sldsOneColLayout", |
| | | "dataProviders": [], |
| | | "id": "ac90421b-0cd9-4c2e-a836-ee4567ce8d1f", |
| | | "id" : "66e48eb0-9203-4842-9fde-8b4e7e63b8ac", |
| | | "label": "Report Detail", |
| | | "regions": [ |
| | | { |
| | | "id": "b8a2ac35-b501-4034-a616-5f54591b17d0", |
| | | "regions" : [ { |
| | | "id" : "993df7e2-02c2-4043-80f2-75b1fc26b624", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "recordId": "{!recordId}" |
| | | }, |
| | | "componentName": "forceCommunity:reportPage", |
| | | "id": "abe06f62-acc2-41c3-809c-1f150f8841da", |
| | | "id" : "a1126338-71f3-4c8b-9fad-fdb3915a12a4", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "8cdd6f99-9662-4a58-b0ee-4065486d0ef4", |
| | | } ], |
| | | "id" : "993ff9cc-3b17-46b6-a40d-f1f97c4db48c", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "id": "a10f13ff-f8c2-433d-82e5-20397d085c0c", |
| | | }, { |
| | | "id" : "8429749f-ee7b-4be7-b953-ce1a28fe724e", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customHeadTags": "", |
| | | "description": "", |
| | | "title": "{!Record._Object}: {!Record._Title}" |
| | | }, |
| | | "componentName": "forceCommunity:seoAssistant", |
| | | "id": "bdc1ac10-229a-4c7b-97c7-eb30938a33db", |
| | | "id" : "a848b6bf-1473-4426-ad50-f3e85894c8c2", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "d1410883-3540-4f4c-9b28-06294a5a0248", |
| | | } ], |
| | | "id" : "c3a6a3e2-ce86-4417-ba50-39bb2e8d6939", |
| | | "regionName": "sfdcHiddenRegion", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "detail-00O" |
| | |
| | | { |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "componentName": "siteforce:sldsOneColLayout", |
| | | "dataProviders": [], |
| | | "id": "f71c1609-6433-4cf0-8846-695e50897517", |
| | | "id" : "cbac51d9-cfc4-4fa7-bf92-603361ff1747", |
| | | "label": "Report List", |
| | | "regions": [ |
| | | { |
| | | "id": "dca7f9b0-515d-46aa-8122-e600b7eb2b35", |
| | | "regions" : [ { |
| | | "id" : "21fd7f4b-ed35-4d5e-ba32-40b7cabd6c5a", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": {}, |
| | | "componentName": "forceCommunity:reportList", |
| | | "id": "6687e39c-5cf3-478c-9a1c-214f17e3c358", |
| | | "id" : "48d0998f-cc83-4f4d-8467-473e2648f1d5", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "612fbb2a-1b08-4491-aa90-af9c07e3077b", |
| | | } ], |
| | | "id" : "165cdeb7-c542-4a6a-8c42-214baade96e1", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "id": "1bb69df7-0e36-45ef-853e-3c9367670818", |
| | | }, { |
| | | "id" : "1fce8eb4-ac5b-4828-9fea-364d5916925b", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "list-00O" |
| | |
| | | { |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "componentName": "siteforce:sldsTwoCol84Layout", |
| | | "dataProviders": [], |
| | | "id": "2feda9aa-a785-4e98-9448-352e28d95b34", |
| | | "id" : "dc215254-3731-423c-ba11-3d87746598e8", |
| | | "label": "Resources", |
| | | "regions": [ |
| | | { |
| | | "id": "6372864b-d004-480d-a164-80d5c483d6d5", |
| | | "regions" : [ { |
| | | "id" : "72cef312-c96f-46e1-859d-1dfc1ac2c05a", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "librariesHeaderLabel": "Libraries", |
| | | "showWorkspaceImage": true |
| | | }, |
| | | "componentName": "forceCommunity:workspacesList", |
| | | "id": "2e0e0428-6e7c-4b95-9e9e-4e82022fa404", |
| | | "id" : "d02b982c-c404-4ee6-b7eb-81cc247d2e58", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "eb700be4-2afe-4df5-94b6-0f0cc019d588", |
| | | } ], |
| | | "id" : "a5fb005e-9493-44c8-be82-daa9ed4855db", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "title": "Popular Now" |
| | | }, |
| | | "componentName": "forceChatter:recommendationsBig", |
| | | "id": "285d61be-06fc-4a6f-aaee-3ecbb483b948", |
| | | "id" : "2a81731a-6fd2-4087-a360-23531384ce7b", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "180d635c-3d79-40c1-a9be-466504176d9e", |
| | | } ], |
| | | "id" : "5f304697-36f3-4e31-985d-b54afad66c28", |
| | | "regionName": "sidebar", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "id": "0d2455d9-0fcf-4a57-b9b9-85ef03129973", |
| | | }, { |
| | | "id" : "31ffad04-7009-47aa-b99a-01f08cb17d10", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customHeadTags": "", |
| | | "description": "", |
| | | "title": "Resources" |
| | | }, |
| | | "componentName": "forceCommunity:seoAssistant", |
| | | "id": "413ba905-225b-4c23-aa6a-e07b7f2d8b28", |
| | | "id" : "a49b7653-081c-4721-ab11-85ec5590cf32", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "a81d27b2-b367-40c4-a1f2-d24a2bb0f930", |
| | | } ], |
| | | "id" : "85fe3418-3e87-45e0-ab01-9530875c41c3", |
| | | "regionName": "sfdcHiddenRegion", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "files" |
| | |
| | | { |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "componentName": "siteforce:sldsOneColLayout", |
| | | "dataProviders": [], |
| | | "id": "99b69c91-c8d8-42fe-91af-6f71e4612910", |
| | | "id" : "74aeae6d-8d40-433e-8168-45175ee356a6", |
| | | "label": "Search", |
| | | "regions": [ |
| | | { |
| | | "id": "d3a00bfd-a6c5-494e-9dd0-9d01699c5557", |
| | | "regions" : [ { |
| | | "id" : "f0168968-61fd-41cb-b7af-1eff3f8b32f3", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "scopes": [ |
| | | { |
| | | "isPublic": false, |
| | | "name": "Lead" |
| | | }, |
| | | { |
| | | "isPublic": false, |
| | | "name": "Opportunity" |
| | | }, |
| | | { |
| | | "isPublic": false, |
| | | "name": "Campaign" |
| | | }, |
| | | { |
| | | "scopes" : [ { |
| | | "isPublic": false, |
| | | "name": "ContentDocument" |
| | | } |
| | | ], |
| | | }, { |
| | | "isPublic" : true, |
| | | "name" : "Consumable_order__c" |
| | | }, { |
| | | "isPublic" : true, |
| | | "name" : "Consumable_order_details2__c" |
| | | } ], |
| | | "searchResultFiltering": true, |
| | | "searchTerm": "{!term}", |
| | | "showTopResults": true |
| | | }, |
| | | "componentName": "forceCommunity:search", |
| | | "id": "300943f3-7e89-43b5-986d-013d1e677bad", |
| | | "id" : "5f9e6d47-2bcc-4097-a92c-1ed613352db1", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "0cca2c58-a0c4-4cba-857b-7a81fb548c6e", |
| | | } ], |
| | | "id" : "5724ab02-cf0e-4aa8-b6d9-27c93918f75f", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "id": "76ff2160-08e4-42e2-bf3a-85c8cc7f50c1", |
| | | }, { |
| | | "id" : "de00bfc5-bb66-40f6-8d83-e45d83c02f17", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "global-search" |
| | |
| | | { |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "componentName": "siteforce:sldsOneColLayout", |
| | | "dataProviders": [], |
| | | "id": "0c2c3b1a-34ee-493b-af35-596aa83568d6", |
| | | "id" : "e3ef5ec3-0aba-44b3-b608-6f939cf49c88", |
| | | "label": "Stream Detail", |
| | | "regions": [ |
| | | { |
| | | "id": "f1637238-82ab-4cef-a8b0-1278d67c9d5a", |
| | | "regions" : [ { |
| | | "id" : "48e57d3b-e3d0-4f72-be2f-a2fae7b65a0a", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "id": "{!recordId}" |
| | | }, |
| | | "componentName": "forceCommunity:streamDetail", |
| | | "id": "60702a91-77e0-4289-a4ca-a5161a96550a", |
| | | "id" : "8c078f23-692d-4f99-a755-99025f03a1b5", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "825c9a77-bb20-48f2-a7f3-02e2b65a7523", |
| | | } ], |
| | | "id" : "cd36c50d-c89e-4a33-a381-6e21077775b9", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "id": "fa8bc833-0127-4936-acb3-7ddb285df900", |
| | | }, { |
| | | "id" : "a16a1ef4-47ac-4970-9d30-9cc7d15dd873", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "detail-0Fq" |
| | |
| | | { |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "componentName": "siteforce:sldsOneColLayout", |
| | | "dataProviders": [], |
| | | "id": "6ef6f17a-0dda-4824-8310-e283e961890f", |
| | | "id" : "e1275716-f06a-4a27-a667-19c49eefb083", |
| | | "label": "Stream List", |
| | | "regions": [ |
| | | { |
| | | "components": [ |
| | | { |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes": {}, |
| | | "componentName": "forceCommunity:streamList", |
| | | "id": "b37e561b-bcc1-471e-a893-29ce0f7bac79", |
| | | "id" : "c55e158b-0343-40b2-bca0-888ab4e1ae18", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "f37c8024-a2e2-43ee-bb73-7ce689c4d6d9", |
| | | } ], |
| | | "id" : "e93a4c80-2373-4f62-a413-6b91c74928e1", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "list-0Fq" |
| | |
| | | { |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "componentName": "siteforce:sldsOneColLayout", |
| | | "dataProviders": [], |
| | | "id": "bc041b32-bf8f-47ac-8c7d-35d8b4167ee7", |
| | | "id" : "3912430c-3c10-4bf3-bf37-5a619a596491", |
| | | "label": "Topic Catalog", |
| | | "regions": [ |
| | | { |
| | | "components": [ |
| | | { |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "bannerText": "", |
| | | "bannerTextWithKnowledge": "Explore other <a href=\"javascript:void(0)\" class=\"headlineArticles\">articles</a> and <a href=\"javascript:void(0)\" class=\"headlineDiscussions\">discussions</a> on this topic.", |
| | |
| | | "uniqueNameOrId": "" |
| | | }, |
| | | "componentName": "forceCommunity:headline", |
| | | "id": "2dea3547-05b7-4553-b77d-4792aac6c392", |
| | | "id" : "bb3cf42e-7839-4d1b-9397-61f43400e885", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "4aa7eaf6-e706-4e57-9ce3-9c8f3cf26246", |
| | | } ], |
| | | "id" : "e0161633-e87a-4873-a308-f87278393077", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": {}, |
| | | "componentName": "forceCommunity:topicCatalog", |
| | | "id": "ca681efe-4067-4a6c-b442-e95f316babae", |
| | | "id" : "c4149a20-518c-4518-8f16-363ca10cb9fd", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "6b2ab383-10e2-4ce7-aed3-1d8ab837fa13", |
| | | } ], |
| | | "id" : "0250f471-2b7a-48e8-894e-775d5d3edb11", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "id": "266bf649-4b83-43f8-a08c-d227b505ca84", |
| | | }, { |
| | | "id" : "36965db0-cc03-4916-b508-0b3747f12f39", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customHeadTags": "", |
| | | "description": "", |
| | | "title": "Topic Catalog" |
| | | }, |
| | | "componentName": "forceCommunity:seoAssistant", |
| | | "id": "a8fbeba0-f3a7-46c8-93d9-7aaa0035f1ab", |
| | | "id" : "e81daa52-bbe0-4f2d-bd9e-a43f4156623b", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "dd88451a-81bf-48c6-bea8-1f411e587fb7", |
| | | } ], |
| | | "id" : "44a8bb9f-9013-450a-ab7d-d6da72269e33", |
| | | "regionName": "sfdcHiddenRegion", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "topic-catalog" |
| | |
| | | { |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "componentName": "siteforce:sldsTwoCol84Layout", |
| | | "dataProviders": [], |
| | | "id": "8f8238dc-8f81-4994-9933-b4dcb285776e", |
| | | "id" : "060ff5da-04b3-49de-8fb8-03decd8c188c", |
| | | "label": "Topic Detail", |
| | | "regions": [ |
| | | { |
| | | "components": [ |
| | | { |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "recordId": "{!recordId}" |
| | | }, |
| | | "componentName": "forceCommunity:recordHeadline", |
| | | "id": "13faad2b-64b9-4f9d-8d5a-94eba2bcaa34", |
| | | "id" : "09e98f13-f206-43ee-bf41-828332156a3f", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "6e67d805-16ce-4e1c-8b47-21f7add68528", |
| | | } ], |
| | | "id" : "e0e7dbc4-3b5b-442a-b4ee-700038c2f223", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "canChangeSorting": false, |
| | | "defaultFilter": "", |
| | |
| | | "type": "Topics" |
| | | }, |
| | | "componentName": "forceCommunity:forceCommunityFeed", |
| | | "id": "a38781d5-55f1-4c8d-9052-33b5b6bb86c4", |
| | | "id" : "6016edf0-5479-47bd-83af-b01e58fe5b1c", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "7060705f-116c-43a2-b035-fc6e4711f9cc", |
| | | } ], |
| | | "id" : "0ed07a83-ddeb-4f62-ae37-d5b0acfc6584", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "recordId": "{!recordId}" |
| | | }, |
| | | "componentName": "forceCommunity:recordDetail", |
| | | "id": "dd3773a2-2efd-4ba6-9fc7-cf8fa7b7abc1", |
| | | "id" : "33d2426c-2eb9-4abf-8059-25a02fdc20a1", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "450ad7df-3edc-4c67-90e2-ab7edac4a4d2", |
| | | } ], |
| | | "id" : "ca54845f-e7c2-4d40-9243-8e253709523b", |
| | | "regionName": "sidebar", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "id": "9ed58d0e-69ea-4d40-8ffa-446f944e7137", |
| | | }, { |
| | | "id" : "f2cc39b9-f4a1-44dd-98eb-928de7f45b4f", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customHeadTags": "", |
| | | "description": "{!Record.Description}", |
| | | "title": "{!Record._Title}" |
| | | }, |
| | | "componentName": "forceCommunity:seoAssistant", |
| | | "id": "5d9718ca-83b1-45dc-aca9-2e4f947ef338", |
| | | "id" : "e3d92037-2073-4756-a86f-90c4c43998ec", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "1a11e61a-6963-4a58-8497-681783af4954", |
| | | } ], |
| | | "id" : "c559cbc3-8107-4482-b65e-0fc253417b1c", |
| | | "regionName": "sfdcHiddenRegion", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "topic" |
| | |
| | | { |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "componentName": "siteforce:sldsOneColLayout", |
| | | "dataProviders": [], |
| | | "id": "2245cd19-8057-487b-8284-d7f20c56e1f7", |
| | | "id" : "b3764d11-d26d-4554-8747-e7f30fb722bd", |
| | | "label": "User Profile", |
| | | "regions": [ |
| | | { |
| | | "id": "14612469-280a-47d6-a13e-c7c856cebb73", |
| | | "regions" : [ { |
| | | "id" : "089ae725-a61b-476e-aab7-3ea5bf1ef011", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "id": "{!recordId}", |
| | | "showFullPhotoAsCircle": true, |
| | | "showReputation": false |
| | | }, |
| | | "componentName": "forceCommunity:userProfileHeader", |
| | | "id": "9f2b692c-0288-4aaa-af5d-112c2d8d0165", |
| | | "id" : "7ef45f8f-cc14-404a-8867-e6d3557f32d3", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | }, |
| | | { |
| | | }, { |
| | | "componentAttributes": { |
| | | "tabsetConfig": { |
| | | "UUID": "3a8d28a4-31ff-4150-a1ad-636515efc06d", |
| | | "UUID" : "b4db8bb9-4fa9-4f41-8919-a300735d0ef6", |
| | | "activeTab": "tab1", |
| | | "tabs": [ |
| | | { |
| | | "UUID": "40b895c3-98e0-43f8-a2d2-a6f0dc9cbe94", |
| | | "tabs" : [ { |
| | | "UUID" : "ffc31b37-4e88-44ab-a58e-8c8952bddf50", |
| | | "allowGuestUser": false, |
| | | "locked": false, |
| | | "seedComponents": [ |
| | | { |
| | | "seedComponents" : [ { |
| | | "attributes": {}, |
| | | "fqn": "forceCommunity:userProfileDetail" |
| | | } |
| | | ], |
| | | } ], |
| | | "tabKey": "tab1", |
| | | "tabName": "Details" |
| | | }, |
| | | { |
| | | "UUID": "17b13b59-193d-4b7a-8ab4-e435ba96b750", |
| | | }, { |
| | | "UUID" : "02c71e1a-5c7b-4265-8ff5-486737b59caf", |
| | | "allowGuestUser": false, |
| | | "locked": false, |
| | | "seedComponents": [ |
| | | { |
| | | "seedComponents" : [ { |
| | | "attributes": {}, |
| | | "fqn": "forceCommunity:userRelatedList" |
| | | } |
| | | ], |
| | | } ], |
| | | "tabKey": "tab2", |
| | | "tabName": "Related" |
| | | } |
| | | ], |
| | | } ], |
| | | "useOverflowMenu": false |
| | | } |
| | | }, |
| | | "componentName": "forceCommunity:tabset", |
| | | "id": "3a8d28a4-31ff-4150-a1ad-636515efc06d", |
| | | "regions": [ |
| | | { |
| | | "components": [ |
| | | { |
| | | "id" : "b4db8bb9-4fa9-4f41-8919-a300735d0ef6", |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "id": "{!recordId}" |
| | | }, |
| | | "componentName": "forceCommunity:userProfileDetail", |
| | | "id": "263079c1-25b9-4a89-ad82-ff789f1cec6b", |
| | | "id" : "3910b7ed-af10-4a8e-9858-6780fc312390", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "40b895c3-98e0-43f8-a2d2-a6f0dc9cbe94", |
| | | } ], |
| | | "id" : "ffc31b37-4e88-44ab-a58e-8c8952bddf50", |
| | | "regionLabel": "Details", |
| | | "regionName": "tab1", |
| | | "renditionMap": {}, |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "userId": "{!recordId}" |
| | | }, |
| | | "componentName": "forceCommunity:userRelatedList", |
| | | "id": "f2d05739-3021-4c7b-8a2c-ef986d23c0e7", |
| | | "id" : "ffeb3b47-04b8-455c-be55-69b69096f017", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "17b13b59-193d-4b7a-8ab4-e435ba96b750", |
| | | } ], |
| | | "id" : "02c71e1a-5c7b-4265-8ff5-486737b59caf", |
| | | "regionLabel": "Related", |
| | | "regionName": "tab2", |
| | | "renditionMap": {}, |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "4eee041e-a134-466c-ad5a-39b2189c9de6", |
| | | } ], |
| | | "id" : "4ad735e0-ad67-4c2b-9b52-717f1be31466", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "id": "1943f596-5d30-46eb-aec0-c155ebebf201", |
| | | }, { |
| | | "id" : "d9fb20dc-9a48-4767-b7ab-fc7c8a5cb56a", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "detail-005" |
| | |
| | | { |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "componentName": "siteforce:sldsOneColLayout", |
| | | "dataProviders": [], |
| | | "id": "55bd4245-fde3-4919-8a43-b7e2ffc3aed7", |
| | | "id" : "8225f2be-2536-4868-afe9-ed11e1c1eb15", |
| | | "label": "User Settings", |
| | | "regions": [ |
| | | { |
| | | "id": "661a308a-163f-4685-aec7-5d617a450359", |
| | | "regions" : [ { |
| | | "id" : "0e29e12f-82e2-4770-9056-00412cb4914b", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "accountSectionTitle": "Account", |
| | | "accountTabName": "Account Management", |
| | |
| | | "settingsPageTitle": "My Settings" |
| | | }, |
| | | "componentName": "forceCommunity:userSettingsCustomizable", |
| | | "id": "1a67d89b-1f40-4cd5-ac5b-c655aa5043ee", |
| | | "id" : "be9a963a-9ad1-4190-845c-c1f479b4c9f2", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "c3d59adc-a0ce-40a8-85de-f06d2a758226", |
| | | } ], |
| | | "id" : "7eb02000-7cb9-48f9-8463-eae4dfa60e4c", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "id": "455997bb-5cc3-45cf-9da7-0a28c22be1f5", |
| | | }, { |
| | | "id" : "f99dd3f8-ab5f-49e4-b57e-b51dc2ab9ccd", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "usersettings" |
| | |
| | | "dataProviders": [], |
| | | "id": "97ed2657-7949-4aed-9e5d-cae9c935f730", |
| | | "label": "ä»ªè¡¨æ¿ é¢é£ãªã¹ã", |
| | | "regions": [ |
| | | { |
| | | "regions" : [ { |
| | | "id": "c5f2427e-9a5d-4db5-9929-e3d6e633475f", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customTitle": "", |
| | | "parentRecordId": "{!recordId}", |
| | |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | } ], |
| | | "id": "4b9072b6-40de-478a-a460-c3aa1d3e286d", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | }, { |
| | | "id": "d682a0cb-7ab6-47e0-8f11-c18f2d49ea91", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "relatedlist-01Z" |
| | |
| | | "dataProviders": [], |
| | | "id": "0ad6b8ab-53a5-4a50-a8e4-2cb763631aab", |
| | | "label": "å¦ä¼ã»å¹è® 詳細", |
| | | "regions": [ |
| | | { |
| | | "regions" : [ { |
| | | "id": "a8e33a85-eba0-4b3c-972d-7829e6b042b4", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "recordId": "{!recordId}" |
| | | }, |
| | |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | }, |
| | | { |
| | | }, { |
| | | "componentAttributes": { |
| | | "detailsTabLabel": "Details", |
| | | "discussionsTabLabel": "Feed", |
| | |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | } ], |
| | | "id": "898fe2f9-0d89-483a-b133-91df0a115989", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | }, { |
| | | "id": "3c9b71ac-95f1-4237-b65e-45a8dbcbf70e", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customHeadTags": "", |
| | | "description": "", |
| | |
| | | "id": "f68810fc-4086-4193-a0d7-a8e8d181c7e2", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | } ], |
| | | "id": "b9a30282-520a-436a-9688-5153df33ee48", |
| | | "regionName": "sfdcHiddenRegion", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "detail-701" |
| | |
| | | "dataProviders": [], |
| | | "id": "4cf18bf4-7c54-4746-b895-ec877e8fcd43", |
| | | "label": "å¦ä¼ã»å¹è® é¢é£ãªã¹ã", |
| | | "regions": [ |
| | | { |
| | | "regions" : [ { |
| | | "id": "bbdd3f25-7b32-4aaa-bb84-0fd898f088da", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customTitle": "", |
| | | "parentRecordId": "{!recordId}", |
| | |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | } ], |
| | | "id": "ca0496e5-65f5-481b-80db-1aa60c6eb160", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | }, { |
| | | "id": "024970ab-9ccf-4185-8637-88e1279fa959", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "relatedlist-701" |
| | |
| | | "dataProviders": [], |
| | | "id": "6c787120-bb1e-4d47-b4b2-7fa80ac6d3fb", |
| | | "label": "å°ç» é¢é£ãªã¹ã", |
| | | "regions": [ |
| | | { |
| | | "regions" : [ { |
| | | "id": "adf7a874-f08a-4835-9975-94719db0529e", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customTitle": "", |
| | | "parentRecordId": "{!recordId}", |
| | |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | } ], |
| | | "id": "df80875a-1086-4356-98d6-a7300c39507e", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | }, { |
| | | "id": "1a614d08-a4e0-4aba-9233-cfab0ef016f3", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "relatedlist-0F9" |
| | |
| | | "dataProviders": [], |
| | | "id": "4dff72f1-db87-40bc-a8d6-36073e365a18", |
| | | "label": "æ¥è¡¨ é¢é£ãªã¹ã", |
| | | "regions": [ |
| | | { |
| | | "regions" : [ { |
| | | "id": "255f30d3-0419-4484-a86a-69463e5ecf61", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customTitle": "", |
| | | "parentRecordId": "{!recordId}", |
| | |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | } ], |
| | | "id": "9e86bc1f-69aa-47e8-95ef-91fb76147818", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | }, { |
| | | "id": "7d5f8a26-65a3-408e-a2f1-ac0e6e5aab59", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "relatedlist-00O" |
| | |
| | | "dataProviders": [], |
| | | "id": "3d5f9dc6-9374-4d60-8e41-d9ae76e732e3", |
| | | "label": "æä»¶ é¢é£ãªã¹ã", |
| | | "regions": [ |
| | | { |
| | | "regions" : [ { |
| | | "id": "746cff4c-6e69-4feb-a676-a5a1d40dda0b", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customTitle": "", |
| | | "parentRecordId": "{!recordId}", |
| | |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | } ], |
| | | "id": "5f5b300a-ff22-4632-8889-d9ed5bc3399d", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | }, { |
| | | "id": "2ce507fd-d529-4d11-a2cc-e0c9cd56c0f1", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "relatedlist-069" |
| | |
| | | "dataProviders": [], |
| | | "id": "cd0d3153-1cca-4111-ae2a-08454a8fe698", |
| | | "label": "æµ é¢é£ãªã¹ã", |
| | | "regions": [ |
| | | { |
| | | "regions" : [ { |
| | | "id": "97c8b536-fe44-45cf-ab4d-c97c3b43ef67", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | }, { |
| | | "id": "13171fdc-cefa-466f-8796-f827886547e4", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | }, { |
| | | "id": "f0cd4e02-22fe-4c43-ad6d-fb48a0ee400a", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "relatedlist-0Fq" |
| | |
| | | { |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "componentName": "siteforce:sldsOneColLayout", |
| | | "dataProviders": [], |
| | | "id": "c331401c-5c71-4d88-9350-c5e8a79202c5", |
| | | "id" : "293921b6-1a37-49a3-a225-be2f3471a41c", |
| | | "label": "æ¶èå订å å表", |
| | | "regions": [ |
| | | { |
| | | "id": "9c56ed8b-747d-4b08-8651-5fc2f53ea168", |
| | | "regions" : [ { |
| | | "id" : "c1c91ef1-d313-4e66-b600-3b5ece7f6488", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "enableInlineEdit": false, |
| | | "filterName": "Overdue", |
| | | "filterName" : "D00_approved_view", |
| | | "layout": "FULL", |
| | | "pageSize": 25, |
| | | "scope": "Consumable_order__c", |
| | | "showActionBar": true, |
| | | "showChartsPanel": true, |
| | | "showDisplay": "showall", |
| | | "showFilterPanel": true, |
| | | "showActionBar" : false, |
| | | "showChartsPanel" : false, |
| | | "showDisplay" : "grid", |
| | | "showFilterPanel" : false, |
| | | "showImageIcon": true, |
| | | "showManualRefreshButton": true, |
| | | "showObjectName": true, |
| | | "showPinnedList": true, |
| | | "showPinnedList" : false, |
| | | "showSearchBar": true |
| | | }, |
| | | "componentName": "forceCommunity:objectHome", |
| | | "id": "e91f7d10-dc6c-4a2e-af8c-706f73f7a8cc", |
| | | "id" : "5a679d55-a414-4a30-9e45-410f58926560", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "f603c8cc-3519-4e8c-a262-eef3a9fe442a", |
| | | } ], |
| | | "id" : "5b054b02-44fa-4d1a-a233-bc406c227ab1", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "id": "4efaa155-2075-4409-82e7-71e9abc62284", |
| | | }, { |
| | | "id" : "93caa3c5-152b-4c37-a27c-6711bafd7493", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "list-a2K" |
| | |
| | | { |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "componentName": "siteforce:sldsOneColLayout", |
| | | "dataProviders": [], |
| | | "id": "3dd9b830-a644-429b-8b1c-e2770454179a", |
| | | "id" : "54811d17-d3d4-47f5-b3a5-a9efd7a62afa", |
| | | "label": "æ¶èå订å ç¸å
³å表", |
| | | "regions": [ |
| | | { |
| | | "id": "55e18a02-9472-4658-914e-755e9a83c302", |
| | | "regions" : [ { |
| | | "id" : "19e75fde-55d3-4d05-ad35-859e9253f3e3", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customTitle": "", |
| | | "parentRecordId": "{!recordId}", |
| | |
| | | "showRowNumbers": true |
| | | }, |
| | | "componentName": "forceCommunity:relatedList", |
| | | "id": "a4e0f988-e956-4c9d-b02c-83866661cf0e", |
| | | "id" : "a56b04ba-b611-4311-b693-60df1d15bc41", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "d576983a-e7b9-4910-bf69-4ad5909303da", |
| | | } ], |
| | | "id" : "b73a78fe-8a2a-495c-a415-0e6b1f3d5bba", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "id": "430d0911-909b-499d-9e55-ef40f5e938d0", |
| | | }, { |
| | | "id" : "508cdb2d-9f19-489c-88ea-d56da66f3360", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "relatedlist-a2K" |
| | |
| | | { |
| | | "appPageId": "fb9cc21a-bfdf-4b55-b21d-d99514ec9374", |
| | | "appPageId" : "27f1ea49-dcbd-4afc-b1b9-faf0852c745e", |
| | | "componentName": "siteforce:sldsOneColLayout", |
| | | "dataProviders": [], |
| | | "id": "bea87922-55fe-41d0-9a2f-6647aa020e56", |
| | | "id" : "2757e7e7-c2ba-4c5b-9480-4877420e6c40", |
| | | "label": "æ¶èå订å 详ç»ä¿¡æ¯", |
| | | "regions": [ |
| | | { |
| | | "id": "f3e32491-d89a-467a-97cb-099c98bc5ba1", |
| | | "regions" : [ { |
| | | "id" : "002e3e28-a40b-4f71-924f-b04dbb3aad57", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "recordId": "{!recordId}" |
| | | }, |
| | | "componentName": "forceCommunity:recordHeadline", |
| | | "id": "c7db25b2-0eb2-4e2e-b369-9af45d0c76e0", |
| | | "id" : "e347f5d6-b40e-48b3-ad46-ed15d001bfc2", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | }, |
| | | { |
| | | }, { |
| | | "componentAttributes": { |
| | | "detailsTabLabel": "Details", |
| | | "discussionsTabLabel": "Feed", |
| | |
| | | "showLegacyActivityComposer": false, |
| | | "tab1Type": "details", |
| | | "tab2Type": "related", |
| | | "tab3Type": "none", |
| | | "tab3Type" : "chatter", |
| | | "tab4Type": "none", |
| | | "timelineTabLabel": "Activity" |
| | | }, |
| | | "componentName": "forceCommunity:recordHomeTabs", |
| | | "id": "44e2d9e9-5aa0-437e-b32b-4eea960c1ac9", |
| | | "id" : "777d94b0-f4e1-4de6-93ff-6b5126fc0ba4", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "d0496ef7-ef71-40b4-8673-c38781880436", |
| | | } ], |
| | | "id" : "4e4ee28e-35eb-4682-95d4-3279649fa4fe", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "id": "09482c1a-f6b6-422f-9433-6a2fcfd13ddf", |
| | | }, { |
| | | "id" : "19a87d46-ec32-40b1-b8b5-c4fd0a79b588", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customHeadTags": "", |
| | | "description": "", |
| | | "title": "{!Record._Object}: {!Record._Title}" |
| | | }, |
| | | "componentName": "forceCommunity:seoAssistant", |
| | | "id": "fbb0fc4c-2c29-4451-a499-0ac072e7e7e6", |
| | | "id" : "7cf01a81-80f5-40bf-a99a-131727098aea", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | "id": "fbe33d47-5a71-489d-8a79-5d95f1a00c3d", |
| | | } ], |
| | | "id" : "5ce72d1c-5178-4e9a-8405-5fb99e32ed6b", |
| | | "regionName": "sfdcHiddenRegion", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "detail-a2K" |
| | |
| | | "dataProviders": [], |
| | | "id": "09574ae1-7a1d-465b-852b-6604abee87c2", |
| | | "label": "ç¨æ· ãªã¹ã", |
| | | "regions": [ |
| | | { |
| | | "regions" : [ { |
| | | "id": "4b35d932-84a2-442d-9b0c-e5cb790b6580", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | }, { |
| | | "id": "b109e1ab-8757-414e-ba5d-cddeafb4eff1", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | }, { |
| | | "id": "6c741f21-5b6e-443a-a0af-4b7fb5151480", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "list-005" |
| | |
| | | "dataProviders": [], |
| | | "id": "a7a75c83-a63d-4031-8a1a-524e45f77737", |
| | | "label": "ç¨æ· é¢é£ãªã¹ã", |
| | | "regions": [ |
| | | { |
| | | "regions" : [ { |
| | | "id": "5504b9cc-87ba-4a13-a6de-882db87b1ef9", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customTitle": "", |
| | | "parentRecordId": "{!recordId}", |
| | |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | } ], |
| | | "id": "90a88344-631c-4a99-bfb9-5b5918c98cdc", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | }, { |
| | | "id": "c8110fe8-136a-4078-a991-8810167e994a", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "relatedlist-005" |
| New file |
| | |
| | | { |
| | | "activeViewId" : "793767ac-c71a-49a2-ba5a-591a85646551", |
| | | "appPageId" : "7f290f39-4245-4612-9453-2b0c9f9e3701", |
| | | "id" : "62cd6cac-031d-4d5d-a256-7117468729df", |
| | | "label" : "è¿å£åè¯æç»", |
| | | "pageAccess" : "UseParent", |
| | | "routeType" : "custom-attachment-display", |
| | | "type" : "route", |
| | | "urlPrefix" : "AttachmentDisplay" |
| | | } |
| | |
| | | "ServiceNotAvailable": "1664c7f7-6090-4a0d-bfc2-3191064ecd96" |
| | | }, |
| | | "type": "theme", |
| | | "views": [ |
| | | { |
| | | "views" : [ { |
| | | "componentAttributes": {}, |
| | | "componentName": "salesforceIdentity:loginBody2", |
| | | "id": "a33c4bb6-054d-4319-a5bb-f27d28d0db18", |
| | | "label": "Login", |
| | | "regions": [ |
| | | { |
| | | "regions" : [ { |
| | | "id": "c7939c0b-7063-4e10-8c4f-45f5e9a33b91", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | }, { |
| | | "id": "fd5ba3cd-84a7-4c49-bce0-730c85b9ce14", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | }, { |
| | | "id": "fdc32d28-41af-4381-a451-e0574e1e2263", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "type": "view" |
| | | }, |
| | | { |
| | | }, { |
| | | "componentAttributes": { |
| | | "fixedPageWidth": 1440, |
| | | "isPageWidthFixed": true |
| | |
| | | "componentName": "siteforce:starterBody", |
| | | "id": "bf29ed2d-40ed-45cd-b4d1-c6ff6e1b20c6", |
| | | "label": "Default", |
| | | "regions": [ |
| | | { |
| | | "components": [ |
| | | { |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "maxAutoCompleteResults": 5, |
| | | "searchLabel": "Search...", |
| | | "searchObjects": [ |
| | | { |
| | | "searchObjects" : [ { |
| | | "isPublic": true, |
| | | "name": "Account" |
| | | } |
| | | ] |
| | | } ] |
| | | }, |
| | | "componentName": "forceCommunity:globalSearchInput", |
| | | "id": "6b6bd259-0936-4573-8301-b6c3c47991f5", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | } ], |
| | | "id": "e1e03672-2dfc-493e-8a59-2cedaf4bdaed", |
| | | "regionName": "search", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "accountManagementLabel": "Account Management", |
| | | "communityBuilderLabel": "Experience Builder", |
| | |
| | | "id": "886ade64-9894-4fb5-9f0a-91f718f37a7c", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | } ], |
| | | "id": "b93ff3ad-6fb8-46b2-90fd-d85ca8c9b475", |
| | | "regionName": "profileMenu", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "NavigationMenuEditorRefresh": "", |
| | | "hideAppLauncher": true, |
| | |
| | | "id": "74de3519-3e37-45f7-a9b0-686b6d576293", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | } ], |
| | | "id": "32f4c679-a1ec-4d0f-8227-f766aff2348b", |
| | | "regionName": "navBar", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "type": "view" |
| | | }, |
| | | { |
| | | }, { |
| | | "componentAttributes": { |
| | | "fixedPageWidth": 1170, |
| | | "headerBgColor": "rgba(0, 0, 0, 0)", |
| | |
| | | "componentName": "siteforce:themeLayoutStarter", |
| | | "id": "1664c7f7-6090-4a0d-bfc2-3191064ecd96", |
| | | "label": "ServiceNotAvailable", |
| | | "regions": [ |
| | | { |
| | | "regions" : [ { |
| | | "id": "2bf842b8-e94c-4694-bf82-3f82bfb626fc", |
| | | "regionName": "themeHeader", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | }, { |
| | | "id": "e598c1cc-513c-4cff-9029-ace967593639", |
| | | "regionName": "themeFooter", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "type": "view" |
| | | } |
| | | ] |
| | | } ] |
| | | } |
| | |
| | | "dataProviders": [], |
| | | "id": "a0810e9f-b4d6-4a64-80aa-02d99f2c8234", |
| | | "label": "Check Password", |
| | | "regions": [ |
| | | { |
| | | "components": [ |
| | | { |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "richTextValue": "<div style=\"text-align: center;\"><span style=\"font-size:22px\">NOW, CHECK YOUR EMAIL</span></div>" |
| | | }, |
| | |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | }, |
| | | { |
| | | }, { |
| | | "componentAttributes": { |
| | | "richTextValue": "<div style=\"text-align: center;\">Check the email account associated with your user name for instructions on resetting your password. Remember to look in your spam folder, where automated messages sometimes filter. If you still can't log in, contact your administrator.</div>" |
| | | }, |
| | |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | }, |
| | | { |
| | | }, { |
| | | "componentAttributes": { |
| | | "richTextValue": "<div style=\"text-align: center;\"><a href=\"./\">Back to login</a></div>" |
| | | }, |
| | |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | } ], |
| | | "id": "aff6a477-e89c-4adf-865f-a6ed3bf3b795", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customHeadTags": "", |
| | | "description": "", |
| | |
| | | "id": "51b9427e-2b7e-49f7-a4b1-ccf0eafa56a3", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | } ], |
| | | "id": "c4dd2d29-9f0d-412d-9a48-08d0464ba417", |
| | | "regionName": "sfdcHiddenRegion", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Login", |
| | | "type": "view", |
| | | "viewType": "check-password" |
| | |
| | | "dataProviders": [], |
| | | "id": "9cb0795b-6c6d-4948-9dcd-68a568028499", |
| | | "label": "Create Record", |
| | | "regions": [ |
| | | { |
| | | "regions" : [ { |
| | | "id": "d451ff76-e162-4234-bfff-bc56db891edd", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "actionApiName": "{!actionApiName}" |
| | | }, |
| | |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | } ], |
| | | "id": "4f97e4bd-c420-46f2-80c4-4aefec37a12b", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | }, { |
| | | "id": "5a882757-dc4e-4c73-9191-6d0edb0dcb95", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "createrecord" |
| | |
| | | "dataProviders": [], |
| | | "id": "c792b011-93b7-4274-aa53-359303ca2567", |
| | | "label": "Error", |
| | | "regions": [ |
| | | { |
| | | "regions" : [ { |
| | | "id": "1789e5dc-0771-4bbe-bacd-189f7ff243ab", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "richTextValue": "<div style='text-align: center;'>Invalid Page</div>" |
| | | "richTextValue" : "<p style=\"text-align: center;\">Invalid Page</p>" |
| | | }, |
| | | "componentName": "forceCommunity:richTextInline", |
| | | "id": "cdc3e240-9222-48c5-a1d6-aa93804b982d", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | } ], |
| | | "id": "3410ec75-14f6-435d-b4e3-e8fb3844d9c1", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | }, { |
| | | "id": "c0398406-6a67-4006-abdf-c90203f0aa48", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customHeadTags": "", |
| | | "description": "", |
| | |
| | | "id": "4683476f-e4bf-4709-a9b4-5a4fca5d1c9a", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | } ], |
| | | "id": "f7aafc3f-c920-4c75-9d02-5d4140ca0048", |
| | | "regionName": "sfdcHiddenRegion", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "error" |
| | |
| | | "dataProviders": [], |
| | | "id": "cb26bb2a-86d2-4d95-813b-a1b4e00337e5", |
| | | "label": "Forgot Password", |
| | | "regions": [ |
| | | { |
| | | "components": [ |
| | | { |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "richTextValue": "<div style=\"text-align: center;\"><span style=\"font-size:22px\">PASSWORD RESET</span></div>" |
| | | }, |
| | |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | }, |
| | | { |
| | | }, { |
| | | "componentAttributes": { |
| | | "richTextValue": "<div style=\"text-align: center;\">To reset your password, we'll need your username.<br/> We'll send password reset instructions to the email address associated with your account.</div>" |
| | | }, |
| | |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | }, |
| | | { |
| | | }, { |
| | | "componentAttributes": { |
| | | "checkEmailUrl": "./CheckPasswordResetEmail", |
| | | "submitButtonLabel": "Reset Password", |
| | |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | }, |
| | | { |
| | | }, { |
| | | "componentAttributes": { |
| | | "richTextValue": "<div style=\"text-align: center;\"><a href=\"./\">Cancel</a></div>" |
| | | }, |
| | |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | } ], |
| | | "id": "231c935f-3d29-4c7c-8e69-5cb4c7c2ba99", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customHeadTags": "", |
| | | "description": "", |
| | |
| | | "id": "2ec7e376-133b-41d9-a0be-2b65d7fa4274", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | } ], |
| | | "id": "8a72b39f-ec8c-4f9a-9f34-10cd245d9e18", |
| | | "regionName": "sfdcHiddenRegion", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Login", |
| | | "type": "view", |
| | | "viewType": "forgot-password" |
| | |
| | | "dataProviders": [], |
| | | "id": "e2e60370-e191-4f54-8b77-7da2fdc0c01f", |
| | | "label": "Home", |
| | | "regions": [ |
| | | { |
| | | "regions" : [ { |
| | | "id": "497754d6-c23e-4ff5-baab-fe8d842e18fd", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | }, { |
| | | "id": "22e5790e-e557-47ce-be11-77ca9b9517bd", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | }, { |
| | | "id": "e0652978-bbe3-47ab-83f1-f659fcf2427a", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customHeadTags": "", |
| | | "description": "", |
| | |
| | | "id": "b37194eb-0306-407c-9bba-88c9e30b2b42", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | } ], |
| | | "id": "bd9053b8-fc17-48bf-8ab2-f56e8071fb82", |
| | | "regionName": "sfdcHiddenRegion", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "home" |
| | |
| | | "dataProviders": [], |
| | | "id": "6d2b638e-a48b-49d3-a675-e36e30791e1c", |
| | | "label": "Login", |
| | | "regions": [ |
| | | { |
| | | "components": [ |
| | | { |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes": {}, |
| | | "componentName": "salesforceIdentity:communityLogo2", |
| | | "id": "6ee68cfc-86b4-4a2b-b8d3-0eae20c8c71e", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | }, |
| | | { |
| | | }, { |
| | | "componentAttributes": { |
| | | "forgotPasswordLabel": "Forgot your password?", |
| | | "forgotPasswordUrl": "/ForgotPassword", |
| | |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | }, |
| | | { |
| | | }, { |
| | | "componentAttributes": { |
| | | "headerText": "", |
| | | "showHeader": false, |
| | |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | }, |
| | | { |
| | | }, { |
| | | "componentAttributes": { |
| | | "employeeLoginLinkLabel": "Are you an employee? Login here" |
| | | }, |
| | |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | } ], |
| | | "id": "e58b0f5b-923e-4126-aa5c-610c548487ce", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customHeadTags": "", |
| | | "description": "", |
| | |
| | | "id": "23ceab67-1956-4a59-918a-a65cd1da2c0d", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | } ], |
| | | "id": "5fc9f8cd-81d0-4209-9177-e7267fad5d99", |
| | | "regionName": "sfdcHiddenRegion", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Login", |
| | | "type": "view", |
| | | "viewType": "login-home" |
| | |
| | | "dataProviders": [], |
| | | "id": "acfc3c4f-6e34-4219-a88a-39af60aece24", |
| | | "label": "Login Error", |
| | | "regions": [ |
| | | { |
| | | "regions" : [ { |
| | | "id": "f0dbcd6d-92d7-48ee-bdfe-878dee8e9a77", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "richTextValue": "<div style=\"text-align: center;\">Invalid Page</div>" |
| | | }, |
| | |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | } ], |
| | | "id": "ecdce3fb-0b9b-44ae-b7b0-fbf42f12e826", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | }, { |
| | | "id": "d7969d47-f741-49af-8879-5d2aa4a8b92b", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customHeadTags": "", |
| | | "description": "", |
| | |
| | | "id": "7124e5aa-b506-4383-acf2-cd508614a65c", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | } ], |
| | | "id": "e86aa86c-d5f8-481b-becd-f641d6dddb07", |
| | | "regionName": "sfdcHiddenRegion", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Login", |
| | | "type": "view", |
| | | "viewType": "login-error" |
| | |
| | | "dataProviders": [], |
| | | "id": "bb2f4e25-0c5a-46a4-adb6-431ecad42732", |
| | | "label": "Record Detail", |
| | | "regions": [ |
| | | { |
| | | "regions" : [ { |
| | | "id": "d7e0c80b-0785-4368-b355-8df9b74d7585", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "recordId": "{!recordId}" |
| | | }, |
| | |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | }, |
| | | { |
| | | }, { |
| | | "componentAttributes": { |
| | | "detailsTabLabel": "Details", |
| | | "discussionsTabLabel": "Feed", |
| | |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | } ], |
| | | "id": "431670c5-9b29-44ff-9abb-08da1f5bc596", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | }, { |
| | | "id": "ef26bfcc-676c-44ae-bba2-ef9d4e139000", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customHeadTags": "", |
| | | "description": "", |
| | |
| | | "id": "e54f6f0f-9bb6-49c5-874b-e0cb6df5aac9", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | } ], |
| | | "id": "545512d3-d5b2-48c3-81d7-08d3a34ca75a", |
| | | "regionName": "sfdcHiddenRegion", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "detail" |
| | |
| | | "dataProviders": [], |
| | | "id": "45ab1ac9-68f0-43e8-af03-88f2f479f2c3", |
| | | "label": "Record List", |
| | | "regions": [ |
| | | { |
| | | "regions" : [ { |
| | | "id": "f55ac5c7-e89e-4a0c-b673-369053d0ccbb", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "enableInlineEdit": true, |
| | | "filterName": "{!filterId}", |
| | |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | } ], |
| | | "id": "9657d9bf-f46a-400c-a19f-252c3878377f", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | }, { |
| | | "id": "abde8654-b5ac-4f5b-83d1-52935c514cd0", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "list" |
| | |
| | | "dataProviders": [], |
| | | "id": "f7082e1e-e1e4-4b79-a271-59037e25c845", |
| | | "label": "Register", |
| | | "regions": [ |
| | | { |
| | | "components": [ |
| | | { |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes": {}, |
| | | "componentName": "salesforceIdentity:communityLogo2", |
| | | "id": "e21ea511-10c6-4a67-82ef-ec485b7617bf", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | }, |
| | | { |
| | | }, { |
| | | "componentAttributes": { |
| | | "richTextValue": "<div style=\"text-align: center;\" class=\"inverseTextColor\">Join the community to receive personalized information and customer support.</div>" |
| | | }, |
| | |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | }, |
| | | { |
| | | }, { |
| | | "componentAttributes": { |
| | | "confirmPasswordLabel": "Confirm Password", |
| | | "emailLabel": "Email", |
| | |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | }, |
| | | { |
| | | }, { |
| | | "componentAttributes": { |
| | | "headerText": "", |
| | | "showHeader": false, |
| | |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | }, |
| | | { |
| | | }, { |
| | | "componentAttributes": { |
| | | "richTextValue": "<div style=\"text-align: center;\"><a class=\"inverseTextColor\" href=\"./\">Already have an account?</a></div>" |
| | | }, |
| | |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | } ], |
| | | "id": "6b062d85-f6af-410f-bc27-1a1da6da32b8", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customHeadTags": "", |
| | | "description": "", |
| | |
| | | "id": "4a889e5c-547a-48d9-bd3a-9e87166e7a82", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | } ], |
| | | "id": "6e5174c2-5e4d-4e3e-a1a2-ec60126f3596", |
| | | "regionName": "sfdcHiddenRegion", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Login", |
| | | "type": "view", |
| | | "viewType": "self-register" |
| | |
| | | "dataProviders": [], |
| | | "id": "df2fbc80-2a44-4533-b646-40276661a5cf", |
| | | "label": "Related Record List", |
| | | "regions": [ |
| | | { |
| | | "regions" : [ { |
| | | "id": "176c742a-9692-4939-927d-411b650ed76f", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customTitle": "", |
| | | "parentRecordId": "{!recordId}", |
| | |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | } ], |
| | | "id": "2672648c-0a4a-48c9-9ba6-af6a3630da20", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | }, { |
| | | "id": "08fd2e61-7c7e-41b8-9aff-4910b70422cd", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "relatedlist" |
| | |
| | | "dataProviders": [], |
| | | "id": "1b73e50d-9811-4744-8c07-ffc097aa102a", |
| | | "label": "Search", |
| | | "regions": [ |
| | | { |
| | | "regions" : [ { |
| | | "id": "5a6cc49b-d707-4df0-a634-7c716a793f2a", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "scopes": [ |
| | | { |
| | | "scopes" : [ { |
| | | "isPublic": true, |
| | | "name": "FeedPost" |
| | | }, |
| | | { |
| | | }, { |
| | | "isPublic": true, |
| | | "name": "KnowledgeArticleVersion" |
| | | }, |
| | | { |
| | | }, { |
| | | "isPublic": false, |
| | | "name": "Case" |
| | | }, |
| | | { |
| | | }, { |
| | | "isPublic": true, |
| | | "name": "CollaborationGroup" |
| | | } |
| | | ], |
| | | } ], |
| | | "searchResultFiltering": true, |
| | | "searchTerm": "{!term}", |
| | | "showTopResults": true |
| | |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | } ], |
| | | "id": "72128e90-ca44-4078-be1e-37490d727222", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | }, { |
| | | "id": "cdba3ee9-b011-4e7c-a760-0b9c5401d719", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "global-search" |
| | |
| | | "dataProviders": [], |
| | | "id": "224c5f58-859e-49e8-9564-18d11e2ddf47", |
| | | "label": "奥æå·´æ¯çµåç¾æ¶ç³»ç»", |
| | | "regions": [ |
| | | { |
| | | "regions" : [ { |
| | | "id": "518d33a9-c0b3-4d07-bc99-314ad3b41419", |
| | | "regionName": "header", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": {}, |
| | | "componentName": "c:eSignHomePage", |
| | | "id": "ea68fcac-c35d-415e-86e8-040f4a6820d5", |
| | | "renderPriority": "NEUTRAL", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | } ], |
| | | "id": "6ff94da4-7138-452e-a15c-ddfbb167b364", |
| | | "regionName": "content", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | }, { |
| | | "id": "c7a5b214-989d-437e-b11b-19c533e37cf3", |
| | | "regionName": "footer", |
| | | "type": "region" |
| | | }, |
| | | { |
| | | "components": [ |
| | | { |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes": { |
| | | "customHeadTags": "", |
| | | "description": "", |
| | |
| | | "id": "528b9108-2ebf-4ba1-8e2b-9ebec00fa61a", |
| | | "renditionMap": {}, |
| | | "type": "component" |
| | | } |
| | | ], |
| | | } ], |
| | | "id": "d2699d17-8cc3-4386-a7db-72e53dea52e4", |
| | | "regionName": "sfdcHiddenRegion", |
| | | "type": "region" |
| | | } |
| | | ], |
| | | } ], |
| | | "themeLayoutType": "Inner", |
| | | "type": "view", |
| | | "viewType": "custom-esign-data-entry" |
| New file |
| | |
| | | { |
| | | "appPageId" : "7f290f39-4245-4612-9453-2b0c9f9e3701", |
| | | "componentName" : "siteforce:dynamicLayout", |
| | | "dataProviders" : [ ], |
| | | "id" : "793767ac-c71a-49a2-ba5a-591a85646551", |
| | | "label" : "è¿å£åè¯æç»", |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes" : { |
| | | "background" : "background: rgba(0,0,0,0)", |
| | | "backgroundOverlay" : "rgba(0,0,0,0.5)", |
| | | "contentAreaWidth" : 100, |
| | | "sectionConfig" : { |
| | | "UUID" : "f248bb54-1de0-4045-a694-6878661820df", |
| | | "columns" : [ { |
| | | "UUID" : "73f32934-3d6d-4797-b1fd-7b87702e1e1e", |
| | | "columnKey" : "1", |
| | | "columnName" : "Column 1", |
| | | "columnWidth" : "12", |
| | | "seedComponents" : [ ] |
| | | } ] |
| | | }, |
| | | "sectionHeight" : 300 |
| | | }, |
| | | "componentName" : "forceCommunity:section", |
| | | "id" : "f248bb54-1de0-4045-a694-6878661820df", |
| | | "regions" : [ { |
| | | "components" : [ { |
| | | "componentAttributes" : { }, |
| | | "componentName" : "c:AttachmentDisplay", |
| | | "id" : "e1758a66-b8a1-45af-ae6e-03125b843456", |
| | | "renderPriority" : "NEUTRAL", |
| | | "renditionMap" : { }, |
| | | "type" : "component" |
| | | } ], |
| | | "id" : "73f32934-3d6d-4797-b1fd-7b87702e1e1e", |
| | | "regionLabel" : "Column 1", |
| | | "regionName" : "1", |
| | | "renditionMap" : { }, |
| | | "type" : "region" |
| | | } ], |
| | | "renderPriority" : "NEUTRAL", |
| | | "renditionMap" : { }, |
| | | "type" : "component" |
| | | } ], |
| | | "id" : "5ce20936-231e-48fd-8417-dba7d007a09f", |
| | | "regionName" : "content", |
| | | "type" : "region" |
| | | }, { |
| | | "components" : [ { |
| | | "componentAttributes" : { |
| | | "customHeadTags" : "", |
| | | "description" : "", |
| | | "title" : "è¿å£åè¯æç»" |
| | | }, |
| | | "componentName" : "forceCommunity:seoAssistant", |
| | | "id" : "f149154f-4929-4eb1-b363-1c35f2c0a852", |
| | | "renditionMap" : { }, |
| | | "type" : "component" |
| | | } ], |
| | | "id" : "f6d5daee-acfb-4753-8635-5d29ed2e46e9", |
| | | "regionName" : "sfdcHiddenRegion", |
| | | "type" : "region" |
| | | } ], |
| | | "themeLayoutType" : "Inner", |
| | | "type" : "view", |
| | | "viewType" : "custom-attachment-display" |
| | | } |
| | |
| | | <template> |
| | | <lightning-input style="border:1px solid red" step="0" type="number" name="shipmentNumber" label="åºè´§æ°é" |
| | | <c-common-toast></c-common-toast> |
| | | <lightning-input style="border:1px solid red;border-radius:5px;" step="any" type="number" name="shipmentNumber" label="åºè´§æ°é" |
| | | variant="label-hidden" onchange={dataChange} data-field="shipmentNumber" value={shipmentNumber} |
| | | onblur={shipmentNumberBlur} min="0" class="inputFont"></lightning-input> |
| | | <!-- <lightning-input style="border:1px solid red" name="shipmentNumber" label="åºè´§æ°é" |
| | | variant="label-hidden" onchange={dataChange} data-field="shipmentNumber" value={shipmentNumber} |
| | | onblur={shipmentNumberBlur}></lightning-input> --> |
| | | </template> |
| | |
| | | export default class CustomShipmentNumberComp extends LightningElement { |
| | | @api recordId; |
| | | @api shipmentNumber; |
| | | @api isConinvoice; |
| | | @api esdInvoiceProNotCount; |
| | | |
| | | connectedCallback(){ |
| | | console.log('shipmentNumber = ' + this.shipmentNumber); |
| | | } |
| | | |
| | | shipmentNumberBlur(event){ |
| | | debugger |
| | | console.log('shipmentNumberBlur') |
| | | this.shipmentNumber = event.target.value; |
| | | |
| | | if (this.isConinvoice) { |
| | | if (this.hasDecimals(this.shipmentNumber)) { |
| | | this.showMyToast('é误', '请è¾å
¥æ´æ°', 'Error'); |
| | | this.shipmentNumber = 0; |
| | | }else{ |
| | | if(this.esdInvoiceProNotCount < this.shipmentNumber){ |
| | | this.showMyToast('é误', 'å票æ°éä¸è½è¶
è¿è¿æ²¡å票æ°éï¼', 'Error'); |
| | | this.shipmentNumber = 0; |
| | | } |
| | | } |
| | | } else { |
| | | //åä¸åæ´ |
| | | if (this.hasDecimals(this.shipmentNumber)) { |
| | | this.showMyToast('é误', '请è¾å
¥æ´æ°', 'Error'); |
| | | this.shipmentNumber = Math.floor(this.shipmentNumber) |
| | | } |
| | | } |
| | | event.target.value = this.shipmentNumber; |
| | | this.dispatchEvent(new CustomEvent('shipmentnumber', { |
| | | composed: true, |
| | | bubbles: true, |
| | |
| | | } |
| | | })); |
| | | } |
| | | |
| | | hasDecimals(num) { |
| | | return !Number.isInteger(Number(num)); |
| | | } |
| | | |
| | | showMyToast(title, message, variant) { |
| | | this.isShowSpinner = false; |
| | | this.showLoadingSpinner = false; |
| | | this.showAttPop = false; |
| | | this.filesUploaded = []; |
| | | this.fileName = null; |
| | | console.log('show custom message'); |
| | | var iconName = ''; |
| | | var content = ''; |
| | | if (variant.toLowerCase() == 'success') { |
| | | iconName = 'utility:check'; |
| | | } else { |
| | | iconName = 'utility:error'; |
| | | } |
| | | if (message != '') { |
| | | content = '<h2><strong>' + title + '<strong/></h2><h5>' + message + '</h5>'; |
| | | } else { |
| | | content = '<h2><strong>' + title + '<strong/></h2>'; |
| | | } |
| | | this.template.querySelector('c-common-toast').showToast(variant, content, iconName, 10000); |
| | | } |
| | | } |
| | |
| | | <template> |
| | | <lightning-input style="border:1px solid red" step="0.01" type="number" name="shipmentUnitPrice" |
| | | <lightning-input style="border:1px solid red;border-radius:5px" step="any" type="number" name="shipmentUnitPrice" |
| | | label="deliveryOrderNo" variant="label-hidden" data-field="shipmentUnitPrice" value={shippingUnitPrice} |
| | | onblur={shipmentUnitPriceBlur} class="inputFont"></lightning-input> |
| | | onblur={shipmentUnitPriceBlur} min="0" class="inputFont" onchange={limitDecimals}></lightning-input> |
| | | </template> |
| | |
| | | console.log('shippingUnitPrice = ' + this.shippingUnitPrice); |
| | | } |
| | | |
| | | limitDecimals(event) { |
| | | const value = parseFloat(event.target.value); // å°è¾å
¥å¼è½¬æ¢ä¸ºæ°åç±»å |
| | | const roundedValue = Math.round(value * 100) / 100; // å°æ°ååèäºå
¥å°ä¸¤ä½å°æ° |
| | | if (isNaN(value) || isNaN(roundedValue)) { // 妿æ°åæ æï¼åæ¸
空è¾å
¥æ¡ |
| | | event.target.value = ''; |
| | | } else if (roundedValue !== value) { // 妿è¾å
¥æ¡çå¼è¶
åºäºä¸¤ä½å°æ°ï¼åä¿®æ¹ä¸ºä¸¤ä½å°æ° |
| | | event.target.value = roundedValue.toFixed(2); |
| | | } |
| | | } |
| | | |
| | | shipmentUnitPriceBlur(event){ |
| | | console.log('shipmentUnitPriceBlur') |
| | | this.shippingUnitPrice = event.target.value; |
| | |
| | | type: 'Title', |
| | | recordId: { fieldName: "Id" } |
| | | }, |
| | | hideDefaultActions: true,initialWidth:200}, |
| | | {label:'SAPååå·',fieldName:'ContractNo__c',hideDefaultActions: true}, |
| | | hideDefaultActions: true,initialWidth:200,wrapText:true}, |
| | | {label:'SAPååå·',fieldName:'ContractNo__c',hideDefaultActions: true,wrapText:true,initialWidth:180}, |
| | | {label:'è®¢åæ»æ°', |
| | | type: "customOutputGood", |
| | | typeAttributes: { |
| | |
| | | <div style="color:#696969;font-size:16px;">æ¶èå订ååç§°<lightning-helptext style="--lwc-spacingXxSmall:0px;" content={label.helpText}></lightning-helptext></div> |
| | | </td> |
| | | <td style="width:200px;"> |
| | | <lightning-formatted-text style="font-size: 16px;" value={coc.arriveOrder}></lightning-formatted-text> |
| | | <a style="text-decoration: underline;color:black;" onclick={clickOrder}><lightning-formatted-text style="font-size: 16px;" value={coc.arriveOrder}></lightning-formatted-text></a> |
| | | <!-- <lightning-formatted-text value={coc.Arrive_Order__r.Name}></lightning-formatted-text> --> |
| | | </td> |
| | | <td></td> |
| | |
| | | <!-- <p style="font-size: 16px;"><strong>å¨åºåååºåä¸è§</strong></p> --> |
| | | </div> |
| | | <div style="padding:10px;"> |
| | | <lightning-datatable class="wrapped-header-datatable" hide-checkbox-column key-field="recordId" columns={colms} data={consumableorderdetailsRecords}></lightning-datatable> |
| | | <lightning-datatable class="wrapped-header-datatable" style="word-wrap:break-word; word-break:break-all;" hide-checkbox-column key-field="recordId" columns={colms} data={consumableorderdetailsRecords}></lightning-datatable> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | {label:'注åè¯ç¼ç å·' , fieldName:'approbation_No', hideDefaultActions: true,wrapText:true,initialWidth:125}, |
| | | {label:'注åè¯ææ' , fieldName:'expiration_DateStr', hideDefaultActions: true,wrapText:true,initialWidth:115}, |
| | | {label:'ä½¿ç¨æé' , fieldName:'Sterilization_limitStr', hideDefaultActions: true,wrapText:true,initialWidth:115}, |
| | | {label:'BarCode' , fieldName:'barCode', hideDefaultActions: true,initialWidth:250}, |
| | | {label:'BarCode' , fieldName:'barCode', hideDefaultActions: true,initialWidth:250,wrapText:true}, |
| | | {label:'éè´åä»·' ,type:'number',fieldName:'intraTradeList', hideDefaultActions: true,wrapText:true,initialWidth:120,typeAttributes:{minimumFractionDigits: 2},cellAttributes: { alignment: "right" }} |
| | | ]; |
| | | label = {helpText}; |
| | |
| | | proSale({ |
| | | cocStr : JSON.stringify(this.coc), |
| | | orderallcountParm : this.orderallcount, |
| | | consumableorderdetailsCountParm : this.consumableorderdetailsCount |
| | | consumableorderdetailsCountParm : this.consumableorderdetailsCount, |
| | | eSetIdStr : this.eSetId |
| | | }) |
| | | .then(result=>{ |
| | | if(result.result == 'Success'){ |
| | |
| | | this[NavigationMixin.Navigate](config); |
| | | }else { |
| | | this.showSpinner = false; |
| | | console.log("error:"+error); |
| | | console.log("error:"+result.errorMsg); |
| | | this.showMyToast('åºåºå¤±è´¥',result.errorMsg,'error'); |
| | | } |
| | | }) |
| | |
| | | }) |
| | | } |
| | | |
| | | clickOrder(){ |
| | | if(this.coc.Arrive_Order__c != null && this.coc.Arrive_Order__c != ''){ |
| | | const config = { |
| | | type: 'standard__webPage', |
| | | attributes: { |
| | | url: '/detail/'+this.coc.Arrive_Order__c |
| | | } |
| | | }; |
| | | this[NavigationMixin.Navigate](config); |
| | | } |
| | | } |
| | | |
| | | showMyToast(title, message, variant) { |
| | | console.log('show custom message'); |
| | | var iconName = ''; |
| | |
| | | .fontWeight{ |
| | | font-size:16px; |
| | | } |
| | | |
| | | .fileUpload { |
| | | font-size: 16px; |
| | | --lwc-formLabelFontSize:16px; |
| | | } |
| | |
| | | <template> |
| | | <c-common-toast></c-common-toast> |
| | | <template if:true={isShowSpinner}> |
| | | <lightning-spinner alternative-text="Loading" size="large"></lightning-spinner> |
| | | <lightning-spinner size="medium" variant="brand"></lightning-spinner> |
| | | </template> |
| | | |
| | | |
| | |
| | | <template if:false={isConInvoiceList}> |
| | | <!-- æç´¢å®¢æ·å --> |
| | | <template if:true={isModalOpen}> |
| | | <!-- Modal/Popup Box LWC starts here --> |
| | | <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"> |
| | | aria-describedby="modal-content-id-1" class="slds-modal slds-fade-in-open slds-modal_medium" |
| | | style="border: 1px solid #D4D4D4;"> |
| | | <div class="slds-modal__container"> |
| | | <!-- Modal/Popup Box LWC header here --> |
| | | <header class="slds-modal__header"> |
| | | <button class="slds-button slds-button_icon slds-modal__close slds-button_icon-inverse" |
| | | <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={closeModal}> |
| | | <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-01" class="slds-text-heading_medium slds-hyphenate"> |
| | | ç»éåå»é¢æ£ç´¢ |
| | | </h2> |
| | | <h2 id="modal-heading-01" class="slds-text-heading_medium slds-hyphenate">ç»éåå»é¢æ£ç´¢</h2> |
| | | </header> |
| | | <!-- Modal/Popup Box LWC body starts here --> |
| | | <div class="slds-modal__content slds-p-around_medium" id="modal-content-id-1"> |
| | | <div class="slds-modal__content slds-p-around_medium" id="modal-content-id-1" |
| | | style="border: 1px solid #F3F3F3;"> |
| | | <table style="width: 100%;"> |
| | | <tbody> |
| | | <tr> |
| | | <td style="width: 74px;"> |
| | | <div style="color:#696969;font-size:16px;text-align: left;">å»é¢åç§°</div> |
| | | </td> |
| | | <td style="width: 60%;"><lightning-input class="inputFont" label="å»é¢åç§°" |
| | | variant="label-hidden" placeholder="请è¾å
¥å»é¢åç§°" value={searchHospitalName} |
| | | data-field="searchHospitalName" onchange={dataChange}></lightning-input></td> |
| | | <td style="width: 10px;"></td> |
| | | <td><button class="slds-button slds-button_neutral slds-button_stretch lexsearchStyle" |
| | | style="height: 32px;" label="æç´¢" onclick={searchHospital}>æç´¢</button></td> |
| | | </tr> |
| | | </tbody> |
| | | </table> |
| | | <p style="height: 20px;"></p> |
| | | <!-- <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;"> |
| | | <lightning-layout> |
| | | <lightning-layout-item flexibility="auto" padding="around-small"> |
| | | <lightning-input type="text" label="å»é¢åç§°" onchange={dataChange} |
| | | data-field="searchHospitalName" value={searchHospitalName} |
| | | variant="label-inline" class="inputFont"></lightning-input> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item flexibility="auto" padding="around-small" |
| | | style="padding-top: 16px;"> |
| | | <!-- <lightning-button label="æ£ç´¢" onclick={searchHospital}></lightning-button> --> |
| | | <button class="slds-button slds-button_neutral" onclick={searchHospital} |
| | | title="searchHospital" style="font-size: 16px;"> |
| | | æ£ç´¢ |
| | | </button> |
| | | <lightning-layout-item padding="around-small"> |
| | | <p style="font-size: 18px"> |
| | | <strong>æç´¢ç»æ</strong> |
| | | </p> |
| | | </lightning-layout-item> |
| | | </lightning-layout> |
| | | |
| | | <div class="tableColumn"> |
| | | <lightning-layout class="datatable" style="height: 250px;"> |
| | | <!-- <p style="font-size: 16px;"><strong>æç´¢ç»æ</strong></p> --> |
| | | </div> |
| | | <div class="myTable" style="padding:10px;"> |
| | | <!-- <lightning-datatable class="wrapped-header-datatable" key-field="id" |
| | | hide-checkbox-column="true" data={hospitalList} columns={hosCols} |
| | | onrowaction={chooseHos}></lightning-datatable> --> |
| | | <lightning-datatable class="datatabel slds-border_top wrapped-header-datatable" |
| | | key-field="id" data={hospitalList} columns={hospitalColumns} |
| | | hide-checkbox-column="true" onrowaction={searchHandleRowAction}> |
| | | key-field="id" data={hospitalList} columns={hospitalColumns} hide-checkbox-column="true" |
| | | onrowaction={searchHandleRowAction}> |
| | | </lightning-datatable> |
| | | </lightning-layout> |
| | | </div> |
| | | </div> |
| | | <!-- Modal/Popup Box LWC footer starts here --> |
| | | </div> |
| | | <footer class="slds-modal__footer"> |
| | | <button class="slds-button slds-button_neutral" onclick={closeModal} title="Cancel" |
| | | style="font-size: 16px;"> |
| | | å
³é |
| | | </button> |
| | | <button class="slds-button slds-button_neutral slds-button_stretch lexclearStyle" label="åæ¶" |
| | | onclick={closeModal}>åæ¶</button> |
| | | </footer> |
| | | </div> |
| | | </section> |
| | |
| | | <div lwc:dom="manual" class="resultDiv"></div> |
| | | <div draggable="false"> |
| | | <template if:false={EditAble}> |
| | | <lightning-layout> |
| | | <lightning-layout-item size="12"> |
| | | <div class="slds-m-top_small slds-m-bottom_medium"> |
| | | <!-- <lightning-layout-item size="3"> |
| | | <lightning-input label="" name="ä¸ä¼ éä»¶" onchange={handleFilesChange} |
| | | type="file" accept={acceptedType} |
| | | disabled={isDisabledReopen}></lightning-input> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item size="3"> |
| | | <span class="slds-form-element__label" data-form-label></span> |
| | | </br> |
| | | <lightning-button label="ä¿åéä»¶" style="margin-top: 20px" |
| | | onclick={saveAttachmentJs} |
| | | disabled={isDisabledReopen}></lightning-button> |
| | | </lightning-layout-item> --> |
| | | <lightning-layout multiple-rows="true"> |
| | | <lightning-layout-item size="12"> |
| | | <lightning-layout-item size="2"></lightning-layout-item> |
| | | <lightning-layout-item size="10"> |
| | | <button |
| | | class="slds-button slds-button_neutral slds-button_stretch lexBorder" |
| | | onclick={SetEditAbleJs} disabled={isDisabledEdit} |
| | |
| | | class="slds-button slds-button_neutral slds-button_stretch lexBorder buttonminMarginLeft" |
| | | onclick={reopenJs} disabled={isDisabledReopen} |
| | | style="width: 150px;">ä½åºéå¼</button> |
| | | </lightning-layout-item> |
| | | </lightning-layout> |
| | | |
| | | <lightning-layout multiple-rows="true" style="margin-top: 20px;"> |
| | | <lightning-layout-item size="2"></lightning-layout-item> |
| | | <lightning-layout-item size="10"> |
| | | <button |
| | | class="slds-button slds-button_neutral slds-button_stretch lexBorder buttonminMarginLeft" |
| | | class="slds-button slds-button_neutral slds-button_stretch lexBorder" |
| | | onclick={deleteButtonJs} disabled={isDisabledDelete} |
| | | style="width: 150px;">å é¤</button> |
| | | |
| | |
| | | class="slds-button slds-button_neutral slds-button_stretch lexBorder buttonminMarginLeft" |
| | | onclick={saveAttachmentJs} disabled={isDisabledReopen} |
| | | style="width: 150px;">ä¿åéä»¶</button> |
| | | </lightning-layout-item> |
| | | <!-- <lightning-layout-item size="2"> |
| | | <button |
| | | class="slds-button slds-button_neutral slds-button_stretch lexBorder" |
| | | disabled={isDisabledReopen} |
| | | onclick={uploadOrder} style="width: 150px;">ä¸ä¼ éä»¶</button> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item size="2"> |
| | | <button |
| | | class="slds-button slds-button_neutral slds-button_stretch lexBorder" |
| | | onclick={saveAttachmentJs} |
| | | disabled={isDisabledReopen} style="margin-left: -50px;width: 150px;">ä¿åéä»¶</button> |
| | | </lightning-layout-item> --> |
| | | </lightning-layout> |
| | | |
| | | </div> |
| | | </lightning-layout-item> |
| | | </lightning-layout> |
| | | </template> |
| | |
| | | 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="éä»¶ä¸ä¼ " |
| | | <lightning-input class="fileUpload" type="file" label="éä»¶ä¸ä¼ " |
| | | accept=".xlsx, .xls, .csv, .png, .doc, .docx, .pdf" |
| | | onchange={attChange}></lightning-input> |
| | | </div> |
| | |
| | | </div> |
| | | </div> |
| | | <footer class="slds-modal__footer"> |
| | | <lightning-button style="margin-left: 10px;" variant="neutral" |
| | | <!-- <lightning-button style="margin-left: 10px;" variant="neutral" |
| | | label="åæ¶" onclick={closePop}></lightning-button> |
| | | <lightning-button style="margin-left: 10px;" variant="neutral" |
| | | label="ä¸ä¼ " onclick={handleFilesChange}></lightning-button> |
| | | label="ä¸ä¼ " onclick={handleFilesChange}></lightning-button> --> |
| | | <button class="slds-button slds-button_neutral slds-button_stretch lexclearStyle" style="margin-left: 10px;" |
| | | label="åæ¶" onclick={closePop}>åæ¶</button> |
| | | <button class="slds-button slds-button_neutral slds-button_stretch lexsearchStyle" style="margin-left: 10px;" |
| | | label="ä¸ä¼ " onclick={handleFilesChange}>ä¸ä¼ </button> |
| | | </footer> |
| | | </div> |
| | | </section> |
| | |
| | | <lightning-layout multiple-rows="true"> |
| | | <lightning-layout-item size="1"></lightning-layout-item> |
| | | |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <lightning-layout-item class="hehe-layoutItem" size="5"> |
| | | <lightning-output-field field-name="Name"></lightning-output-field> |
| | | </lightning-layout-item> |
| | | |
| | | <lightning-layout-item class="hehe-layoutItem" size="5" style="padding-left: 100px;"> |
| | | <lightning-output-field |
| | | field-name="Invoice_status__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="Invoice_status__c"></lightning-output-field> |
| | | </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-layout-item class="hehe-layoutItem" size="5"> |
| | | <lightning-output-field |
| | | field-name="Invoice_Date__c"></lightning-output-field> |
| | | </lightning-layout-item> |
| | |
| | | <lightning-layout-item size="1"></lightning-layout-item> |
| | | |
| | | <lightning-layout multiple-rows="true"> |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <lightning-layout-item class="hehe-layoutItem" size="5"> |
| | | <lightning-output-field |
| | | field-name="Order_Dealer_Info__c"></lightning-output-field> |
| | | </lightning-layout-item> |
| | |
| | | <lightning-layout multiple-rows="true"> |
| | | <lightning-layout-item size="1"></lightning-layout-item> |
| | | |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <lightning-layout-item class="hehe-layoutItem" size="5"> |
| | | <lightning-output-field field-name="ShipmentAccount__c" |
| | | class="hideHelpText"></lightning-output-field> |
| | | </lightning-layout-item> |
| | |
| | | <lightning-layout multiple-rows="true" style="height:35.5px"> |
| | | <lightning-layout-item size="1"></lightning-layout-item> |
| | | |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <lightning-layout-item class="hehe-layoutItem" size="5"> |
| | | <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 size="4" class="readOnly"> |
| | | <lightning-layout-item size="5" class="readOnly" style="padding-left: 100px;"> |
| | | <lightning-input label="å票票é¢éé¢(å
)" value={sumPrice} read-only |
| | | variant="label-inline"></lightning-input> |
| | | </lightning-layout-item> |
| | | |
| | | <lightning-layout-item size="1"></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-layout-item class="hehe-layoutItem" size="5"> |
| | | <lightning-output-field |
| | | field-name="Invoice_Note__c"></lightning-output-field> |
| | | </lightning-layout-item> |
| | |
| | | <lightning-layout multiple-rows="true"> |
| | | <lightning-layout-item size="1"></lightning-layout-item> |
| | | |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <lightning-layout-item class="hehe-layoutItem" size="5"> |
| | | <lightning-output-field |
| | | field-name="Invoice_attachment__c"></lightning-output-field> |
| | | </lightning-layout-item> |
| | | |
| | | <lightning-layout-item size="1"></lightning-layout-item> |
| | | |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <lightning-layout-item class="hehe-layoutItem" size="5" style="padding-left: 100px;"> |
| | | <lightning-output-field |
| | | field-name="Invoicedet_attachment__c"></lightning-output-field> |
| | | </lightning-layout-item> |
| | | |
| | | <lightning-layout-item size="1"></lightning-layout-item> |
| | | </lightning-layout> |
| | | |
| | | <!-- éä»¶é¢è§ --> |
| | | <lightning-layout multiple-rows="true"> |
| | | <lightning-layout-item size="1"> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item size="11"> |
| | | <lightning-layout-item size="10"> |
| | | <lightning-card class="attListTitle" variant="Narrow" title="éä»¶å表" |
| | | icon-name="utility:attach"> |
| | | |
| | |
| | | style="margin-left: 20px;" icon-name="doctype:gform" |
| | | alternative-text={item.Title} |
| | | size="large"></lightning-icon><br /> |
| | | <span title={item.Title}> |
| | | {item.fileName} |
| | | </span> |
| | | <div title={item.Title} style="width: 100px;text-overflow: ellipsis;overflow: hidden;white-space: nowrap;"> |
| | | {item.Title} |
| | | </div> |
| | | <p> |
| | | <!-- <a data-fileid ={item.documentId} onclick={previweAtt}> --> |
| | | <a href={item.attUrl} target="_blank"> |
| | |
| | | <a href={item.downloadUrl}> |
| | | ä¸è½½ |
| | | </a> · |
| | | <a data-fileid={item.recordId} onclick={deleteAtt}> |
| | | <a data-fileid={item.Id} onclick={deleteAtt}> |
| | | å é¤ |
| | | </a> |
| | | </p> |
| | |
| | | <lightning-layout multiple-rows="true"> |
| | | <lightning-layout-item size="1"></lightning-layout-item> |
| | | |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <lightning-layout-item class="hehe-layoutItem" size="5"> |
| | | <lightning-input label="å票å·" value={OrderCode} data-field="OrderCode" |
| | | onchange={dataChange} variant="label-inline" required |
| | | class="inputFont"></lightning-input> |
| | | </lightning-layout-item> |
| | | |
| | | <lightning-layout-item size="1"></lightning-layout-item> |
| | | |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <lightning-layout-item class="hehe-layoutItem" size="5" style="padding-left: 100px;"> |
| | | <lightning-output-field |
| | | field-name="Invoice_status__c"></lightning-output-field> |
| | | </lightning-layout-item> |
| | | |
| | | <lightning-layout-item size="1"></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-layout-item class="hehe-layoutItem" size="5"> |
| | | <lightning-input type="date" label="åç¥¨æ¥æ" variant="label-inline" |
| | | value={InvoiceDate} onchange={invoiceDateChange} required |
| | | class="inputFont"></lightning-input> |
| | |
| | | <lightning-layout multiple-rows="true"> |
| | | <lightning-layout-item size="1"></lightning-layout-item> |
| | | |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <lightning-layout-item class="hehe-layoutItem" size="5"> |
| | | <div |
| | | class="slds-form-element__control slds-input-has-icon slds-input-has-icon_right"> |
| | | <lightning-icon size="x-small" |
| | |
| | | </div> |
| | | </lightning-layout-item> |
| | | |
| | | <lightning-layout-item size="1"></lightning-layout-item> |
| | | |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <lightning-layout-item class="hehe-layoutItem" size="5" style="padding-left: 100px;"> |
| | | <lightning-combobox data-field="secondaryDistributor" |
| | | name="secondaryDistributor" label="äºçº§ç»éå" |
| | | value={secondaryDistributor} placeholder="è¯·éæ©..." |
| | | options={provinceOptsMap} variant="label-inline" |
| | | onchange={dataChange} class="inputFont"></lightning-combobox> |
| | | </lightning-layout-item> |
| | | |
| | | <lightning-layout-item size="1"></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-layout-item class="hehe-layoutItem" size="5"> |
| | | <lightning-input-field onchange={dataChange} |
| | | data-field="ForCustomerText" value={ForCustomerText} |
| | | field-name="Order_ForCustomerText__c" |
| | | class="inputFont"></lightning-input-field> |
| | | </lightning-layout-item> |
| | | |
| | | <lightning-layout-item size="1"></lightning-layout-item> |
| | | |
| | | <lightning-layout-item class="hehe-layoutItem" size="4"> |
| | | <lightning-layout-item class="hehe-layoutItem" size="5" style="padding-left: 100px;"> |
| | | <lightning-output-field |
| | | field-name="Order_ForDealerText__c"></lightning-output-field> |
| | | </lightning-layout-item> |
| | | |
| | | <lightning-layout-item size="1"></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-layout-item class="hehe-layoutItem" size="5"> |
| | | <lightning-input-field onchange={dataChange} data-field="InvoiceNote" |
| | | value={InvoiceNote} field-name="Invoice_Note__c" |
| | | class="inputFont"></lightning-input-field> |
| | |
| | | <lightning-layout-item padding="around-small"> |
| | | <!-- <lightning-button label=" æ£ç´¢ " |
| | | onclick={InvoiceorderSearchJs}></lightning-button> --> |
| | | <button class="slds-button slds-button_neutral slds-button_stretch lexsearchStyle" |
| | | <button |
| | | class="slds-button slds-button_neutral slds-button_stretch lexsearchStyle" |
| | | onclick={InvoiceorderSearchJs}>æ£ç´¢</button> |
| | | </lightning-layout-item> |
| | | </template> |
| | |
| | | <div class="slds-form-element__label ">åºåºæ¥ ä»</div> |
| | | <lightning-input type="date" variant="label-hidden" label="åºåºæ¥ ä»" |
| | | onchange={dataChange} data-field="deliveryFromDate" |
| | | value={deliveryFromDate} class="inputFont"></lightning-input> |
| | | value={deliveryFromDate} class="inputFont" |
| | | style="max-width: 150px;"></lightning-input> |
| | | </div> |
| | | |
| | | </br> |
| | |
| | | </div> |
| | | <lightning-input type="date" variant="label-hidden" label="å°" |
| | | onchange={dataChange} data-field="deliveryToDate" |
| | | value={deliveryToDate} class="inputFont"></lightning-input> |
| | | value={deliveryToDate} class="inputFont" |
| | | style="max-width: 150px;"></lightning-input> |
| | | </div> |
| | | </div> |
| | | </lightning-layout-item> |
| | |
| | | <div class="slds-grid slds-grid_vertical-align-center"> |
| | | <div class="slds-form-element__label ">å票å·</div> |
| | | <lightning-input variant="label-hidden" label="å票å·" onchange={dataChange} |
| | | data-field="category1" value={category1} |
| | | class="inputFont"></lightning-input> |
| | | data-field="category1" value={category1} class="inputFont" |
| | | style="max-width: 150px;"></lightning-input> |
| | | </div> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item flexibility="auto"> |
| | | <div class="slds-grid slds-grid_vertical-align-center"> |
| | | <div class="slds-form-element__label ">客æ·å</div> |
| | | <lightning-input variant="label-hidden" label="客æ·å" onchange={dataChange} |
| | | data-field="category2" value={category2} |
| | | class="inputFont"></lightning-input> |
| | | data-field="category2" value={category2} class="inputFont" |
| | | style="max-width: 150px;"></lightning-input> |
| | | </div> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item flexibility="auto"> |
| | |
| | | <lightning-combobox data-field="invoiceStatus" name="invoiceStatus" |
| | | label="ç¶æ" value={invoiceStatusValue} placeholder="è¯·éæ©..." |
| | | options={Options} variant="label-hidden" onchange={dataChange} |
| | | style="min-width: 100px;" class="inputFont"></lightning-combobox> |
| | | style="min-width: 100px;max-width: 200px;" |
| | | class="inputFont"></lightning-combobox> |
| | | </div> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item flexibility="auto"> |
| | | <div class="slds-grid slds-grid_vertical-align-center"> |
| | | <!-- <lightning-button label="æ£ç´¢" |
| | | onclick={invoiceCodeSearchJs}></lightning-button> --> |
| | | <button |
| | | class="slds-button slds-button_neutral slds-button_stretch lexsearchStyle" |
| | | onclick={invoiceCodeSearchJs}>æ£ç´¢</button> |
| | | onclick={invoiceCodeSearchJs} style="max-width: 110px;">æ£ç´¢</button> |
| | | </div> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item flexibility="auto"> |
| | | <div class="slds-grid slds-grid_vertical-align-center"> |
| | | <!-- <lightning-button label="æ¸
空" onclick={ClearJs}></lightning-button> --> |
| | | <button |
| | | class="slds-button slds-button_neutral slds-button_stretch lexclearStyle" |
| | | onclick={ClearJs}>æ¸
空</button> |
| | | onclick={ClearJs} style="max-width: 110px;">æ¸
空</button> |
| | | </div> |
| | | </lightning-layout-item> |
| | | </lightning-layout> |
| | |
| | | <lightning-record-edit-form object-api-name="Consumable_order__c" |
| | | record-id={detailsInvoiceId} onload={handleLoad2}> |
| | | <lightning-layout multiple-rows="true"> |
| | | <lightning-layout-item size="2"></lightning-layout-item> |
| | | <lightning-layout-item size="4"> |
| | | <lightning-layout-item size="1"></lightning-layout-item> |
| | | <lightning-layout-item size="5"> |
| | | <lightning-output-field field-name="Name"></lightning-output-field> |
| | | </lightning-layout-item> |
| | | </lightning-layout> |
| | | <lightning-layout multiple-rows="true"> |
| | | <lightning-layout-item size="2"></lightning-layout-item> |
| | | <lightning-layout-item size="4" class="hehe-layoutItem"> |
| | | <lightning-layout-item size="1"></lightning-layout-item> |
| | | <lightning-layout-item size="5" class="hehe-layoutItem"> |
| | | <lightning-output-field field-name="ShipmentAccount__c" |
| | | class="hideHelpText"></lightning-output-field> |
| | | </lightning-layout-item> |
| | | </lightning-layout> |
| | | <lightning-layout multiple-rows="true"> |
| | | <lightning-layout-item size="2"></lightning-layout-item> |
| | | <lightning-layout-item size="4"> |
| | | <lightning-layout-item size="1"></lightning-layout-item> |
| | | <lightning-layout-item size="5"> |
| | | <lightning-output-field |
| | | field-name="Order_ForCustomerText__c"></lightning-output-field> |
| | | </lightning-layout-item> |
| | |
| | | <div draggable="false"> |
| | | <lightning-record-edit-form object-api-name="Consumable_order__c" record-id={detailsCocId}> |
| | | <lightning-layout multiple-rows="true"> |
| | | <lightning-layout-item size="2"></lightning-layout-item> |
| | | <lightning-layout-item size="4"> |
| | | <lightning-layout-item size="1"></lightning-layout-item> |
| | | <lightning-layout-item size="5"> |
| | | <lightning-output-field field-name="Name"></lightning-output-field> |
| | | </lightning-layout-item> |
| | | </lightning-layout> |
| | | <lightning-layout multiple-rows="true"> |
| | | <lightning-layout-item size="2"></lightning-layout-item> |
| | | <lightning-layout-item size="4"> |
| | | <lightning-layout-item size="1"></lightning-layout-item> |
| | | <lightning-layout-item size="5"> |
| | | <lightning-output-field field-name="Outbound_Date__c"></lightning-output-field> |
| | | </lightning-layout-item> |
| | | </lightning-layout> |
| | |
| | | <c-lex-custom-lightning-datatable key-field="Id" data={detailsData} columns={detailsColumns} |
| | | onunitchange={handleUnitChange} onshipmentnumber={handleShipmentNumber} |
| | | onrowselection={detailsGetSelectedRows} selected-rows={detailsSelectedRows} |
| | | style="word-wrap:break-word; word-break:break-all; " class="wrapped-header-datatable"> |
| | | style="word-wrap:break-word; word-break:break-all; " class="wrapped-header-datatable" |
| | | min-column-width="115"> |
| | | </c-lex-custom-lightning-datatable> |
| | | <lightning-datatable class="datatabel slds-border_top wrapped-header-datatable" |
| | | key-field="id" data={invoiceAllpriceData} columns={detailsColumns} hide-checkbox-column |
| | |
| | | import serContact from "@salesforce/apex/lexSearchAgencyHospitalController.serContact"; |
| | | import detailsInit from "@salesforce/apex/LexConInvoicedetailsController.init"; |
| | | import detailsSave from "@salesforce/apex/LexConInvoicedetailsController.save"; |
| | | import deleteAtt from '@salesforce/apex/LexConsumableController.deleteAtt'; |
| | | import deleteAtt from '@salesforce/apex/LexSummonsCreatController.deleteAtt'; |
| | | import { NavigationMixin } from "lightning/navigation"; |
| | | //table css |
| | | import { loadStyle } from "lightning/platformResourceLoader"; |
| | |
| | | |
| | | const hospitalColumns = [ |
| | | { |
| | | label: "å»é¢åç§°", |
| | | fieldName: "Name", |
| | | initialWidth: 400, |
| | | hideDefaultActions: true, |
| | | wrapText: true, |
| | | }, |
| | | { |
| | | label: "ç份", |
| | | fieldName: "stateMasterName", |
| | | hideDefaultActions: true, |
| | | }, |
| | | { |
| | | label: "éæ©", |
| | | label: "", |
| | | fieldName: "Id1", |
| | | type: "button", |
| | | initialWidth: 90, |
| | | hideDefaultActions: true, |
| | | typeAttributes: { |
| | | label: "éæ©", |
| | |
| | | size: 1, |
| | | }, |
| | | }, |
| | | { |
| | | label: "å»é¢åç§°", |
| | | fieldName: "Name", |
| | | hideDefaultActions: true, |
| | | wrapText: true, |
| | | }, |
| | | { |
| | | label: "ç份", |
| | | fieldName: "stateMasterName", |
| | | hideDefaultActions: true, |
| | | } |
| | | ]; |
| | | const invoiceDetailsColumns = [ |
| | | { |
| | |
| | | hideDefaultActions: true, |
| | | wrapText: true, |
| | | cellAttributes: { alignment: 'right' }, |
| | | initialWidth:145, |
| | | type: "number", |
| | | typeAttributes: { |
| | | minimumFractionDigits: 2, |
| | |
| | | label: "产ååå·", |
| | | fieldName: "esdAssetModelNo", |
| | | hideDefaultActions: true, |
| | | initialWidth: 200, |
| | | wrapText: true, |
| | | }, |
| | | { |
| | |
| | | typeAttributes: { |
| | | recordId: { fieldName: "recordId" }, |
| | | shipmentNumber: { fieldName: "shipmentNumber" }, |
| | | isConinvoice: { fieldName: "isConinvoice" }, |
| | | esdInvoiceProNotCount: { fieldName: "esdInvoiceProNotCount" }, |
| | | }, |
| | | }, |
| | | { |
| | |
| | | fieldName: "invoiceAllprice", |
| | | hideDefaultActions: true, |
| | | type: "number", |
| | | initialWidth: 150, |
| | | typeAttributes: { |
| | | minimumFractionDigits: 2, |
| | | }, |
| | |
| | | |
| | | //æä»¶ä¸ä¼ |
| | | @track showLoadingSpinner = false; |
| | | @track showPopSpinner = false; |
| | | @track UploadFile = "Upload File"; |
| | | @track fileName = ""; |
| | | @track fileData = []; |
| | |
| | | this.detailsData[i]['esdInvoiceUnitprice'] = this.detailsData[i].esd.Invoice_Unitprice__c; |
| | | //å票æ°é |
| | | this.detailsData[i]['shipmentNumber'] = this.detailsData[i].invoiceCount; |
| | | this.detailsData[i]['isConinvoice'] = true; |
| | | this.detailsData[i]['invoiceAllprice'] = this.detailsData[i].invoiceAllprice; |
| | | |
| | | if (this.detailsData[i].check) { |
| | |
| | | this.ConInvoiceListUserWorkLocation = r.entity.userWorkLocation; |
| | | |
| | | this.ConInvoiceListAgencyProType = r.entity.agencyProType; |
| | | if (this.ConInvoiceListAgencyProType != 'ET') |
| | | //if (this.ConInvoiceListAgencyProType != 'ET') |
| | | this.isOpenReportDisabled = false; |
| | | this.invoiceData = r.entity.raesList; |
| | | for (var i in this.invoiceData) { |
| | |
| | | this.HospitalName = r.entity.HospitalName; |
| | | this.HospitalInfo = r.entity.HospitalInfo; |
| | | this.agencyProType = r.entity.agencyProType; |
| | | if (this.agencyProType != 'ET') |
| | | //if (this.agencyProType != 'ET') |
| | | this.isOpenReportDisabled = false; |
| | | //ç§å®¤ |
| | | this.ForCustomerText = this.coc.Order_ForCustomerText__c; |
| | |
| | | label: '客æ·å', |
| | | fieldName: "hospitalName", |
| | | hideDefaultActions: true, |
| | | wrapText: true, |
| | | }; |
| | | let object2 = { |
| | | label: 'åºè´§éé¢(å
)', |
| | |
| | | removeAtt() { |
| | | this.filesUploaded = []; |
| | | this.fileName = ''; |
| | | } |
| | | |
| | | //æ¯å¦æ¾ç¤ºéä»¶ç§»é¤ |
| | | get attDelBtn() { |
| | | if (this.fileName != '' && this.fileName != null && this.fileName != 'éæ©ä¸ä¸ªæä»¶ä¸ä¼ ') { |
| | | return true; |
| | | } else { |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | keepTwoDecimalStr(num) { |
| | |
| | | } |
| | | |
| | | handleSave() { |
| | | this.isShowSpinner = true; |
| | | console.log("saveFile"); |
| | | if (this.filesUploaded.length > 0) { |
| | | this.showPopSpinner = true; |
| | | this.file = this.filesUploaded[0]; |
| | | if (this.file.size > this.MAX_FILE_SIZE) { |
| | | this.showMyToast('ä¿å失败', 'æä»¶è¿å¤§', 'Error'); |
| | | return; |
| | | } |
| | | this.showLoadingSpinner = true; |
| | | this.fileReader = new FileReader(); |
| | | |
| | | this.fileReader.onloadend = () => { |
| | |
| | | r = JSON.parse(JSON.stringify(r)); |
| | | console.log("r = " + JSON.stringify(r)); |
| | | if (r != '') { |
| | | this.showLoadingSpinner = false; |
| | | this.showMyToast('éä»¶ä¸ä¼ æå', '', 'Success'); |
| | | this.showPopSpinner = false; |
| | | this.showMyToast('ä¸ä¼ æå', '', 'Success'); |
| | | this.closePop(); |
| | | this.init(); |
| | | } else { |
| | |
| | | } |
| | | |
| | | saveAttachmentJs() { |
| | | debugger |
| | | this.showLoadingSpinner = true; |
| | | let cloneData = this.fileData |
| | | let cloneData = this.deepClone(this.fileData) |
| | | for (var i in cloneData) { |
| | | delete cloneData[i].Id; |
| | | delete cloneData[i].recordId; |
| | |
| | | let reportUrl = this.label.LexConInvoiceViewReport; |
| | | let reportFilters = '[{"operator":"equals","value":"' + this.OrderCode + '","column":"FK_NAME"}]'; |
| | | console.log('reportUrl = ' + reportUrl); |
| | | let url = "/report/"+ reportUrl +"?reportFilters=" + encodeURIComponent(reportFilters); |
| | | this[NavigationMixin.Navigate]({ |
| | | type: "standard__webPage", |
| | | attributes: { |
| | | url: url, |
| | | }, |
| | | }); |
| | | let url = "/s/report/" + reportUrl + "?reportFilters=" + encodeURIComponent(reportFilters); |
| | | window.open(url); |
| | | // this[NavigationMixin.Navigate]({ |
| | | // type: "standard__webPage", |
| | | // attributes: { |
| | | // url: url, |
| | | // target: '_blank' |
| | | // }, |
| | | // }); |
| | | } |
| | | |
| | | reopenJs() { |
| | |
| | | showMyToast(title, message, variant) { |
| | | this.isShowSpinner = false; |
| | | this.showLoadingSpinner = false; |
| | | this.showPopSpinner = false; |
| | | this.showAttPop = false; |
| | | this.filesUploaded = []; |
| | | this.fileName = null; |
| | |
| | | console.log("this.data = " + JSON.stringify(this.data)); |
| | | } |
| | | |
| | | deepClone(obj) { |
| | | return JSON.parse(JSON.stringify(obj)); |
| | | } |
| | | |
| | | detailsSaveJs() { |
| | | this.isShowSpinner = true; |
| | | let cloneData = this.detailsData; |
| | | let cloneData = this.deepClone(this.detailsData); |
| | | |
| | | let selectedRows = this.template.querySelector('c-lex-custom-lightning-datatable').getSelectedRows(); |
| | | console.log('selectedRows = ' + JSON.stringify(selectedRows)); |
| | |
| | | console.log('attid:' + recordId); |
| | | deleteAtt({ |
| | | contentVersionId: recordId |
| | | }).then(result => { |
| | | if (result.result == 'Success') { |
| | | }).then(r => { |
| | | r = JSON.parse(JSON.stringify(r)); |
| | | if (r.status == "Success") { |
| | | this.showMyToast('å 餿å', '', 'Success'); |
| | | if (this.fileData.length == 1) |
| | | window.location.reload(); |
| | | else |
| | | this.init(); |
| | | } else { |
| | | this.showMyToast('å é¤å¤±è´¥', result.errorMsg, 'Error'); |
| | | this.showMyToast('å é¤å¤±è´¥', r.msg, 'Error'); |
| | | } |
| | | }).catch(error => { |
| | | this.showMyToast('é误', 'å é¤å¤±è´¥', 'Error'); |
| | | this.showMyToast('é误', error.message, 'Error'); |
| | | }) |
| | | } |
| | | } |
| | |
| | | <template for:each={attachmentRecoeds} for:item="item" for:index="index"> |
| | | <lightning-layout-item padding="around-none" size="2" key={item.recordId} style="text-align: left;padding:5px"> |
| | | <lightning-icon title={item.fileFullName} style="margin-left: 20px;" icon-name="doctype:gform" alternative-text={item.fileFullName} size="large"></lightning-icon><br/> |
| | | <span title={item.fileFullName}> |
| | | <!-- <span style="word-wrap:break-word; word-break:break-all;width:80px;display:flex;" title={item.fileFullName}> |
| | | {item.fileName} |
| | | </span> |
| | | </span> --> |
| | | <div title={item.fileFullName} style="width: 100px;text-overflow: ellipsis;overflow: hidden;white-space: nowrap;"> |
| | | {item.fileName} |
| | | </div> |
| | | <p> |
| | | <!-- <a data-fileid ={item.documentId} onclick={previweAtt}> --> |
| | | <a href={item.attUrl} target="_blank"> |
| | |
| | | <div style="padding:10px;"> |
| | | <table> |
| | | <tbody> |
| | | <tr> |
| | | <td style="width: 90px;"> |
| | | <!-- <tr> |
| | | <td style="width: 100px;"> |
| | | <div style="color:#696969;font-size:16px;"><span style="color: red;">* </span>åå</div> |
| | | </td> |
| | | <td style="width:300px;"> |
| | | <td style="width:320px;"> |
| | | <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 class="inputFont" variant="label-hidden" label="åå" placeholder="è¯·éæ©åå" value={contractName} onchange={changeCon} onclick={showSearchCon}></lightning-input> |
| | |
| | | </div> |
| | | </template> |
| | | </td> |
| | | <!-- <td style="width: 30px;"></td> |
| | | <td style="width: 66px;"></td> |
| | | <td style="width:150px;"></td> --> |
| | | <td style="width: 30px;"></td> |
| | | <td style="width: 66px;"></td> |
| | | <td style="width:140px;"></td> |
| | | <td style="width: 30px;"></td> |
| | | <td></td> |
| | | </tr> |
| | | <tr style="height: 10px;"></tr> |
| | | <!-- <tr> |
| | | <td><div style="color:#696969;font-size:14px;"><span style="color: red;">* </span>åå</div></td> |
| | | <td style="padding-bottom:5px;padding-top:5px;"> |
| | | <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 variant="label-hidden" label="åå" placeholder="è¯·éæ©åå" value={contractName} onchange={changeCon} onclick={showSearchCon}></lightning-input> |
| | | </div> |
| | | <td colspan="4"> |
| | | <button class="slds-button slds-button_neutral slds-button_stretch lexsearchStyle" style="width:130px;height:32px;margin-right: 10px;" label="æ¶èåæç´¢" onclick={searchProduct}>æ¶èåæç´¢</button> |
| | | <button class="slds-button slds-button_neutral slds-button_stretch lexclearStyle" style="width:80px;height:32px;" label="æ¸
空" onclick={clear}>æ¸
空</button> |
| | | </td> |
| | | <td></td> |
| | | <td></td> |
| | | <td></td> |
| | | <td></td> |
| | | <td></td> |
| | | <td></td> |
| | | <td></td> |
| | | <td></td> |
| | | <td></td> |
| | | <td></td> |
| | | <td></td> |
| | | </tr> --> |
| | | <!-- <tr style="height: 10px;"></tr> --> |
| | | <tr> |
| | | <td> |
| | | <div style="color:#696969;font-size:16px;">æ¶èååç§°</div> |
| | |
| | | <td> |
| | | <div style="color:#696969;font-size:16px;">第3åç±»</div> |
| | | </td> |
| | | <td style="width:140px;"> |
| | | <td> |
| | | <lightning-combobox class="inputFont" variant="label-hidden" label="第3åç±»" value={category3} options={category3Option} onchange={category3Change}></lightning-combobox> |
| | | </td> |
| | | <td style="width:30px;"></td> |
| | | <td style="width:66px;"> |
| | | <div style="color:#696969;font-size:16px;">第4åç±»</div> |
| | | </td> |
| | | <td style="width:140px;"> |
| | | <td > |
| | | <lightning-combobox class="inputFont" variant="label-hidden" label="第4åç±»" value={category4} options={category4Option} onchange={category4Change}></lightning-combobox> |
| | | </td> |
| | | <td></td> |
| | | <td> |
| | | <td style="width: 66px;"> |
| | | <div style="color:#696969;font-size:16px;">第5åç±»</div> |
| | | </td> |
| | | <td> |
| | | <td style="width: 160px;"> |
| | | <lightning-combobox class="inputFont" variant="label-hidden" label="第5åç±»" value={category5} options={category5Option} onchange={category5Change}></lightning-combobox> |
| | | </td> |
| | | <td></td> |
| | | <td> |
| | | <!-- <lightning-button style="margin-right: 10px;margin-left: 15px;" label="æ¶èåæç´¢" onclick={searchProduct}></lightning-button> |
| | | <lightning-button label="æ¸
空" onclick={clear}></lightning-button> --> |
| | | </tr> |
| | | <tr style="height: 10px;"></tr> |
| | | <tr> |
| | | <td style="width: 100px;"> |
| | | <div style="color:#696969;font-size:16px;"><span style="color: red;">* </span>åå</div> |
| | | </td> |
| | | <td style="width:320px;"> |
| | | <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 class="inputFont" variant="label-hidden" label="åå" placeholder="è¯·éæ©åå" value={contractName} onchange={changeCon} onclick={showSearchCon}></lightning-input> |
| | | </div> |
| | | </td> |
| | | <td style="width: 30px;"></td> |
| | | <td style="width:66px;"> |
| | | <template if:true={showHospital}> |
| | | <div style="color:#696969;font-size:16px;"><span style="color: red;">* </span>å»é¢</div> |
| | | </template> |
| | | </td> |
| | | <td colspan="4" style="padding-bottom:5px;padding-top:5px;"> |
| | | <template if:true={showHospital}> |
| | | <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 class="inputFont" variant="label-hidden" label="å»é¢" placeholder="è¯·éæ©å»é¢" value={hospitalName} onclick={showSearchHos} onchange={changeHos}></lightning-input> |
| | | </div> |
| | | </template> |
| | | </td> |
| | | <td style="width: 30px;"></td> |
| | | <td colspan="2"> |
| | | <button class="slds-button slds-button_neutral slds-button_stretch lexsearchStyle" style="width:130px;height:32px;margin-right: 10px;" label="æ¶èåæç´¢" onclick={searchProduct}>æ¶èåæç´¢</button> |
| | | <button class="slds-button slds-button_neutral slds-button_stretch lexclearStyle" style="width:80px;height:32px;" label="æ¸
空" onclick={clear}>æ¸
空</button> |
| | | </td> |
| | |
| | | </div> |
| | | <div style="padding:10px;"> |
| | | <template if:true={editAble}> |
| | | <c-lex-custom-lightning-datatable class="wrapped-header-datatable" key-field="recordId" data={currentRecord} columns={cols} |
| | | <c-lex-custom-lightning-datatable class="wrapped-header-datatable" style="word-wrap:break-word; word-break:break-all;" 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} |
| | |
| | | record-end={recordEnd} total-records={totalRecords}></c-paginator> |
| | | </template> |
| | | <template if:false={editAble}> |
| | | <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-lex-custom-lightning-datatable class="wrapped-header-datatable" style="word-wrap:break-word; word-break:break-all;" 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} |
| | |
| | | import { LightningElement, wire, api, track } from "lwc"; |
| | | import { CurrentPageReference } from "lightning/navigation"; |
| | | import { ShowToastEvent } from "lightning/platformShowToastEvent"; |
| | | import { NavigationMixin } from "lightning/navigation"; |
| | | import initPage from "@salesforce/apex/LexConsumableController.init"; |
| | | import categoryAllload from "@salesforce/apex/LexConsumableController.categoryAllload"; |
| | | import categoryload from "@salesforce/apex/LexConsumableController.categoryload"; |
| | | import searchConsumableorderdetails from "@salesforce/apex/LexConsumableController.searchConsumableorderdetails"; |
| | | import searchorderdetails from "@salesforce/apex/LexConsumableController.searchorderdetails"; |
| | | import save from "@salesforce/apex/LexConsumableController.save"; |
| | | import ordrCopy from "@salesforce/apex/LexConsumableController.ordrCopy"; |
| | | import setEditAble from "@salesforce/apex/LexConsumableController.setEditAble"; |
| | | import backOrder from "@salesforce/apex/LexConsumableController.backOrder"; |
| | | import delConsumable from "@salesforce/apex/LexConsumableController.delConsumable"; |
| | | import sorder from "@salesforce/apex/LexConsumableController.sorder"; |
| | | import filesUpload from "@salesforce/apex/LexConsumableController.filesUpload"; |
| | | import initHospital from "@salesforce/apex/LexSearchHospitalController.init"; |
| | | import searchHospital from "@salesforce/apex/LexSearchHospitalController.searchHospital"; |
| | | import initContract from "@salesforce/apex/LexSearchContractController.init"; |
| | | import searchContract from "@salesforce/apex/LexSearchContractController.searchContract"; |
| | | import deleteAtt from "@salesforce/apex/LexConsumableController.deleteAtt"; |
| | | import { LightningElement,wire,api,track } from 'lwc'; |
| | | import { CurrentPageReference } from 'lightning/navigation'; |
| | | import { ShowToastEvent } from 'lightning/platformShowToastEvent'; |
| | | import { NavigationMixin } from 'lightning/navigation'; |
| | | import initPage from '@salesforce/apex/LexConsumableController.init'; |
| | | import categoryAllload from '@salesforce/apex/LexConsumableController.categoryAllload'; |
| | | import categoryload from '@salesforce/apex/LexConsumableController.categoryload'; |
| | | import searchConsumableorderdetails from '@salesforce/apex/LexConsumableController.searchConsumableorderdetails'; |
| | | import searchorderdetails from '@salesforce/apex/LexConsumableController.searchorderdetails'; |
| | | import save from '@salesforce/apex/LexConsumableController.save'; |
| | | import ordrCopy from '@salesforce/apex/LexConsumableController.ordrCopy'; |
| | | import setEditAble from '@salesforce/apex/LexConsumableController.setEditAble'; |
| | | import backOrder from '@salesforce/apex/LexConsumableController.backOrder'; |
| | | import delConsumable from '@salesforce/apex/LexConsumableController.delConsumable'; |
| | | import sorder from '@salesforce/apex/LexConsumableController.sorder'; |
| | | import filesUpload from '@salesforce/apex/LexConsumableController.filesUpload'; |
| | | import initHospital from '@salesforce/apex/LexSearchHospitalController.init'; |
| | | import searchHospital from '@salesforce/apex/LexSearchHospitalController.searchHospital'; |
| | | import initContract from '@salesforce/apex/LexSearchContractController.init'; |
| | | import searchContract from '@salesforce/apex/LexSearchContractController.searchContract'; |
| | | import deleteAtt from '@salesforce/apex/LexConsumableController.deleteAtt'; |
| | | //table css |
| | | import { loadStyle } from "lightning/platformResourceLoader"; |
| | | import WrappedHeaderTable from "@salesforce/resourceUrl/lexdatatable"; |
| | | |
| | | export default class LexConsumable extends NavigationMixin(LightningElement) { |
| | | |
| | | //页é¢åºç¡æ°æ® |
| | | @track editAble; |
| | | @track pageType; |
| | |
| | | @track specialCampaign = false; |
| | | @track dealerProductId = []; |
| | | @track category1; |
| | | @track category3 = ""; |
| | | @track category4 = ""; |
| | | @track category5 = ""; |
| | | @track category3 = ''; |
| | | @track category4 = ''; |
| | | @track category5 = ''; |
| | | @track category_Goods; |
| | | @track category3Option = []; |
| | | @track category4Option = []; |
| | |
| | | //æ¯å¦ä¸ç´æ¾ç¤ºæç¤º |
| | | @track isNoteStay = true; |
| | | //æåºç¸å
³ |
| | | @track sortDirection = "asc"; |
| | | @track sortDirection = 'asc'; |
| | | @track sortedBy; |
| | | //å页 |
| | | @track currentPage = 1; |
| | |
| | | @track tempidHp; |
| | | @track hosCols = [ |
| | | // {label:'å»é¢åç§°',fieldName:'Name',type:'button',typeAttributes:{label:{fieldName:'Name'},variant:'base'}}, |
| | | { |
| | | label: "", |
| | | type: "button", |
| | | typeAttributes: { label: "éæ©" }, |
| | | initialWidth: 90, |
| | | hideDefaultActions: true, |
| | | wrapText: true |
| | | }, |
| | | { |
| | | label: "å»é¢åç§°", |
| | | fieldName: "Name", |
| | | initialWidth: 380, |
| | | wrapText: true, |
| | | hideDefaultActions: true |
| | | }, |
| | | { |
| | | label: "ç份", |
| | | fieldName: "StateMaster", |
| | | initialWidth: 80, |
| | | hideDefaultActions: true, |
| | | wrapText: true |
| | | }, |
| | | { |
| | | label: "å°å", |
| | | fieldName: "Address__c", |
| | | hideDefaultActions: true, |
| | | wrapText: true |
| | | } |
| | | {label:'',type:'button',typeAttributes:{label:'éæ©'},initialWidth:90,hideDefaultActions: true,wrapText:true}, |
| | | {label:'å»é¢åç§°',fieldName:'Name',initialWidth:380,wrapText:true,hideDefaultActions: true}, |
| | | {label:'ç份',fieldName:'StateMaster',initialWidth:80,hideDefaultActions: true,wrapText:true}, |
| | | {label:'å°å',fieldName:'Address__c',hideDefaultActions: true,wrapText:true} |
| | | ]; |
| | | //ååæç´¢ |
| | | @track contractLabel; |
| | |
| | | @track contractName; |
| | | @track tempidPp; |
| | | @track conCols = [ |
| | | { |
| | | label: "", |
| | | type: "button", |
| | | typeAttributes: { label: "éæ©" }, |
| | | initialWidth: 90, |
| | | hideDefaultActions: true, |
| | | wrapText: true |
| | | }, |
| | | { |
| | | label: "åååç§°", |
| | | fieldName: "Name", |
| | | wrapText: true, |
| | | hideDefaultActions: true |
| | | }, |
| | | { |
| | | label: "ç份", |
| | | fieldName: "StateMaster", |
| | | initialWidth: 80, |
| | | hideDefaultActions: true, |
| | | wrapText: true |
| | | }, |
| | | { |
| | | label: "ç³è¯·éå®è¯¾", |
| | | fieldName: "Sales_Section__c", |
| | | initialWidth: 160, |
| | | hideDefaultActions: true, |
| | | wrapText: true |
| | | }, |
| | | { |
| | | label: "å
许æ¥ä»·æé´(å¼å§æ¥)", |
| | | fieldName: "Contract_Decide_Start_Date__c", |
| | | initialWidth: 175, |
| | | hideDefaultActions: true, |
| | | wrapText: true |
| | | }, |
| | | { |
| | | label: "å
许æ¥ä»·æé´(ç»ææ¥)", |
| | | fieldName: "Contract_Decide_End_Date__c", |
| | | initialWidth: 175, |
| | | hideDefaultActions: true, |
| | | wrapText: true |
| | | } |
| | | {label:'',type:'button',typeAttributes:{label:'éæ©'},initialWidth:90,hideDefaultActions: true,wrapText:true}, |
| | | {label:'åååç§°',fieldName:'Name',wrapText:true,hideDefaultActions: true}, |
| | | {label:'ç份',fieldName:'StateMaster',initialWidth:80,hideDefaultActions: true,wrapText:true}, |
| | | {label:'ç³è¯·éå®è¯¾',fieldName:'Sales_Section__c',initialWidth:160,hideDefaultActions: true,wrapText:true}, |
| | | {label:'å
许æ¥ä»·æé´(å¼å§æ¥)',fieldName:'Contract_Decide_Start_Date__c',initialWidth:175,hideDefaultActions: true,wrapText:true}, |
| | | {label:'å
许æ¥ä»·æé´(ç»ææ¥)',fieldName:'Contract_Decide_End_Date__c',initialWidth:175,hideDefaultActions: true,wrapText:true} |
| | | ]; |
| | | |
| | | //æ¶èåæ°æ®col |
| | | get cols() { |
| | | var cols = []; |
| | | cols.push({ |
| | | label: "æ¶èååç§°", |
| | | fieldName: "prodName", |
| | | wrapText: true, |
| | | hideDefaultActions: true, |
| | | sortable: true |
| | | }); |
| | | cols.push({ |
| | | label: "è§æ ¼", |
| | | fieldName: "packing_list", |
| | | wrapText: true, |
| | | hideDefaultActions: true, |
| | | initialWidth: 50, |
| | | cellAttributes: { alignment: "right" } |
| | | }); |
| | | cols.push({ |
| | | label: "CFDAç¶æ", |
| | | fieldName: "prodSFDAStatus", |
| | | wrapText: true, |
| | | hideDefaultActions: true, |
| | | initialWidth: 97 |
| | | }); |
| | | cols.push({ |
| | | label: "注åè¯ç¼ç å·", |
| | | fieldName: "approbation_No", |
| | | wrapText: true, |
| | | hideDefaultActions: true, |
| | | initialWidth: 120 |
| | | }); |
| | | cols.push({ |
| | | label: "注åè¯ææ", |
| | | fieldName: "expiration_Date", |
| | | wrapText: true, |
| | | hideDefaultActions: true, |
| | | initialWidth: 105 |
| | | }); |
| | | cols.push({ |
| | | label: "第3åç±»", |
| | | fieldName: "prodCategory3", |
| | | wrapText: true, |
| | | hideDefaultActions: true, |
| | | initialWidth: 78, |
| | | sortable: true |
| | | }); |
| | | cols.push({ |
| | | label: "第4åç±»", |
| | | fieldName: "prodCategory4", |
| | | wrapText: true, |
| | | hideDefaultActions: true, |
| | | initialWidth: 107, |
| | | sortable: true |
| | | }); |
| | | cols.push({ |
| | | label: "第5åç±»", |
| | | fieldName: "prodCategory5", |
| | | wrapText: true, |
| | | hideDefaultActions: true, |
| | | initialWidth: 80, |
| | | sortable: true |
| | | }); |
| | | cols.push({label:'æ¶èååç§°',fieldName:'prodName',wrapText:true,hideDefaultActions: true,sortable: true,initialWidth:150}); |
| | | cols.push({label:'è§æ ¼',fieldName:'packing_list',wrapText:true,hideDefaultActions: true,initialWidth:50,cellAttributes: { alignment: "right" }}); |
| | | cols.push({label:'CFDAç¶æ',fieldName:'prodSFDAStatus',wrapText:true,hideDefaultActions: true,initialWidth:97}); |
| | | cols.push({label:'注åè¯ç¼ç å·',fieldName:'approbation_No',wrapText:true,hideDefaultActions: true,initialWidth:120}); |
| | | cols.push({label:'注åè¯ææ',fieldName:'expiration_Date',wrapText:true,hideDefaultActions: true,initialWidth:105}); |
| | | cols.push({label:'第3åç±»',fieldName:'prodCategory3',wrapText:true,hideDefaultActions: true,initialWidth:78,sortable: true}); |
| | | cols.push({label:'第4åç±»',fieldName:'prodCategory4',wrapText:true,hideDefaultActions: true,initialWidth:107,sortable: true}); |
| | | cols.push({label:'第5åç±»',fieldName:'prodCategory5',wrapText:true,hideDefaultActions: true,initialWidth:80,sortable: true}); |
| | | if (this.cansee) { |
| | | cols.push({ |
| | | label: "æ ååä»·", |
| | | type: "number", |
| | | typeAttributes: { minimumFractionDigits: 2 }, |
| | | fieldName: "prodIntraTradeList", |
| | | hideDefaultActions: true, |
| | | initialWidth: 80 |
| | | }); |
| | | cols.push({label:'æ ååä»·',type:'number',typeAttributes:{minimumFractionDigits: 2},fieldName:'prodIntraTradeList',hideDefaultActions: true,initialWidth:80}); |
| | | } |
| | | if (this.editAble) { |
| | | cols.push({ |
| | | label: "éè´æ°é", |
| | | type: "customTableInput", |
| | | typeAttributes: { |
| | | cols.push( |
| | | {label:'éè´æ°é', |
| | | type: "customTableInput",typeAttributes: { |
| | | recordId: { fieldName: "recordId" }, |
| | | inputValue: { fieldName: "consumableCount" }, |
| | | upperLimit: { fieldName: "upperlimit" }, |
| | | lowerLimit: { fieldName: "lowerlimit" }, |
| | | allnumber: { fieldName: "allnumber" }, |
| | | valueType: "Number" |
| | | valueType: 'Number' |
| | | }, |
| | | hideDefaultActions: true, |
| | | initialWidth: 80 |
| | | }); |
| | | hideDefaultActions: true,initialWidth:80}); |
| | | } else { |
| | | cols.push({ |
| | | label: "éè´æ°é", |
| | | fieldName: "consumableCount", |
| | | hideDefaultActions: true, |
| | | initialWidth: 80, |
| | | cellAttributes: { alignment: "right" } |
| | | }); |
| | | cols.push({label:'éè´æ°é',fieldName:'consumableCount',hideDefaultActions: true,initialWidth:80,cellAttributes: { alignment: "right" }}); |
| | | } |
| | | cols.push({ |
| | | label: "å¨åºæ°ä¸é", |
| | | fieldName: "lowerlimit", |
| | | hideDefaultActions: true, |
| | | initialWidth: 100, |
| | | cellAttributes: { alignment: "right" } |
| | | }); |
| | | cols.push({ |
| | | label: "å¨åºæ°ä¸é", |
| | | fieldName: "upperlimit", |
| | | hideDefaultActions: true, |
| | | initialWidth: 100, |
| | | cellAttributes: { alignment: "right" } |
| | | }); |
| | | cols.push({label:'å¨åºæ°ä¸é',fieldName:'lowerlimit',hideDefaultActions: true,initialWidth:100,cellAttributes: { alignment: "right" }}); |
| | | cols.push({label:'å¨åºæ°ä¸é',fieldName:'upperlimit',hideDefaultActions: true,initialWidth:100,cellAttributes: { alignment: "right" }}); |
| | | // cols.push({label:'æææåºå(ç)',fieldName:'allnumber',hideDefaultActions: true,initialWidth:105,sortable: true}); |
| | | cols.push({ |
| | | label: "æææåºå(ç)", |
| | | cols.push( |
| | | {label:'æææåºå(ç)', |
| | | type: "customInventoryColor", |
| | | typeAttributes: { |
| | | value: { fieldName: "allnumber" }, |
| | | upperlimit: { fieldName: "upperlimit" }, |
| | | lowerlimit: { fieldName: "lowerlimit" }, |
| | | boxPrice: "ç" |
| | | boxPrice: 'ç' |
| | | }, |
| | | hideDefaultActions: true, |
| | | initialWidth: 126 |
| | | }); |
| | | cols.push({ |
| | | label: "æææåºå(个)", |
| | | fieldName: "allnumber_piece", |
| | | hideDefaultActions: true, |
| | | initialWidth: 126, |
| | | cellAttributes: { alignment: "right" } |
| | | }); |
| | | hideDefaultActions: true,initialWidth:126}); |
| | | cols.push({label:'æææåºå(个)',fieldName:'allnumber_piece',hideDefaultActions: true,initialWidth:126,cellAttributes: { alignment: "right" }}); |
| | | return cols; |
| | | } |
| | | |
| | | //éä»¶cols |
| | | @track attCols = [ |
| | | { |
| | | label: "æ é¢", |
| | | fieldName: "attUrl", |
| | | type: "url", |
| | | typeAttributes: { label: { fieldName: "fileName" }, target: "_blank" }, |
| | | hideDefaultActions: true |
| | | }, |
| | | { |
| | | label: "å建人", |
| | | fieldName: "ownerUrl", |
| | | type: "url", |
| | | typeAttributes: { label: { fieldName: "ownerName" }, target: "_blank" }, |
| | | hideDefaultActions: true |
| | | }, |
| | | { label: "ä¸ä¼ æ¥æ", fieldName: "updateDate", hideDefaultActions: true }, |
| | | { |
| | | label: "", |
| | | type: "tableCellIcon", |
| | | typeAttributes: { |
| | | iconName: "utility:delete", |
| | | recordId: { fieldName: "recordId" } |
| | | }, |
| | | initialWidth: 50, |
| | | hideDefaultActions: true |
| | | } |
| | | {label:'æ é¢',fieldName:'attUrl',type:'url',typeAttributes:{label:{fieldName:'fileName'},target: "_blank"},hideDefaultActions: true}, |
| | | {label:'å建人',fieldName:'ownerUrl',type:'url',typeAttributes:{label:{fieldName:'ownerName'},target: "_blank"},hideDefaultActions: true}, |
| | | {label:'ä¸ä¼ æ¥æ',fieldName:'updateDate',hideDefaultActions: true}, |
| | | {label:'',type:'tableCellIcon',typeAttributes:{iconName:'utility:delete',recordId:{fieldName : 'recordId'}},initialWidth:50,hideDefaultActions: true} |
| | | ]; |
| | | |
| | | //å徿æè¢«å¾éç产åid |
| | |
| | | for (var i in this.consumableorderdetailsRecordsview) { |
| | | var count = 0; |
| | | for (var j in selectedRows) { |
| | | if ( |
| | | this.consumableorderdetailsRecordsview[i].recordId == |
| | | selectedRows[j].recordId |
| | | ) { |
| | | count++; |
| | | console.log( |
| | | "checkId:" + |
| | | selectedRows[j].recordId + |
| | | "---" + |
| | | this.consumableorderdetailsRecordsview[i].prodName |
| | | ); |
| | | if(this.consumableorderdetailsRecordsview[i].recordId == selectedRows[j].recordId){ |
| | | count++ |
| | | console.log("checkId:"+selectedRows[j].recordId+'---'+this.consumableorderdetailsRecordsview[i].prodName); |
| | | } |
| | | } |
| | | if (count == 0) { |
| | | this.consumableorderdetailsRecordsview[i].check = false; |
| | | } else { |
| | | this.consumableorderdetailsRecordsview[i].check = true; |
| | | this.selectRows.push( |
| | | this.consumableorderdetailsRecordsview[i].recordId |
| | | ); |
| | | this.selectRows.push(this.consumableorderdetailsRecordsview[i].recordId); |
| | | } |
| | | } |
| | | for (var i in this.selectRows) { |
| | |
| | | conCountChange(event) { |
| | | var recordId = event.detail.data.recordId; |
| | | var conCount = event.detail.data.value; |
| | | console.log("countChange:" + recordId + "---" + conCount); |
| | | console.log('countChange:'+recordId+'---'+conCount); |
| | | for (var i in this.consumableorderdetailsRecordsview) { |
| | | if (this.consumableorderdetailsRecordsview[i].recordId == recordId) { |
| | | this.consumableorderdetailsRecordsview[i].esd.Consumable_count__c = |
| | | conCount; |
| | | this.consumableorderdetailsRecordsview[i].esd.Consumable_count__c = conCount; |
| | | this.consumableorderdetailsRecordsview[i].consumableCount = conCount; |
| | | if (conCount != null && conCount != 0 && conCount != "") { |
| | | if(conCount != null && conCount !=0 && conCount!=''){ |
| | | this.consumableorderdetailsRecordsview[i].check = true; |
| | | } else { |
| | | this.consumableorderdetailsRecordsview[i].check = false; |
| | | this.consumableorderdetailsRecordsview[i].esd.Consumable_count__c = |
| | | null; |
| | | this.consumableorderdetailsRecordsview[i].esd.Consumable_count__c = null; |
| | | this.consumableorderdetailsRecordsview[i].consumableCount = null; |
| | | } |
| | | } |
| | |
| | | this.getAllChecked(); |
| | | for (var i in this.currentRecord) { |
| | | if (this.currentRecord[i].recordId == recordId) { |
| | | console.log( |
| | | "currentRecord1:" + this.currentRecord[i].esd.Consumable_count__c |
| | | ); |
| | | console.log("currentRecord1:"+this.currentRecord[i].esd.Consumable_count__c); |
| | | } |
| | | } |
| | | } |
| | |
| | | var allnumber = event.detail.data.allnumber; |
| | | var upperLimit = event.detail.data.upperLimit; |
| | | var lowerLimit = event.detail.data.lowerLimit; |
| | | console.log( |
| | | "limit:" + |
| | | conCount + |
| | | "---" + |
| | | allnumber + |
| | | "---" + |
| | | lowerLimit + |
| | | "---" + |
| | | allnumber |
| | | ); |
| | | if ( |
| | | upperLimit != null && |
| | | lowerLimit != null && |
| | | conCount != null && |
| | | allnumber != null |
| | | ) { |
| | | console.log('limit:'+conCount+'---'+ allnumber+'---'+lowerLimit+'---'+allnumber); |
| | | if(upperLimit != null && lowerLimit != null && conCount != null && allnumber != null){ |
| | | if (parseInt(allnumber) + parseInt(conCount) > upperLimit) { |
| | | // window.alert("该产åè®¢è´æ°éè¶
åºåºåä¸éï¼"); |
| | | this.showMyToast("该产åè®¢è´æ°éè¶
åºåºåä¸éï¼", "", "error"); |
| | | this.showMyToast('该产åè®¢è´æ°éè¶
åºåºåä¸éï¼','','error'); |
| | | } |
| | | if (parseInt(allnumber) + parseInt(conCount) < lowerLimit) { |
| | | // window.alert("该产åè®¢è´æ°éä½äºåºåä¸éï¼"); |
| | | this.showMyToast("该产åè®¢è´æ°éä½äºåºåä¸éï¼", "", "error"); |
| | | this.showMyToast('该产åè®¢è´æ°éä½äºåºåä¸éï¼','','error'); |
| | | } |
| | | } |
| | | } |
| | | |
| | | @wire(CurrentPageReference) |
| | | getStateParameters(currentPageReference) { |
| | | console.log("CurrentPageReference"); |
| | | console.log('CurrentPageReference'); |
| | | if (currentPageReference) { |
| | | this.pageType = currentPageReference.state?.type; |
| | | this.esetId = currentPageReference.state?.ESetid; |
| | | this.keyWords = currentPageReference.state?.KeyWords; |
| | | console.log("type:" + this.pageType); |
| | | console.log("esetId:" + this.esetId); |
| | | console.log("keyWords:" + this.keyWords); |
| | | console.log('type:'+this.pageType); |
| | | console.log('esetId:'+this.esetId); |
| | | console.log('keyWords:'+this.keyWords); |
| | | } |
| | | } |
| | | |
| | |
| | | //页é¢åå§å |
| | | connectedCallback() { |
| | | this.showSpinner = true; |
| | | initPage({ |
| | | type: this.pageType, |
| | | esetId: this.esetId, |
| | | keywordStr: this.keyWords |
| | | }) |
| | | .then((result) => { |
| | | initPage({type:this.pageType, esetId:this.esetId, keywordStr:this.keyWords}) |
| | | .then(result=>{ |
| | | this.isNoteStay = result.isNoteStay; |
| | | if (result.result == "Success") { |
| | | if(result.result == 'Success'){ |
| | | this.editAble = result.editAble; |
| | | this.edoffersPrice = result.edoffersPrice; |
| | | this.cansee = result.cansee; |
| | |
| | | this.OSHFLG = result.OSHFLG; |
| | | this.hospitalName = result.hospitalName; |
| | | this.contractName = result.contractName; |
| | | this.contractLabel = "ç»éåææåå"; |
| | | this.consumableorderdetailsRecordsview = |
| | | result.consumableorderdetailsRecordsview; |
| | | this.contractLabel = 'ç»éåææåå'; |
| | | this.consumableorderdetailsRecordsview = result.consumableorderdetailsRecordsview; |
| | | this.currentPage = 1; |
| | | this.showCurrentReocrd(); |
| | | this.getAllChecked(); |
| | | this.attachmentRecoeds = result.attachmentRecoeds; |
| | | console.log("attSize:" + this.attachmentRecoeds.length); |
| | | for (var i in this.attachmentRecoeds) { |
| | | this.attachmentRecoeds[i]["recordId"] = |
| | | this.attachmentRecoeds[i].Concc.Id; |
| | | this.attachmentRecoeds[i]["documentId"] = |
| | | this.attachmentRecoeds[i].Concc.ContentDocumentId; |
| | | this.attachmentRecoeds[i]["fileFullName"] = |
| | | this.attachmentRecoeds[i].Concc.Title; |
| | | this.attachmentRecoeds[i]['recordId'] = this.attachmentRecoeds[i].Concc.Id; |
| | | this.attachmentRecoeds[i]['documentId'] = this.attachmentRecoeds[i].Concc.ContentDocumentId; |
| | | this.attachmentRecoeds[i]['fileFullName'] = this.attachmentRecoeds[i].Concc.Title; |
| | | var contractionName = this.attachmentRecoeds[i].Concc.Title; |
| | | // var contractionName = 'é¿æä»¶é¿æä»¶é¿æä»¶é¿æä»¶'; |
| | | if (contractionName.length > 25) { |
| | | contractionName = contractionName.substr(0, 21) + "..."; |
| | | } |
| | | this.attachmentRecoeds[i]["fileName"] = contractionName; |
| | | this.attachmentRecoeds[i]["ownerName"] = |
| | | this.attachmentRecoeds[i].Concc.Owner.Name; |
| | | this.attachmentRecoeds[i]["downloadUrl"] = |
| | | "/sfc/servlet.shepherd/document/download/" + |
| | | this.attachmentRecoeds[i].Concc.ContentDocumentId + |
| | | "?operationContext=S1"; |
| | | this.attachmentRecoeds[i]['fileName'] = contractionName; |
| | | this.attachmentRecoeds[i]['ownerName'] = this.attachmentRecoeds[i].Concc.Owner.Name; |
| | | this.attachmentRecoeds[i]['downloadUrl'] = '/sfc/servlet.shepherd/document/download/'+this.attachmentRecoeds[i].Concc.ContentDocumentId+'?operationContext=S1'; |
| | | // var date = this.attachmentRecoeds[i].Concc.CreatedDate; |
| | | // var year = date.getFullYear(); |
| | | // var month = date.getMonth(); |
| | | // var day = date.getDay(); |
| | | // console.log(year+'-'+month+'-'+day); |
| | | this.attachmentRecoeds[i]["updateDate"] = new Date( |
| | | Date.parse(this.attachmentRecoeds[i].Concc.CreatedDate) |
| | | ).toLocaleString(); |
| | | this.attachmentRecoeds[i]["attUrl"] = |
| | | "/" + this.attachmentRecoeds[i].Concc.Id; |
| | | this.attachmentRecoeds[i]["ownerUrl"] = |
| | | "/" + this.attachmentRecoeds[i].Concc.OwnerId; |
| | | this.attachmentRecoeds[i]['updateDate'] = new Date(Date.parse(this.attachmentRecoeds[i].Concc.CreatedDate)).toLocaleString(); |
| | | this.attachmentRecoeds[i]['attUrl'] = '/'+this.attachmentRecoeds[i].Concc.Id; |
| | | this.attachmentRecoeds[i]['ownerUrl'] = '/'+this.attachmentRecoeds[i].Concc.OwnerId; |
| | | } |
| | | this.errorMsgs = result.errorMsgList; |
| | | this.warningMsgs = result.warningMsgList; |
| | |
| | | this.contactDealer = result.contactDealer; |
| | | this.pageType = result.methodType; |
| | | this.proLimitAndDate = result.proLimitAndDate; |
| | | console.log( |
| | | "proLimitAndDate:" + JSON.stringify(this.proLimitAndDate) |
| | | ); |
| | | console.log("proLimitAndDate:"+JSON.stringify(this.proLimitAndDate)); |
| | | this.coc = result.coc; |
| | | this.cocId = this.coc.Id; |
| | | if (this.pageType == "hospitalorder" && this.agencyProType != "ET") { |
| | | if(this.pageType == 'hospitalorder' && this.agencyProType != 'ET'){ |
| | | this.showHospital = true; |
| | | } |
| | | if ( |
| | | this.coc.Order_status__c == "å·²æäº¤" || |
| | | this.coc.Order_status__c == "æ¹å" |
| | | ) { |
| | | if(this.coc.Order_status__c == "å·²æäº¤" || this.coc.Order_status__c == "æ¹å"){ |
| | | this.showOrderDate = true; |
| | | } |
| | | if (this.coc.Consumable_pdf_insert_day__c != null) { |
| | |
| | | this.showEditBtn = true; |
| | | this.showOfferPriceInputBtn = true; |
| | | } |
| | | if ( |
| | | this.coc.Order_status__c == "å·²æäº¤" || |
| | | this.coc.Order_status__c == "æ¹å" || |
| | | this.coc.Order_status__c == "驳å" |
| | | ) { |
| | | if(this.coc.Order_status__c == "å·²æäº¤" || this.coc.Order_status__c == "æ¹å" || this.coc.Order_status__c == "驳å"){ |
| | | this.disabledEditBtn = true; |
| | | this.disabledUploadSheetBtn = true; |
| | | this.disabledSubOrderbtn = true; |
| | | this.disabledDeleteBtn = true; |
| | | this.disabledOfferPriceInputBtn = true; |
| | | } |
| | | if ( |
| | | !( |
| | | this.editDelCommitBtnDisabled || |
| | | this.editAble || |
| | | this.edoffersPrice |
| | | ) |
| | | ) { |
| | | if(!(this.editDelCommitBtnDisabled || this.editAble || this.edoffersPrice)){ |
| | | this.showPrintSheetBtn = true; |
| | | this.showUploadSheetBtn = true; |
| | | this.showSubOrderbtn = true; |
| | | this.showDeleteBtn = true; |
| | | } |
| | | if ( |
| | | (this.editDelCommitBtnDisabled || |
| | | this.editAble || |
| | | this.edoffersPrice) && |
| | | this.coc.Order_status__c != "驳å" |
| | | ) { |
| | | if((this.editDelCommitBtnDisabled || this.editAble || this.edoffersPrice) && this.coc.Order_status__c != "驳å"){ |
| | | this.showSaveOrderbtn1 = true; |
| | | } |
| | | if (this.coc.Order_status__c == "驳å" && this.editAble) { |
| | |
| | | } else { |
| | | this.showSpinner = false; |
| | | console.log("Error:" + result.errorMsg); |
| | | this.showMyToast("åå§å页é¢å¤±è´¥", result.errorMsg, "error"); |
| | | this.showMyToast('åå§å页é¢å¤±è´¥',result.errorMsg,'error'); |
| | | } |
| | | }) |
| | | .catch((error) => { |
| | | .catch(error=>{ |
| | | this.showSpinner = false; |
| | | console.log("error:" + error); |
| | | this.showMyToast("åå§å页é¢å¤±è´¥", error, "error"); |
| | | }); |
| | | this.showMyToast('åå§å页é¢å¤±è´¥',error,'error'); |
| | | }) |
| | | } |
| | | |
| | | //æåº |
| | | onHandleSort(event) { |
| | | //å°å·²ç»é好äºçæ¾å°åé¢ï¼ä¸è¿è¡æåº |
| | | console.log("sort"); |
| | | console.log('sort'); |
| | | if (this.editAble) { |
| | | const { fieldName: sortedBy, sortDirection } = event.detail; |
| | | const cloneData = [...this.currentRecord]; |
| | | cloneData.sort(this.sortBy(sortedBy, sortDirection === "asc" ? 1 : -1)); |
| | | cloneData.sort(this.sortBy(sortedBy, sortDirection === 'asc' ? 1 : -1)); |
| | | let index = 0; |
| | | let selectedRows = this.template |
| | | .querySelector("c-lex-custom-lightning-datatable") |
| | | .getSelectedRows(); |
| | | let selectedRows = this.template.querySelector('c-lex-custom-lightning-datatable').getSelectedRows(); |
| | | let selectedRowsIds = []; |
| | | for (var i in selectedRows) { |
| | | selectedRowsIds.push(selectedRows[i].recordId); |
| | | } |
| | | console.log("selectedRowsIds = " + JSON.stringify(selectedRowsIds)); |
| | | console.log('selectedRowsIds = ' + JSON.stringify(selectedRowsIds)); |
| | | for (var i = 0; i < cloneData.length; i++) { |
| | | if (selectedRowsIds.indexOf(cloneData[i].recordId) != -1) { |
| | | if (i != 0) { |
| | |
| | | } else { |
| | | const { fieldName: sortedBy, sortDirection } = event.detail; |
| | | const cloneData = [...this.currentRecord]; |
| | | cloneData.sort(this.sortBy(sortedBy, sortDirection === "asc" ? 1 : -1)); |
| | | cloneData.sort(this.sortBy(sortedBy, sortDirection === 'asc' ? 1 : -1)); |
| | | this.currentRecord = cloneData; |
| | | this.sortDirection = sortDirection; |
| | | this.sortedBy = sortedBy; |
| | |
| | | category3Change(event) { |
| | | this.showSpinner = true; |
| | | this.category3 = event.detail.value; |
| | | this.category4 = ""; |
| | | this.category5 = ""; |
| | | categoryAllload({ |
| | | agencyProTypeStr: this.agencyProType, |
| | | category3Str: this.category3 |
| | | }).then((result) => { |
| | | if (result.result == "Success") { |
| | | this.category4 = ''; |
| | | this.category5 = ''; |
| | | categoryAllload({agencyProTypeStr:this.agencyProType, category3Str:this.category3}) |
| | | .then(result=>{ |
| | | if(result.result == 'Success'){ |
| | | this.category4Option = result.category4Option; |
| | | this.category5Option = result.category5Option; |
| | | this.showSpinner = false; |
| | | } else { |
| | | this.showSpinner = false; |
| | | console.log("Error:" + result.errorMsg); |
| | | this.showMyToast("å è½½å类失败", result.errorMsg, "error"); |
| | | this.showMyToast('å è½½å类失败',result.errorMsg,'error'); |
| | | } |
| | | }); |
| | | }) |
| | | } |
| | | |
| | | //第ååç±»changeäºä»¶ |
| | | category4Change(event) { |
| | | this.showSpinner = true; |
| | | this.category4 = event.detail.value; |
| | | this.category5 = ""; |
| | | categoryload({ |
| | | agencyProTypeStr: this.agencyProType, |
| | | category3Str: this.category3, |
| | | category4Str: this.category4 |
| | | }).then((result) => { |
| | | if (result.result == "Success") { |
| | | this.category5 = ''; |
| | | categoryload({agencyProTypeStr:this.agencyProType, category3Str:this.category3, category4Str:this.category4}) |
| | | .then(result=>{ |
| | | if(result.result == 'Success'){ |
| | | this.category4Option = result.category4Option; |
| | | this.category5Option = result.category5Option; |
| | | this.showSpinner = false; |
| | | } else { |
| | | this.showSpinner = false; |
| | | console.log("Error:" + result.errorMsg); |
| | | this.showMyToast("å è½½å类失败", result.errorMsg, "error"); |
| | | this.showMyToast('å è½½å类失败',result.errorMsg,'error'); |
| | | } |
| | | }); |
| | | }) |
| | | } |
| | | |
| | | //第äºåç±»changeäºä»¶ |
| | |
| | | //æç´¢äº§å |
| | | searchProduct(event) { |
| | | this.showSpinner = true; |
| | | searchConsumableorderdetails({ |
| | | userWorkLocationStr: this.userWorkLocation, |
| | | searchConsumableorderdetails({userWorkLocationStr:this.userWorkLocation, |
| | | agencyProTypeStr: this.agencyProType, |
| | | accountNameStr: this.accountName, |
| | | accountIdStr: this.accountid, |
| | |
| | | dealerProductIdStr: JSON.stringify(this.dealerProductId), |
| | | methodTypeStr: this.pageType, |
| | | editAbleStr: this.editAble, |
| | | consumableorderdetailsRecordsviewStr: JSON.stringify( |
| | | this.consumableorderdetailsRecordsview |
| | | ), |
| | | consumableorderdetailsRecordsviewStr:JSON.stringify(this.consumableorderdetailsRecordsview), |
| | | proLimitAndDateList: this.proLimitAndDate |
| | | }) |
| | | .then((result) => { |
| | | if (result.result == "Success") { |
| | | this.consumableorderdetailsRecordsview = |
| | | result.consumableorderdetailsRecordsview; |
| | | .then(result=>{ |
| | | if(result.result == 'Success'){ |
| | | this.consumableorderdetailsRecordsview = result.consumableorderdetailsRecordsview; |
| | | this.currentPage = 1; |
| | | this.currentRecord = []; |
| | | this.showCurrentReocrd(); |
| | |
| | | this.warningMsgs = result.warningMsgList; |
| | | // this.hasError = result.hasError; |
| | | // this.hasWarning = result.hasWarning; |
| | | this.showMyToast("æç´¢æå", result.errorMsg, "success"); |
| | | this.showMyToast('æç´¢æå',result.errorMsg,'success'); |
| | | } else { |
| | | this.showSpinner = false; |
| | | console.log("Error:" + result.errorMsg); |
| | | if (result.errorMsg == "没ææç´¢å°ç¸å
³æ°æ®") { |
| | | this.showMyToast(result.errorMsg, "", "error"); |
| | | if(result.errorMsg == '没ææç´¢å°ç¸å
³æ°æ®'){ |
| | | this.showMyToast(result.errorMsg,'','error'); |
| | | } else { |
| | | this.showMyToast("æç´¢å¤±è´¥", result.errorMsg, "error"); |
| | | this.showMyToast('æç´¢å¤±è´¥',result.errorMsg,'error'); |
| | | } |
| | | } |
| | | }) |
| | | .catch((error) => { |
| | | .catch(error=>{ |
| | | console.log("Error:" + error); |
| | | }); |
| | | }) |
| | | } |
| | | |
| | | //æ¸
é¤æç´¢æ |
| | | clear(event) { |
| | | this.category1 = ""; |
| | | this.category3 = ""; |
| | | this.category4 = ""; |
| | | this.category5 = ""; |
| | | this.category1 = ''; |
| | | this.category3 = ''; |
| | | this.category4 = ''; |
| | | this.category5 = ''; |
| | | this.showSpinner = true; |
| | | searchConsumableorderdetails({ |
| | | userWorkLocationStr: this.userWorkLocation, |
| | |
| | | dealerProductIdStr: JSON.stringify(this.dealerProductId), |
| | | methodTypeStr: this.pageType, |
| | | editAbleStr: this.editAble, |
| | | consumableorderdetailsRecordsviewStr: JSON.stringify( |
| | | this.consumableorderdetailsRecordsview |
| | | ), |
| | | consumableorderdetailsRecordsviewStr:JSON.stringify(this.consumableorderdetailsRecordsview), |
| | | proLimitAndDateList: this.proLimitAndDate |
| | | }).then((result) => { |
| | | if (result.result == "Success") { |
| | | this.consumableorderdetailsRecordsview = |
| | | result.consumableorderdetailsRecordsview; |
| | | }).then(result=>{ |
| | | if(result.result == 'Success'){ |
| | | this.consumableorderdetailsRecordsview = result.consumableorderdetailsRecordsview; |
| | | this.currentPage = 1; |
| | | this.currentRecord = []; |
| | | this.showCurrentReocrd(); |
| | | this.getAllChecked(); |
| | | this.showSpinner = false; |
| | | this.showMyToast("æç´¢æå", result.errorMsg, "success"); |
| | | this.showMyToast('æç´¢æå',result.errorMsg,'success'); |
| | | } else { |
| | | this.showSpinner = false; |
| | | console.log("Error:" + result.errorMsg); |
| | | if (result.errorMsg == "没ææç´¢å°ç¸å
³æ°æ®") { |
| | | this.showMyToast(result.errorMsg, "", "error"); |
| | | if(result.errorMsg == '没ææç´¢å°ç¸å
³æ°æ®'){ |
| | | this.showMyToast(result.errorMsg,'','error'); |
| | | } else { |
| | | this.showMyToast("æç´¢å¤±è´¥", result.errorMsg, "error"); |
| | | this.showMyToast('æç´¢å¤±è´¥',result.errorMsg,'error'); |
| | | } |
| | | } |
| | | }); |
| | | }) |
| | | } |
| | | |
| | | //éæ©ææ |
| | | checkAll(event) { |
| | | for ( |
| | | let i = 0, len = this.consumableorderdetailsRecordsview.length; |
| | | i < len; |
| | | i++ |
| | | ) { |
| | | for(let i=0, len=this.consumableorderdetailsRecordsview.length; i < len ;i++){ |
| | | this.consumableorderdetailsRecordsview[i].check = event.target.checked; |
| | | } |
| | | } |
| | |
| | | //ä¿å订å |
| | | saveOrder(event) { |
| | | this.showSpinner = true; |
| | | console.log("start save"); |
| | | console.log('start save'); |
| | | save({ |
| | | contractNameStr: this.contractName, |
| | | cocStr: JSON.stringify(this.coc), |
| | | agencyProTypeStr: this.agencyProType, |
| | | accountidStr: this.accountid, |
| | | consumableorderdetailsRecordsviewStr: JSON.stringify( |
| | | this.consumableorderdetailsRecordsview |
| | | ), |
| | | consumableorderdetailsRecordsviewStr:JSON.stringify(this.consumableorderdetailsRecordsview), |
| | | contactDealerStr: JSON.stringify(this.contactDealer), |
| | | methodTypeStr: this.pageType, |
| | | eSetIdStr: this.esetId, |
| | |
| | | contractIdStr: this.contractId, |
| | | agencyProType1Str: this.agencyProType1, |
| | | OSHFLGStr: this.OSHFLG |
| | | }).then((result) => { |
| | | }).then(result=>{ |
| | | this.showSpinner = false; |
| | | if (result.result == "Success") { |
| | | if(result.result == 'Success'){ |
| | | this.esetId = result.eSetId; |
| | | const config = { |
| | | type: "standard__webPage", |
| | | type: 'standard__webPage', |
| | | attributes: { |
| | | url: |
| | | "/lexconsumable?ESetid=" + this.esetId + "&type=" + this.pageType |
| | | url: '/lexconsumable?ESetid=' + this.esetId + '&type=' + this.pageType |
| | | } |
| | | }; |
| | | this[NavigationMixin.Navigate](config); |
| | | } else { |
| | | this.showSpinner = false; |
| | | console.log("Error:" + result.errorMsg); |
| | | this.showMyToast("ä¿å失败", result.errorMsg, "error"); |
| | | this.showMyToast('ä¿å失败',result.errorMsg,'error'); |
| | | } |
| | | }); |
| | | }) |
| | | } |
| | | |
| | | //ä¿å订åï¼é©³åï¼ |
| | |
| | | cocStr: JSON.stringify(this.coc), |
| | | agencyProTypeStr: this.agencyProType, |
| | | accountidStr: this.accountid, |
| | | consumableorderdetailsRecordsviewStr: JSON.stringify( |
| | | this.consumableorderdetailsRecordsview |
| | | ), |
| | | consumableorderdetailsRecordsviewStr:JSON.stringify(this.consumableorderdetailsRecordsview), |
| | | contactDealerStr: JSON.stringify(this.contactDealer), |
| | | methodTypeStr: this.pageType, |
| | | hospitalIdStr: this.hospitalId, |
| | | contractIdStr: this.contractId, |
| | | agencyProType1Str: this.agencyProType1, |
| | | OSHFLGStr: this.OSHFLG |
| | | }).then((result) => { |
| | | }).then(result=>{ |
| | | this.showSpinner = false; |
| | | if (result.result == "Success") { |
| | | if(result.result == 'Success'){ |
| | | this.esetId = result.eSetId; |
| | | const config = { |
| | | type: "standard__webPage", |
| | | type: 'standard__webPage', |
| | | attributes: { |
| | | url: |
| | | "/lexconsumable?ESetid=" + this.esetId + "&type=" + this.pageType |
| | | url: '/lexconsumable?ESetid=' + this.esetId + '&type=' + this.pageType |
| | | } |
| | | }; |
| | | this[NavigationMixin.Navigate](config); |
| | | } else { |
| | | this.showSpinner = false; |
| | | console.log("Error:" + result.errorMsg); |
| | | this.showMyToast("ä¿å失败", result.errorMsg, "error"); |
| | | this.showMyToast('ä¿å失败',result.errorMsg,'error'); |
| | | } |
| | | }); |
| | | }) |
| | | } |
| | | |
| | | //ç¼è¾ |
| | | editOrder(event) { |
| | | setEditAble({ eSetidStr: this.esetId }).then((result) => { |
| | | if (result.result == "Success") { |
| | | setEditAble({eSetidStr:this.esetId}) |
| | | .then(result=>{ |
| | | if(result.result == 'Success'){ |
| | | const config = { |
| | | type: "standard__webPage", |
| | | type: 'standard__webPage', |
| | | attributes: { |
| | | url: result.url |
| | | } |
| | |
| | | } else { |
| | | this.showSpinner = false; |
| | | console.log("Error:" + result.errorMsg); |
| | | this.showMyToast("ç¼è¾å¤±è´¥", result.errorMsg, "error"); |
| | | this.showMyToast('ç¼è¾å¤±è´¥',result.errorMsg,'error'); |
| | | } |
| | | }); |
| | | }) |
| | | } |
| | | |
| | | //æå°é
ç½®å |
| | | printOrder(event) { |
| | | var site = window.location.origin; |
| | | const config = { |
| | | type: "standard__webPage", |
| | | type: 'standard__webPage', |
| | | attributes: { |
| | | url: site + "/consumable/PrintConsumblePDF?ESetid=" + this.esetId |
| | | url: site+'/consumable/PrintConsumblePDF?ESetid='+this.esetId |
| | | } |
| | | }; |
| | | this[NavigationMixin.Navigate](config); |
| | |
| | | //æäº¤è®¢å |
| | | submitOrder(event) { |
| | | sorder({ eSetidStr: this.esetId, accountidStr: this.accountid }) |
| | | .then((result) => { |
| | | if (result.result == "Success") { |
| | | .then(result=>{ |
| | | if(result.result == 'Success'){ |
| | | const config = { |
| | | type: "standard__webPage", |
| | | type: 'standard__webPage', |
| | | attributes: { |
| | | url: result.url |
| | | } |
| | |
| | | this.warningMsgs = result.warningMsgList; |
| | | console.log("Error:" + result.errorMsg); |
| | | if (result.errorMsg.indexOf("请ä¸ä¼ 订货é
ç½®åéä»¶") != -1) { |
| | | result.errorMsg = "请ä¸ä¼ 订货é
ç½®åéä»¶"; |
| | | result.errorMsg = '请ä¸ä¼ 订货é
ç½®åéä»¶'; |
| | | } |
| | | this.showMyToast("æäº¤å¤±è´¥", result.errorMsg, "error"); |
| | | this.showMyToast('æäº¤å¤±è´¥',result.errorMsg,'error'); |
| | | } |
| | | }) |
| | | .catch((error) => { |
| | | .catch(error=>{ |
| | | console.log("Error:" + error); |
| | | }); |
| | | }) |
| | | } |
| | | |
| | | //å é¤è®¢å |
| | | deleteOrder(event) { |
| | | if (!window.confirm("å 餿¯ä¸å¯æ¢å¤çï¼ä½ 确认è¦å é¤åï¼")) { |
| | | if(!window.confirm('å 餿¯ä¸å¯æ¢å¤çï¼ä½ 确认è¦å é¤åï¼')){ |
| | | return; |
| | | } |
| | | delConsumable({ eSetidStr: this.esetId }).then((result) => { |
| | | if (result.result == "Success") { |
| | | delConsumable({eSetidStr:this.esetId}) |
| | | .then(result=>{ |
| | | if(result.result == 'Success'){ |
| | | const config = { |
| | | type: "standard__webPage", |
| | | type: 'standard__webPage', |
| | | attributes: { |
| | | url: result.url |
| | | } |
| | |
| | | } else { |
| | | this.showSpinner = false; |
| | | console.log("Error:" + result.errorMsg); |
| | | this.showMyToast("å é¤å¤±è´¥", result.errorMsg, "error"); |
| | | this.showMyToast('å é¤å¤±è´¥',result.errorMsg,'error'); |
| | | } |
| | | }); |
| | | }) |
| | | } |
| | | |
| | | //ç¹ä»·éé¢å½å
¥ |
| | |
| | | this.showEditBtn = false; |
| | | this.showOfferPriceInputBtn = false; |
| | | } |
| | | if ( |
| | | !(this.editDelCommitBtnDisabled || this.editAble || this.edoffersPrice) |
| | | ) { |
| | | if(!(this.editDelCommitBtnDisabled || this.editAble || this.edoffersPrice)){ |
| | | this.showPrintSheetBtn = true; |
| | | this.showUploadSheetBtn = true; |
| | | this.showSubOrderbtn = true; |
| | |
| | | this.showSubOrderbtn = false; |
| | | this.showDeleteBtn = false; |
| | | } |
| | | if ( |
| | | (this.editDelCommitBtnDisabled || this.editAble || this.edoffersPrice) && |
| | | this.coc.Order_status__c != "驳å" |
| | | ) { |
| | | if((this.editDelCommitBtnDisabled || this.editAble || this.edoffersPrice) && this.coc.Order_status__c != "驳å"){ |
| | | this.showSaveOrderbtn1 = true; |
| | | } else { |
| | | this.showSaveOrderbtn1 = false; |
| | |
| | | |
| | | //åç³è¯· |
| | | reapplyOrder(event) { |
| | | backOrder({ eSetidStr: this.esetId }).then((result) => { |
| | | if (result.result == "Success") { |
| | | backOrder({eSetidStr:this.esetId}) |
| | | .then(result=>{ |
| | | if(result.result == 'Success'){ |
| | | const config = { |
| | | type: "standard__webPage", |
| | | type: 'standard__webPage', |
| | | attributes: { |
| | | url: result.url |
| | | } |
| | |
| | | } else { |
| | | this.showSpinner = false; |
| | | console.log("Error:" + result.errorMsg); |
| | | this.showMyToast("åç³è¯·å¤±è´¥", result.errorMsg, "error"); |
| | | this.showMyToast('åç³è¯·å¤±è´¥',result.errorMsg,'error'); |
| | | } |
| | | }); |
| | | }) |
| | | } |
| | | |
| | | //éä»¶changeäºä»¶ |
| | |
| | | if (event.target.files.length > 0) { |
| | | this.filesUploaded = event.target.files; |
| | | this.fileName = event.target.files[0].name; |
| | | console.log("this.fileName:" + this.fileName); |
| | | console.log('this.fileName:'+this.fileName); |
| | | } |
| | | } |
| | | |
| | | //æ¯å¦æ¾ç¤ºéä»¶ç§»é¤ |
| | | get attDelBtn() { |
| | | if ( |
| | | this.fileName != "" && |
| | | this.fileName != null && |
| | | this.fileName != "è¯·éæ©ä¸ä¸ªæä»¶ä¸ä¼ " |
| | | ) { |
| | | if(this.fileName != '' && this.fileName != null && this.fileName != 'è¯·éæ©ä¸ä¸ªæä»¶ä¸ä¼ '){ |
| | | return true; |
| | | } else { |
| | | return false; |
| | |
| | | //ç§»é¤éä»¶ |
| | | removeAtt() { |
| | | this.filesUploaded = []; |
| | | this.fileName = ""; |
| | | this.fileName = ''; |
| | | } |
| | | |
| | | //ä¸ä¼ éä»¶ |
| | |
| | | if (this.filesUploaded.length > 0) { |
| | | this.file = this.filesUploaded[0]; |
| | | if (this.file.size > this.MAX_FILE_SIZE) { |
| | | window.console.log("æä»¶è¿å¤§"); |
| | | window.console.log('æä»¶è¿å¤§'); |
| | | return; |
| | | } |
| | | this.fileReader = new FileReader(); |
| | | |
| | | this.fileReader.onloadend = () => { |
| | | this.fileReader.onloadend = (() => { |
| | | this.fileContents = this.fileReader.result; |
| | | let base64 = "base64,"; |
| | | let base64 = 'base64,'; |
| | | this.content = this.fileContents.indexOf(base64) + base64.length; |
| | | this.fileContents = this.fileContents.substring(this.content); |
| | | this.saveToFile(); |
| | | }; |
| | | }); |
| | | this.fileReader.readAsDataURL(this.file); |
| | | } else { |
| | | this.fileName = "è¯·éæ©ä¸ä¸ªæä»¶ä¸ä¼ "; |
| | | } |
| | | else { |
| | | this.fileName = 'è¯·éæ©ä¸ä¸ªæä»¶ä¸ä¼ '; |
| | | } |
| | | } |
| | | |
| | | //è°ç¨ä¸ä¼ éä»¶åå°æ¹æ³ |
| | | saveToFile() { |
| | | this.showPopSpinner = true; |
| | | filesUpload({ |
| | | pId: this.esetId, |
| | | fileName: this.file.name, |
| | | base64Data: encodeURIComponent(this.fileContents) |
| | | }) |
| | | .then((result) => { |
| | | filesUpload({pId:this.esetId, fileName: this.file.name, base64Data: encodeURIComponent(this.fileContents)}) |
| | | .then(result => { |
| | | this.showPopSpinner = false; |
| | | if (result.result == "Success") { |
| | | if(result.result == 'Success'){ |
| | | this.closePop(); |
| | | window.location.reload(); |
| | | } else { |
| | | console.log("Error:" + result.errorMsg); |
| | | this.showMyToast("ä¸ä¼ 失败", result.errorMsg, "error"); |
| | | this.showMyToast('ä¸ä¼ 失败',result.errorMsg,'error'); |
| | | } |
| | | }) |
| | | .catch((error) => { |
| | | .catch(error => { |
| | | this.showPopSpinner = false; |
| | | this.showMyToast("ä¸ä¼ 失败", error, "error"); |
| | | this.showMyToast('ä¸ä¼ 失败',error,'error'); |
| | | }); |
| | | } |
| | | |
| | |
| | | deleteAtt(event) { |
| | | this.showSpinner = true; |
| | | var recordId = event.target.getAttribute("data-fileid"); |
| | | console.log("attid:" + recordId); |
| | | deleteAtt({ contentVersionId: recordId }) |
| | | .then((result) => { |
| | | console.log('attid:'+recordId); |
| | | deleteAtt({contentVersionId : recordId, cocId : this.esetId}) |
| | | .then(result=>{ |
| | | this.showSpinner = false; |
| | | if (result.result == "Success") { |
| | | if(result.result == 'Success'){ |
| | | window.location.reload(); |
| | | } else { |
| | | console.log("Error:" + result.errorMsg); |
| | | this.showMyToast("å é¤å¤±è´¥", result.errorMsg, "error"); |
| | | this.showMyToast('å é¤å¤±è´¥',result.errorMsg,'error'); |
| | | } |
| | | }) |
| | | .catch((error) => { |
| | | .catch(error=>{ |
| | | this.showSpinner = false; |
| | | console.log("Error:" + error); |
| | | this.showMyToast("å é¤å¤±è´¥", JSON.stringify(error), "error"); |
| | | }); |
| | | this.showMyToast('å é¤å¤±è´¥',JSON.stringify(error),'error'); |
| | | }) |
| | | } |
| | | |
| | | //é¢è§éä»¶ |
| | |
| | | var recordId = event.target.getAttribute("data-fileid"); |
| | | console.log(recordId); |
| | | this[NavigationMixin.Navigate]({ |
| | | type: "standard__namedPage", |
| | | type:'standard__namedPage', |
| | | attributes: { |
| | | pageName: "filePreview" |
| | | pageName:'filePreview' |
| | | }, |
| | | state: { |
| | | recordIds: recordId, |
| | |
| | | //æå¼æç´¢å¼¹çªï¼å¹¶åå§åå¼¹çª |
| | | showSearchHos(event) { |
| | | initHospital() |
| | | .then((result) => { |
| | | if (result.result == "Success") { |
| | | .then(result=>{ |
| | | if(result.result == 'Success'){ |
| | | this.showAttHosPop = true; |
| | | this.hospitalList = result.attList; |
| | | for (var i in this.hospitalList) { |
| | | if (this.hospitalList[i].State_Master__c) { |
| | | this.hospitalList[i]["StateMaster"] = |
| | | this.hospitalList[i].State_Master__r.Name; |
| | | this.hospitalList[i]['StateMaster'] = this.hospitalList[i].State_Master__r.Name; |
| | | } |
| | | } |
| | | } else { |
| | | console.log("Error:" + result.errorMsg); |
| | | this.showMyToast("åå§åæ£ç´¢å»é¢é¡µé¢å¤±è´¥", result.errorMsg, "error"); |
| | | this.showMyToast('åå§åæ£ç´¢å»é¢é¡µé¢å¤±è´¥',result.errorMsg,'error'); |
| | | } |
| | | }) |
| | | .catch((error) => { |
| | | .catch(error=>{ |
| | | console.log("Error:" + error); |
| | | this.showMyToast("åå§åæ£ç´¢å»é¢é¡µé¢å¤±è´¥", error, "error"); |
| | | }); |
| | | this.showMyToast('åå§åæ£ç´¢å»é¢é¡µé¢å¤±è´¥',error,'error'); |
| | | }) |
| | | } |
| | | |
| | | //æ£ç´¢å»é¢ |
| | | searchHos(event) { |
| | | searchHospital({ |
| | | searchName: this.searchNameHos, |
| | | accountId: this.accountid |
| | | }) |
| | | .then((result) => { |
| | | if (result.result == "Success") { |
| | | searchHospital({searchName:this.searchNameHos, accountId:this.accountid}) |
| | | .then(result=>{ |
| | | if(result.result == 'Success'){ |
| | | this.hospitalList = result.attList; |
| | | for (var i in this.hospitalList) { |
| | | if (this.hospitalList[i].State_Master__c) { |
| | | this.hospitalList[i]["StateMaster"] = |
| | | this.hospitalList[i].State_Master__r.Name; |
| | | this.hospitalList[i]['StateMaster'] = this.hospitalList[i].State_Master__r.Name; |
| | | } |
| | | } |
| | | } else { |
| | | console.log("Error:" + result.errorMsg); |
| | | this.showMyToast("æç´¢å¤±è´¥", result.errorMsg, "error"); |
| | | this.showMyToast('æç´¢å¤±è´¥',result.errorMsg,'error'); |
| | | } |
| | | }) |
| | | .catch((error) => { |
| | | .catch(error=>{ |
| | | console.log("Error:" + error); |
| | | this.showMyToast("æç´¢å¤±è´¥", error, "error"); |
| | | }); |
| | | this.showMyToast('æç´¢å¤±è´¥',error,'error'); |
| | | }) |
| | | } |
| | | |
| | | //å»é¢åç§°change |
| | |
| | | //å
³éå¼¹çª |
| | | closeHospitalPop() { |
| | | this.showAttHosPop = false; |
| | | this.chooseHospital = ""; |
| | | this.chooseHospitalId = ""; |
| | | this.chooseHospital = ''; |
| | | this.chooseHospitalId = ''; |
| | | } |
| | | |
| | | // //éæ©å»é¢ |
| | |
| | | const row = event.detail.row; |
| | | this.chooseHospitalId = row.Id; |
| | | this.chooseHospital = row.Name; |
| | | console.log("row.Id:" + row.Id); |
| | | console.log("row.Name:" + row.Name); |
| | | console.log('row.Id:'+row.Id); |
| | | console.log('row.Name:'+row.Name); |
| | | this.confirmHospital(); |
| | | } |
| | | |
| | | //ç¡®è®¤éæ©å»é¢ |
| | | confirmHospital() { |
| | | if (this.chooseHospital != "" && this.chooseHospital != null) { |
| | | if(this.chooseHospital != '' && this.chooseHospital != null){ |
| | | this.hospitalId = this.chooseHospitalId; |
| | | this.tempidHp = this.chooseHospitalId; |
| | | this.hospitalName = this.chooseHospital; |
| | |
| | | //æ¶é¤è¦å |
| | | var arr = []; |
| | | for (var i in this.warningMsgs) { |
| | | if (this.warningMsgs[i] != "è¯·éæ©å»é¢") { |
| | | if(this.warningMsgs[i] != 'è¯·éæ©å»é¢'){ |
| | | arr.push(this.warningMsgs[i]); |
| | | } |
| | | } |
| | | this.warningMsgs = arr; |
| | | if (this.tempidHp != "tempId" && this.tempidHp != "") { |
| | | if(this.tempidHp != 'tempId' && this.tempidHp != ''){ |
| | | searchorderdetails({ |
| | | methodTypeStr: this.pageType, |
| | | accountIdStr: this.accountid, |
| | |
| | | accountNameStr: this.accountName, |
| | | proLimitAndDateList: this.proLimitAndDate, |
| | | editAbleStr: this.editAble |
| | | }) |
| | | .then((result) => { |
| | | if (result.result == "Success") { |
| | | this.consumableorderdetailsRecordsview = |
| | | result.consumableorderdetailsRecordsview; |
| | | }).then(result=>{ |
| | | if(result.result == 'Success'){ |
| | | this.consumableorderdetailsRecordsview = result.consumableorderdetailsRecordsview; |
| | | this.currentPage = 1; |
| | | this.currentRecord = []; |
| | | this.showCurrentReocrd(); |
| | | this.getAllChecked(); |
| | | this.showMyToast("æç´¢æå", result.errorMsg, "success"); |
| | | this.showMyToast('æç´¢æå',result.errorMsg,'success'); |
| | | } else { |
| | | console.log("Error:" + result.errorMsg); |
| | | if (result.errorMsg == "没ææç´¢å°ç¸å
³æ°æ®") { |
| | | this.showMyToast(result.errorMsg, "", "error"); |
| | | if(result.errorMsg == '没ææç´¢å°ç¸å
³æ°æ®'){ |
| | | this.showMyToast(result.errorMsg,'','error'); |
| | | } else { |
| | | this.showMyToast("æç´¢äº§å失败", result.errorMsg, "error"); |
| | | this.showMyToast('æç´¢äº§å失败',result.errorMsg,'error'); |
| | | } |
| | | } |
| | | }) |
| | | .catch((error) => { |
| | | .catch(error=>{ |
| | | console.log("Error:" + error); |
| | | this.showMyToast("æç´¢äº§å失败", error, "error"); |
| | | }); |
| | | this.tempidHp = "tempId"; |
| | | this.showMyToast('æç´¢äº§å失败',error,'error'); |
| | | }) |
| | | this.tempidHp = 'tempId'; |
| | | } |
| | | } else { |
| | | this.showMyToast("è¯·éæ©å»é¢", "", "error"); |
| | | this.showMyToast('è¯·éæ©å»é¢','','error'); |
| | | } |
| | | } |
| | | |
| | | //æå¼ååæ£ç´¢å¼¹çªå¹¶åå§å |
| | | showSearchCon() { |
| | | initContract({ ctype: this.agencyProType1 }) |
| | | .then((result) => { |
| | | if (result.result == "Success") { |
| | | .then(result=>{ |
| | | if(result.result == 'Success'){ |
| | | this.showConPop = true; |
| | | this.contractList = result.attList; |
| | | for (var i in this.contractList) { |
| | | if (this.contractList[i].State_Master__c) { |
| | | this.contractList[i]["StateMaster"] = |
| | | this.contractList[i].State_Master__r.Name; |
| | | this.contractList[i]['StateMaster'] = this.contractList[i].State_Master__r.Name; |
| | | } |
| | | } |
| | | } else { |
| | | console.log("Error:" + result.errorMsg); |
| | | this.showMyToast("åå§åæ£ç´¢åå页é¢å¤±è´¥", result.errorMsg, "error"); |
| | | this.showMyToast('åå§åæ£ç´¢åå页é¢å¤±è´¥',result.errorMsg,'error'); |
| | | } |
| | | }) |
| | | .catch((error) => { |
| | | .catch(error=>{ |
| | | console.log("Error:" + error); |
| | | this.showMyToast("åå§åæ£ç´¢åå页é¢å¤±è´¥", error, "error"); |
| | | }); |
| | | this.showMyToast('åå§åæ£ç´¢åå页é¢å¤±è´¥',error,'error'); |
| | | }) |
| | | } |
| | | |
| | | //æ£ç´¢åå |
| | | searchCon() { |
| | | searchContract({ |
| | | searchName: this.searchNameCon, |
| | | accountId: this.accountid, |
| | | ctype: this.agencyProType1, |
| | | OSHFLGStr: this.OSHFLG |
| | | }) |
| | | .then((result) => { |
| | | if (result.result == "Success") { |
| | | searchContract({searchName:this.searchNameCon, accountId:this.accountid, ctype:this.agencyProType1,OSHFLGStr : this.OSHFLG}) |
| | | .then(result=>{ |
| | | if(result.result == 'Success'){ |
| | | this.contractList = result.attList; |
| | | for (var i in this.contractList) { |
| | | if (this.contractList[i].State_Master__c) { |
| | | this.contractList[i]["StateMaster"] = |
| | | this.contractList[i].State_Master__r.Name; |
| | | this.contractList[i]['StateMaster'] = this.contractList[i].State_Master__r.Name; |
| | | } |
| | | } |
| | | } else { |
| | | console.log("Error:" + result.errorMsg); |
| | | this.showMyToast("æç´¢å¤±è´¥", result.errorMsg, "error"); |
| | | this.showMyToast('æç´¢å¤±è´¥',result.errorMsg,'error'); |
| | | } |
| | | }) |
| | | .catch((error) => { |
| | | .catch(error=>{ |
| | | console.log("Error:" + error); |
| | | this.showMyToast("æç´¢å¤±è´¥", error, "error"); |
| | | }); |
| | | this.showMyToast('æç´¢å¤±è´¥',error,'error'); |
| | | }) |
| | | } |
| | | |
| | | searchNameConChange(event) { |
| | |
| | | //å
³éå¼¹çª |
| | | closeContractPop() { |
| | | this.showConPop = false; |
| | | this.chooseContract = ""; |
| | | this.chooseContractId = ""; |
| | | this.chooseContract = ''; |
| | | this.chooseContractId = ''; |
| | | } |
| | | |
| | | //éæ©åå |
| | |
| | | const row = event.detail.row; |
| | | this.chooseContractId = row.Id; |
| | | this.chooseContract = row.Name; |
| | | console.log("row.Id:" + row.Id); |
| | | console.log("row.Name:" + row.Name); |
| | | console.log('row.Id:'+row.Id); |
| | | console.log('row.Name:'+row.Name); |
| | | this.confirmContract(); |
| | | } |
| | | |
| | | //ç¡®è®¤éæ©åå |
| | | confirmContract() { |
| | | if (this.chooseContract != "" && this.chooseContract != null) { |
| | | if(this.chooseContract != '' && this.chooseContract != null){ |
| | | this.contractId = this.chooseContractId; |
| | | this.tempidPp = this.chooseContractId; |
| | | this.contractName = this.chooseContract; |
| | | this.closeContractPop(); |
| | | if ( |
| | | this.tempidPp != "tempId" && |
| | | this.tempidPp != "" && |
| | | this.contractId != "" && |
| | | this.pageType == "promotionorder" |
| | | ) { |
| | | if(this.tempidPp != 'tempId' && this.tempidPp != '' && this.contractId != '' && this.pageType == 'promotionorder'){ |
| | | searchorderdetails({ |
| | | methodTypeStr: this.pageType, |
| | | accountIdStr: this.accountid, |
| | |
| | | accountNameStr: this.accountName, |
| | | proLimitAndDateList: this.proLimitAndDate, |
| | | editAbleStr: this.editAble |
| | | }) |
| | | .then((result) => { |
| | | if (result.result == "Success") { |
| | | this.consumableorderdetailsRecordsview = |
| | | result.consumableorderdetailsRecordsview; |
| | | }).then(result=>{ |
| | | if(result.result == 'Success'){ |
| | | this.consumableorderdetailsRecordsview = result.consumableorderdetailsRecordsview; |
| | | this.currentPage = 1; |
| | | this.currentRecord = []; |
| | | this.showCurrentReocrd(); |
| | | this.getAllChecked(); |
| | | this.showMyToast("æç´¢æå", result.errorMsg, "success"); |
| | | this.showMyToast('æç´¢æå',result.errorMsg,'success'); |
| | | } else { |
| | | console.log("Error:" + result.errorMsg); |
| | | if (result.errorMsg == "没ææç´¢å°ç¸å
³æ°æ®") { |
| | | this.showMyToast(result.errorMsg, "", "error"); |
| | | if(result.errorMsg == '没ææç´¢å°ç¸å
³æ°æ®'){ |
| | | this.showMyToast(result.errorMsg,'','error'); |
| | | } else { |
| | | this.showMyToast("æç´¢äº§å失败", result.errorMsg, "error"); |
| | | this.showMyToast('æç´¢äº§å失败',result.errorMsg,'error'); |
| | | } |
| | | } |
| | | }) |
| | | .catch((error) => { |
| | | .catch(error=>{ |
| | | console.log("Error:" + error); |
| | | this.showMyToast("æç´¢äº§å失败", error, "error"); |
| | | }); |
| | | this.tempidPp = "tempId"; |
| | | this.showMyToast('æç´¢äº§å失败',error,'error'); |
| | | }) |
| | | this.tempidPp = 'tempId'; |
| | | } |
| | | } else { |
| | | this.showMyToast("è¯·éæ©åå", "", "error"); |
| | | this.showMyToast('è¯·éæ©åå','','error'); |
| | | } |
| | | } |
| | | |
| | | showMyToast(title, message, variant) { |
| | | console.log("show custom message"); |
| | | var iconName = ""; |
| | | var content = ""; |
| | | if (variant == "success") { |
| | | iconName = "utility:check"; |
| | | console.log('show custom message'); |
| | | var iconName = ''; |
| | | var content = ''; |
| | | if(variant == 'success'){ |
| | | iconName = 'utility:check'; |
| | | } else { |
| | | iconName = "utility:error"; |
| | | iconName = 'utility:error'; |
| | | } |
| | | if (message != "") { |
| | | content = |
| | | "<h2><strong>" + title + "<strong/></h2><h5>" + message + "</h5>"; |
| | | if(message != ''){ |
| | | content = '<h2><strong>'+title+'<strong/></h2><h5>'+message+'</h5>'; |
| | | } else { |
| | | content = "<h2><strong>" + title + "<strong/></h2>"; |
| | | content = '<h2><strong>'+title+'<strong/></h2>'; |
| | | } |
| | | this.template |
| | | .querySelector("c-common-toast") |
| | | .showToast(variant, content, iconName, 10000); |
| | | this.template.querySelector('c-common-toast'). |
| | | showToast(variant,content,iconName,10000); |
| | | // var mode; |
| | | // if(this.isNoteStay){ |
| | | // mode ='sticky'; |
| | |
| | | showCurrentReocrd() { |
| | | var startIndex = 0; |
| | | var endIndex = 0; |
| | | console.log("len:" + this.consumableorderdetailsRecordsview.length); |
| | | if ( |
| | | this.consumableorderdetailsRecordsview != null && |
| | | this.consumableorderdetailsRecordsview.length > 0 |
| | | ) { |
| | | console.log('len:'+this.consumableorderdetailsRecordsview.length); |
| | | if(this.consumableorderdetailsRecordsview != null && this.consumableorderdetailsRecordsview.length > 0){ |
| | | var currentRecord = []; |
| | | var currentCount = 0; |
| | | var mu = this.consumableorderdetailsRecordsview.length % this.pageSize; |
| | |
| | | } else { |
| | | currentCount = this.pageSize; |
| | | } |
| | | console.log("this.totalPage:" + this.totalPage); |
| | | console.log("this.pageSize:" + this.pageSize); |
| | | console.log("mu:" + mu); |
| | | console.log("currentCount:" + currentCount); |
| | | console.log('this.totalPage:'+this.totalPage); |
| | | console.log('this.pageSize:'+this.pageSize); |
| | | console.log('mu:'+mu); |
| | | console.log('currentCount:'+currentCount); |
| | | startIndex = (this.currentPage - 1) * this.pageSize; |
| | | endIndex = parseInt(startIndex) + parseInt(currentCount) - 1; |
| | | console.log("startIndex:" + startIndex); |
| | | console.log("endIndex:" + endIndex); |
| | | console.log('startIndex:'+startIndex); |
| | | console.log('endIndex:'+endIndex); |
| | | if (this.editAble) { |
| | | for (var i in this.currentRecord) { |
| | | if (this.currentRecord[i].check) { |
| | |
| | | for (var i = startIndex; i <= endIndex; i++) { |
| | | var count = 0; |
| | | for (var j in this.currentRecord) { |
| | | if ( |
| | | this.consumableorderdetailsRecordsview[i].recordId == |
| | | this.currentRecord[j].recordId |
| | | ) { |
| | | if(this.consumableorderdetailsRecordsview[i].recordId == this.currentRecord[j].recordId){ |
| | | count++; |
| | | } |
| | | } |
| | |
| | | |
| | | get totalPage() { |
| | | if (this.consumableorderdetailsRecordsview.length % this.pageSize == 0) { |
| | | return Math.trunc( |
| | | this.consumableorderdetailsRecordsview.length / this.pageSize |
| | | ); |
| | | return Math.trunc(this.consumableorderdetailsRecordsview.length / this.pageSize); |
| | | } else { |
| | | return ( |
| | | Math.trunc( |
| | | this.consumableorderdetailsRecordsview.length / this.pageSize |
| | | ) + 1 |
| | | ); |
| | | return Math.trunc(this.consumableorderdetailsRecordsview.length / this.pageSize) + 1; |
| | | } |
| | | } |
| | | |
| | |
| | | |
| | | //page size change |
| | | pageSizeChange(event) { |
| | | console.log("pagesize:" + event.detail); |
| | | console.log('pagesize:'+event.detail); |
| | | this.pageSize = event.detail; |
| | | this.currentPage = 1; |
| | | this.currentRecord = []; |
| | |
| | | <!-- sldsValidatorIgnore --> |
| | | <!-- sldsValidatorIgnore --> |
| | | <template> |
| | | <c-common-toast></c-common-toast> |
| | | <template if:true={isShowSpinner}> |
| | | <lightning-spinner alternative-text="Loading" size="large"></lightning-spinner> |
| | | <lightning-spinner size="medium" variant="brand"></lightning-spinner> |
| | | </template> |
| | | |
| | | <c-common-toast></c-common-toast> |
| | | <template if:false={isShowAccountInfo}> |
| | | <div class="outerBorderCss"> |
| | | <div style="padding: 5px"> |
| | |
| | | <lightning-datatable key-field="id" data={pageRecords} columns={columns} |
| | | hide-checkbox-column default-sort-direction={defaultSortDirection} |
| | | sorted-direction={sortDirection} sorted-by={sortedBy} onsort={onHandleSort} |
| | | class="wrapped-header-datatable"> |
| | | class="wrapped-header-datatable grayBackground"> |
| | | </lightning-datatable> |
| | | <c-paginator onprevious={handlePrevious} onnext={handleNext} |
| | | onpageschange={handlePageschange} onfirst={handleFirst} onlast={handleLast} |
| | |
| | | <lightning-layout-item size="1"> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item size="4"> |
| | | <lightning-input type="text" label="OCSMåç±»(å»é¢)" |
| | | <!-- <lightning-input type="text" label="OCSMåç±»(å»é¢)" |
| | | value={accountDataInfo.oCMCategory} variant="label-inline" read-only style=" |
| | | border-bottom: 1px solid #dde4e9; |
| | | "></lightning-input> |
| | | "></lightning-input> --> |
| | | </lightning-layout-item> |
| | | <lightning-layout-item size="1"> |
| | | </lightning-layout-item> |
| | |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | </template> |
| | |
| | | fieldName: "NameUrl", |
| | | hideDefaultActions: true, |
| | | wrapText: true, |
| | | initialWidth: 345, |
| | | initialWidth: 200, |
| | | sortable: true, |
| | | type: "url", |
| | | typeAttributes: { |
| | | label: { |
| | | fieldName: "Name", |
| | | }, |
| | | target:"_blank" |
| | | }, |
| | | }, |
| | | // { |
| | | // label: "ç", |
| | | // fieldName: "StateMasterUrl", |
| | | // hideDefaultActions: true, |
| | | // wrapText: true, |
| | | // sortable: true, |
| | | // type: "url", |
| | | // typeAttributes: { |
| | | // label: { |
| | | // fieldName: "StateMasterName", |
| | | // }, |
| | | // target: "_blank", |
| | | // }, |
| | | // }, |
| | | { |
| | | label: "ç", |
| | | fieldName: "StateMasterUrl", |
| | | fieldName: "StateMasterName", |
| | | hideDefaultActions: true, |
| | | initialWidth: 80, |
| | | wrapText: true, |
| | | sortable: true, |
| | | type: "url", |
| | | typeAttributes: { |
| | | label: { |
| | | fieldName: "StateMasterName", |
| | | }, |
| | | target: "_blank", |
| | | }, |
| | | }, |
| | | { |
| | | label: "é宿¬é¨å»é¢", |
| | | fieldName: "Salesdepartment_HP__c", |
| | | initialWidth: 115, |
| | | hideDefaultActions: true, |
| | | sortable: true, |
| | | wrapText: true, |
| | |
| | | month: "numeric", |
| | | year: "numeric", |
| | | }, |
| | | initialWidth: 100, |
| | | }, |
| | | { |
| | | label: "ææ/æ æ", |
| | |
| | | hideDefaultActions: true, |
| | | sortable: true, |
| | | wrapText: true, |
| | | initialWidth: 91, |
| | | }, |
| | | { |
| | | label: "客æ·è®°å½ç±»å", |
| | | fieldName: "RecordTypeName", |
| | | hideDefaultActions: true, |
| | | sortable: true, |
| | | wrapText: true, |
| | | initialWidth: 130, |
| | | }, |
| | | // { |
| | | // label: "客æ·è®°å½ç±»å", |
| | | // fieldName: "RecordTypeName", |
| | | // hideDefaultActions: true, |
| | | // sortable: true, |
| | | // wrapText: true, |
| | | // initialWidth: 130, |
| | | // }, |
| | | { |
| | | label: "æ¿åºç级", |
| | | fieldName: "Grade__c", |
| | | hideDefaultActions: true, |
| | | sortable: true, |
| | | wrapText: true, |
| | | initialWidth: 86, |
| | | }, |
| | | { |
| | | label: "OCSMåç±»(å»é¢)", |
| | | fieldName: "OCM_Category__c", |
| | | hideDefaultActions: true, |
| | | sortable: true, |
| | | wrapText: true, |
| | | initialWidth: 150, |
| | | }, |
| | | // { |
| | | // label: "OCSMåç±»(å»é¢)", |
| | | // fieldName: "OCM_Category__c", |
| | | // hideDefaultActions: true, |
| | | // sortable: true, |
| | | // wrapText: true, |
| | | // }, |
| | | // { |
| | | // label: "å¸", |
| | | // fieldName: "CityMasterNameUrl", |
| | | // hideDefaultActions: true, |
| | | // sortable: true, |
| | | // wrapText: true, |
| | | // type: "url", |
| | | // typeAttributes: { |
| | | // label: { |
| | | // fieldName: "CityMasterName", |
| | | // }, |
| | | // target: "_blank", |
| | | // }, |
| | | // }, |
| | | { |
| | | label: "å¸", |
| | | fieldName: "CityMasterNameUrl", |
| | | fieldName: "CityMasterName", |
| | | hideDefaultActions: true, |
| | | sortable: true, |
| | | wrapText: true, |
| | | type: "url", |
| | | typeAttributes: { |
| | | label: { |
| | | fieldName: "CityMasterName", |
| | | }, |
| | | target: "_blank", |
| | | }, |
| | | }, |
| | | { |
| | | label: "å¿/åº", |
| | |
| | | const topColumns = [ |
| | | { |
| | | label: "客æ·å", |
| | | fieldName: "NameUrl", |
| | | hideDefaultActions: true, |
| | | fieldName : "accountName", |
| | | wrapText: true, |
| | | type: "url", |
| | | type: "customShowAccountUrl", |
| | | typeAttributes: { |
| | | label: { |
| | | fieldName: "Name", |
| | | accountName: { fieldName: "accountName" }, |
| | | accountUrl: { fieldName: "accountUrl" }, |
| | | isDisable: { fieldName: "isDisable" }, |
| | | }, |
| | | }, |
| | | }, |
| | | // { |
| | | // label: "å¸", |
| | | // fieldName: "CityMasterName", |
| | | // hideDefaultActions: true, |
| | | // wrapText: true, |
| | | // type: "customShowAccountUrl", |
| | | // typeAttributes: { |
| | | // accountName: { fieldName: "CityMasterName" }, |
| | | // accountUrl: { fieldName: "CityMasterNameUrl" }, |
| | | // isDisable: { fieldName: "isDisable" }, |
| | | // }, |
| | | // }, |
| | | { |
| | | label: "å¸", |
| | | fieldName: "CityMasterNameUrl", |
| | | fieldName: "CityMasterName", |
| | | hideDefaultActions: true, |
| | | wrapText: true, |
| | | type: "url", |
| | | typeAttributes: { |
| | | label: { |
| | | fieldName: "CityMasterName", |
| | | }, |
| | | target: "_blank", |
| | | }, |
| | | }, |
| | | { |
| | | label: "å¿/åº", |
| | |
| | | export default class LexConsumableAccount extends LightningElement { |
| | | columns = columns; |
| | | topColumns = topColumns; |
| | | @track isShowSpinner = true; |
| | | @track isShowSpinner = false; |
| | | @track pageRecords = []; |
| | | @track accountId = ""; |
| | | @track agencyProType = ""; |
| | |
| | | label: "01. å»é¢_Hospital", |
| | | value: "01. å»é¢_Hospital", |
| | | }, |
| | | { |
| | | label: "61. å»é¢_Hospitalèæ¡ä¸çå»é¢", |
| | | value: "61. å»é¢_Hospitalèæ¡ä¸çå»é¢", |
| | | }, |
| | | { |
| | | label: "62. å»é¢_Hospitalç³è¯·ä¸çå»é¢", |
| | | value: "62. å»é¢_Hospitalç³è¯·ä¸çå»é¢", |
| | | }, |
| | | // { |
| | | // label: "61. å»é¢_Hospitalèæ¡ä¸çå»é¢", |
| | | // value: "61. å»é¢_Hospitalèæ¡ä¸çå»é¢", |
| | | // }, |
| | | // { |
| | | // label: "62. å»é¢_Hospitalç³è¯·ä¸çå»é¢", |
| | | // value: "62. å»é¢_Hospitalç³è¯·ä¸çå»é¢", |
| | | // }, |
| | | { |
| | | label: "63. å»é¢_Hospitalä¸å¨å建çå»é¢", |
| | | value: "63. å»é¢_Hospitalä¸å¨å建çå»é¢", |
| | |
| | | } |
| | | |
| | | connectedCallback() { |
| | | this.isShowSpinner = true; |
| | | this.AccId = this.getQueryString("AccId"); |
| | | this.AccId = this.AccId == null ? "" : this.AccId; |
| | | if (this.AccId != "") { |
| | |
| | | r = JSON.parse(JSON.stringify(r)); |
| | | console.log("r = " + JSON.stringify(r)); |
| | | if (r.status == "Success") { |
| | | console.log('r.entity.obj = ' + JSON.stringify(r.entity.obj)) |
| | | this.accountDataInfo.name = r.entity.obj.Name; |
| | | this.accountDataInfo.ownerName = |
| | | r.entity.obj.Owner == null ? "" : r.entity.obj.Owner.Name; |
| | | this.accountDataInfo.ownerName = r.entity.obj.Owner == null ? "" : r.entity.obj.Owner.Name; |
| | | this.accountDataInfo.site = r.entity.obj.site; |
| | | this.accountDataInfo.isActive = r.entity.obj.Is_Active__c; |
| | | this.accountDataInfo.aliasName2 = r.entity.obj.Alias_Name2__c; |
| | | this.accountDataInfo.banOnUseReason = |
| | | r.entity.obj.Ban_On_Use_Reason__c; |
| | | this.accountDataInfo.banOnUseReason = r.entity.obj.Ban_On_Use_Reason__c; |
| | | this.accountDataInfo.grade = r.entity.obj.Grade__c; |
| | | this.accountDataInfo.attributeType = r.entity.obj.Attribute_Type__c; |
| | | this.accountDataInfo.oCMCategory = r.entity.obj.OCM_Category__c; |
| | | this.accountDataInfo.specialityType = |
| | | r.entity.obj.Speciality_Type__c; |
| | | this.accountDataInfo.stateMasterName = |
| | | r.entity.obj.State_Master__r == null |
| | | ? "" |
| | | : r.entity.obj.State_Master__r.Name; |
| | | this.accountDataInfo.specialityType = r.entity.obj.Speciality_Type__c; |
| | | this.accountDataInfo.stateMasterName = r.entity.obj.State_Master__r == null ? "" : r.entity.obj.State_Master__r.Name; |
| | | this.accountDataInfo.phone = r.entity.obj.Phone; |
| | | this.accountDataInfo.cityMasterName = |
| | | r.entity.obj.City_Master__r == null |
| | | ? "" |
| | | : r.entity.obj.City_Master__r.Name; |
| | | this.accountDataInfo.cityMasterName = r.entity.obj.City_Master__r == null ? "" : r.entity.obj.City_Master__r.Name; |
| | | this.accountDataInfo.phoneCall = r.entity.obj.PhoneCall__c; |
| | | this.accountDataInfo.town = r.entity.obj.Town__c; |
| | | this.accountDataInfo.fax = r.entity.obj.Fax; |
| | | this.accountDataInfo.street = r.entity.obj.Street__c; |
| | | this.accountDataInfo.postalCode = r.entity.obj.Postal_Code__c; |
| | | this.accountDataInfo.address = r.entity.obj.Address__c; |
| | | this.accountDataInfo.parentName = |
| | | r.entity.obj.Parent == null ? "" : r.entity.obj.Parent.Name; |
| | | console.log( |
| | | "this.accountDataInfo = " + JSON.stringify(this.accountDataInfo) |
| | | ); |
| | | this.printUrl = |
| | | "/lexconsumableaccountinfoprint?AccId=" + this.AccId; |
| | | this.accountDataInfo.parentName = r.entity.obj.Parent == null ? "" : r.entity.obj.Parent.Name; |
| | | console.log('this.accountDataInfo = ' + JSON.stringify(this.accountDataInfo)) |
| | | this.printUrl = "/lexconsumableaccountinfoprint?AccId=" + this.AccId; |
| | | this.isShowAccountInfo = true; |
| | | this.isShowSpinner = false; |
| | | } else { |
| | |
| | | this.agencyProTypestr = r.entity.agencyProTypestr; |
| | | console.log("this.agencyProTypestr = " + this.agencyProTypestr); |
| | | for (var i in this.pageRecords) { |
| | | this.pageRecords[i]["NameUrl"] = "/lexconsumableaccount?AccId=" + this.pageRecords[i].Id; |
| | | this.pageRecords[i]["Is_Active__c"] = this.pageRecords[i].Is_Active__c.replace('å¹','æ'); |
| | | this.pageRecords[i]["NameUrl"] = "/s/lexconsumableaccount?AccId=" + this.pageRecords[i].Id; |
| | | this.pageRecords[i]["StateMasterName"] = this.pageRecords[i].State_Master__r.Name; |
| | | this.pageRecords[i]["StateMasterUrl"] = "/" + this.pageRecords[i].State_Master__c; |
| | | this.pageRecords[i]["CityMasterName"] = this.pageRecords[i].City_Master__r.Name; |
| | |
| | | ); |
| | | console.log('9/3 = ' + this.keepTwoDecimalStr(this.amend(9, 3, '/').toFixed(2))); |
| | | let total = 100; |
| | | try { |
| | | for (var i in this.topAccountData) { |
| | | console.log('i = ' + i); |
| | | this.topAccountData[i]["NameUrl"] = "/lexconsumableaccount?AccId=" + this.topAccountData[i].Id; |
| | | this.topAccountData[i]["accountName"] = this.topAccountData[i].Name; |
| | | this.topAccountData[i]["accountUrl"] = "/s/lexconsumableaccount?AccId=" + this.topAccountData[i].Id; |
| | | this.topAccountData[i]["isDisable"] = false; |
| | | this.topAccountData[i]["StateMasterName"] = this.topAccountData[i].State_Master__r.Name; |
| | | this.topAccountData[i]["StateMasterUrl"] = "/" + this.topAccountData[i].State_Master__c; |
| | | this.topAccountData[i]["CityMasterName"] = this.topAccountData[i].City_Master__r.Name; |
| | |
| | | this.topAccountData[i]["proportion"] = number + '%'; |
| | | } |
| | | |
| | | // //å
¶ä» |
| | | console.log('this.topAccountData = ' + JSON.stringify(this.topAccountData)); |
| | | |
| | | //å
¶ä» |
| | | if (total != 100) { |
| | | this.topAccountData.push({ |
| | | Name: '...', |
| | | NameUrl: '/lexconsumableaccount', |
| | | accountName: '...', |
| | | accountUrl: '/s/lexconsumableaccount', |
| | | isDisable: true, |
| | | proportion: total.toFixed(2) + '%', |
| | | CityMasterName: '...', |
| | | CityMasterNameUrl: '/lexconsumableaccount', |
| | |
| | | this.showMyToast(title, 'æ æ°æ®', 'Error'); |
| | | } |
| | | this.isShowSpinner = false; |
| | | } catch (error) { |
| | | console.log('error = ' + error.message) |
| | | } |
| | | |
| | | } else { |
| | | console.log("r = " + JSON.stringify(r)); |
| | | this.showMyToast('Error', r.msg, 'Error'); |
| | |
| | | let total = 100; |
| | | for (var i in this.topAccountData) { |
| | | console.log('i = ' + i); |
| | | this.topAccountData[i]["NameUrl"] = "/lexconsumableaccount?AccId=" + this.topAccountData[i].Id; |
| | | this.topAccountData[i]["accountName"] = this.topAccountData[i].Name; |
| | | this.topAccountData[i]["accountUrl"] = "/s/lexconsumableaccount?AccId=" + this.topAccountData[i].Id; |
| | | this.topAccountData[i]["isDisable"] = false; |
| | | this.topAccountData[i]["StateMasterName"] = this.topAccountData[i].State_Master__r.Name; |
| | | this.topAccountData[i]["StateMasterUrl"] = "/" + this.topAccountData[i].State_Master__c; |
| | | this.topAccountData[i]["CityMasterName"] = this.topAccountData[i].City_Master__r.Name; |
| | |
| | | // //å
¶ä» |
| | | if (total != 100) { |
| | | this.topAccountData.push({ |
| | | Name: '...', |
| | | NameUrl: '/lexconsumableaccount', |
| | | accountName: '...', |
| | | accountUrl: '/s/lexconsumableaccount', |
| | | isDisable: true, |
| | | proportion: total.toFixed(2) + '%', |
| | | CityMasterName: '...', |
| | | CityMasterNameUrl: '/lexconsumableaccount', |
| | |
| | | this.pageRecords = r.entity.pageRecords; |
| | | console.log("this.pageRecords = " + JSON.stringify(this.pageRecords)); |
| | | for (var i in this.pageRecords) { |
| | | this.pageRecords[i]["NameUrl"] = |
| | | "/lexconsumableaccount?AccId=" + this.pageRecords[i].Id; |
| | | this.pageRecords[i]["StateMasterName"] = |
| | | this.pageRecords[i].State_Master__r.Name; |
| | | this.pageRecords[i]["StateMasterUrl"] = |
| | | "/" + this.pageRecords[i].State_Master__c; |
| | | this.pageRecords[i]["CityMasterName"] = |
| | | this.pageRecords[i].City_Master__r.Name; |
| | | this.pageRecords[i]["CityMasterNameUrl"] = |
| | | "/" + this.pageRecords[i].City_Master__c; |
| | | this.pageRecords[i]["RecordTypeName"] = |
| | | this.pageRecords[i].RecordType.Name; |
| | | this.pageRecords[i]["Is_Active__c"] = this.pageRecords[i].Is_Active__c.replace('å¹','æ'); |
| | | this.pageRecords[i]["NameUrl"] = "/s/lexconsumableaccount?AccId=" + this.pageRecords[i].Id; |
| | | this.pageRecords[i]["StateMasterName"] = this.pageRecords[i].State_Master__r.Name; |
| | | this.pageRecords[i]["StateMasterUrl"] = "/" + this.pageRecords[i].State_Master__c; |
| | | this.pageRecords[i]["CityMasterName"] = this.pageRecords[i].City_Master__r.Name; |
| | | this.pageRecords[i]["CityMasterNameUrl"] = "/" + this.pageRecords[i].City_Master__c; |
| | | this.pageRecords[i]["RecordTypeName"] = this.pageRecords[i].RecordType.Name; |
| | | } |
| | | this.isShowSpinner = false; |
| | | } else { |
| | |
| | | <td style="width:122px;"> |
| | | <div style="color:#696969;font-size:16px;">æ¶èå订ååç§°</div> |
| | | </td> |
| | | <td style="width: 200px;"> |
| | | <td > |
| | | <lightning-input class="inputFont" type="text" label="æ¶èå订ååç§°" value={category1} variant="label-hidden" onchange={category1Change}></lightning-input> |
| | | </td> |
| | | <td style="width:30px;"></td> |
| | | <td style="width: 74px;"> |
| | | <div style="color:#696969;font-size:16px;">è®¢åæ¥æ</div> |
| | | </td> |
| | | <td style="width: 200px;"> |
| | | <td > |
| | | <lightning-input class="inputFont" type="date" name="orderDate" value={orderDate} label="è®¢åæ¥æ" variant="label-hidden" onchange={orderDateChange}></lightning-input> |
| | | </td> |
| | | <td style="width:30px;"></td> |
| | | <td style="width: 74px;"> |
| | | <div style="color:#696969;font-size:16px;">订åç¶æ</div> |
| | | </td> |
| | | <td style="width: 200px;"> |
| | | <td style="width: 250px;"> |
| | | <lightning-combobox class="inputFont" name="orderStatus" label="订åç¶æ" value={orderStatus} placeholder="è¯·éæ©..." options={provinceOpts} variant="label-hidden" onchange={orderStatusChange}></lightning-combobox> |
| | | </td> |
| | | <td style="width: 30px;"></td> |
| | | <td style="width: 400;"> |
| | | <!-- <lightning-button style="margin: 5px;" label="æç´¢" onclick={searchProduct}></lightning-button> |
| | | <lightning-button style="margin: 5px;" label="æ¸
空" onclick={clear}></lightning-button> --> |
| | | <button class="slds-button slds-button_neutral slds-button_stretch lexsearchStyle" style="margin-right: 30px;height:32px;" onclick={searchProduct}>æç´¢</button> |
| | | <button class="slds-button slds-button_neutral slds-button_stretch lexclearStyle" style="height:32px;" onclick={clear}>æ¸
空</button> |
| | | </tr> |
| | | </tbody> |
| | | </table> |
| | | <p style="height:10px;"></p> |
| | | <table> |
| | | <tbody> |
| | | <tr> |
| | | <td></td> |
| | | <td style="width:325px;"> |
| | | <button class="slds-button slds-button_neutral slds-button_stretch lexsearchStyle" style="margin-right: 20px;height:32px;width: 150px;" onclick={searchProduct}>æç´¢</button> |
| | | <button class="slds-button slds-button_neutral slds-button_stretch lexclearStyle" style="height:32px;width: 150px;" onclick={clear}>æ¸
空</button> |
| | | </td> |
| | | </tr> |
| | | </tbody> |
| | |
| | | <template> |
| | | <lightning-input |
| | | style="width:90%;" |
| | | variant="label-hidden" |
| | | type='text' |
| | | value = {DiffReason} |
| New file |
| | |
| | | <!-- sldsValidatorIgnore --> |
| | | <!-- sldsValidatorIgnore --> |
| | | <template> |
| | | <c-custom-mydr-comp |
| | | record-id={typeAttributes.recordId} |
| | | is-checked-my-dr={typeAttributes.isCheckedMyDr} |
| | | onunitchange={handleDataChange} |
| | | > |
| | | </c-custom-mydr-comp> |
| | | </template> |
| | |
| | | style="border-color: red;" |
| | | record-id={typeAttributes.recordId} |
| | | shipment-number={typeAttributes.shipmentNumber} |
| | | is-coninvoice={typeAttributes.isConinvoice} |
| | | esd-invoice-pro-not-count={typeAttributes.esdInvoiceProNotCount} |
| | | > |
| | | |
| | | </c-custom-shipment-number-comp> |
| New file |
| | |
| | | <!-- sldsValidatorIgnore --> |
| | | <!-- sldsValidatorIgnore --> |
| | | <template> |
| | | <c-custom-account-url-comp |
| | | account-name={typeAttributes.accountName} |
| | | account-url={typeAttributes.accountUrl} |
| | | is-disable={typeAttributes.isDisable} |
| | | > |
| | | </c-custom-account-url-comp> |
| | | </template> |
| New file |
| | |
| | | <!-- sldsValidatorIgnore --> |
| | | <!-- sldsValidatorIgnore --> |
| | | <template> |
| | | <c-custom-delete-reason-comp |
| | | record-id={typeAttributes.recordId} |
| | | > |
| | | </c-custom-delete-reason-comp> |
| | | </template> |
| | |
| | | import customOutboundCountTemplate from './customOutboundCount.html'; |
| | | import customWeeklyReportTemplate from './customWeeklyReport.html'; |
| | | import customAgencyOppInputTemplate from './customAgencyOppInput.html'; |
| | | import customMyDrCheckBoxTemplate from './customMyDrCheckBox.html'; |
| | | import customdeleteReasonTemplate from './customdeleteReason.html'; |
| | | import customAccountUrlTemplate from './customaccountUrl.html'; |
| | | import { loadStyle} from 'lightning/platformResourceLoader'; |
| | | import LexCustomDataTable from '@salesforce/resourceUrl/LexCustomDataTable'; |
| | | |
| | |
| | | }, |
| | | customShipment: { |
| | | template: customShipmentNumberTemplate, |
| | | typeAttributes: ['shipmentNumber','recordId'], |
| | | typeAttributes: ['shipmentNumber','recordId','isConinvoice','esdInvoiceProNotCount'], |
| | | }, |
| | | customShipmentUnitPrice: { |
| | | template: customShippingUnitPriceTemplate, |
| | |
| | | agencyOppInput:{ |
| | | template: customAgencyOppInputTemplate, |
| | | typeAttributes:['inputValue','recordId','fieldName','showType'], |
| | | }, |
| | | MyDrCheckBox:{ |
| | | template: customMyDrCheckBoxTemplate, |
| | | typeAttributes:['recordId','isCheckedMyDr'], |
| | | }, |
| | | deleteReason:{ |
| | | template: customdeleteReasonTemplate, |
| | | typeAttributes:['recordId'], |
| | | }, |
| | | customShowAccountUrl:{ |
| | | template: customAccountUrlTemplate, |
| | | typeAttributes:['accountName','accountUrl','isDisable'], |
| | | } |
| | | }; |
| | | constructor() { |
| | |
| | | <!-- <template if:true={showTable}> --> |
| | | <div style="padding:10px;"> |
| | | <lightning-datatable key-field="id" data={pageCodeRecords} columns={column} |
| | | hide-checkbox-column={hidecheckbox} class="wrapped-header-datatable"> |
| | | hide-checkbox-column={hidecheckbox} class="wrapped-header-datatable" style="word-wrap:break-word; word-break:break-all; "> |
| | | </lightning-datatable> |
| | | <c-paginator onprevious={handlePrevious} onnext={handleNext} onpageschange={handlePageschange} |
| | | onfirst={handleFirst} onlast={handleLast} page-size-options={pageSizeOptions} |
| | |
| | | fieldName: "Name__c", |
| | | wrapText: true, |
| | | hideDefaultActions: true, |
| | | // initialWidth: 550 |
| | | }, |
| | | { |
| | | label: "åä½", |
| | |
| | | fieldName: "Bar_Code__c", |
| | | hideDefaultActions: true, |
| | | wrapText: true, |
| | | initialWidth: 500, |
| | | // initialWidth: 300, |
| | | }, |
| | | { |
| | | label: "è°æ´åå ", |
| | | fieldName: "DiffReason", |
| | | hideDefaultActions: true, |
| | | wrapText: true, |
| | | // initialWidth: |
| | | |
| | | }, |
| | | ]; |
| | |
| | | @track isSummonsFlag; |
| | | //å±å¼æ |
| | | activeSections = ["dataExpand"]; |
| | | columnHeader = ["æ¶èååç§°", "åä½", "barCode", "è°æ´åå "]; |
| | | columnHeader = ["æ¶èååç§°", "åä½", "BarCode", "è°æ´åå "]; |
| | | //确认ä¸è§ |
| | | @track eSetId = ""; |
| | | @track EditAble = false; |
| | |
| | | getSelectedRows(event) { |
| | | let selectedRowsEvent = event.detail.selectedRows; |
| | | this.selectedRows = []; |
| | | for (var i in selectedRowsEvent) { |
| | | this.selectedRows.push(selectedRowsEvent[i].ProdId+this.data[i]["boxPiece"]); |
| | | for (var i in this.data) { |
| | | for (var j in selectedRowsEvent) { |
| | | if (this.data[i].ProdId+this.data[i]["boxPiece"] == selectedRowsEvent[j].ProdId+ selectedRowsEvent[j]["boxPiece"]) { |
| | | this.selectedRows.push(selectedRowsEvent[j].ProdId+this.data[i]["boxPiece"]) |
| | | } |
| | | const selectedRows = event.detail.selectedRows; |
| | | console.log("this.selectedRows = " + JSON.stringify(selectedRows)); |
| | | for (var i in selectedRows) { |
| | | this.selectedRows.push(selectedRows[i].ProdId+this.data[i]["boxPiece"]); |
| | | } |
| | | |
| | | // for (var i in selectedRowsEvent) { |
| | | // this.selectedRows.push(selectedRowsEvent[i].ProdId+this.data[i]["boxPiece"]); |
| | | // } |
| | | } |
| | | |
| | | } |
| | | //导åºä¸ºcsv |
| | | exportData() { |
| | | // Prepare a html table |
| | |
| | | // Add styles for the table |
| | | doc += '<style>'; |
| | | doc += 'table, th, td {'; |
| | | doc += ' border: 1px solid black;'; |
| | | doc += ' border: 1px solid;'; |
| | | doc += ' border-collapse: collapse;'; |
| | | doc += ' font-weight: normal;'; |
| | | doc += ' text-align: left;'; |
| | | doc += '}'; |
| | | doc += '</style>'; |
| | | // Add all the Table Headers |
| | | doc += '<tr>'; |
| | | this.columnHeader.forEach(element => { |
| | | doc += '<th>' + element + '</th>' |
| | | doc += '<th style="font-weight: bold";>' + element + '</th>' |
| | | }); |
| | | doc += '</tr>'; |
| | | // Add the data rows |
| | | this.codPageRecords.forEach(record => { |
| | | doc += '<tr>'; |
| | | doc += '<th>' + record.Name__c + '</th>'; |
| | | doc += '<th>' + record.Box_Piece__c + '</th>'; |
| | | doc += '<th>' + record.Bar_Code__c + '</th>'; |
| | | doc += '<th>' + record.DiffReason + '</th>'; |
| | | doc += '<td>' + record.Name__c + '</td>'; |
| | | doc += '<td>' + record.Box_Piece__c + '</td>'; |
| | | doc += '<td>' + record.Bar_Code__c + '</td>'; |
| | | doc += '<td>' + record.DiffReason + '</td>'; |
| | | doc += '</tr>'; |
| | | }); |
| | | doc += '</table>'; |
| | |
| | | disable-linkify> |
| | | </lightning-formatted-rich-text> |
| | | </span> |
| | | <span lwc:if={item.result.subtitleFormatted} |
| | | <!-- <span lwc:if={item.result.subtitleFormatted} |
| | | class="slds-listbox__option-meta slds-listbox__option-meta_entity"> |
| | | <lightning-formatted-rich-text value={item.result.subtitleFormatted} |
| | | disable-linkify> |
| | | </lightning-formatted-rich-text> |
| | | </span> |
| | | </span> --> |
| | | </span> |
| | | </div> |
| | | </li> |
| New file |
| | |
| | | <!-- sldsValidatorIgnore --> |
| | | <!-- sldsValidatorIgnore --> |
| | | <template> |
| | | <template if:true={isDoctor}> |
| | | <!-- å±ç¤º --> |
| | | <section role="dialog" tabindex="-1" aria-modal="true" aria-labelledby="modal-heading-01" |
| | | class="slds-modal slds-fade-in-open slds-modal_medium"> |
| | | <div class="slds-modal__container"> |
| | | <div class="slds-scrollable"> |
| | | <button class="slds-button slds-button_icon slds-modal__close slds-button_icon-inverse"> |
| | | <svg class="slds-button__icon slds-button__icon_large" aria-hidden="true"> |
| | | <use xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#close"></use> |
| | | </svg> |
| | | <span class="slds-assistive-text">Cancel and close</span> |
| | | </button> |
| | | <div class="slds-modal__header"> |
| | | <h1 id="modal-heading-01" class="slds-modal__title slds-hyphenate">æ°å»ºå®¢æ·äººå</h1> |
| | | </div> |
| | | <div class="slds-modal__content" id="modal-content-id-1"> |
| | | <lightning-card class="slds-text-align_center"> |
| | | <template if:true={isShowSpinner}> |
| | | <lightning-spinner size="large" alternative-text="Loading" |
| | | style="height: 100%;"></lightning-spinner> |
| | | </template> |
| | | <lightning-record-edit-form object-api-name={sobjectType} record-type-id={recordTypeId} |
| | | record-id={recordId} onsubmit={handleSubmit} onsuccess={handleSuccess} |
| | | onerror={handleError}> |
| | | <template for:each={layout} for:item="layoutSection"> |
| | | <lightning-accordion lwc:if={layoutSection.editHeading} class="greyyyy" |
| | | active-section-name={sectionName} allow-multiple-sections-open |
| | | key={layoutSection.name}> |
| | | <lightning-accordion-section name={layoutSection.label} |
| | | label={layoutSection.label}> |
| | | <lightning-layout multiple-rows="true"> |
| | | <template for:each={layoutSection.layoutColumns} |
| | | for:item="layoutColumns"> |
| | | <lightning-layout-item class="hehe-layoutItem" size="6" |
| | | key={layoutColumns.index}> |
| | | <template for:each={layoutColumns.layoutItems} |
| | | for:item="layoutField"> |
| | | <template if:false={layoutField.isDisable}> |
| | | <template if:false={layoutField.isModify}> |
| | | <lightning-input-field |
| | | field-name={layoutField.field} |
| | | value={layoutField.value} |
| | | required={layoutField.isRequired} |
| | | data-field={layoutField.field} |
| | | key={layoutField.field}> |
| | | </lightning-input-field> |
| | | </template> |
| | | <template if:true={layoutField.isModify}> |
| | | <lightning-input label={layoutField.fieldLabel} |
| | | value={layoutField.value} |
| | | required={layoutField.isRequired} |
| | | data-field={layoutField.field} |
| | | variant="label-inline" onchange={dataChange} |
| | | key={layoutField.field}> |
| | | </lightning-input> |
| | | </template> |
| | | </template> |
| | | </template> |
| | | </lightning-layout-item> |
| | | </template> |
| | | </lightning-layout> |
| | | </lightning-accordion-section> |
| | | |
| | | </lightning-accordion> |
| | | </template> |
| | | </lightning-record-edit-form> |
| | | </lightning-card> |
| | | </div> |
| | | </div> |
| | | <div class="slds-modal__footer"> |
| | | <div class="slds-text-align_center"> |
| | | <lightning-button label="ä¿å" type="submit" onsubmit={handleSubmit} |
| | | class="slds-m-right_x-small"></lightning-button> |
| | | <lightning-button label="åæ¶" onclick={cancel} class="slds-m-right_x-small"></lightning-button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </section> |
| | | </template> |
| | | <div class="slds-backdrop slds-backdrop_open"></div> |
| | | </template> |
| New file |
| | |
| | | import { LightningElement, api, track, wire } from 'lwc'; |
| | | import { CurrentPageReference } from 'lightning/navigation'; |
| | | import initData from '@salesforce/apex/LexNewAndEditContactPIPLController.initData'; |
| | | import { NavigationMixin } from 'lightning/navigation'; |
| | | import { AWSService } from 'c/piUtils'; |
| | | import { ShowToastEvent } from 'lightning/platformShowToastEvent'; |
| | | |
| | | export default class LexNewAndEditContactPIPL extends NavigationMixin(LightningElement) { |
| | | sobjectType = 'Contact'; |
| | | |
| | | @api recordId; |
| | | @track recordTypeId = ''; |
| | | @wire(CurrentPageReference) pageRef; |
| | | @track recordData = {}; |
| | | @track title = ''; |
| | | @track isShowSpinner = true; |
| | | @track layout = []; |
| | | @track isDoctor = true; |
| | | |
| | | |
| | | @track staticResource; |
| | | @track staticResourceContact; |
| | | @track piFieldsMap; |
| | | @track abstractData = ''; |
| | | @track data = {}; |
| | | @track piplData = {}; |
| | | @track isNewMode = false; |
| | | @track isCloneMode = false; |
| | | @track isEditMode = false; |
| | | @track sectionName = []; |
| | | @track AWSToSobjectMap = {}; |
| | | @track AWSDataId = ''; |
| | | @track txId = ''; |
| | | @track isShowSearchAccount = false; |
| | | @track hospitalId = ''; |
| | | @track contactId = ''; |
| | | AWSService; |
| | | |
| | | @track modifyObj = {}; |
| | | modifyArray = ['LastName']; |
| | | |
| | | connectedCallback() { |
| | | console.log('enter connectedCallback'); |
| | | this.AWSService = new AWSService(); |
| | | if (!this.recordId || this.isCloneMode) { |
| | | this.title = 'æ°å»ºå®¢æ·äººå'; |
| | | this.isNewMode = true; |
| | | } |
| | | if (this.recordId) { |
| | | this.title = 'ç¼è¾å®¢æ·äººå'; |
| | | this.isEditMode = true; |
| | | } |
| | | if (this.pageRef && this.pageRef.state) { |
| | | this.recordTypeId = this.pageRef.state.recordTypeId; |
| | | console.log('this.recordTypeId = ' + this.recordTypeId); |
| | | } |
| | | console.log('recordId = ' + this.recordId + ' recordTypeId = ' + this.recordTypeId + ' sobjectType = ' + this.sobjectType); |
| | | initData({ |
| | | rid: this.recordId, |
| | | recordTypeId: this.recordTypeId, |
| | | sobjectType: this.sobjectType |
| | | }).then((r) => { |
| | | r = JSON.parse(JSON.stringify(r)); |
| | | if (r.status == 'Success') { |
| | | this.isDoctor = r.entity.isDoctor; |
| | | console.log('this.isDoctor = ' + this.isDoctor); |
| | | if(this.isEditMode){ |
| | | this.recordTypeId = r.entity.recordTypeId; |
| | | } |
| | | console.log('this.recordTypeId = ' + this.recordTypeId); |
| | | debugger |
| | | //妿䏿¯å»é¢ç±»åï¼ä½¿ç¨æ åé¡µé¢ |
| | | if (!this.isDoctor) { |
| | | if(this.isNewMode) |
| | | this.RedirectStandardNewPage(); |
| | | if(this.isEditMode) |
| | | this.RedirectStandardEditPage(); |
| | | return |
| | | } |
| | | this.AWSDataId = r.entity.AWSDataId; |
| | | let layout = JSON.parse(r.entity.layout); |
| | | console.log('layout = ' + JSON.stringify(layout)); |
| | | console.log('layout = ' + typeof layout); |
| | | |
| | | let index = 1; |
| | | this.sectionName = layout.map(s => s.label); |
| | | for (let s of layout) { |
| | | for (let c of s.layoutColumns) { |
| | | c['index'] = index++; |
| | | if (c.layoutItems) { |
| | | for (let item of c.layoutItems) { |
| | | item['isDisable'] = item.behavior == 'Readonly' ? true : false; |
| | | item['isRequired'] = item.behavior == 'Required' ? true : false; |
| | | item['isModify'] = false; |
| | | if (item['field'] == 'Name') { |
| | | item.field = 'LastName'; |
| | | item.fieldLabel = 'å§å' |
| | | item['isModify'] = true; |
| | | if (this.isEditMode) { |
| | | item['value'] = this.recordData.LastName |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | this.layout = layout; |
| | | console.log('this.layout = ' + JSON.stringify(this.layout)); |
| | | this.AWSToSobjectMap = JSON.parse(JSON.stringify(r.entity.AWSToSobjectNonEncryptedMap)); |
| | | this.staticResource = JSON.parse(r.entity.staticResource); |
| | | |
| | | |
| | | //ç¼è¾ |
| | | if (this.isEditMode) { |
| | | //è§£å¯å®¢æ·çå å¯å段 |
| | | this.querySobjectFromAWS(); |
| | | } |
| | | this.isShowSpinner = false; |
| | | } else { |
| | | this.showToast('Error', r.msg); |
| | | } |
| | | }) |
| | | } |
| | | |
| | | querySobjectFromAWS() { |
| | | debugger |
| | | var that = this; |
| | | this.AWSService.query(this.staticResource.queryUrl, this.AWSDataId, function (data) { |
| | | console.log('queryLeadFromAWSIFS data = ' + JSON.stringify(data)); |
| | | if (data.object) { |
| | | for (let s of that.layout) { |
| | | for (let lc of s.layoutColumns) { |
| | | if(lc.layoutItems){ |
| | | for (let c of lc.layoutItems) { |
| | | for (let f in that.AWSToSobjectMap) { |
| | | if (data.object.hasOwnProperty(f) && c['field'] == that.AWSToSobjectMap[f]) { |
| | | c['value'] = data.object[f] == null ? '' : data.object[f]; |
| | | if (c['field'] == 'LastName') { |
| | | that.modifyObj['LastName'] = data.object[f] == null ? '' : data.object[f]; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | // for (var s of that.layout) { |
| | | // for (var c of s.layoutFields) { |
| | | // for (let f in that.AWSToSobjectMap) { |
| | | // if (data.object.hasOwnProperty(f) && c['fieldAPI'] == that.AWSToSobjectMap[f]) { |
| | | // c['value'] = data.object[f] == null ? '' : data.object[f]; |
| | | // if (c['fieldAPI'] == 'LastName') { |
| | | // that.modifyObj['LastName'] = data.object[f] == null ? '' : data.object[f]; |
| | | // } |
| | | // } |
| | | // } |
| | | // } |
| | | // } |
| | | } |
| | | }, this.staticResource.token) |
| | | } |
| | | |
| | | |
| | | dataChange(event) { |
| | | let fieldName = event.target.getAttribute("data-field"); |
| | | let value = event.detail.value; |
| | | console.log("fieldName = " + fieldName + " value = " + event.detail.value); |
| | | switch (fieldName) { |
| | | case "LastName": |
| | | this.modifyObj[fieldName] = value; |
| | | break; |
| | | } |
| | | } |
| | | |
| | | handleSubmit(event) { |
| | | this.isShowSpinner = true; |
| | | //1. Get Sobject Information from Form |
| | | console.log('handleSubmit'); |
| | | event.preventDefault(); |
| | | const fields = event.detail.fields; |
| | | console.log('this.modifyObj = ' + JSON.stringify(this.modifyObj)); |
| | | Object.assign(fields, this.modifyObj); |
| | | console.log('fields = ' + JSON.stringify(fields)); |
| | | |
| | | debugger |
| | | //2. select cannot actively select redaction option |
| | | let validationResultMessage = this.validateFieldValueFormate(fields); |
| | | console.log(validationResultMessage); |
| | | if (validationResultMessage) { |
| | | this.showToast('Error', validationResultMessage); |
| | | return |
| | | } |
| | | |
| | | //3. Check Required Field |
| | | let checkRequiredFieldMsgResult = this.checkRequiredFieldMsg(fields); |
| | | console.log('checkRequiredFieldMsgResult = ' + checkRequiredFieldMsgResult); |
| | | if (checkRequiredFieldMsgResult != '') { |
| | | this.showToast('Error', checkRequiredFieldMsgResult + 'éè¦è¿è¡å¡«å'); |
| | | return |
| | | } |
| | | |
| | | //4. Prepare the payload for New PI API To AWS - To Do |
| | | let payloadForNewPI = this.getPIPayload(fields); |
| | | console.log('payloadForNewPI = ' + payloadForNewPI); |
| | | |
| | | //5. PI To AWS |
| | | //æ°å»º |
| | | if (this.isNewMode) { |
| | | this.NewPIToAWS(payloadForNewPI, fields); |
| | | } |
| | | //ç¼è¾ |
| | | if (this.isEditMode) { |
| | | this.UpdatePIToAWS(payloadForNewPI, fields); |
| | | } |
| | | } |
| | | |
| | | //éªè¯å段 |
| | | validateFieldValueFormate(fields) { |
| | | let error_msg = ''; |
| | | let b = false; |
| | | for (var key in fields) { |
| | | if (fields[key] == "*****") |
| | | b = true; |
| | | } |
| | | if (b) |
| | | error_msg = '䏿æ¡ä¸è½ä¸»å¨éæ©å¯æé项'; |
| | | return error_msg; |
| | | } |
| | | |
| | | //éªè¯requiredåæ®µéè¦è¿è¡å¡«å |
| | | checkRequiredFieldMsg(fields) { |
| | | let msg = ''; |
| | | try { |
| | | for (let s of this.layout) { |
| | | for (let lc of s.layoutColumns) { |
| | | if (lc.layoutItems) { |
| | | for (let c of lc.layoutItems) { |
| | | if (!c.isDisable && c.isRequired && (fields[c.field] == null || fields[c.field] == '')) { |
| | | msg += ';' + c.fieldLabel; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } catch (err) { |
| | | this.showToast('Error',err.message); |
| | | } |
| | | msg = msg.substring(1); |
| | | return msg; |
| | | } |
| | | |
| | | //è·åPIåæ®µ |
| | | getPIPayload(sobjJsonLwc) { |
| | | console.log() |
| | | let leadPayloadList = []; |
| | | let leadPIData = {}; |
| | | |
| | | for (let f in this.AWSToSobjectMap) { |
| | | if (sobjJsonLwc.hasOwnProperty(this.AWSToSobjectMap[f])) { |
| | | leadPIData[f] = sobjJsonLwc[this.AWSToSobjectMap[f]] |
| | | } |
| | | else { |
| | | console.log(this.AWSToSobjectMap[f] + 'is not in sobjJsonLwc'); |
| | | } |
| | | } |
| | | |
| | | leadPIData.medicalStaffFullName = leadPIData.lastName; |
| | | leadPIData.sfRecordId = ''; |
| | | console.log('Sobject PI Data x :' + leadPIData); |
| | | leadPayloadList.push(leadPIData); |
| | | console.log('leadPayloadList = ' + JSON.stringify(leadPayloadList)); |
| | | return JSON.stringify(leadPayloadList); |
| | | } |
| | | |
| | | //æ°å»ºä¿åToAWS |
| | | NewPIToAWS(payloadForNewPI, fields) { |
| | | this.AWSService.post(this.staticResource.newUrl, payloadForNewPI, (result) => { |
| | | if (result && result.object) { |
| | | console.log('result = ' + JSON.stringify(result)); |
| | | for (let f in this.AWSToSobjectMap) { |
| | | if (result.object[0].hasOwnProperty(f)) { |
| | | fields[this.AWSToSobjectMap[f]] = result.object[0][f]; |
| | | console.log('this.AWSToSobjectMap[f] = ' + this.AWSToSobjectMap[f]); |
| | | console.log('fields[this.AWSToSobjectMap[f]] = ' + fields[this.AWSToSobjectMap[f]]); |
| | | } |
| | | else { |
| | | console.log(f + 'is not in result.object[0]'); |
| | | } |
| | | } |
| | | fields['AWS_Data_Id__c'] = result.object[0].dataId; |
| | | this.txId = result.txId; |
| | | //ä¿åå°å端 |
| | | this.template.querySelector('lightning-record-edit-form').submit(fields); |
| | | } else { |
| | | console.log('result = ' + JSON.stringify(result)); |
| | | } |
| | | }, this.staticResource.token); |
| | | } |
| | | |
| | | //ç¼è¾ä¿åToAWS |
| | | UpdatePIToAWS(payloadForNewPI, fields) { |
| | | let obj = JSON.parse(payloadForNewPI); |
| | | obj[0].dataId = this.AWSDataId; |
| | | let payloadForNewPIJson = JSON.stringify(obj); |
| | | this.AWSService.post(this.staticResource.updateUrl, payloadForNewPIJson, (result) => { |
| | | if (result && result.object) { |
| | | console.log('result = ' + JSON.stringify(result)); |
| | | for (let f in this.AWSToSobjectMap) { |
| | | if (result.object[0].hasOwnProperty(f)) { |
| | | fields[this.AWSToSobjectMap[f]] = result.object[0][f]; |
| | | console.log('this.AWSToSobjectMap[f] = ' + this.AWSToSobjectMap[f]); |
| | | console.log('fields[this.AWSToSobjectMap[f]] = ' + fields[this.AWSToSobjectMap[f]]); |
| | | } |
| | | else { |
| | | console.log(f + 'is not in result.object[0]'); |
| | | } |
| | | } |
| | | fields['AWS_Data_Id__c'] = this.AWSDataId; |
| | | this.txId = result.txId; |
| | | console.log('this.txId = ' + this.txId); |
| | | console.log('PI After fields = ' + JSON.stringify(fields)); |
| | | if (fields.RecordTypeId) { |
| | | fields['RecordTypeId'] = fields.RecordTypeId.substring(1, fields.RecordTypeId.length - 1); |
| | | } |
| | | //ä¿åå°å端 |
| | | console.log('update submit = ' + JSON.stringify(fields)); |
| | | this.template.querySelector('lightning-record-edit-form').submit(fields); |
| | | } else { |
| | | console.log('result = ' + JSON.stringify(result)); |
| | | } |
| | | }, this.staticResource.token); |
| | | } |
| | | |
| | | //æäº¤ä¿åæå |
| | | handleSuccess(event) { |
| | | let updatedRecord = event.detail.id; |
| | | console.log('onsuccess: ', updatedRecord); |
| | | console.log('confirmTrans'); |
| | | let that = this; |
| | | this.AWSService.confirm(true, updatedRecord, this.txId, this.staticResource.token, this.staticResource.transactionUrl, function (result) { |
| | | console.log('result = ' + JSON.stringify(result)) |
| | | that.showToast('Success', 'ä¿åæå'); |
| | | console.log('updatedRecord = ' + updatedRecord) |
| | | that[NavigationMixin.Navigate]({ |
| | | type: 'standard__recordPage', |
| | | attributes: { |
| | | actionName: "view", |
| | | recordId: updatedRecord, |
| | | objectApiName: that.sobjectType |
| | | } |
| | | }); |
| | | }); |
| | | } |
| | | |
| | | //æäº¤ä¿å失败 |
| | | handleError(event) { |
| | | event.preventDefault(); |
| | | event.stopImmediatePropagation(); |
| | | this.showToast("Error", event.detail.detail); |
| | | this.AWSService.confirm(false, '', this.txId, this.staticResource.token, this.staticResource.transactionUrl, function (result) { |
| | | console.log('result = ' + JSON.stringify(result)) |
| | | }); |
| | | } |
| | | |
| | | //changeäºä»¶ |
| | | dataChange(event) { |
| | | let fieldName = event.target.getAttribute("data-field"); |
| | | let value = event.detail.value; |
| | | console.log("fieldName = " + fieldName + " value = " + event.detail.value); |
| | | if (this.modifyArray.indexOf(fieldName) != -1) { |
| | | switch (fieldName) { |
| | | case "LastName": |
| | | this.modifyObj[fieldName] = value; |
| | | break; |
| | | } |
| | | } |
| | | } |
| | | |
| | | //åæ¶ |
| | | cancel() { |
| | | console.log('cancel'); |
| | | window.history.back(); |
| | | } |
| | | |
| | | //æ åæ°å»ºé¡µé¢è·³è½¬ |
| | | RedirectStandardNewPage() { |
| | | this[NavigationMixin.Navigate]({ |
| | | type: 'standard__objectPage', |
| | | attributes: { |
| | | objectApiName: 'Contact', |
| | | actionName: 'new' |
| | | }, |
| | | state: { |
| | | nooverride: '1', |
| | | recordTypeId: this.recordTypeId |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //æ åç¼è¾é¡µé¢è·³è½¬ |
| | | RedirectStandardEditPage() { |
| | | this[NavigationMixin.Navigate]({ |
| | | type: 'standard__recordPage', |
| | | attributes: { |
| | | objectApiName: 'Contact', |
| | | recordId: this.recordId, |
| | | actionName: 'edit', |
| | | }, |
| | | state: { |
| | | nooverride: '1', |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //æ¾ç¤ºä¿¡æ¯ |
| | | showToast(type, msg) { |
| | | this.isShowSpinner = false; |
| | | const event = new ShowToastEvent({ |
| | | title: type, |
| | | variant: type, |
| | | message: msg |
| | | }); |
| | | this.dispatchEvent(event); |
| | | } |
| | | } |
| force-app/main/default/lwc/lexNewAndEditContactPIPL/lexNewAndEditContactPIPL.js-meta.xml
force-app/main/default/lwc/lexOutboundorderImport/lexOutboundorderImport.js
force-app/main/default/lwc/lexOverdueStock/lexOverdueStock.html
force-app/main/default/lwc/lexOverdueStock/lexOverdueStock.js
force-app/main/default/lwc/lexProductLimitEdit/lexProductLimitEdit.js
force-app/main/default/lwc/lexRemoveBox/lexRemoveBox.html
force-app/main/default/lwc/lexRemoveBox/lexRemoveBox.js
force-app/main/default/lwc/lexSaleAndDelivery/lexSaleAndDelivery.html
force-app/main/default/lwc/lexSaleAndDelivery/lexSaleAndDelivery.js
force-app/main/default/lwc/lexSummonsCreat/lexSummonsCreat.css
force-app/main/default/lwc/lexSummonsCreat/lexSummonsCreat.html
force-app/main/default/lwc/lexSummonsCreat/lexSummonsCreat.js
force-app/main/default/lwc/lexTopPage/lexTopPage.js
force-app/main/default/lwc/lexinventoryViewLWC/lexinventoryViewLWC.css
force-app/main/default/lwc/lexinventoryViewLWC/lexinventoryViewLWC.html
force-app/main/default/lwc/lexinventoryViewLWC/lexinventoryViewLWC.js
force-app/main/default/networks/Consumable系统.network-meta.xml
force-app/main/default/networks/Partner Sales.network-meta.xml
force-app/main/default/networks/消耗品管理系统.network-meta.xml
force-app/main/default/networks/电子签收系统.network-meta.xml
force-app/main/default/objects/LicenceReminderDate__c/LicenceReminderDate__c.object-meta.xml
force-app/main/default/objects/LicenceReminderDate__c/fields/ReminderDays__c.field-meta.xml
force-app/main/default/objects/NoteStay__c/NoteStay__c.object-meta.xml
force-app/main/default/objects/NoteStay__c/fields/IsStay__c.field-meta.xml
force-app/main/default/sites/Consumable.site-meta.xml
force-app/main/default/sites/Partner_Sales.site-meta.xml
force-app/main/default/sites/Site.site-meta.xml
force-app/main/default/sites/Site2.site-meta.xml
force-app/main/default/sites/extsurvey.site-meta.xml
force-app/main/default/triggers/ConsumableOrderDetail2Trigger.trigger
force-app/main/default/triggers/ConsumableOrderDetail2Trigger.trigger-meta.xml
force-app/main/default/triggers/ConsumableOrderTrigger.trigger
force-app/main/default/triggers/ContentDocumentLink.trigger
force-app/main/default/triggers/ContentDocumentTrigger.trigger
manifest/package.xml |