// 商城订单-列表
import { InterFunction, InterListFunction } from '@/api/interface';
// 商城订单-列表（新）
export type MallOrderListType = InterListFunction<
  { keyword?: string; statusCode?: number },
  OrderDetail
>;
// 订单详情
type OrderDetail = {
  companyName: string;
  confirmReceiptTime: string;
  createTime: string;
  deliveryTime: string;
  id: number;
  kdnExpDTO: {
    logisticCode: string;
    shipperCode: string;
    stateEx: string;
    traces: Array<{
      acceptStation: string;
      acceptTime: string;
      action: string;
      location: string;
    }>;
  };
  orderNo: string;
  orderTotalAmount: number;
  orderType: number;
  otherAmount: number;
  payDTOList: Array<{
    checkStatus: number;
    createTime: string;
    id: number;
    payAmount: number;
    payImgList: string;
    payRemark: string;
    payType: number;
    refuseReason: string;
    uavOrderId: number;
  }>;
  payTime: string;
  payType: string;
  remarkStatus: number;
  salaryAmount: number;
  sellerRemark: string;
  shareAmount: number;
  skuDTOList: Array<{
    createTime: string;
    id: number;
    mallGoodsId: number;
    orderNum: number;
    priceStockId: number;
    productSpec: string;
    skuImage: string;
    skuNo: string;
    tradeName: string;
    uavOrderId: number;
    unitPrice: number;
  }>;
  statusCode: number;
  thirdBackUserAccountId: number;
  uavOrderExpressDTO: {
    id: number;
    receive: number;
    receiveTime: string;
    sendExpCode: string;
    sendExpNo: string;
    sendTime: string;
    takeAddress: string;
    takeName: string;
    takePhone: string;
    takeRegion: string;
    uavOrderId: number;
  };
  updateTime: string;
  userAccountId: number;
  userAddressId: number;
  userRemark: string;
  version: number;
  contractInfoDTO: {
    archiveDate: null;
    aremark: null;
    atransactionId: null;
    bremark: null;
    btransactionId: null;
    contractNo: string;
    contractTitle: string;
    createTime: string;
    id: number;
    orderNo: string;
    signStatus: number;
    singerTime: null;
    unionId: string;
    updateTime: null;
  };
};
// 订单流程字典
export type UavOrderStatusListType = InterFunction<
  {},
  {
    code: number;
    id: number;
    nextCode: number;
    status: string;
  }[]
>;
// 订单详情
export type UavOrderDetailType = InterFunction<
  {
    id: number;
  },
  OrderDetail
>;
