// 物业管理员
import http from '@/apis/axios'
const api = 'admin/'
export default {
  // 分页查询
  list: (data, params) => http(api + 'goodlist', data, 'post', params),
  // 添加
  add: (data, params) => http(api + 'gooduponline', data, 'post', params),
  // 详情
  detail: (data, params) => http(api + 'goodinfo', data, 'post', params),
  // 产品部门审核
  goodupexam: (data, params) => http(api + 'goodupexam', data, 'post', params),
  // 更新状态
  status: (data, params) => http(api + 'goodupexam', data, 'post', params),

  // 定价岗定价
  ladderOne: (data, params) =>
    http(api + 'goodupeditladder', data, 'post', params),
  // 删除
  delete: (data, params) => http(api + 'gooddel', data, 'post', params),
  // 重新发起审核流程
  againonline: (data, params) =>
    http(api + 'againonline', data, 'post', params),
  // 获取系统售价
  goodupprice: (data, params) =>
    http(api + 'goodupprice', data, 'post', params),

  // 复制
  copy: (data, params) => http(api + 'goodcopy', data, 'post', params),
  // 获取全部分类
  catAll: (data, params) => http(api + 'catAll', data, 'post', params),
  // 获取全部品牌
  brandAll: (data, params) => http(api + 'brandall', data, 'post', params),
  // 获取全部供应商账号
  supplierAll: (data, params) =>
    http(api + 'supplierall', data, 'post', params),
  // 商品种类ID换取规格值
  specByCat: (data, params) => http(api + 'SpecByCat', data, 'post', params),
  // 规格属性值新建
  specinfoadd: (data, params) =>
    http(api + 'specinfoadd', data, 'post', params),

  // 导出线上商品
  exportgood: (data, params) => http(api + 'exportgood', data, 'post', params),
  // 商品上线审核时、驳回重新审核
  goodupreject: (data, params) =>
    http(api + 'goodupreject', data, 'post', params),
  // 异常原因列表
  resultlist: (data, params) => http(api + 'resultlist', data, 'post', params),
  // 获取某个商品编号下的所有审核备注列表
  getgoodexamlist: (data, params) =>
    http(api + 'getgoodexamlist', data, 'post', params),
  goodcompliance: (data, params) =>
    http(api + 'goodcompliance', data, 'post', params)
}
