import { Pager } from '/@/api/types/pager';
import { UploadApiResponse } from '/@/api/sys/model/uploadModel';
import type { RemoveEnum } from '/@/enums/removeEnum';

/**
 * @description: 仲裁列表接口查询字段
 */
export interface ArbitrationParams extends Pager {
  platform?: string;
  orderNo?: string;
  sendTrackingNo?: string;
  goodsName?: string;
  supplier?: string;
  topicGroup?: string;
  topicCardNo?: string;
  state?: 1 | 2;
}

/**
 * @description: 仲裁列表接口返回字段
 */
export interface ArbitrationData {
  id: number;
  no?: string;
  platform?: string;
  orderNo?: string;
  tsTime?: string;
  tsReason?: string;
  supplier?: string;
  supplierId?: string;
  state?: number;
  closed?: string;
  closedDt?: string;
  closedUser?: string;
  handleType?: string;
  handleReply?: string;
  handleLastDt?: string;
  handleUser?: string;
  removed?: RemoveEnum;
  orderCancelDt?: string;
  orderCancelHandt?: string;
  orderCancelHanuser?: string;
  orderCancelReason?: string;
  orderCancelOper?: string;
  orderState?: number;
  topicGroup?: string;
  topicDelegate?: string;
  topicMt?: string;
  topicCardNo?: string;
  orderSendReq?: string;
  orderSendRes?: string;
  orderCancelUser?: string;
  orderSendTime?: string;
  expPerson?: string;
  expTime?: string;
  signPerson?: string;
  signTime?: string;
  recieveAddress?: string;
  sendTrackingNo?: string;
  teacherSettleNo?: string;
  supplierSettleNo?: string;
  goodsName?: string;
}

export interface ArbitrationDetailParams {
  id: number;
  busType?: number | string | undefined | null;
  busText?: string;
  attaches?: UploadApiResponse[];
}

export interface ArbitrationCommitParams {
  id: number;
  busType?: number | string | any;
  busText?: string;
  attaches?: UploadApiResponse[];
}

export interface ArbitrationCloseData extends ArbitrationDetailParams {
  mainId: string;
  operTime: number;
}
