// 企业客户/供应商账号相关
import http from "@/apis/axios";
const api = "Admin/";
export default {
  // 分页查询
  list: (data, params) => http(api + "getreceiptlist", data, "post", params),
  // 分页查询企业客户
  clist: (data, params) => http(api + "customerlist", data, "post", params),
  // 导入数据
  add: (data, params) => http(api + "tradecreate", data, "post", params),
  // 详情
  detail: (data, params) => http(api + "tradeinfo", data, "post", params),

  // 分页查询确认单列表
  tradesave: (data, params) => http(api + "tradesave", data, "post", params),
  // 发票新建（金额）
  madd: (data, params) => http(api + "receiptadd", data, "post", params),
  // 发票编辑（金额）
  mupdate: (data, params) => http(api + "receiptedit", data, "post", params),
  // 发票新建（确认单）
  oadd: (data, params) => http(api + "receiptcreate", data, "post", params),
  // 发票编辑（确认单）
  oupdate: (data, params) => http(api + "receiptsave", data, "post", params),

  // 删除（取消申请）
  delete: (data, params) => http(api + 'receiptdel', data, 'post', params),
  // 发票状态修改
  status: (data, params) => http(api + 'receiptstatus', data, 'post', params),


};
