import { axios } from '@/utils/request'
// 散件退货-分页列表
export const reportSparePartsReturnPageList = (params) => {
  const url = `report/reportSparePartsReturn/reportPage/${params.pageNo}/${params.pageSize}`
  delete params.pageNo
  delete params.pageSize
  return axios({
    url: url,
    data: params,
    method: 'post'
  })
}
// 散件退货-列表合计
export const reportSparePartsReturnTotal = (params) => {
  return axios({
    url: 'report/reportSparePartsReturn/reportCount',
    data: params,
    method: 'post'
  })
}
// 散件退货-报表导出
export const reportSparePartsReturnExport = params => {
  return axios.request({
    url: `/report/reportSparePartsReturn/export`,
    data: params,
    method: 'post',
    responseType: 'blob'
  })
}
 
// 散件退货明细--分页
export const reportSparePartsReturnDetailPageList = (params) => {
  const url = `report/reportSparePartsReturnDetail/reportPage/${params.pageNo}/${params.pageSize}`
  delete params.pageNo
  delete params.pageSize
  return axios({
    url: url,
    data: params,
    method: 'post'
  })
}
// 散件退货明细-列表合计
export const reportSparePartsReturnDetailTotal = (params) => {
  return axios({
    url: 'report/reportSparePartsReturnDetail/reportCount',
    data: params,
    method: 'post'
  })
}
// 散件退货明细-报表导出
export const reportSparePartsReturnDetailExport = params => {
  return axios.request({
    url: `/report/reportSparePartsReturnDetail/export`,
    data: params,
    method: 'post',
    responseType: 'blob'
  })
}

// 散件入库-分页列表
export const reportBlukPageList = (params) => {
  const url = `report/reportSparePartsPurchase/reportPage/${params.pageNo}/${params.pageSize}`
  delete params.pageNo
  delete params.pageSize
  return axios({
    url: url,
    data: params,
    method: 'post'
  })
}
// 散件入库-列表合计
export const reportBlukTotal = (params) => {
  return axios({
    url: 'report/reportSparePartsPurchase/reportCount',
    data: params,
    method: 'post'
  })
}
// 散件入库-报表导出
export const reportBlukExport = params => {
  return axios.request({
    url: `/report/reportSparePartsPurchase/export`,
    data: params,
    method: 'post',
    responseType: 'blob'
  })
}

// 散件入库详细-分页列表
export const reportBlukDetailPageList = (params) => {
  const url = `report/reportSparePartsPurchaseDetail/reportPage/${params.pageNo}/${params.pageSize}`
  delete params.pageNo
  delete params.pageSize
  return axios({
    url: url,
    data: params,
    method: 'post'
  })
}
// 散件入库详细-列表合计
export const reportBlukDetailTotal = (params) => {
  return axios({
    url: 'report/reportSparePartsPurchaseDetail/reportCount',
    data: params,
    method: 'post'
  })
}
// 散件入库详细-报表导出
export const reportBlukDetailExport = params => {
  return axios.request({
    url: `/report/reportSparePartsPurchaseDetail/export`,
    data: params,
    method: 'post',
    responseType: 'blob'
  })
}

// 销售退货-分页列表
export const reportSalesReturnPageList = (params) => {
  const url = `report/reportSalesReturnBill/reportPage/${params.pageNo}/${params.pageSize}`
  delete params.pageNo
  delete params.pageSize
  return axios({
    url: url,
    data: params,
    method: 'post'
  })
}
// 销售退货-列表合计
export const reportSalesReturnBillTotal = (params) => {
  return axios({
    url: 'report/reportSalesReturnBill/reportCount',
    data: params,
    method: 'post'
  })
}
// 销售退货-报表导出
export const reportSalesReturnExport = params => {
  return axios.request({
    url: `/report/reportSalesReturnBill/export`,
    data: params,
    method: 'post',
    responseType: 'blob'
  })
}

// 销售退货明细-分页列表
export const reportSalesReturnDetailPageList = (params) => {
  const url = `report/reportSalesReturnBill/reportDetailPage/${params.pageNo}/${params.pageSize}`
  delete params.pageNo
  delete params.pageSize
  return axios({
    url: url,
    data: params,
    method: 'post'
  })
}
// 销售退货明细-列表合计
export const reportSalesReturnDetailTotal = (params) => {
  return axios({
    url: 'report/reportSalesReturnBill/reportDetailCount',
    data: params,
    method: 'post'
  })
}
// 销售退货明细-报表导出
export const reportSalesReturnDetailExport = params => {
  return axios.request({
    url: `/report/reportSalesReturnBill/detailExport`,
    data: params,
    method: 'post',
    responseType: 'blob'
  })
}


