From f0bccccbb88d93ac05010c17d4b2e0cb22a2ce9a Mon Sep 17 00:00:00 2001
From: buli <137736985@qq.com>
Date: 星期四, 20 四月 2023 15:45:11 +0800
Subject: [PATCH] backup0420
---
force-app/main/default/lwc/lexCustomLightningDatatable/lexCustomLightningDatatable.js | 31 +++++++++++++++++++++++--------
1 files changed, 23 insertions(+), 8 deletions(-)
diff --git a/force-app/main/default/lwc/lexCustomLightningDatatable/lexCustomLightningDatatable.js b/force-app/main/default/lwc/lexCustomLightningDatatable/lexCustomLightningDatatable.js
index a7ef433..2266f29 100644
--- a/force-app/main/default/lwc/lexCustomLightningDatatable/lexCustomLightningDatatable.js
+++ b/force-app/main/default/lwc/lexCustomLightningDatatable/lexCustomLightningDatatable.js
@@ -3,31 +3,46 @@
import customShipmentNumberTemplate from './customShipmentNumber.html';
import customShippingUnitPriceTemplate from './customShippingUnitPrice.html';
import customShipmentAmountTemplate from './customShipmentAmount.html';
-import { loadStyle } from 'lightning/platformResourceLoader';
+import customDiffReasonTemplate from './lexCustomDiffReason.html';
+import attachmentTypeTemplate from './customAttachmentType.html';
+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']
+ typeAttributes: ['unitValue','unitOptions','recordId'],
},
customShipment: {
template: customShipmentNumberTemplate,
- typeAttributes: ['recordId']
+ typeAttributes: ['shipmentNumber','recordId'],
},
customShipmentUnitPrice: {
template: customShippingUnitPriceTemplate,
- typeAttributes: ['recordId']
+ typeAttributes: ['shippingUnitPrice','recordId'],
},
customShipmentAmount: {
template: customShipmentAmountTemplate,
- typeAttributes: ['shipmentAmount', 'recordId']
+ typeAttributes: ['shipmentAmount','recordId'],
+ },
+ customDiffReason : {
+ template: customDiffReasonTemplate,
+ typeAttributes: ['ProdId'],
+ },
+ customAttachmentType: {
+ template: attachmentTypeTemplate,
+ typeAttributes: ['typeValue','typeOptions','recordId','isDisabledAttachment'],
+ },
+ customTableInput: {
+ template: customTableInputTemplate,
+ typeAttributes:['inputValue','recordId'],
}
};
constructor() {
super();
- Promise.all([loadStyle(this, LexCustomDataTable)]).then(() => {});
+ Promise.all([
+ loadStyle(this, LexCustomDataTable),
+ ]).then(() => {})
}
-
-}
+}
\ No newline at end of file
--
Gitblit v1.9.1