fix bug
This commit is contained in:
		@ -73,9 +73,9 @@ export class DatatableOperationtableComponent implements OnInit {
 | 
			
		||||
  }
 | 
			
		||||
  initPillarData(flag?: boolean){
 | 
			
		||||
    let type = 1
 | 
			
		||||
    if(this.mode === 'year') {
 | 
			
		||||
    if(this.modeNext === 'year') {
 | 
			
		||||
      type = 1
 | 
			
		||||
    } else if(this.mode === 'month') {
 | 
			
		||||
    } else if(this.modeNext === 'month') {
 | 
			
		||||
      type = 2
 | 
			
		||||
    }
 | 
			
		||||
    const params: any = {
 | 
			
		||||
@ -126,7 +126,18 @@ export class DatatableOperationtableComponent implements OnInit {
 | 
			
		||||
    // Can not select days before today and today
 | 
			
		||||
    differenceInCalendarDays(current, this.today) > 0;
 | 
			
		||||
  exportFun() {
 | 
			
		||||
 | 
			
		||||
    let type = 1
 | 
			
		||||
    if(this.mode === 'year') {
 | 
			
		||||
      type = 1
 | 
			
		||||
    } else if(this.mode === 'month') {
 | 
			
		||||
      type = 2
 | 
			
		||||
    }
 | 
			
		||||
    const params: any = {
 | 
			
		||||
      time: this.time,
 | 
			
		||||
      type,
 | 
			
		||||
      enterpriseInfoId: this.enterpriseInfoId
 | 
			
		||||
     };
 | 
			
		||||
    this.service.exportStart({ ...params, pageSize: -1 }, this.service.$api_asyncExportOperationalReport);
 | 
			
		||||
  }
 | 
			
		||||
  changeCurve(){
 | 
			
		||||
 | 
			
		||||
@ -135,9 +146,9 @@ export class DatatableOperationtableComponent implements OnInit {
 | 
			
		||||
 | 
			
		||||
  }
 | 
			
		||||
  changeDataNext() {
 | 
			
		||||
    if(this.mode === 'year') {
 | 
			
		||||
    if(this.modeNext === 'year') {
 | 
			
		||||
      this.dateFormat = 'yyyy'
 | 
			
		||||
    } else if(this.mode === 'month') {
 | 
			
		||||
    } else if(this.modeNext === 'month') {
 | 
			
		||||
      this.dateFormat = 'yyyy-MM'
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
@ -145,9 +156,9 @@ export class DatatableOperationtableComponent implements OnInit {
 | 
			
		||||
    if(result === null) {
 | 
			
		||||
      return
 | 
			
		||||
    }
 | 
			
		||||
    if(this.mode === 'year') {
 | 
			
		||||
    if(this.modeNext === 'year') {
 | 
			
		||||
      this.timeNext = [this.datePipe.transform(this.dateNext, 'yyyy') + '-01-01 00:00:00']
 | 
			
		||||
    } else if(this.mode === 'month') {
 | 
			
		||||
    } else if(this.modeNext === 'month') {
 | 
			
		||||
      this.timeNext = [this.datePipe.transform(this.dateNext, 'yyyy-MM') + '-01 00:00:00']
 | 
			
		||||
    }
 | 
			
		||||
    this.initPillarData(true)
 | 
			
		||||
 | 
			
		||||
@ -107,6 +107,8 @@ export class DataService extends ShipperBaseService {
 | 
			
		||||
  $api_total_freight = `/api/sdc/reportData/getTotalFreight`;
 | 
			
		||||
  // 附加费总额
 | 
			
		||||
  $api_total_surcharge = `/api/sdc/reportData/getTotalSurcharge`;
 | 
			
		||||
  // 运营导出
 | 
			
		||||
  $api_asyncExportOperationalReport = `/api/sdc/report/asyncExportOperationalReport`;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user