From 80a3f59e2d3df07805bc67e329300b8de90a5b3a Mon Sep 17 00:00:00 2001 From: buli <137736985@qq.com> Date: 星期二, 11 七月 2023 14:13:08 +0800 Subject: [PATCH] Merge branch 'LEXCommunityLiJun' into LEXUpgrade2023-Deloitte --- force-app/main/default/lwc/lexCustomLightningDatatable/lexCustomLightningDatatable.js | 86 ++++++++++++++++++++++++++---------------- 1 files changed, 53 insertions(+), 33 deletions(-) diff --git a/force-app/main/default/lwc/lexCustomLightningDatatable/lexCustomLightningDatatable.js b/force-app/main/default/lwc/lexCustomLightningDatatable/lexCustomLightningDatatable.js index 1f46c88..405d6bf 100644 --- a/force-app/main/default/lwc/lexCustomLightningDatatable/lexCustomLightningDatatable.js +++ b/force-app/main/default/lwc/lexCustomLightningDatatable/lexCustomLightningDatatable.js @@ -16,84 +16,104 @@ import customMyDrCheckBoxTemplate from './customMyDrCheckBox.html'; import customdeleteReasonTemplate from './customdeleteReason.html'; import customAccountUrlTemplate from './customaccountUrl.html'; -import { loadStyle} from 'lightning/platformResourceLoader'; +import { loadStyle } from 'lightning/platformResourceLoader'; import LexCustomDataTable from '@salesforce/resourceUrl/LexCustomDataTable'; export default class LexCustomLightningDatatable extends LightningDatatable { static customTypes = { customUnit: { template: customUnitTemplate, - typeAttributes: ['unitValue','unitOptions','recordId','isDisabled'], + typeAttributes: [ + 'unitValue', + 'unitOptions', + 'recordId', + 'isDisabled' + ] }, customShipment: { template: customShipmentNumberTemplate, - typeAttributes: ['shipmentNumber','recordId','isConinvoice','esdInvoiceProNotCount'], + typeAttributes: [ + 'shipmentNumber', + 'recordId', + 'isConinvoice', + 'esdInvoiceProNotCount' + ] }, customShipmentUnitPrice: { template: customShippingUnitPriceTemplate, - typeAttributes: ['shippingUnitPrice','recordId'], + typeAttributes: ['shippingUnitPrice', 'recordId'] }, customShipmentAmount: { template: customShipmentAmountTemplate, - typeAttributes: ['shipmentAmount','recordId'], + typeAttributes: ['shipmentAmount', 'recordId'] }, - customDiffReason : { + customDiffReason: { template: customDiffReasonTemplate, - typeAttributes: ['ProdId','boxPiece'], + typeAttributes: ['ProdId', 'boxPiece'] }, customAttachmentType: { template: attachmentTypeTemplate, - typeAttributes: ['typeValue','typeOptions','recordId','isDisabledAttachment'], + typeAttributes: [ + 'typeValue', + 'typeOptions', + 'recordId', + 'isDisabledAttachment' + ] }, customTableInput: { template: customTableInputTemplate, - typeAttributes:['inputValue','recordId','valueType','upperLimit','lowerLimit','allnumber'], + typeAttributes: [ + 'inputValue', + 'recordId', + 'valueType', + 'upperLimit', + 'lowerLimit', + 'allnumber' + ] }, - customOutputGood:{ + customOutputGood: { template: customOutputGoodsTemplate, - typeAttributes:['outputValue','type','recordId'], + typeAttributes: ['outputValue', 'type', 'recordId'] }, - customReturnGoodInput:{ + customReturnGoodInput: { template: customReturnGoodInputTemplate, - typeAttributes:['inputValue','boxPrice','recordId'], + typeAttributes: ['inputValue', 'boxPrice', 'recordId'] }, - customInventoryColor:{ + customInventoryColor: { template: customInventoryColorTemplate, - typeAttributes:['value','upperlimit','lowerlimit','boxPrice'], + typeAttributes: ['value', 'upperlimit', 'lowerlimit', 'boxPrice'] }, - tableCellIcon:{ + tableCellIcon: { template: customTableCellIconTemplate, - typeAttributes:['iconName','recordId'], + typeAttributes: ['iconName', 'recordId'] }, - outboundCount:{ + outboundCount: { template: customOutboundCountTemplate, - typeAttributes:['isDisable','recordId','Count'], + typeAttributes: ['isDisable', 'recordId', 'Count'] }, - weeklyReport:{ + weeklyReport: { template: customWeeklyReportTemplate, - typeAttributes:['recordId','hospitalName','isShowButton'], + typeAttributes: ['recordId', 'hospitalName', 'isShowButton'] }, - agencyOppInput:{ + agencyOppInput: { template: customAgencyOppInputTemplate, - typeAttributes:['inputValue','recordId','fieldName','showType'], + typeAttributes: ['inputValue', 'recordId', 'fieldName', 'showType'] }, - MyDrCheckBox:{ + MyDrCheckBox: { template: customMyDrCheckBoxTemplate, - typeAttributes:['recordId','isCheckedMyDr'], + typeAttributes: ['recordId', 'isCheckedMyDr'] }, - deleteReason:{ + deleteReason: { template: customdeleteReasonTemplate, - typeAttributes:['recordId'], + typeAttributes: ['recordId'] }, - customShowAccountUrl:{ + customShowAccountUrl: { template: customAccountUrlTemplate, - typeAttributes:['accountName','accountUrl','isDisable'], + typeAttributes: ['accountName', 'accountUrl', 'isDisable'] } }; constructor() { super(); - Promise.all([ - loadStyle(this, LexCustomDataTable), - ]).then(() => {}) + Promise.all([loadStyle(this, LexCustomDataTable)]).then(() => {}); } -} \ No newline at end of file +} -- Gitblit v1.9.1