import { LightningElement, wire, api, track } from 'lwc'; import { ShowToastEvent } from 'lightning/platformShowToastEvent'; const columns = [ { label: '消耗品名称', fieldName: 'Name__c', initialWidth: 350, }, { label: '规格', fieldName: 'ProductPacking_list_manual__c', hideDefaultActions: true, initialWidth: 250, }, { label: 'CFDA状态', fieldName: 'CFDA_Status__c', hideDefaultActions: true, initialWidth: 250, }, { label: '注册证编码号', fieldName: 'Report_Product_Approbation__c', hideDefaultActions: true, initialWidth: 250, }, { label: '注册证效期', fieldName: 'Report_Product_Expiration__c', hideDefaultActions: true, initialWidth: 250, }, { label: 'BarCode', fieldName: 'Bar_Code__c', hideDefaultActions: true, initialWidth: 250, } ]; const column = [ { label: '消耗品名称', fieldName: 'Name__c', }, { label: 'BarCode', fieldName: 'Bar_Code__c', hideDefaultActions: true, } , { label: '错误原因', fieldName: 'ErrorReason', hideDefaultActions: true, } ]; export default class LexCancelRemoveBox extends LightningElement { columns = columns; column = column; @track selectedRows = []; @track data = []; @track errorDetail = []; // 显示 @track showTable = false @track accountName @track userWorkLocation @track agencyProType @track barcode = '' }