// 店内调出-分页列表
export const reportStoreCallOutPageList = (params) => {
  const url = `report/reportStoreCallOut/reportPage/${params.pageNo}/${params.pageSize}`
  delete params.pageNo
  delete params.pageSize
  return axios({
    url: url,
    data: params,
    method: 'post'
  })
}
// 店内调出-列表合计
export const reportStoreCallOutListTotal = (params) => {
  return axios({
    url: 'report/reportStoreCallOut/reportCount',
    data: params,
    method: 'post'
  })
}
// 店内调出-报表导出
export const reportStoreCallOutExport = params => {
  return axios.request({
    url: `/report/reportStoreCallOut/export`,
    data: params,
    method: 'post',
    responseType: 'blob'
  })
}

// 店内调出明细-分页列表
export const reportStoreCallOutDetailList = (params) => {
  const url = `report/reportStoreCallOut/reportDetailPage/${params.pageNo}/${params.pageSize}`
  delete params.pageNo
  delete params.pageSize
  return axios({
    url: url,
    data: params,
    method: 'post'
  })
}
// 店内调出明细-列表合计
export const reportStoreCallOutDetailTotal = (params) => {
  return axios({
    url: 'report/reportStoreCallOut/reportDetailCount',
    data: params,
    method: 'post'
  })
}
// 店内调出明细-报表导出
export const reportStoreCallOutDetailExport = params => {
  return axios.request({
    url: `/report/reportStoreCallOut/detailExport`,
    data: params,
    method: 'post',
    responseType: 'blob'
  })
}

