/*
 * @Description  : 
 * @Version      : 1.0
 * @Author       : Shiming
 * @Date         : 2022-03-10 14:50:45
 * @LastEditors  : Shiming
 * @LastEditTime : 2022-03-10 15:09:51
 * @FilePath     : \\tms-obc-web\\src\\app\\routes\\partner\\rebate-management\\model\\abnormal-feedback\\abnormal-feedback.component.ts
 * Copyright (C) 2022 huzhenhong. All rights reserved.
 */
import { ModalHelper } from '@delon/theme';
import { Component, OnInit, ViewChild } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { STColumn, STComponent, STData, STRequestOptions } from '@delon/abc/st';
import { SFComponent, SFDateWidgetSchema, SFSchema, SFSelectWidgetSchema, SFTextareaWidgetSchema, SFUISchema } from '@delon/form';
import { processSingleSort, ShipperBaseService } from '@shared';
import { NzModalService, NzModalRef } from 'ng-zorro-antd/modal';
import { RebateManagementService } from '../../services/rebate-management.service';
import { NzButtonSize } from 'ng-zorro-antd/button';

@Component({
  selector: 'app-parter-channel-rebate-management-abnormal-feedback',
  templateUrl: './abnormal-feedback.component.html'
})
export class ParterRebateManageMenAbnormalFeedbackComponent implements OnInit {
  schema: SFSchema = {};
  ui!: SFUISchema;
  @ViewChild('sf', { static: false })
  sf!: SFComponent;
  i!: any;
  data = [{ name1: 1111 }];
  constructor(
    public router: Router,
    public ar: ActivatedRoute,
    public service: RebateManagementService,
    private modalService: NzModalService,
    public shipperservice: ShipperBaseService,
    public modalRef: NzModalRef,
  ) {}


  ngOnInit() {
    this.initSF();
  }

  initSF() {
    this.schema = {
      properties: {
        name3: {
          type: 'string',
          title: '回复',
          maxLength: 50,
          ui: {
            widget: 'textarea',
            autosize: { minRows: 3, maxRows: 6 },
            placeholder:'请不要超过50个字'
          } as SFTextareaWidgetSchema,
        },
      }
    };
    this.ui = {
      '*': {
        spanLabelFixed: 60,
        grid: { span: 16 },
      }
    };
  }
  close() {
    this.modalRef.destroy()
  }
}

