/*
 * @Description  : 
 * @Version      : 1.0
 * @Author       : Shiming
 * @Date         : 2022-05-09 10:49:35
 * @LastEditors  : Shiming
 * @LastEditTime : 2022-05-11 13:40:11
 * @FilePath     : \\tms-obc-web\\src\\app\\routes\\partner\\partner-list\\components\\channel-log-modal\\channel-log-modal.component.ts
 * Copyright (C) 2022 huzhenhong. All rights reserved.
 */
import { Component, OnInit } from '@angular/core';
import { STColumn } from '@delon/abc/st';
import { PartnerListService } from '../../services/partner-list.service';

@Component({
  selector: 'app-channel-log-modal',
  templateUrl: './channel-log-modal.component.html'
})
export class ChannelLogModalComponent implements OnInit {
  columns: { changeColumn: STColumn[]; beChangeColumn: STColumn[] } = this.initST();
  id = '';
  constructor(public service: PartnerListService) {}

  ngOnInit(): void {}

  private initST(): { changeColumn: STColumn[]; beChangeColumn: STColumn[] } {
    return {
      changeColumn: [
        { title: '客户名称', index: 'enterpriceName', width: 180 },
        { title: '合伙人', index: 'enterpriseName', width: 160 },
        { title: '渠道销售', index: 'newChannelId', className: 'text-center', width: 130 },
        { title: 'CRM审核状态', index: 'payDate', width: 150 },
        { title: '生效时间', index: 'effectiveTime', className: 'text-center', width: 130 }
      ],
      beChangeColumn: [
        { title: '客户名称', index: 'enterpriceName', width: 180 },
        { title: '合伙人', index: 'enterpriseName', width: 160 },
        { title: '渠道销售', index: 'newChannelId', className: 'text-center', width: 130 },
        { title: '生效时间', index: 'effectiveTime', className: 'text-center', width: 130 }
      ]
    };
  }
}
