import { Component, OnInit, ViewChild } from '@angular/core';
import { STComponent, STColumn } from '@delon/abc/st';
import { NzModalService } from 'ng-zorro-antd/modal';
import { TicketService } from '../../../services/ticket.service';

@Component({
  selector: 'app-push-invoice',
  templateUrl: './push-invoice.component.html',
  styleUrls: ['./push-invoice.component.less']
})
export class PushInvoiceComponent implements OnInit {

  @ViewChild('st', { static: false })
  st!: STComponent;
  columns: STColumn[] = this.initST();
  data = [
    {
      key: 0,
      disabled: true,
      href: 'https://ant.design',
      avatar: 'https://gw.alipayobjects.com/zos/rmsportal/eeHMaZBwmTvLdIwMfBpg.png',
      no: 'TradeCode 0'
    },
    {
      key: 1,
      disabled: false,
      href: 'https://ant.design',
      avatar: 'https://gw.alipayobjects.com/zos/rmsportal/udxAbMEhpwthVVcjLXik.png',
      no: 'TradeCode 1'
    }
  ];

  info = {};

  constructor(public service: TicketService, private nzModalService: NzModalService) {}

  ngOnInit(): void {}


  private initST(): STColumn[] {
    return [
      { title: '服务名称', index: 'no', width: 100 },
      { title: '规格型号', index: 'callNo', width: 100 },
      { title: '单位', index: 'callNo', width: 90 },
      { title: '数量', index: 'callNo', width: 90 },
      { title: '金额', index: 'callNo', width: 90 },
      { title: '税率', index: 'callNo', width: 90 },
      { title: '税额', index: 'callNo', width: 90 },
    ];
  }

}
