import { Component, OnInit, ViewChild } from '@angular/core';
import { STColumn, STComponent } from '@delon/abc/st';
import { ACLService } from '@delon/acl';
import { SFSchema } from '@delon/form';
import { ModalHelper, _HttpClient } from '@delon/theme';
import { SearchDrawerService } from '@shared';
import { BasicTableComponent } from 'src/app/routes/commom';

@Component({
  selector: 'app-supply-management-index',
  templateUrl: './index.component.html',
  styleUrls: ['../../../commom/less/commom-table.less']
})
export class SupplyManagementIndexComponent implements OnInit {
  selectedIndex = 0;
  isShowVehicle = false;
  isShowBulk = false;

  constructor(private http: _HttpClient, private modal: ModalHelper, private acl: ACLService) {
    const acls = acl.data.abilities || [];
    this.isShowVehicle = acl.data.full || !!acls.find(acl => acl === 'SUPPLY-INDEX-vehicleSearch');
    this.isShowBulk = acl.data.full || !!acls.find(acl => acl === 'SUPPLY-INDEX-bulkSearch');
  }

  ngOnInit(): void {}
}
