import request from '@/utils/request'
import state from '@/store'
import router from '@/router'

export function InvoiceListSearch() {
  return request({
    url: '',
    method: 'post',
    data: {
      UserID: state.state.user.id,
      ModularID: router.currentRoute.path,
      type: '1',
      name: '发货管理_发货申请_发货单_发货单列表_查询',
      param: '发货单号=' + arguments[0] + '\\&收货单位=' + arguments[1] + '\\&发货单名_check=0\\&发货单号_check=' + arguments[2] + '\\&收货单位_check=' + arguments[3] + '\\&车辆牌号_check=0\\&司机姓名_check=0\\&司机电话_check=0\\&制单人_check=0\\&核准人_check=0\\&执行人_check=0\\&开始制单日期_check=0\\&结束制单日期_check=0\\&开始核准日期_check=0\\&结束核准日期_check=0\\&开始发货日期_check=' + arguments[4] + '\\&结束发货日期_check=' + arguments[4] + '\\&开始发货日期=' + arguments[5] + '\\&结束发货日期=' + arguments[6]
    }
  })
}

export function DetailsFeach() {
  return request({
    url: '',
    method: 'post',
    data: {
      UserID: state.state.user.id,
      ModularID: router.currentRoute.path,
      type: '1',
      name: '发货管理_发货申请_发货单明细_查询',
      param: '发货单流水号=' + arguments[0]
    }
  })
}
export function InvoiceListSearch_Excel() {
  return request({
    url: '',
    method: 'post',
    data: {
      UserID: state.state.user.id,
      ModularID: router.currentRoute.path,
      type: '1',
      name: '报表_发货记录_导出',
      param: '发货单号=' + arguments[0] + '\\&收货单位=' + arguments[1] + '\\&发货单名_check=0\\&发货单号_check=' + arguments[2] + '\\&收货单位_check=' + arguments[3] + '\\&车辆牌号_check=0\\&司机姓名_check=0\\&司机电话_check=0\\&制单人_check=0\\&核准人_check=0\\&执行人_check=0\\&开始制单日期_check=0\\&结束制单日期_check=0\\&开始核准日期_check=0\\&结束核准日期_check=0\\&开始发货日期_check=' + arguments[4] + '\\&结束发货日期_check=' + arguments[4] + '\\&开始发货日期=' + arguments[5] + '\\&结束发货日期=' + arguments[6]
    }
  })
}
