| | |
| | | import searchOrderInstatus from '@salesforce/apex/LexSaleAndDeliveryController.searchOrderInstatus'; |
| | | import searchConsumableorderdetails from '@salesforce/apex/LexSaleAndDeliveryController.searchConsumableorderdetails'; |
| | | import searchConsumableorFinish from '@salesforce/apex/LexSaleAndDeliveryController.searchConsumableorFinish'; |
| | | //table css |
| | | import { loadStyle } from "lightning/platformResourceLoader"; |
| | | import WrappedHeaderTable from "@salesforce/resourceUrl/lexdatatable"; |
| | | |
| | | const columns = [ |
| | | { |
| | |
| | | @track userWorkLocation = ''; |
| | | @track showTable = false; |
| | | @track hidecheckboxcolumn = true; |
| | | stylesLoaded = false; |
| | | |
| | | //排序 |
| | | defaultSortDirection = 'asc'; |
| | |
| | | console.log('this.data = ' + JSON.stringify(this.data)); |
| | | this.isShowSpinner = false; |
| | | this.showTable = true; |
| | | |
| | | } else { |
| | | console.log('r = ' + JSON.stringify(r)) |
| | | this.showToast('Error', r.msg); |
| | |
| | | }).catch((error) => { |
| | | console.log('error = ' + JSON.stringify(error)) |
| | | }) |
| | | } |
| | | |
| | | renderedCallback() { |
| | | debugger |
| | | if (!this.stylesLoaded) { |
| | | Promise.all([loadStyle(this, WrappedHeaderTable)]) |
| | | .then(() => { |
| | | console.log("Custom styles loaded"); |
| | | this.stylesLoaded = true; |
| | | }) |
| | | .catch((error) => { |
| | | console.error("Error loading custom styles"); |
| | | }); |
| | | } |
| | | } |
| | | |
| | | //新建出库单 |
| | |
| | | this.showToast('Success', this.message); |
| | | } |
| | | this.isShowSpinner = false; |
| | | //this.isCssLoaded = true |
| | | this.showTable = true; |
| | | } else { |
| | | this.showToast('Error', r.msg); |