export type designerSearch = {
  page?: number
  limit?: number
  admin_type?: number
}

export type authData = {
  create_admin_id: number | string 
}

export interface designerData {
  id?: number
  uid: number | null
  name: string //真实姓名
  phone: number | null //手机号
  gender: 0 | 1 | 2 //性别 0保密 1男 2女
  avatar: string //头像
  birth_day_time?: string | number //生日
  province: string //省
  city: string //市
  area: string //区
  tag_list: Array<string> //标签
  longitude: string | number //经度
  latitude: string | number //纬度
  detail_address: string
  start_job_year: string
}
export type categoryData = {
  id?: number
  name: string
  is_show: 1 | 0
  type: 1 | 2
}
export type jobsData = {
  id?: number
  name: string
  is_show: 1 | 0
  cate_id: number
  default_price: number
}

export type wantGood = {
  product_id: number
  product_name: string
  bar_code: string
  suk: string
  want_product_num: number
  is_weigh: number
}

export type wantDate = {
  type: number
  store_id: number
  up_wid?: number
  up_store_id?: number
  create_admin_id: number
  goods: Array<wantGood>
}


export type selfData = {
  type: number
  store_id?: string | number
  wid?: string | number
  purchasing_person_admin_id?: string | number
  create_admin_id?: string | number
  supplier_id?: string | number
}

export type purGood = {
  product_id: number
  product_name: string
  bar_code: string
  suk: string
  product_num: number
  is_weigh: number
  pur_number?: number
}

export type purDate = {
  type?: number
  wid?:number | string
  store_id?: number | string
  up_wid?: number | string
  create_admin_id: number | string
  products?: Array<purGood>
  goods_ids?: string
  purchasing_person_admin_id?: number
  supplier_id: number | string
  want_order_id?: string
}

export type hzData = {
  wid: string | number
  purchasing_person_admin_id?: string | number
  create_admin_id?: string | number
  supplier_id?: string | number
}
export type purInfo = {
  bar_code: string
  id: number
  product_name: string
  product_num: any
  purchase_order_id?: any
  suk: string
  tare_weight: any
  total_price: any
  net_weight: any
  is_weigh: any
  weight: any
  tare_weight_one: any
  pur_num: any
}
export type endPuritem = {
  purchase_order_id?: string
  prove?: string
  id: any
  purchasing_person_admin_id: 0;
  info: purInfo[],
  store_id?: string | number
  wid?: string | number
}

export type outData = {
  type?: number
  wid?: number | string
  store_id?: number | string
  up_store_id?: number | string
  up_wid?: number | string
  product_list: any[]
} & authData

export type outGood = {
  bar_code: string
  id: number
  is_weigh: number
  pur_number: number
  product_id:number
  product_name:string
  suk: string
  product_num: number
  product_code: string
  name?: string
  out_price?: string | number
  price: string
}
