import http from "@/apis/axios";
const api = "admin/";
export default {
  // 添加
  add: (data, params) => http(api + "add", data, "post", params),
  // 分页查询
  list: (data, params) => http(api + "cgdlist", data, "post", params),
  // 删除
  delete: (data, params) => http(api + "delete", data, "post", params),
  // 详情
  detail: (data, params) => http(api + "cgdinfo", data, "post", params),
  // 更新
  update: (data, params) => http(api + "cgdedit", data, "post", params),
  // 修改状态
  status: (data, params) => http(api + "cgdstatus", data, "post", params),
  // 新建入库单
  orderinadd: (data, params) => http(api + "orderinadd", data, "post", params),
  // 新建入库单详情
  orderininfo: (data, params) => http(api + "orderininfo", data, "post", params),
  // 异常原因列表
  resultlist: (data, params) => http(api + "resultlist", data, "post", params),
  // 入库单验货
  orderincheck: (data, params) => http(api + "orderincheck", data, "post", params),
  // 入库单退货换货
  orderinreturn: (data, params) => http(api + "orderinreturn", data, "post", params),
  // 发货单状态修改
  orderinstatus: (data, params) => http(api + "orderinstatus", data, "post", params),
  // 采返商品详情
  re_detail: (data, params) => http(api + "goodzxinfo", data, "post", params),
  //商品成本详情
  cost_detail: (data, params) => http(api + "goodupinfo", data, "post", params),

  //采购单修改实时金价
  cgdeditgoldprice: (data, params) => http(api + "cgdeditgoldprice", data, "post", params),
   // 采返商品详情 订单生成前
   cove_detail: (data, params) => http(api + "getgoodzxinfobynotzixun", data, "post", params),
   //导出
   exportcgdlist: (data, params) => http(api + "exportcgdlist", data, "post", params),

   //修改采购单
   cgdeditnew: (data, params) => http(api + "cgdeditnew", data, "post", params),

   //获取采购单修改供应商的记录
   cgdgetchangesupplierlist: (data, params) => http(api + "cgdgetchangesupplierlist", data, "post", params),
}