// 连锁收发存报表-分页列表
export const linkageReportPageList = (params) => {
  const url = `report/reportStockPutOut/linkageReportPage/${params.pageNo}/${params.pageSize}`
  delete params.pageNo
  delete params.pageSize
  return axios({
    url: url,
    data: params,
    method: 'post'
  })
}
// 连锁收发存报表-列表合计
export const linkageReportPageTotal = (params) => {
  return axios({
    url: 'report/reportStockPutOut/linkageReportCount',
    data: params,
    method: 'post'
  })
}
// 连锁收发存报表  导出
export const reportChainStockPutOutExport = params => {
  return axios.request({
    url: `/report/reportStockPutOut/exportLinkageReport`,
    data: params,
    method: 'post',
    responseType: 'blob'
  })
}
// 收发存报表-分页列表
export const reportPageList = (params) => {
  const url = `report/reportStockPutOut/reportPage/${params.pageNo}/${params.pageSize}`
  delete params.pageNo
  delete params.pageSize
  return axios({
    url: url,
    data: params,
    method: 'post'
  })
}
// 收发存报表-列表合计
export const linkageReportTotal = (params) => {
  return axios({
    url: 'report/reportStockPutOut/linkageReportCount',
    data: params,
    method: 'post'
  })
}
// 收发存报表-列表合计
export const reportStockPutOutCount = (params) => {
  return axios({
    url: 'report/reportStockPutOut/reportCount',
    data: params,
    method: 'post'
  })
}
// 收发存报表  导出
export const reportStockPutOutExport = params => {
  return axios.request({
    url: `/report/reportStockPutOut/exportReport`,
    data: params,
    method: 'post',
    responseType: 'blob'
  })
}
// 大客户报表-分页列表
export const reportBigCustomerList = (params) => {
  const url = `report/reportBigCustomer/reportPage/${params.pageNo}/${params.pageSize}`
  delete params.pageNo
  delete params.pageSize
  return axios({
    url: url,
    data: params,
    method: 'post'
  })
}
// 大客户报表-列表合计
export const reportBigCustomerCount = (params) => {
  return axios({
    url: 'report/reportBigCustomer/reportCount',
    data: params,
    method: 'post'
  })
}
// 连锁大客户报表-分页列表
export const reportBigCustomerLinkageList = (params) => {
  const url = `report/reportBigCustomer/linkageReportPage/${params.pageNo}/${params.pageSize}`
  delete params.pageNo
  delete params.pageSize
  return axios({
    url: url,
    data: params,
    method: 'post'
  })
}
// 连锁大客户报表-列表合计
export const reportBigCustomerLinkageCount = (params) => {
  return axios({
    url: 'report/reportBigCustomer/linkageReportCount',
    data: params,
    method: 'post'
  })
}
// 连锁销售报表-分页列表
export const reportChainSalesBillList = (params) => {
  const url = `/report/reportSalesBill/linkageReportPage/${params.pageNo}/${params.pageSize}`
  delete params.pageNo
  delete params.pageSize
  return axios({
    url: url,
    data: params,
    method: 'post'
  })
}
// 连锁销售报表-列表合计
export const reportChainSalesBillCount = (params) => {
  return axios({
    url: '/report/reportSalesBill/linkageReportCount',
    data: params,
    method: 'post'
  })
}
// 连锁销售明细报表-分页列表
export const reportChainSalesBillDetailList = (params) => {
  const url = `/report/reportSalesBill/linkageReportDetailPage/${params.pageNo}/${params.pageSize}`
  delete params.pageNo
  delete params.pageSize
  return axios({
    url: url,
    data: params,
    method: 'post'
  })
}
// 连锁销售明细报表-列表合计
export const reportChainSalesBillDetailCount = (params) => {
  return axios({
    url: '/report/reportSalesBill/linkageReportDetailCount',
    data: params,
    method: 'post'
  })
}
// 销售报表-分页列表
export const reportSalesBillList = (params) => {
  const url = `/report/reportSalesBill/reportPage/${params.pageNo}/${params.pageSize}`
  delete params.pageNo
  delete params.pageSize
  return axios({
    url: url,
    data: params,
    method: 'post'
  })
}
// 销售报表-列表合计
export const reportSalesBillCount = (params) => {
  return axios({
    url: '/report/reportSalesBill/reportCount',
    data: params,
    method: 'post'
  })
}
// 销售明细报表-分页列表
export const reportSalesBillDetailList = (params) => {
  const url = `/report/reportSalesBill/reportDetailPage/${params.pageNo}/${params.pageSize}`
  delete params.pageNo
  delete params.pageSize
  return axios({
    url: url,
    data: params,
    method: 'post'
  })
}
// 销售明细报表-列表合计
export const reportSalesBillDetailCount = (params) => {
  return axios({
    url: '/report/reportSalesBill/reportDetailCount',
    data: params,
    method: 'post'
  })
}
// 连锁店
export const linkageGroupList = (params) => {
  return axios({
    url: '/report/linkageGroup/findListByDealerSn',
    data: params,
    method: 'post'
  })
}
// 销售报表  导出
export const reportSalesBillExport = params => {
  return axios.request({
    url: `/report/reportSalesBill/export`,
    data: params,
    method: 'post',
    responseType: 'blob'
  })
}
// 销售明细报表  导出
export const reportSalesBillDetailExport = params => {
  return axios.request({
    url: `/report/reportSalesBill/detailExport`,
    data: params,
    method: 'post',
    responseType: 'blob'
  })
}
// 盘点报表  盘点单报表 列表 分页
export const reportCheckWarehouseList = (params) => {
  const url = `/report/reportCheckWarehouse/reportPage/${params.pageNo}/${params.pageSize}`
  delete params.pageNo
  delete params.pageSize
  return axios({
    url: url,
    data: params,
    method: 'post'
  })
}
// 盘点报表  盘点单报表 合计
export const reportCheckWarehouseCount = (params) => {
  return axios({
    url: '/report/reportCheckWarehouse/reportCount',
    data: params,
    method: 'post'
  })
}
// 盘点报表  盘点明细报表 列表 分页
export const reportCheckWarehouseDetailList = (params) => {
  const url = `/report/reportCheckWarehouse/reportDetailPage/${params.pageNo}/${params.pageSize}`
  delete params.pageNo
  delete params.pageSize
  return axios({
    url: url,
    data: params,
    method: 'post'
  })
}
// 盘点报表  盘点明细报表 合计
export const reportCheckWarehouseDetailCount = (params) => {
  return axios({
    url: '/report/reportCheckWarehouse/reportDetailCount',
    data: params,
    method: 'post'
  })
}
// 采购入库报表  采购入库单报表 列表 分页
export const reportReceivingBillList = (params) => {
  const url = `/report/reportReceivingBill/reportPage/${params.pageNo}/${params.pageSize}`
  delete params.pageNo
  delete params.pageSize
  return axios({
    url: url,
    data: params,
    method: 'post'
  })
}
// 采购入库报表  采购入库单报表 合计
export const reportReceivingBillCount = (params) => {
  return axios({
    url: '/report/reportReceivingBill/reportCount',
    data: params,
    method: 'post'
  })
}
// 采购入库报表  采购入库单报表  导出
export const reportReceivingBillExport = params => {
  return axios.request({
    url: `/report/reportReceivingBill/export`,
    data: params,
    method: 'post',
    responseType: 'blob'
  })
}
// 采购入库报表  采购入库明细报表 列表 分页
export const reportReceivingBillDetailList = (params) => {
  const url = `/report/reportReceivingBill/reportDetailPage/${params.pageNo}/${params.pageSize}`
  delete params.pageNo
  delete params.pageSize
  return axios({
    url: url,
    data: params,
    method: 'post'
  })
}
// 采购入库报表  采购入库明细报表 合计
export const reportReceivingBillDetailCount = (params) => {
  return axios({
    url: '/report/reportReceivingBill/reportDetailCount',
    data: params,
    method: 'post'
  })
}
// 采购入库报表  采购入库明细报表  导出
export const reportReceivingBillDetailExport = params => {
  return axios.request({
    url: `/report/reportReceivingBill/detailExport`,
    data: params,
    method: 'post',
    responseType: 'blob'
  })
}
// 连锁采购入库报表  连锁采购入库单报表 列表 分页
export const reportChainReceivingBillList = (params) => {
  const url = `/report/reportReceivingBill/linkageReportPage/${params.pageNo}/${params.pageSize}`
  delete params.pageNo
  delete params.pageSize
  return axios({
    url: url,
    data: params,
    method: 'post'
  })
}
// 连锁采购入库报表  连锁采购入库单报表 合计
export const reportChainReceivingBillCount = (params) => {
  return axios({
    url: '/report/reportReceivingBill/linkageReportCount',
    data: params,
    method: 'post'
  })
}
// 连锁采购入库报表  连锁采购入库明细报表 列表 分页
export const reportChainReceivingBillDetailList = (params) => {
  const url = `/report/reportReceivingBill/linkageReportDetailPage/${params.pageNo}/${params.pageSize}`
  delete params.pageNo
  delete params.pageSize
  return axios({
    url: url,
    data: params,
    method: 'post'
  })
}
// 连锁采购入库报表  连锁采购入库明细报表 合计
export const reportChainReceivingBillDetailCount = (params) => {
  return axios({
    url: '/report/reportReceivingBill/linkageReportDetailCount',
    data: params,
    method: 'post'
  })
}
// 客户销售明细报表  列表 分页
export const reportCustomerSalesBillDetailList = (params) => {
  const url = `/report/reportCustomerSalesBillDetail/reportPage/${params.pageNo}/${params.pageSize}`
  delete params.pageNo
  delete params.pageSize
  return axios({
    url: url,
    data: params,
    method: 'post'
  })
}
// 客户销售明细报表 合计
export const reportCustomerSalesBillDetailCount = (params) => {
  return axios({
    url: '/report/reportCustomerSalesBillDetail/reportCount',
    data: params,
    method: 'post'
  })
}
// 客户销售明细报表  导出
export const reportCustomerSalesBillDetailExport = params => {
  return axios.request({
    url: `/report/reportCustomerSalesBillDetail/export`,
    data: params,
    method: 'post',
    responseType: 'blob'
  })
}
// 连锁销售明细合计报表  列表 不分页
export const reportSalesBillDetailTotalList = (params) => {
  const url = `/report/reportSalesBillDetailTotal/report`
  return axios({
    url: url,
    data: params,
    method: 'post'
  })
}
// 连锁销售明细合计报表  导出
export const reportSalesBillDetailTotalExport = params => {
  return axios.request({
    url: `/report/reportSalesBillDetailTotal/export`,
    data: params,
    method: 'post',
    responseType: 'blob'
  })
}
// 门店收发存汇总报表  列表 不分页
export const reportStockPutOutMonthList = (params) => {
  const url = `/report/reportStockPutOutMonth/report`
  return axios({
    url: url,
    data: params,
    method: 'post'
  })
}
// 门店收发存汇总报表  导出
export const reportStockPutOutMonthExport = params => {
  return axios.request({
    url: `/report/reportStockPutOutMonth/export`,
    data: params,
    method: 'post',
    responseType: 'blob'
  })
}
// 库存导入报表
export const reportStockImportList = (params) => {
  const url = `/report/reportStockImport/reportPage/${params.pageNo}/${params.pageSize}`
  delete params.pageNo
  delete params.pageSize
  return axios({
    url: url,
    data: params,
    method: 'post'
  })
}
export const reportStockImportCount = (params) => {
  const url = `/report/reportStockImport/reportCount`
  return axios({
    url: url,
    data: params,
    method: 'post'
  })
}

// 库存导入详细报表
export const reportStockImportDetailList = (params) => {
  const url = `/report/reportStockImportDetail/reportPage/${params.pageNo}/${params.pageSize}`
  delete params.pageNo
  delete params.pageSize
  return axios({
    url: url,
    data: params,
    method: 'post'
  })
}
export const reportStockImportDetailCount = (params) => {
  const url = `/report/reportStockImportDetail/reportCount`
  return axios({
    url: url,
    data: params,
    method: 'post'
  })
}
export const reportStockImportDetailExport  = (params) => {
  const url = `/report/reportStockImportDetail/export `
  return axios({
    url: url,
    data: params,
    method: 'post',
    responseType: 'blob'
  })
}