import { axios } from '@/utils/request'

//  单位收付款 列表  分页
export const settleUnitClientList = (params) => {
  const url = `/settle/unit/queryClientUnSettlePage/${params.pageNo}/${params.pageSize}`
  delete params.pageNo
  delete params.pageSize
  return axios({
    url: url,
    data: params,
    method: 'post'
  })
}
//  单位收付款记录 列表 结算记录 分页
export const settleUnitList = (params) => {
  const url = `/settle/unit/queryPage/${params.pageNo}/${params.pageSize}`
  delete params.pageNo
  delete params.pageSize
  return axios({
    url: url,
    data: params,
    method: 'post'
  })
}
//  单位收付款 提交收付款
export const settleUnitSave = (params) => {
  return axios({
    url: '/settle/unit/save',
    data: params,
    method: 'post'
  })
}
//  单位收付款记录  详情 列表 结算记录 分页
export const settleUnitDetailList = (params) => {
  const url = `/settle/unit/detail/queryPage/${params.pageNo}/${params.pageSize}`
  delete params.pageNo
  delete params.pageSize
  return axios({
    url: url,
    data: params,
    method: 'post'
  })
}
//  单位收付款记录  详情
export const settleUnitDetail = (params) => {
  return axios({
    url: `/settle/unit/findById/${params.id}`,
    method: 'get'
  })
}
//  单位收付款记录  合计
export const settleUnitQuerySum = (params) => {
  return axios({
    url: '/settle/unit/querySum',
    data: params,
    method: 'post'
  })
}
//  单位收付款 全部单据
export const settleInfoAllList = (params) => {
  return axios({
    url: '/settle/info/queryList',
    data: params,
    method: 'post'
  })
}
//  单位收付款 列表 分页
export const settleInfoList = (params) => {
  const url = `/settle/info/queryPage/${params.pageNo}/${params.pageSize}`
  delete params.pageNo
  delete params.pageSize
  return axios({
    url: url,
    data: params,
    method: 'post'
  })
}
//  单位收付款  详情 合计
export const settleInfoQueryReceiptOrPaySum = (params) => {
  return axios({
    url: '/settle/info/queryReceiptOrPaySum',
    data: params,
    method: 'post'
  })
}
//  单位收付款  列表 合计
export const settleInfoQuerySum = (params) => {
  return axios({
    url: '/settle/info/querySum',
    data: params,
    method: 'post'
  })
}
