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

//  销售收款  列表  分页
export const settleReceiptList = (params) => {
  const url = `/settleReceipt/queryPage/${params.pageNo}/${params.pageSize}`
  delete params.pageNo
  delete params.pageSize
  return axios({
    url: url,
    data: params,
    method: 'post'
  })
}
//  仅标记收款
export const settleReceiptBatch = (params) => {
  const url = `/settleReceipt/receiptBatch`
  return axios({
    url: url,
    data: params,
    method: 'post'
  })
}

// 关联收款单
export const settleReceiptBookBatch = (params) => {
  const url = `/settleReceipt/receiptBookBatch`
  return axios({
    url: url,
    data: params,
    method: 'post'
  })
}

// 凭证
export const settleReceiptFindBySn = (params) => {
  const url = `/settleReceipt/findBySn/${params.sn}`
  return axios({
    url: url,
    method: 'get'
  })
}

// 收款打印
export const settleReceiptPrintFindBySn = (params) => {
  const url = `/settleReceipt/printFindBySn/${params.sn}`
  return axios({
    url: url,
    method: 'get'
  })
}