/*
 * @Descripttion: 指标管理 接口路径
 * @version: 1.0.0
 * @Author: 无尘
 * @Date: 2020-11-09 10:15:36
 * @LastEditors: 无尘
 * @LastEditTime: 2020-11-20 15:48:04
 */

import getFetch from './get-fetch.js';

let api = {
  // 指标管理
  getTargetList: '/performance/total-performance-list', // 获取指标列表
  getStorePerformanceDetail: '/performance/list-store-performance', // 指标列表-查看店列表
  changeStorePerformanceMonth: '/performance/change-store-month-performance', // 指标列表-修改门店月指标
  getStorePerformanceDay: '/performance/list-day-performance', // 指标列表-查看门店日列表
  changeStorePerformanceDay: {
    url: '/performance/save-day-performance', // 指标列表-保存门店日列表
    method: 'post',
    useFormData: true
  },
  getStorePerformanceClerk: '/performance/list-clerk-performance', // 指标列表-查看导购指标
  changeStorePerformanceClerk: {
    url: '/performance/save-clerk-performance', // 指标列表-保存导购指标
    method: 'post',
    useFormData: true
  },

  getYearList: '/setting/get-year-list', // 获取年份
  getStorePerformanceList: '/setting/list-store-performance', // 指标设置-已设置门店指标列表
  getNoStorePerformanceList: '/setting/list-no-store-performance', // 指标设置-未设置门店指标列表
  getSingleStorePerformanceDetail: '/setting/see-single-store-performance', // 指标设置-回显编辑单个门店指标
  saveStorePerformance: { // 指标设置-新建门店指标
    url: '/setting/add-store-performance',
    method: 'post',
    useFormData: true,
    useIntercept: true
  },
  editStorePerformance: { // 指标设置-编辑单个门店指标
    url: '/setting/edit-single-store-performance',
    method: 'post',
    useFormData: true,
    useIntercept: true
  },
  batchEditStorePerformance: { // 指标设置-批量设置门店指标
    url: '/setting/batch-setting-store-performance',
    method: 'post',
    useFormData: true,
    useIntercept: true
  },
  batchSettingRight: '/setting/batch-setting-right', // 指标设置-批量修改权限
  getTargetSet: '/setting/get-performance-setting', // 获取下发设置
  saveTargetSet: {
    url: '/setting/save-performance-setting', // 下发设置-保存
    method: 'post',
    useFormData: true
  },
  getTagList: '/setting/list-store-tag', // 获取标签
  delStorePerformance: '/setting/del-store-performance', // 指标设置-删除门店指标
};

api = getFetch(api, '/hb-app-performance-web');

export default api;
