From 75550e1bd16611d11ffac577f14ba743c6711338 Mon Sep 17 00:00:00 2001
From: yumenghui <953181891@qq.com>
Date: 星期一, 07 八月 2023 20:33:22 +0800
Subject: [PATCH] 按钮及附件修改
---
force-app/main/default/lwc/lexCustomLightningDatatable/lexCustomLightningDatatable.js | 92 ++++++++++++++++++++++++++++++++++++++--------
1 files changed, 76 insertions(+), 16 deletions(-)
diff --git a/force-app/main/default/lwc/lexCustomLightningDatatable/lexCustomLightningDatatable.js b/force-app/main/default/lwc/lexCustomLightningDatatable/lexCustomLightningDatatable.js
index eb6822a..930abca 100644
--- a/force-app/main/default/lwc/lexCustomLightningDatatable/lexCustomLightningDatatable.js
+++ b/force-app/main/default/lwc/lexCustomLightningDatatable/lexCustomLightningDatatable.js
@@ -8,52 +8,112 @@
import customTableInputTemplate from './customTableInput.html';
import customOutputGoodsTemplate from './customOutputGoods.html';
import customReturnGoodInputTemplate from './customReturnGoodInput.html';
-import { loadStyle} from 'lightning/platformResourceLoader';
+import customInventoryColorTemplate from './customInventoryColor.html';
+import customTableCellIconTemplate from './customTableCellIcon.html';
+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';
export default class LexCustomLightningDatatable extends LightningDatatable {
static customTypes = {
customUnit: {
template: customUnitTemplate,
- typeAttributes: ['unitValue','unitOptions','recordId'],
+ typeAttributes: [
+ 'unitValue',
+ 'unitOptions',
+ 'recordId',
+ 'isDisabled'
+ ]
},
customShipment: {
template: customShipmentNumberTemplate,
- typeAttributes: ['shipmentNumber','recordId'],
+ 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'],
+ typeAttributes: ['ProdId', 'boxPiece']
},
customAttachmentType: {
template: attachmentTypeTemplate,
- typeAttributes: ['typeValue','typeOptions','recordId','isDisabledAttachment'],
+ typeAttributes: [
+ 'typeValue',
+ 'typeOptions',
+ 'recordId',
+ 'isDisabledAttachment'
+ ]
},
customTableInput: {
template: customTableInputTemplate,
- typeAttributes:['inputValue','recordId','valueType'],
+ 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: {
+ template: customInventoryColorTemplate,
+ typeAttributes: ['value', 'upperlimit', 'lowerlimit', 'boxPrice']
+ },
+ tableCellIcon: {
+ template: customTableCellIconTemplate,
+ typeAttributes: ['iconName', 'recordId']
+ },
+ outboundCount: {
+ template: customOutboundCountTemplate,
+ typeAttributes: ['isDisable', 'recordId', 'Count']
+ },
+ weeklyReport: {
+ template: customWeeklyReportTemplate,
+ typeAttributes: ['recordId', 'hospitalName', 'isShowButton']
+ },
+ 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() {
super();
- Promise.all([
- loadStyle(this, LexCustomDataTable),
- ]).then(() => {})
+ Promise.all([loadStyle(this, LexCustomDataTable)]).then(() => {});
}
}
\ No newline at end of file
--
Gitblit v1.9.1