| | |
| | | label: "CFDA状态", |
| | | fieldName: "SFDA_Status__c", |
| | | cellAttributes: { alignment: "left" }, |
| | | initialWidth: 80, |
| | | initialWidth: 95, |
| | | wrapText: true, |
| | | hideDefaultActions: true, |
| | | }, |
| | |
| | | fieldName: "guaranteeperiod", |
| | | cellAttributes: { alignment: "left" }, |
| | | hideDefaultActions: true, |
| | | initialWidth: 95 |
| | | initialWidth: 105 |
| | | }, |
| | | { |
| | | label:'有效期内库存', |
| | | type: "customInventoryColor", |
| | | // sortable: true, |
| | | cellAttributes: {alignment: "right" }, |
| | | typeAttributes: { |
| | | value: { fieldName:"limitCount"}, |
| | |
| | | boxPrice:{ fieldName: "BoxPiece" }, |
| | | }, |
| | | hideDefaultActions: true, |
| | | |
| | | initialWidth:95 |
| | | initialWidth:150 |
| | | }, |
| | | |
| | | { |
| | |
| | | fieldName: "overlimitCount", |
| | | hideDefaultActions: true, |
| | | cellAttributes: { alignment: "right" }, |
| | | initialWidth:75 |
| | | initialWidth:80 |
| | | } |
| | | ]; |
| | | defaultSortDirection = "asc"; |
| | |
| | | hideDefaultActions: true, |
| | | type:'boolean', |
| | | cellAttributes: { alignment: "left" }, |
| | | initialWidth:75 |
| | | initialWidth:80 |
| | | |
| | | }; |
| | | this.columns.push(object1); |
| | |
| | | this.showSpinner = false; |
| | | } else { |
| | | // this.showToast("Error",'Error', result.msg); |
| | | this.showMyToast('初始化失败','result.msg','error'); |
| | | this.showMyToast('初始化失败',result.msg,'error'); |
| | | } |
| | | }).catch((error) => { |
| | | this.loader = false; |
| | | this.showSpinner = false; |
| | | console.log("error = " + JSON.stringify(error)); |
| | | }); |
| | | } |
| | | |
| | | handlePaginatorChange(event) { |
| | | this.recordsToDisplay = event.detail.recordsToDisplay; |
| | | this.preSelected = event.detail.preSelected; |
| | | if (this.recordsToDisplay && this.recordsToDisplay > 0) { |
| | | this.rowNumberOffset = this.recordsToDisplay[0].rowNumber - 1; |
| | | } else { |
| | | this.rowNumberOffset = 0; |
| | | } |
| | | } |
| | | |
| | | handleChange(event) { |
| | |
| | | this.showTable = true; |
| | | } else { |
| | | // this.showToast("Error",'Error', result.msg); |
| | | this.showMyToast('搜索失败','result.msg','error'); |
| | | this.showMyToast('搜索失败',result.msg,'error'); |
| | | } |
| | | }) |
| | | .catch((error) => { |
| | |
| | | this[NavigationMixin.Navigate]({ |
| | | type: 'standard__webPage', |
| | | attributes: { |
| | | url: '/lexInventory' |
| | | url: '/lexinventory' |
| | | } |
| | | }); |
| | | } |
| | |
| | | this[NavigationMixin.Navigate]({ |
| | | type: 'standard__webPage', |
| | | attributes: { |
| | | url: '/lexoverdueStock' |
| | | url: '/lexoverduestock' |
| | | } |
| | | }); |
| | | |
| | |
| | | this[NavigationMixin.Navigate]({ |
| | | type: 'standard__webPage', |
| | | attributes: { |
| | | url: '/lexCancelRemoveBox' |
| | | url: '/lexcancelremovebox' |
| | | } |
| | | }); |
| | | |
| | |
| | | this.showSpinner = false; |
| | | } else { |
| | | // this.showToast("Error", 'Error',result.msg); |
| | | this.showMyToast('搜索失败','result.msg','error'); |
| | | this.showMyToast('搜索失败',result.msg,'error'); |
| | | } |
| | | }) |
| | | .catch((error) => { |
| | |
| | | this.sortDirection = sortDirection; |
| | | this.sortedBy = sortedBy; |
| | | } |
| | | handlePaginatorChange(event) { |
| | | this.recordsToDisplay = event.detail.recordsToDisplay; |
| | | this.preSelected = event.detail.preSelected; |
| | | if (this.recordsToDisplay && this.recordsToDisplay > 0) { |
| | | this.rowNumberOffset = this.recordsToDisplay[0].rowNumber - 1; |
| | | } else { |
| | | this.rowNumberOffset = 0; |
| | | } |
| | | } |
| | | |
| | | handlePrevious() { |
| | | this.currentPageToken = Number(this.currentPageToken) - Number(this.pageSize); |