| | |
| | | |
| | | //分页start |
| | | @track sortBy = ''; |
| | | <<<<<<< HEAD |
| | | @track pageSize = 10; |
| | | ======= |
| | | @track pageSize = 200; |
| | | >>>>>>> LEXCommunityLiJun |
| | | error; |
| | | records; |
| | | currentPageToken = 0; |
| | |
| | | @track pageNumber = 1; |
| | | @track paginationVisibility = false; |
| | | @track totalPages = 1; |
| | | <<<<<<< HEAD |
| | | pageSizeOptions = [10, 25, 50, 100]; |
| | | ======= |
| | | pageSizeOptions = [100, 200, 300]; |
| | | >>>>>>> LEXCommunityLiJun |
| | | @track recordStart = 0; |
| | | @track recordEnd = 0; |
| | | //end |
| | |
| | | : r.entity.obj.Parent.Name; |
| | | console.log( |
| | | 'this.accountDataInfo = ' + |
| | | <<<<<<< HEAD |
| | | JSON.stringify(this.accountDataInfo) |
| | | ======= |
| | | JSON.stringify(this.accountDataInfo) |
| | | >>>>>>> LEXCommunityLiJun |
| | | ); |
| | | this.printUrl = |
| | | '/lexconsumableaccountinfoprint?AccId=' + |
| | |
| | | this.recordEnd = r.entity.paginatedAccounts.recordEnd; |
| | | this.totalPages = Math.ceil( |
| | | r.entity.paginatedAccounts.totalRecords / |
| | | <<<<<<< HEAD |
| | | this.pageSize |
| | | ======= |
| | | this.pageSize |
| | | >>>>>>> LEXCommunityLiJun |
| | | ); |
| | | console.log('this.totalPages = ' + this.totalPages); |
| | | this.paginationVisibility = |
| | |
| | | } |
| | | console.log( |
| | | 'this.listViewOptions = ' + |
| | | <<<<<<< HEAD |
| | | JSON.stringify(this.listViewOptions) |
| | | ======= |
| | | JSON.stringify(this.listViewOptions) |
| | | >>>>>>> LEXCommunityLiJun |
| | | ); |
| | | |
| | | console.log( |
| | | 'r.entity.topInfo = ' + |
| | | <<<<<<< HEAD |
| | | JSON.stringify(r.entity.topInfo) |
| | | ======= |
| | | JSON.stringify(r.entity.topInfo) |
| | | >>>>>>> LEXCommunityLiJun |
| | | ); |
| | | //top10客户 |
| | | this.topInfo = r.entity.topInfo; |
| | |
| | | this.topAccountData = this.topInfo.acList; |
| | | console.log( |
| | | 'this.topAccountData = ' + |
| | | <<<<<<< HEAD |
| | | JSON.stringify(this.topAccountData) |
| | | ); |
| | | console.log( |
| | |
| | | this.keepTwoDecimalStr( |
| | | this.amend(9, 3, '/').toFixed(2) |
| | | ) |
| | | ======= |
| | | JSON.stringify(this.topAccountData) |
| | | ); |
| | | console.log( |
| | | '9/3 = ' + |
| | | this.keepTwoDecimalStr( |
| | | this.amend(9, 3, '/').toFixed(2) |
| | | ) |
| | | >>>>>>> LEXCommunityLiJun |
| | | ); |
| | | let total = 100; |
| | | try { |
| | |
| | | ) * 100 |
| | | ).toFixed(2) |
| | | ); |
| | | <<<<<<< HEAD |
| | | console.log( |
| | | 'this.amend = ' + |
| | | this.amend( |
| | |
| | | ) * |
| | | 100 |
| | | ); |
| | | ======= |
| | | console.log('this.amend = ' + this.amend(this.topInfo.deList[i],this.topInfo.saleAmount,'/') * 100); |
| | | >>>>>>> LEXCommunityLiJun |
| | | total -= number; |
| | | this.topAccountData[i]['proportion'] = |
| | | number + '%'; |
| | |
| | | |
| | | console.log( |
| | | 'this.topAccountData = ' + |
| | | <<<<<<< HEAD |
| | | JSON.stringify(this.topAccountData) |
| | | ); |
| | | |
| | |
| | | ? total.toFixed(2) |
| | | : '0.00') |
| | | ); |
| | | ======= |
| | | JSON.stringify(this.topAccountData) |
| | | ); |
| | | |
| | | //其他 |
| | | console.log('(total.toFixed(2) > 0.00 ? total.toFixed(2) : 0.00) = ' + (total.toFixed(2) > 0.00 ? total.toFixed(2) : '0.00')) |
| | | >>>>>>> LEXCommunityLiJun |
| | | if (total != 100) { |
| | | this.topAccountData.push({ |
| | | accountName: '...', |
| | | accountUrl: '/s/lexconsumableaccount', |
| | | isDisable: true, |
| | | <<<<<<< HEAD |
| | | proportion: |
| | | (total.toFixed(2) > 0.0 |
| | | ? total.toFixed(2) |
| | | : '0.00') + '%', |
| | | ======= |
| | | proportion: (total.toFixed(2) > 0.00 ? total.toFixed(2) : '0.00') + '%', |
| | | >>>>>>> LEXCommunityLiJun |
| | | CityMasterName: '...', |
| | | CityMasterNameUrl: '/lexconsumableaccount', |
| | | Town__c: '...', |
| | |
| | | this.topAccountData = this.topInfo.acList; |
| | | console.log( |
| | | 'this.topAccountData = ' + |
| | | <<<<<<< HEAD |
| | | JSON.stringify(this.topAccountData) |
| | | ======= |
| | | JSON.stringify(this.topAccountData) |
| | | >>>>>>> LEXCommunityLiJun |
| | | ); |
| | | let total = 100; |
| | | for (var i in this.topAccountData) { |
| | |
| | | accountName: '...', |
| | | accountUrl: '/s/lexconsumableaccount', |
| | | isDisable: true, |
| | | <<<<<<< HEAD |
| | | proportion: |
| | | (total.toFixed(2) > 0.0 |
| | | ? total.toFixed(2) |
| | | : '0.00') + '%', |
| | | ======= |
| | | proportion: (total.toFixed(2) > 0.00 ? total.toFixed(2) : '0.00') + '%', |
| | | >>>>>>> LEXCommunityLiJun |
| | | CityMasterName: '...', |
| | | CityMasterNameUrl: '/lexconsumableaccount', |
| | | Town__c: '...', |
| | |
| | | sortByMethod(field, reverse, primer) { |
| | | const key = primer |
| | | ? function (x) { |
| | | <<<<<<< HEAD |
| | | return primer(x[field]); |
| | | } |
| | | : function (x) { |
| | | return x[field]; |
| | | }; |
| | | ======= |
| | | return primer(x[field]); |
| | | } |
| | | : function (x) { |
| | | return x[field]; |
| | | }; |
| | | >>>>>>> LEXCommunityLiJun |
| | | |
| | | return function (a, b) { |
| | | a = key(a); |
| | |
| | | } |
| | | |
| | | onHandleSort(event) { |
| | | <<<<<<< HEAD |
| | | console.log('event.detail.fieldName = ' + event.detail.fieldName); |
| | | ======= |
| | | console.log('event.detail.fieldName = ' + event.detail.fieldName) |
| | | >>>>>>> LEXCommunityLiJun |
| | | this.sortBy = event.detail.fieldName; |
| | | switch (this.sortBy) { |
| | | case 'NameUrl': |
| | |
| | | get nextButtonDisabled() { |
| | | return this.nextPageToken === undefined; |
| | | } |
| | | <<<<<<< HEAD |
| | | } |
| | | ======= |
| | | } |
| | | >>>>>>> LEXCommunityLiJun |